]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
2.7 --> 2.8
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
36ed4f51
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
580080c5
RD
2628#define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629#define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630#define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631#define SWIGTYPE_p_wxValidator swig_types[165]
2632#define SWIGTYPE_p_wxWindow swig_types[166]
2633#define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634#define SWIGTYPE_p_wxWindowDC swig_types[168]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637static swig_type_info *swig_types[172];
2638static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
32fe5131
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2641
36ed4f51 2642/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2643
1bd55598
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
d55e5bfc 2658
36ed4f51
RD
2659/*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_gdi_
d55e5bfc 2663
36ed4f51 2664#define SWIG_name "_gdi_"
d55e5bfc 2665
1bd55598 2666#define SWIGVERSION 0x010329
d55e5bfc 2667
d55e5bfc 2668
1bd55598
RD
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2671
2672
1bd55598
RD
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
36ed4f51 2684 }
1bd55598
RD
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
36ed4f51 2689 }
1bd55598
RD
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
36ed4f51 2719}
d55e5bfc 2720
d55e5bfc 2721
1bd55598
RD
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
d55e5bfc 2731 }
1bd55598 2732 };
d55e5bfc
RD
2733}
2734
2735
1bd55598
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2131d850
RD
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745SWIGINTERNINLINE PyObject *
2746SWIG_From_int (int value)
2747{
2748 return SWIG_From_long (value);
2749}
2750
2751
1bd55598
RD
2752#include <limits.h>
2753#ifndef LLONG_MIN
2754# define LLONG_MIN LONG_LONG_MIN
2755#endif
2756#ifndef LLONG_MAX
2757# define LLONG_MAX LONG_LONG_MAX
2758#endif
2759#ifndef ULLONG_MAX
2760# define ULLONG_MAX ULONG_LONG_MAX
2761#endif
d55e5bfc
RD
2762
2763
da91cb0f
RD
2764SWIGINTERN int
2765SWIG_AsVal_long (PyObject* obj, long* val)
2766{
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772}
2773
2774
36ed4f51 2775SWIGINTERN int
1bd55598 2776SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2777{
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2780 return SWIG_TypeError;
36ed4f51
RD
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
1bd55598 2784 return SWIG_OK;
36ed4f51 2785}
d55e5bfc
RD
2786
2787
36ed4f51 2788SWIGINTERN int
1bd55598
RD
2789SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790{
36ed4f51 2791 unsigned long v;
1bd55598
RD
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
36ed4f51 2796 } else {
1bd55598 2797 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2798 }
1bd55598
RD
2799 }
2800 return res;
36ed4f51 2801}
d55e5bfc 2802
d55e5bfc 2803
1bd55598
RD
2804SWIGINTERNINLINE PyObject*
2805SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2806{
1bd55598
RD
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2809}
2810
2811
1bd55598
RD
2812SWIGINTERNINLINE PyObject *
2813SWIG_From_unsigned_SS_char (unsigned char value)
2814{
2815 return SWIG_From_unsigned_SS_long (value);
2816}
d55e5bfc 2817
e9d6f3a4
RD
2818SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
fc46b7f3
RD
2836
2837SWIGINTERN int
2838SWIG_AsVal_bool (PyObject *obj, bool *val)
2839{
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852}
2853
2854SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
fc46b7f3 2859 int alpha = wxALPHA_OPAQUE;
b39fe951 2860 if (self->IsOk()) {
36ed4f51
RD
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
fc46b7f3 2864 alpha = self->Alpha();
36ed4f51
RD
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2871 return rv;
2872 }
1bd55598 2873SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
d55e5bfc 2876
1bd55598
RD
2877SWIGINTERN int
2878SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2879{
1bd55598
RD
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
d55e5bfc
RD
2890}
2891
1bd55598 2892SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
5a446332 2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
1bd55598 2905SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2909
36ed4f51
RD
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
1bd55598
RD
2924SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2926
1bd55598
RD
2927SWIGINTERNINLINE PyObject *
2928SWIG_From_short (short value)
2929{
2930 return SWIG_From_long (value);
2931}
d55e5bfc
RD
2932
2933
36ed4f51 2934SWIGINTERN int
1bd55598
RD
2935SWIG_AsVal_short (PyObject * obj, short *val)
2936{
36ed4f51 2937 long v;
1bd55598
RD
2938 int res = SWIG_AsVal_long (obj, &v);
2939 if (SWIG_IsOK(res)) {
2940 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2941 return SWIG_OverflowError;
36ed4f51 2942 } else {
1bd55598
RD
2943 if (val) *val = static_cast< short >(v);
2944 }
2945 }
2946 return res;
d55e5bfc
RD
2947}
2948
2949
fc46b7f3
RD
2950#include <wx/rawbmp.h>
2951
2952
8f514ab4
RD
2953// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2954// appears to me that the other platforms are already doing it, so I'll just
2955// automatically do it for wxMSW here.
2956#ifdef __WXMSW__
2957#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2958#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2959#else
2960#define wxPy_premultiply(p, a) (p)
2961#define wxPy_unpremultiply(p, a) (p)
2962#endif
2963
2964
36ed4f51 2965#include <wx/image.h>
d55e5bfc 2966
36ed4f51
RD
2967 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2968 char** cArray = NULL;
2969 int count;
d55e5bfc 2970
36ed4f51
RD
2971 if (!PyList_Check(listOfStrings)) {
2972 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2973 return NULL;
2974 }
2975 count = PyList_Size(listOfStrings);
2976 cArray = new char*[count];
d55e5bfc 2977
36ed4f51
RD
2978 for(int x=0; x<count; x++) {
2979 // TODO: Need some validation and error checking here
2980 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2981 }
2982 return cArray;
d55e5bfc 2983 }
d55e5bfc
RD
2984
2985
1bd55598 2986SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2987 char** cArray = NULL;
2988 wxBitmap* bmp;
2989
2990 cArray = ConvertListOfStrings(listOfStrings);
2991 if (! cArray)
2992 return NULL;
2993 bmp = new wxBitmap(cArray);
2994 delete [] cArray;
2995 return bmp;
2996 }
1bd55598 2997SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2998 char* buf;
2999 Py_ssize_t length;
3000 PyString_AsStringAndSize(bits, &buf, &length);
3001 return new wxBitmap(buf, width, height, depth);
3002 }
1bd55598 3003SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3004 wxSize size(self->GetWidth(), self->GetHeight());
3005 return size;
3006 }
1bd55598 3007SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3008 wxMask *mask = new wxMask(*self, colour);
3009 self->SetMask(mask);
3010 }
1bd55598 3011SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3012 self->SetWidth(size.x);
3013 self->SetHeight(size.y);
3014 }
8f514ab4
RD
3015SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3016 int height=self->GetHeight();
3017 int width=self->GetWidth();
fc46b7f3 3018
8f514ab4
RD
3019 if (DATASIZE != width * height * 3) {
3020 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3021 }
3022 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return;
3028 }
fc46b7f3 3029
8f514ab4
RD
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 }
3043SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3044 int height=self->GetHeight();
3045 int width=self->GetWidth();
3046
3047 if (DATASIZE != width * height * 4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 }
3050 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3051 if (! pixData) {
3052 // raise an exception...
3053 wxPyErr_SetString(PyExc_RuntimeError,
3054 "Failed to gain raw access to bitmap data.");
3055 return;
3056 }
3057
3058 pixData.UseAlpha();
3059 wxAlphaPixelData::Iterator p(pixData);
3060 for (int y=0; y<height; y++) {
3061 wxAlphaPixelData::Iterator rowStart = p;
3062 for (int x=0; x<width; x++) {
3063 byte a = data[3];
3064 p.Red() = wxPy_premultiply(*(data++), a);
3065 p.Green() = wxPy_premultiply(*(data++), a);
3066 p.Blue() = wxPy_premultiply(*(data++), a);
3067 p.Alpha() = a; data++;
3068 ++p;
3069 }
3070 p = rowStart;
3071 p.OffsetY(pixData, 1);
3072 }
3073 }
3074SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3075SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3076
3077 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3078 buffer data, int DATASIZE,
3079 buffer alpha, int ALPHASIZE)
3080 {
3081 if (DATASIZE != width*height*3) {
3082 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3083 return NULL;
3084 }
3085
3086 if (ALPHASIZE != width*height) {
3087 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3088 return NULL;
3089 }
3090
3091 wxBitmap* bmp = new wxBitmap(width, height, 32);
3092 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3093 if (! pixData) {
3094 // raise an exception...
3095 wxPyErr_SetString(PyExc_RuntimeError,
3096 "Failed to gain raw access to bitmap data.");
3097 return NULL;
3098 }
3099
3100 pixData.UseAlpha();
3101 wxAlphaPixelData::Iterator p(pixData);
3102 for (int y=0; y<height; y++) {
3103 wxAlphaPixelData::Iterator rowStart = p;
3104 for (int x=0; x<width; x++) {
3105 byte a = *(alpha++);
3106 p.Red() = wxPy_premultiply(*(data++), a);
3107 p.Green() = wxPy_premultiply(*(data++), a);
3108 p.Blue() = wxPy_premultiply(*(data++), a);
3109 p.Alpha() = a;
3110 ++p;
3111 }
3112 p = rowStart;
3113 p.OffsetY(pixData, 1);
3114 }
3115 return bmp;
3116 }
3117
3118 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3119 {
3120 if (DATASIZE != width*height*3) {
3121 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3122 return NULL;
3123 }
3124
3125 wxBitmap* bmp = new wxBitmap(width, height, 24);
3126 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3127 if (! pixData) {
3128 // raise an exception...
3129 wxPyErr_SetString(PyExc_RuntimeError,
3130 "Failed to gain raw access to bitmap data.");
3131 return NULL;
3132 }
3133
3134 wxNativePixelData::Iterator p(pixData);
3135 for (int y=0; y<height; y++) {
3136 wxNativePixelData::Iterator rowStart = p;
3137 for (int x=0; x<width; x++) {
3138 p.Red() = *(data++);
3139 p.Green() = *(data++);
3140 p.Blue() = *(data++);
3141 ++p;
3142 }
3143 p = rowStart;
3144 p.OffsetY(pixData, 1);
3145 }
3146 return bmp;
3147 }
3148
3149
3150 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3151 {
3152 if (DATASIZE != width*height*4) {
3153 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3154 return NULL;
3155 }
3156
3157 wxBitmap* bmp = new wxBitmap(width, height, 32);
3158 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3159 if (! pixData) {
3160 // raise an exception...
3161 wxPyErr_SetString(PyExc_RuntimeError,
3162 "Failed to gain raw access to bitmap data.");
3163 return NULL;
3164 }
3165
3166 pixData.UseAlpha();
3167 wxAlphaPixelData::Iterator p(pixData);
3168 for (int y=0; y<height; y++) {
3169 wxAlphaPixelData::Iterator rowStart = p;
3170 for (int x=0; x<width; x++) {
3171 byte a = data[3];
3172 p.Red() = wxPy_premultiply(*(data++), a);
3173 p.Green() = wxPy_premultiply(*(data++), a);
3174 p.Blue() = wxPy_premultiply(*(data++), a);
3175 p.Alpha() = a; data++;
3176 ++p;
3177 }
3178 p = rowStart;
3179 p.OffsetY(pixData, 1);
3180 }
3181 return bmp;
3182 }
3183
3184
3185 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3186
3187SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3188SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3189SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3190 self->Red() = red;
3191 self->Green() = green;
3192 self->Blue() = blue;
3193 }
3194SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3195 PyObject* rv = PyTuple_New(3);
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3199 return rv;
3200 }
3201
3202 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3203
3204SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3205SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3206SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3207 self->Red() = wxPy_premultiply(red, alpha);
3208 self->Green() = wxPy_premultiply(green, alpha);
3209 self->Blue() = wxPy_premultiply(blue, alpha);
3210 self->Alpha() = alpha;
3211 }
3212SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3213 PyObject* rv = PyTuple_New(4);
3214 int red = self->Red();
3215 int green = self->Green();
3216 int blue = self->Blue();
3217 int alpha = self->Alpha();
3218
3219 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3220 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3221 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3222 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3223 return rv;
3224 }
1bd55598 3225SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3226 if ( !colour.IsOk() )
36ed4f51
RD
3227 return new wxMask(bitmap, *wxBLACK);
3228 else
3229 return new wxMask(bitmap, colour);
3230 }
d55e5bfc 3231
36ed4f51 3232#include <wx/iconbndl.h>
d55e5bfc 3233
1bd55598 3234SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3235 wxIcon* icon = new wxIcon();
3236 icon->CopyFromBitmap(bmp);
3237 return icon;
3238 }
1bd55598 3239SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3240 char** cArray = NULL;
3241 wxIcon* icon;
d55e5bfc 3242
36ed4f51
RD
3243 cArray = ConvertListOfStrings(listOfStrings);
3244 if (! cArray)
3245 return NULL;
3246 icon = new wxIcon(cArray);
3247 delete [] cArray;
3248 return icon;
3249 }
1bd55598 3250SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3251
3252
d55e5bfc 3253
36ed4f51 3254 return new wxIconLocation(*filename);
d55e5bfc 3255
36ed4f51 3256 }
1bd55598 3257SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3258
3259
d55e5bfc 3260
36ed4f51 3261 // do nothing
d55e5bfc 3262
36ed4f51 3263 }
1bd55598 3264SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3265
3266
d55e5bfc 3267
36ed4f51 3268 return -1;
d55e5bfc 3269
36ed4f51 3270 }
1bd55598 3271SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3272#ifdef __WXGTK__
fef4c27a
RD
3273 wxImage img(cursorName, type);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3275 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3276 return new wxCursor(img);
36ed4f51 3277#else
fef4c27a 3278 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3279#endif
3280 }
d55e5bfc 3281
d55e5bfc 3282
1bd55598 3283SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3284 (*self) ++;
3285 }
1bd55598 3286SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3287 return self->operator bool();
3288 }
d55e5bfc 3289
36ed4f51
RD
3290#include <wx/fontutil.h>
3291#include <wx/fontmap.h>
3292#include <wx/fontenum.h>
d55e5bfc 3293
1bd55598 3294SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3295 return self->ToString();
3296 }
d55e5bfc 3297
36ed4f51
RD
3298 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3299 static wxNativeEncodingInfo info;
3300 if ( wxGetNativeFontEncoding(encoding, &info) )
3301 return &info;
3302 else
3303 return NULL;
d55e5bfc 3304 }
d55e5bfc 3305
1bd55598
RD
3306
3307SWIGINTERNINLINE PyObject *
3308SWIG_From_size_t (size_t value)
3309{
3310 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3311}
3312
3313
3314SWIGINTERNINLINE int
3315SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3316{
3317 unsigned long v;
3318 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3319 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3320 return res;
3321}
3322
3323SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3324 wxFontEncoding alt_enc;
3325 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3326 return PyInt_FromLong(alt_enc);
3327 else {
3328 Py_INCREF(Py_None);
3329 return Py_None;
3330 }
3331 }
1bd55598 3332SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3333 wxNativeFontInfo nfi;
3334 nfi.FromString(info);
3335 return new wxFont(nfi);
3336 }
1bd55598 3337SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3338 return wxFont::New(pointSize, family, flags, face, encoding);
3339 }
1bd55598 3340SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3341 return wxFontBase::New(pixelSize, family,
3342 style, weight, underlined,
3343 face, encoding);
3344 }
1bd55598 3345SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3346 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3347 }
1bd55598
RD
3348SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3349SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3350
36ed4f51
RD
3351class wxPyFontEnumerator : public wxFontEnumerator {
3352public:
3353 wxPyFontEnumerator() {}
3354 ~wxPyFontEnumerator() {}
d55e5bfc 3355
36ed4f51
RD
3356 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3357 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3358
36ed4f51
RD
3359 PYPRIVATE;
3360};
d55e5bfc 3361
36ed4f51
RD
3362IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3363IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3364
36ed4f51 3365
704eda0c 3366SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3367 PyObject* ret;
704eda0c 3368 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3370 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3371 wxPyEndBlockThreads(blocked);
3372 return ret;
36ed4f51 3373 }
704eda0c 3374SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3375 PyObject* ret;
704eda0c 3376 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3377 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3378 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3379 wxPyEndBlockThreads(blocked);
3380 return ret;
36ed4f51
RD
3381 }
3382
3383#include <locale.h>
3384
1bd55598 3385SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3386 wxLocale* loc;
3387 if (language == -1)
3388 loc = new wxLocale();
3389 else
3390 loc = new wxLocale(language, flags);
3391 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3392 // for the floating point conversions and such to work right.
3393#if PY_VERSION_HEX < 0x02040000
3394 setlocale(LC_NUMERIC, "C");
3395#endif
3396 return loc;
3397 }
1bd55598 3398SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3399 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3400 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3401 // for the floating point conversions and such to work right.
3402#if PY_VERSION_HEX < 0x02040000
3403 setlocale(LC_NUMERIC, "C");
3404#endif
3405 return rc;
3406 }
1bd55598 3407SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3408 bool rc = self->Init(language, flags);
3409 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3410 // for the floating point conversions and such to work right.
3411#if PY_VERSION_HEX < 0x02040000
3412 setlocale(LC_NUMERIC, "C");
3413#endif
3414 return rc;
3415 }
3416
fc46b7f3
RD
3417class wxPyLocale : public wxLocale
3418{
3419public:
3420 wxPyLocale();
3421
3422 wxPyLocale(const wxChar *szName, // name (for messages)
3423 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3424 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3425 bool bLoadDefault = true, // preload wxstd.mo?
3426 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3427
3428 wxPyLocale(int language, // wxLanguage id or custom language
3429 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3430
3431 ~wxPyLocale();
3432
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szDomain = NULL) const;
3435 virtual const wxChar *GetString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain = NULL) const;
3438
3439 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3440 const wxChar *szDomain = NULL) const;
3441 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3442 const wxChar *szOrigString2, size_t n,
3443 const wxChar *szDomain = NULL) const;
3444
3445 PYPRIVATE;
3446private:
3447 DECLARE_NO_COPY_CLASS(wxPyLocale)
3448};
3449
3450wxPyLocale::wxPyLocale() : wxLocale()
3451{
3452}
3453
3454wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3455 const wxChar *szShort, // dir prefix (for msg files)
3456 const wxChar *szLocale, // locale (for setlocale)
3457 bool bLoadDefault, // preload wxstd.mo?
3458 bool bConvertEncoding) // convert Win<->Unix if necessary?
3459 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3460{
3461}
3462
3463wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3464 int flags) : wxLocale(language, flags)
3465{
3466}
3467
3468wxPyLocale::~wxPyLocale()
3469{
3470}
3471
3472const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3473 const wxChar *szDomain) const
3474{
3475 wxChar *str = GetSingularString(szOrigString, szDomain);
3476 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3477}
3478
3479const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3480 const wxChar *szOrigString2, size_t n,
3481 const wxChar *szDomain) const
3482{
3483 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3484 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3485}
3486
3487wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3488 const wxChar *szDomain) const
3489{
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 if (ret) {
3501 str = Py2wxString(ret);
3502 Py_DECREF(ret);
3503 }
3504 }
3505 wxPyEndBlockThreads(blocked);
3506 return (found ? (wxChar*)str.c_str() : NULL);
3507}
3508
3509wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3510 const wxChar *szOrigString2, size_t n,
3511 const wxChar *szDomain) const
3512{
3513 bool found;
3514 static wxString str;
3515 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3516 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3517 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3518 PyObject* param1 = wx2PyString(szOrigString);
3519 PyObject* param2 = wx2PyString(szOrigString2);
3520 PyObject* param4 = wx2PyString(szDomain);
3521 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3522 Py_DECREF(param1);
3523 Py_DECREF(param2);
3524 Py_DECREF(param4);
3525 if( ret) {
3526 str = Py2wxString(ret);
3527 Py_DECREF(ret);
3528 }
3529 }
3530 wxPyEndBlockThreads(blocked);
3531 return (found ? (wxChar*)str.c_str() : NULL);
3532}
3533
3534SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3535 wxPyLocale* loc;
3536 if (language == -1)
3537 loc = new wxPyLocale();
3538 else
3539 loc = new wxPyLocale(language, flags);
3540 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3541 // for the floating point conversions and such to work right.
3542#if PY_VERSION_HEX < 0x02040000
3543 setlocale(LC_NUMERIC, "C");
3544#endif
3545 return loc;
3546 }
3547
36ed4f51
RD
3548#include "wx/wxPython/pydrawxxx.h"
3549
1bd55598 3550SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3551 wxColour col;
3552 self->GetPixel(x, y, &col);
3553 return col;
3554 }
1bd55598 3555SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3556 wxColour col;
3557 self->GetPixel(pt, &col);
3558 return col;
3559 }
3560
3561SWIGINTERN int
1bd55598 3562SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3563{
3564 if (PyNumber_Check(obj)) {
3565 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3566 return SWIG_OK;
d55e5bfc 3567 }
1bd55598 3568 return SWIG_TypeError;
36ed4f51
RD
3569}
3570
1bd55598 3571SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
36ed4f51
RD
3572 wxRect rv;
3573 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3574 return rv;
3575 }
1bd55598 3576SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3577 wxRect rect;
3578 self->GetClippingBox(rect);
3579 return rect;
3580 }
1bd55598 3581SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3582 wxArrayInt widths;
3583 self->GetPartialTextExtents(text, widths);
3584 return widths;
3585 }
3586
1bd55598 3587 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3588
1bd55598 3589SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3590 self->SetLogicalOrigin(point.x, point.y);
3591 }
1bd55598 3592SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3593 self->SetDeviceOrigin(point.x, point.y);
3594 }
1bd55598 3595SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3596 self->CalcBoundingBox(point.x, point.y);
3597 }
1bd55598 3598SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3599 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3600 }
1bd55598 3601SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3602 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3603 }
1bd55598 3604SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3605 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3606 }
1bd55598 3607SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3608 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3609 }
1bd55598 3610SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3611 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3612 }
1bd55598 3613SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3614 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3615 }
3616
3617static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3618 *x1 = dc->MinX();
3619 *y1 = dc->MinY();
3620 *x2 = dc->MaxX();
3621 *y2 = dc->MaxY();
3622}
3623
3624
3625#include <wx/dcbuffer.h>
3626
3627
3628#include <wx/dcps.h>
3629
3630
3631#include <wx/metafile.h>
3632
3633
72ef6efb
RD
3634#include <wx/graphics.h>
3635
3636
3637#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3638// C++ stub classes for platforms or build configurations that don't have
3639// wxGraphicsContext yet.
72ef6efb 3640
8bd35413
RD
3641class wxGraphicsRenderer;
3642class wxGraphicsMatrix;
3643
70d7cb34
RD
3644
3645class wxGraphicsObject : public wxObject
72ef6efb
RD
3646{
3647public :
8bd35413 3648 wxGraphicsObject() {}
70d7cb34 3649 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3650 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3651 "wx.GraphicsObject is not available on this platform.");
3652 }
3653 wxGraphicsObject( const wxGraphicsObject& ) {}
3654 virtual ~wxGraphicsObject() {}
3655 bool IsNull() const { return false; }
3656 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3657} ;
3658
3659
3660
3661class wxGraphicsPen : public wxGraphicsObject
3662{
8bd35413 3663public:
70d7cb34
RD
3664 wxGraphicsPen() {}
3665 virtual ~wxGraphicsPen() {}
3666} ;
3667wxGraphicsPen wxNullGraphicsPen;
3668
3669
3670
3671class wxGraphicsBrush : public wxGraphicsObject
3672{
3673public :
3674 wxGraphicsBrush() {}
3675 virtual ~wxGraphicsBrush() {}
3676} ;
3677wxGraphicsBrush wxNullGraphicsBrush;
3678
3679
3680
3681class wxGraphicsFont : public wxGraphicsObject
3682{
3683public :
3684 wxGraphicsFont() {}
3685 virtual ~wxGraphicsFont() {}
3686} ;
3687wxGraphicsFont wxNullGraphicsFont;
3688
3689
3690
3691class wxGraphicsPath : public wxGraphicsObject
3692{
3693public :
8bd35413 3694 wxGraphicsPath() { }
70d7cb34
RD
3695 wxGraphicsPath(wxGraphicsRenderer* ) {
3696 PyErr_SetString(PyExc_NotImplementedError,
3697 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3698 }
3699 virtual ~wxGraphicsPath() {}
70d7cb34 3700
72ef6efb 3701 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3702 void MoveToPoint( const wxPoint2DDouble& ) {}
3703 void AddLineToPoint( wxDouble, wxDouble ) {}
3704 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3705 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3706 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3707 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3708 void CloseSubpath() {}
8bd35413
RD
3709 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3710 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3711 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3712 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3713
3714 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3715 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3716 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3717 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3718
70d7cb34
RD
3719 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3720 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3721 void * GetNativePath() const { return NULL; }
8bd35413
RD
3722 void UnGetNativePath(void *) const {}
3723 void Transform( const wxGraphicsMatrix& ) {}
3724 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3725 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3726
8bd35413
RD
3727 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3728 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3729};
5c8c7dd3 3730wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3731
3732
3733class wxGraphicsMatrix : public wxGraphicsObject
3734{
3735public :
8bd35413 3736 wxGraphicsMatrix() { }
70d7cb34
RD
3737 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3738 PyErr_SetString(PyExc_NotImplementedError,
3739 "wx.GraphicsMatrix is not available on this platform.");
3740 }
3741 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3742 virtual void Concat( const wxGraphicsMatrix & ) {}
3743 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3744 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3745 wxDouble , wxDouble ) {}
3746 virtual void Invert() {}
8bd35413
RD
3747 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3748 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3749 virtual void Translate( wxDouble , wxDouble ) {}
3750 virtual void Scale( wxDouble , wxDouble ) {}
3751 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3752 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3753 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3754 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3755};
5c8c7dd3 3756wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3757
70d7cb34
RD
3758
3759class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3760{
3761public:
70d7cb34
RD
3762
3763 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3764 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3765 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3766 }
70d7cb34 3767
72ef6efb 3768 virtual ~wxGraphicsContext() {}
70d7cb34 3769
8bd35413
RD
3770 static wxGraphicsContext* Create() {
3771 PyErr_SetString(PyExc_NotImplementedError,
3772 "wx.GraphicsContext is not available on this platform.");
3773 return NULL;
3774 }
70d7cb34 3775 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3776 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3777 "wx.GraphicsContext is not available on this platform.");
8bd35413 3778 return NULL;
72ef6efb 3779 }
b876c1e4 3780
70d7cb34 3781 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3782 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3783 "wx.GraphicsContext is not available on this platform.");
8bd35413 3784 return NULL;
70d7cb34 3785 }
b876c1e4 3786
70d7cb34
RD
3787 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3788 PyErr_SetString(PyExc_NotImplementedError,
3789 "wx.GraphicsContext is not available on this platform.");
8bd35413 3790 return NULL;
70d7cb34
RD
3791 }
3792
3793 static wxGraphicsContext* Create( wxWindow* ) {
3794 PyErr_SetString(PyExc_NotImplementedError,
3795 "wx.GraphicsContext is not available on this platform.");
8bd35413 3796 return NULL;
70d7cb34
RD
3797 }
3798
8bd35413 3799 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3800
8bd35413 3801 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3802
8bd35413 3803 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3804
3805 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3806 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3807
3808 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3809 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3810 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3811
8bd35413 3812 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3813
8bd35413
RD
3814 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3815 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3816
3817 virtual void PushState() {}
3818 virtual void PopState() {}
3819 virtual void Clip( const wxRegion & ) {}
3820 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3821 virtual void ResetClip() {}
3822 virtual void * GetNativeContext() { return NULL; }
3823 virtual void Translate( wxDouble , wxDouble ) {}
3824 virtual void Scale( wxDouble , wxDouble ) {}
3825 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3826 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3827 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3828 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3829
3830 virtual void SetPen( const wxGraphicsPen& ) {}
3831 void SetPen( const wxPen& ) {}
3832
3833 virtual void SetBrush( const wxGraphicsBrush& ) {}
3834 void SetBrush( const wxBrush& ) {}
3835
3836 virtual void SetFont( const wxGraphicsFont& ) {}
3837 void SetFont( const wxFont&, const wxColour& ) {}
3838
8bd35413
RD
3839 virtual void StrokePath( const wxGraphicsPath & ) {}
3840 virtual void FillPath( const wxGraphicsPath &, int ) {}
3841 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3842
3843 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3844 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3845 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3846 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3847 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3848 wxDouble *, wxDouble * ) const {}
3849 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3850
3851 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3852 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3853
3854 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3855 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3856 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3857 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3858 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
8bd35413 3859 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3860 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3861 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3862 virtual bool ShouldOffset() const { return false; }
3863};
3864
3865
3866class wxGraphicsRenderer : public wxObject
3867{
3868public :
3869 wxGraphicsRenderer() {
3870 PyErr_SetString(PyExc_NotImplementedError,
3871 "wx.GraphicsRenderer is not available on this platform.");
3872 }
3873
3874 virtual ~wxGraphicsRenderer() {}
3875
8bd35413 3876 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3877 PyErr_SetString(PyExc_NotImplementedError,
3878 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3879 return NULL;
3880 }
70d7cb34
RD
3881
3882 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3883 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3884 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3885 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3886 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3887
8bd35413 3888 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3889
8bd35413
RD
3890 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3891 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3892
8bd35413
RD
3893 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3894 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3895 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3896 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3897 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3898 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3899 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3900};
3901
3902
70d7cb34 3903
72ef6efb
RD
3904class wxGCDC: public wxWindowDC
3905{
3906public:
3907 wxGCDC(const wxWindowDC&) {
3908 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3909 PyErr_SetString(PyExc_NotImplementedError,
3910 "wxGCDC is not available on this platform.");
3911 wxPyEndBlockThreads(blocked);
3912 }
70d7cb34 3913
48a0c021
RD
3914 wxGCDC(const wxWindow*) {
3915 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3916 PyErr_SetString(PyExc_NotImplementedError,
3917 "wxGCDC is not available on this platform.");
3918 wxPyEndBlockThreads(blocked);
3919 }
3920
72ef6efb
RD
3921 wxGCDC() {
3922 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3923 PyErr_SetString(PyExc_NotImplementedError,
3924 "wxGCDC is not available on this platform.");
3925 wxPyEndBlockThreads(blocked);
3926 }
70d7cb34 3927
72ef6efb
RD
3928 virtual ~wxGCDC() {}
3929
b876c1e4
RD
3930 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3931 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3932};
3933
3934#endif
3935
f89238b9
RD
3936SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3937 if ( !backgroundBrush.IsNull() )
3938 self->DrawText(str, x, y, backgroundBrush);
3939 else
3940 self->DrawText(str, x, y);
3941 }
3942SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3943 if ( !backgroundBrush.IsNull() )
3944 self->DrawText(str, x, y, angle, backgroundBrush);
3945 else
3946 self->DrawText(str, x, y, angle);
3947 }
be68621e
RD
3948SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3949 wxDouble width = 0.0,
3950 height = 0.0;
3951 self->GetTextExtent(text, &width, &height, NULL, NULL);
3952 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3953 PyObject* rv = PyTuple_New(2);
3954 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3955 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3956 return rv;
3957 }
b39fe951
RD
3958SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3959 wxArrayDouble widths;
3960 self->GetPartialTextExtents(text, widths);
3961 return widths;
3962 }
f8eb59b9 3963SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3964 size_t c1, c2, count;
3965 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3966 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3967
3968 if ( beginP != NULL && endP != NULL )
3969 {
3970 count = wxMin(c1, c2);
3971 self->StrokeLines(count, beginP, endP);
3972 }
3973 delete [] beginP;
3974 delete [] endP;
3975 }
72ef6efb 3976
0a27f394
RD
3977#include "wx/dcgraph.h"
3978
3979
66493fc7
RD
3980#include <wx/overlay.h>
3981
3982
36ed4f51 3983
1bd55598 3984SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3985 self->AddColour(name, wxColour(red, green, blue));
3986 }
3987
da91cb0f
RD
3988 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3989 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3990 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3991 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3992
3993
36ed4f51
RD
3994#include <wx/effects.h>
3995
be9b1dca
RD
3996
3997#include "wx/renderer.h"
3998
3999
32fe5131 4000SWIGINTERNINLINE PyObject*
1bd55598 4001 SWIG_From_bool (bool value)
be9b1dca 4002{
1bd55598 4003 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
4004}
4005
27e45892
RD
4006
4007#include "wx/wxPython/pseudodc.h"
4008
4009SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4010 wxRect rect;
4011 self->GetIdBounds(id, rect);
4012 return rect;
4013 }
36ed4f51
RD
4014#ifdef __cplusplus
4015extern "C" {
4016#endif
1bd55598
RD
4017SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4018 PyObject *resultobj = 0;
4019 wxGDIObject *result = 0 ;
4020
4021 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4022 {
4023 if (!wxPyCheckForApp()) SWIG_fail;
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 result = (wxGDIObject *)new wxGDIObject();
4026 wxPyEndAllowThreads(__tstate);
4027 if (PyErr_Occurred()) SWIG_fail;
4028 }
4029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4030 return resultobj;
4031fail:
4032 return NULL;
d55e5bfc
RD
4033}
4034
4035
1bd55598
RD
4036SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4037 PyObject *resultobj = 0;
4038 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4039 void *argp1 = 0 ;
4040 int res1 = 0 ;
4041 PyObject *swig_obj[1] ;
4042
4043 if (!args) SWIG_fail;
4044 swig_obj[0] = args;
4045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4046 if (!SWIG_IsOK(res1)) {
4047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4048 }
4049 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 delete arg1;
d55e5bfc 4053
1bd55598
RD
4054 wxPyEndAllowThreads(__tstate);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 resultobj = SWIG_Py_Void();
4058 return resultobj;
4059fail:
4060 return NULL;
d55e5bfc
RD
4061}
4062
4063
1bd55598
RD
4064SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4065 PyObject *resultobj = 0;
4066 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4067 bool result;
4068 void *argp1 = 0 ;
4069 int res1 = 0 ;
4070 PyObject *swig_obj[1] ;
4071
4072 if (!args) SWIG_fail;
4073 swig_obj[0] = args;
4074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4075 if (!SWIG_IsOK(res1)) {
4076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4077 }
4078 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4079 {
4080 PyThreadState* __tstate = wxPyBeginAllowThreads();
4081 result = (bool)(arg1)->IsNull();
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) SWIG_fail;
4084 }
4085 {
4086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4087 }
4088 return resultobj;
4089fail:
4090 return NULL;
4091}
4092
4093
4094SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4095 PyObject *obj;
4096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4097 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4098 return SWIG_Py_Void();
4099}
4100
4101SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4102 return SWIG_Python_InitShadowInstance(args);
4103}
4104
4105SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4106 PyObject *resultobj = 0;
4107 byte arg1 = (byte) 0 ;
4108 byte arg2 = (byte) 0 ;
4109 byte arg3 = (byte) 0 ;
fc46b7f3 4110 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4111 wxColour *result = 0 ;
4112 unsigned char val1 ;
4113 int ecode1 = 0 ;
4114 unsigned char val2 ;
4115 int ecode2 = 0 ;
4116 unsigned char val3 ;
4117 int ecode3 = 0 ;
fc46b7f3
RD
4118 unsigned char val4 ;
4119 int ecode4 = 0 ;
1bd55598
RD
4120 PyObject * obj0 = 0 ;
4121 PyObject * obj1 = 0 ;
4122 PyObject * obj2 = 0 ;
fc46b7f3 4123 PyObject * obj3 = 0 ;
1bd55598 4124 char * kwnames[] = {
fc46b7f3 4125 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4126 };
4127
fc46b7f3 4128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4129 if (obj0) {
4130 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4131 if (!SWIG_IsOK(ecode1)) {
4132 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4133 }
4134 arg1 = static_cast< byte >(val1);
4135 }
4136 if (obj1) {
4137 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4138 if (!SWIG_IsOK(ecode2)) {
4139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4140 }
4141 arg2 = static_cast< byte >(val2);
4142 }
4143 if (obj2) {
4144 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4145 if (!SWIG_IsOK(ecode3)) {
4146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4147 }
4148 arg3 = static_cast< byte >(val3);
4149 }
fc46b7f3
RD
4150 if (obj3) {
4151 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4152 if (!SWIG_IsOK(ecode4)) {
4153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4154 }
4155 arg4 = static_cast< byte >(val4);
4156 }
1bd55598
RD
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4159 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4164 return resultobj;
4165fail:
4166 return NULL;
d55e5bfc
RD
4167}
4168
4169
1bd55598
RD
4170SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj = 0;
4172 wxString *arg1 = 0 ;
4173 wxColour *result = 0 ;
4174 bool temp1 = false ;
4175 PyObject * obj0 = 0 ;
4176 char * kwnames[] = {
4177 (char *) "colorName", NULL
4178 };
4179
4180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4181 {
4182 arg1 = wxString_in_helper(obj0);
4183 if (arg1 == NULL) SWIG_fail;
4184 temp1 = true;
4185 }
4186 {
4187 if (!wxPyCheckForApp()) SWIG_fail;
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 result = (wxColour *)new wxColour((wxString const &)*arg1);
4190 wxPyEndAllowThreads(__tstate);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 }
4193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4194 {
4195 if (temp1)
4196 delete arg1;
4197 }
4198 return resultobj;
4199fail:
4200 {
4201 if (temp1)
4202 delete arg1;
4203 }
4204 return NULL;
36ed4f51
RD
4205}
4206
4207
1bd55598
RD
4208SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4209 PyObject *resultobj = 0;
4210 unsigned long arg1 ;
4211 wxColour *result = 0 ;
4212 unsigned long val1 ;
4213 int ecode1 = 0 ;
4214 PyObject * obj0 = 0 ;
4215 char * kwnames[] = {
4216 (char *) "colRGB", NULL
4217 };
4218
4219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4220 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4221 if (!SWIG_IsOK(ecode1)) {
4222 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4223 }
4224 arg1 = static_cast< unsigned long >(val1);
4225 {
4226 PyThreadState* __tstate = wxPyBeginAllowThreads();
4227 result = (wxColour *)new wxColour(arg1);
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4232 return resultobj;
4233fail:
4234 return NULL;
d55e5bfc
RD
4235}
4236
4237
1bd55598
RD
4238SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4239 PyObject *resultobj = 0;
4240 wxColour *arg1 = (wxColour *) 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 PyObject *swig_obj[1] ;
4244
4245 if (!args) SWIG_fail;
4246 swig_obj[0] = args;
4247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4248 if (!SWIG_IsOK(res1)) {
4249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4250 }
4251 arg1 = reinterpret_cast< wxColour * >(argp1);
4252 {
4253 PyThreadState* __tstate = wxPyBeginAllowThreads();
4254 delete arg1;
d55e5bfc 4255
1bd55598
RD
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_Py_Void();
4260 return resultobj;
4261fail:
4262 return NULL;
d55e5bfc
RD
4263}
4264
4265
1bd55598
RD
4266SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4267 PyObject *resultobj = 0;
4268 wxColour *arg1 = (wxColour *) 0 ;
4269 byte result;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 PyObject *swig_obj[1] ;
4273
4274 if (!args) SWIG_fail;
4275 swig_obj[0] = args;
4276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4277 if (!SWIG_IsOK(res1)) {
4278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4279 }
4280 arg1 = reinterpret_cast< wxColour * >(argp1);
4281 {
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = (byte)(arg1)->Red();
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4288 return resultobj;
4289fail:
4290 return NULL;
d55e5bfc
RD
4291}
4292
4293
1bd55598
RD
4294SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4295 PyObject *resultobj = 0;
4296 wxColour *arg1 = (wxColour *) 0 ;
4297 byte result;
4298 void *argp1 = 0 ;
4299 int res1 = 0 ;
4300 PyObject *swig_obj[1] ;
4301
4302 if (!args) SWIG_fail;
4303 swig_obj[0] = args;
4304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4305 if (!SWIG_IsOK(res1)) {
4306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4307 }
4308 arg1 = reinterpret_cast< wxColour * >(argp1);
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 result = (byte)(arg1)->Green();
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4316 return resultobj;
4317fail:
4318 return NULL;
d55e5bfc
RD
4319}
4320
4321
1bd55598
RD
4322SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4323 PyObject *resultobj = 0;
4324 wxColour *arg1 = (wxColour *) 0 ;
4325 byte result;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
4328 PyObject *swig_obj[1] ;
4329
4330 if (!args) SWIG_fail;
4331 swig_obj[0] = args;
4332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4335 }
4336 arg1 = reinterpret_cast< wxColour * >(argp1);
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 result = (byte)(arg1)->Blue();
4340 wxPyEndAllowThreads(__tstate);
4341 if (PyErr_Occurred()) SWIG_fail;
4342 }
4343 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4344 return resultobj;
4345fail:
4346 return NULL;
d55e5bfc
RD
4347}
4348
4349
fc46b7f3
RD
4350SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4351 PyObject *resultobj = 0;
4352 wxColour *arg1 = (wxColour *) 0 ;
4353 byte result;
4354 void *argp1 = 0 ;
4355 int res1 = 0 ;
4356 PyObject *swig_obj[1] ;
4357
4358 if (!args) SWIG_fail;
4359 swig_obj[0] = args;
4360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4363 }
4364 arg1 = reinterpret_cast< wxColour * >(argp1);
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 result = (byte)(arg1)->Alpha();
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4372 return resultobj;
4373fail:
4374 return NULL;
4375}
4376
4377
b39fe951 4378SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4379 PyObject *resultobj = 0;
4380 wxColour *arg1 = (wxColour *) 0 ;
4381 bool result;
4382 void *argp1 = 0 ;
4383 int res1 = 0 ;
4384 PyObject *swig_obj[1] ;
4385
4386 if (!args) SWIG_fail;
4387 swig_obj[0] = args;
4388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4389 if (!SWIG_IsOK(res1)) {
b39fe951 4390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4391 }
4392 arg1 = reinterpret_cast< wxColour * >(argp1);
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4395 result = (bool)(arg1)->IsOk();
1bd55598
RD
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 {
4400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4401 }
4402 return resultobj;
4403fail:
4404 return NULL;
4405}
4406
4407
4408SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4409 PyObject *resultobj = 0;
4410 wxColour *arg1 = (wxColour *) 0 ;
4411 byte arg2 ;
4412 byte arg3 ;
4413 byte arg4 ;
fc46b7f3 4414 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
4417 unsigned char val2 ;
4418 int ecode2 = 0 ;
4419 unsigned char val3 ;
4420 int ecode3 = 0 ;
4421 unsigned char val4 ;
4422 int ecode4 = 0 ;
fc46b7f3
RD
4423 unsigned char val5 ;
4424 int ecode5 = 0 ;
1bd55598
RD
4425 PyObject * obj0 = 0 ;
4426 PyObject * obj1 = 0 ;
4427 PyObject * obj2 = 0 ;
4428 PyObject * obj3 = 0 ;
fc46b7f3 4429 PyObject * obj4 = 0 ;
1bd55598 4430 char * kwnames[] = {
fc46b7f3 4431 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4432 };
4433
fc46b7f3 4434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4436 if (!SWIG_IsOK(res1)) {
4437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4438 }
4439 arg1 = reinterpret_cast< wxColour * >(argp1);
4440 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4441 if (!SWIG_IsOK(ecode2)) {
4442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4443 }
4444 arg2 = static_cast< byte >(val2);
4445 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4446 if (!SWIG_IsOK(ecode3)) {
4447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4448 }
4449 arg3 = static_cast< byte >(val3);
4450 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4451 if (!SWIG_IsOK(ecode4)) {
4452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4453 }
4454 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4455 if (obj4) {
4456 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4457 if (!SWIG_IsOK(ecode5)) {
4458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4459 }
4460 arg5 = static_cast< byte >(val5);
4461 }
1bd55598
RD
4462 {
4463 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4464 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4465 wxPyEndAllowThreads(__tstate);
4466 if (PyErr_Occurred()) SWIG_fail;
4467 }
4468 resultobj = SWIG_Py_Void();
4469 return resultobj;
4470fail:
4471 return NULL;
4472}
4473
4474
4475SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4476 PyObject *resultobj = 0;
4477 wxColour *arg1 = (wxColour *) 0 ;
4478 unsigned long arg2 ;
4479 void *argp1 = 0 ;
4480 int res1 = 0 ;
4481 unsigned long val2 ;
4482 int ecode2 = 0 ;
4483 PyObject * obj0 = 0 ;
4484 PyObject * obj1 = 0 ;
4485 char * kwnames[] = {
4486 (char *) "self",(char *) "colRGB", NULL
4487 };
4488
4489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4491 if (!SWIG_IsOK(res1)) {
4492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4493 }
4494 arg1 = reinterpret_cast< wxColour * >(argp1);
4495 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4496 if (!SWIG_IsOK(ecode2)) {
4497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4498 }
4499 arg2 = static_cast< unsigned long >(val2);
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 (arg1)->Set(arg2);
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_Py_Void();
4507 return resultobj;
4508fail:
4509 return NULL;
4510}
4511
4512
4513SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj = 0;
4515 wxColour *arg1 = (wxColour *) 0 ;
4516 wxString *arg2 = 0 ;
4517 void *argp1 = 0 ;
4518 int res1 = 0 ;
4519 bool temp2 = false ;
4520 PyObject * obj0 = 0 ;
4521 PyObject * obj1 = 0 ;
4522 char * kwnames[] = {
4523 (char *) "self",(char *) "colourName", NULL
4524 };
4525
4526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4528 if (!SWIG_IsOK(res1)) {
4529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4530 }
4531 arg1 = reinterpret_cast< wxColour * >(argp1);
4532 {
4533 arg2 = wxString_in_helper(obj1);
4534 if (arg2 == NULL) SWIG_fail;
4535 temp2 = true;
4536 }
4537 {
4538 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4539 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 resultobj = SWIG_Py_Void();
4544 {
4545 if (temp2)
4546 delete arg2;
4547 }
4548 return resultobj;
4549fail:
4550 {
4551 if (temp2)
4552 delete arg2;
4553 }
4554 return NULL;
d55e5bfc
RD
4555}
4556
4557
2131d850
RD
4558SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4559 PyObject *resultobj = 0;
4560 wxColour *arg1 = (wxColour *) 0 ;
4561 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4562 wxString result;
4563 void *argp1 = 0 ;
4564 int res1 = 0 ;
4565 long val2 ;
4566 int ecode2 = 0 ;
4567 PyObject * obj0 = 0 ;
4568 PyObject * obj1 = 0 ;
4569 char * kwnames[] = {
4570 (char *) "self",(char *) "flags", NULL
4571 };
4572
4573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4577 }
4578 arg1 = reinterpret_cast< wxColour * >(argp1);
4579 if (obj1) {
4580 ecode2 = SWIG_AsVal_long(obj1, &val2);
4581 if (!SWIG_IsOK(ecode2)) {
4582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4583 }
4584 arg2 = static_cast< long >(val2);
4585 }
4586 {
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 result = ((wxColour const *)arg1)->GetAsString(arg2);
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 {
4593#if wxUSE_UNICODE
4594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4595#else
4596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4597#endif
4598 }
4599 return resultobj;
4600fail:
4601 return NULL;
4602}
4603
4604
1bd55598
RD
4605SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4606 PyObject *resultobj = 0;
4607 wxColour *arg1 = (wxColour *) 0 ;
4608 long result;
4609 void *argp1 = 0 ;
4610 int res1 = 0 ;
4611 PyObject *swig_obj[1] ;
4612
4613 if (!args) SWIG_fail;
4614 swig_obj[0] = args;
4615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4618 }
4619 arg1 = reinterpret_cast< wxColour * >(argp1);
4620 {
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = (long)((wxColour const *)arg1)->GetPixel();
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 resultobj = SWIG_From_long(static_cast< long >(result));
4627 return resultobj;
4628fail:
4629 return NULL;
4630}
4631
4632
4633SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4634 PyObject *resultobj = 0;
4635 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4636 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4637 bool result;
4638 void *argp1 = 0 ;
4639 int res1 = 0 ;
1bd55598
RD
4640 PyObject * obj0 = 0 ;
4641 PyObject * obj1 = 0 ;
4642 char * kwnames[] = {
e9d6f3a4 4643 (char *) "self",(char *) "other", NULL
1bd55598
RD
4644 };
4645
4646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4648 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4650 }
4651 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4652 arg2 = obj1;
1bd55598 4653 {
e9d6f3a4 4654 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4655 if (PyErr_Occurred()) SWIG_fail;
4656 }
4657 {
4658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4659 }
4660 return resultobj;
4661fail:
4662 return NULL;
4663}
4664
4665
4666SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4667 PyObject *resultobj = 0;
4668 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4669 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4670 bool result;
4671 void *argp1 = 0 ;
4672 int res1 = 0 ;
1bd55598
RD
4673 PyObject * obj0 = 0 ;
4674 PyObject * obj1 = 0 ;
4675 char * kwnames[] = {
e9d6f3a4 4676 (char *) "self",(char *) "other", NULL
1bd55598
RD
4677 };
4678
4679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4681 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4683 }
4684 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4685 arg2 = obj1;
1bd55598 4686 {
e9d6f3a4 4687 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 {
4691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4692 }
4693 return resultobj;
4694fail:
4695 return NULL;
d55e5bfc
RD
4696}
4697
4698
fc46b7f3 4699SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4700 PyObject *resultobj = 0;
4701 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4702 bool arg2 = (bool) false ;
1bd55598
RD
4703 PyObject *result = 0 ;
4704 void *argp1 = 0 ;
4705 int res1 = 0 ;
fc46b7f3
RD
4706 bool val2 ;
4707 int ecode2 = 0 ;
4708 PyObject * obj0 = 0 ;
4709 PyObject * obj1 = 0 ;
4710 char * kwnames[] = {
4711 (char *) "self",(char *) "includeAlpha", NULL
4712 };
1bd55598 4713
fc46b7f3
RD
4714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4716 if (!SWIG_IsOK(res1)) {
4717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4718 }
4719 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4720 if (obj1) {
4721 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4722 if (!SWIG_IsOK(ecode2)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4724 }
4725 arg2 = static_cast< bool >(val2);
4726 }
1bd55598 4727 {
fc46b7f3 4728 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = result;
4732 return resultobj;
4733fail:
4734 return NULL;
d55e5bfc
RD
4735}
4736
4737
1bd55598
RD
4738SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4739 PyObject *resultobj = 0;
4740 wxColour *arg1 = (wxColour *) 0 ;
4741 unsigned long result;
4742 void *argp1 = 0 ;
4743 int res1 = 0 ;
4744 PyObject *swig_obj[1] ;
4745
4746 if (!args) SWIG_fail;
4747 swig_obj[0] = args;
4748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4749 if (!SWIG_IsOK(res1)) {
4750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4751 }
4752 arg1 = reinterpret_cast< wxColour * >(argp1);
4753 {
1bd55598 4754 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4758 return resultobj;
4759fail:
4760 return NULL;
4761}
4762
4763
4764SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4765 PyObject *obj;
4766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4767 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4768 return SWIG_Py_Void();
4769}
4770
4771SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4772 return SWIG_Python_InitShadowInstance(args);
4773}
4774
4775SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4776 PyObject *resultobj = 0;
4777 int arg1 ;
4778 unsigned char *arg2 = (unsigned char *) 0 ;
4779 unsigned char *arg3 = (unsigned char *) 0 ;
4780 unsigned char *arg4 = (unsigned char *) 0 ;
4781 wxPalette *result = 0 ;
4782 int val1 ;
4783 int ecode1 = 0 ;
4784 void *argp2 = 0 ;
4785 int res2 = 0 ;
4786 void *argp3 = 0 ;
4787 int res3 = 0 ;
4788 void *argp4 = 0 ;
4789 int res4 = 0 ;
4790 PyObject * obj0 = 0 ;
4791 PyObject * obj1 = 0 ;
4792 PyObject * obj2 = 0 ;
4793 PyObject * obj3 = 0 ;
4794 char * kwnames[] = {
4795 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4796 };
4797
4798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4799 ecode1 = SWIG_AsVal_int(obj0, &val1);
4800 if (!SWIG_IsOK(ecode1)) {
4801 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4802 }
4803 arg1 = static_cast< int >(val1);
4804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4805 if (!SWIG_IsOK(res2)) {
4806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4807 }
4808 arg2 = reinterpret_cast< unsigned char * >(argp2);
4809 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4810 if (!SWIG_IsOK(res3)) {
4811 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4812 }
4813 arg3 = reinterpret_cast< unsigned char * >(argp3);
4814 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4815 if (!SWIG_IsOK(res4)) {
4816 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4817 }
4818 arg4 = reinterpret_cast< unsigned char * >(argp4);
4819 {
4820 if (!wxPyCheckForApp()) SWIG_fail;
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4827 return resultobj;
4828fail:
4829 return NULL;
d55e5bfc
RD
4830}
4831
4832
1bd55598
RD
4833SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4834 PyObject *resultobj = 0;
4835 wxPalette *arg1 = (wxPalette *) 0 ;
4836 void *argp1 = 0 ;
4837 int res1 = 0 ;
4838 PyObject *swig_obj[1] ;
4839
4840 if (!args) SWIG_fail;
4841 swig_obj[0] = args;
4842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4843 if (!SWIG_IsOK(res1)) {
4844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4845 }
4846 arg1 = reinterpret_cast< wxPalette * >(argp1);
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 delete arg1;
d55e5bfc 4850
1bd55598
RD
4851 wxPyEndAllowThreads(__tstate);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 resultobj = SWIG_Py_Void();
4855 return resultobj;
4856fail:
4857 return NULL;
4858}
4859
4860
4861SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxPalette *arg1 = (wxPalette *) 0 ;
4864 byte arg2 ;
4865 byte arg3 ;
4866 byte arg4 ;
4867 int result;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 unsigned char val2 ;
4871 int ecode2 = 0 ;
4872 unsigned char val3 ;
4873 int ecode3 = 0 ;
4874 unsigned char val4 ;
4875 int ecode4 = 0 ;
4876 PyObject * obj0 = 0 ;
4877 PyObject * obj1 = 0 ;
4878 PyObject * obj2 = 0 ;
4879 PyObject * obj3 = 0 ;
4880 char * kwnames[] = {
4881 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4882 };
4883
4884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4886 if (!SWIG_IsOK(res1)) {
4887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4888 }
4889 arg1 = reinterpret_cast< wxPalette * >(argp1);
4890 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4891 if (!SWIG_IsOK(ecode2)) {
4892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4893 }
4894 arg2 = static_cast< byte >(val2);
4895 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4896 if (!SWIG_IsOK(ecode3)) {
4897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4898 }
4899 arg3 = static_cast< byte >(val3);
4900 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4901 if (!SWIG_IsOK(ecode4)) {
4902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4903 }
4904 arg4 = static_cast< byte >(val4);
4905 {
4906 PyThreadState* __tstate = wxPyBeginAllowThreads();
4907 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 resultobj = SWIG_From_int(static_cast< int >(result));
4912 return resultobj;
4913fail:
4914 return NULL;
4915}
4916
4917
4918SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4919 PyObject *resultobj = 0;
4920 wxPalette *arg1 = (wxPalette *) 0 ;
4921 int arg2 ;
4922 byte *arg3 = (byte *) 0 ;
4923 byte *arg4 = (byte *) 0 ;
4924 byte *arg5 = (byte *) 0 ;
4925 bool result;
4926 void *argp1 = 0 ;
4927 int res1 = 0 ;
4928 int val2 ;
4929 int ecode2 = 0 ;
4930 byte temp3 ;
4931 int res3 = SWIG_TMPOBJ ;
4932 byte temp4 ;
4933 int res4 = SWIG_TMPOBJ ;
4934 byte temp5 ;
4935 int res5 = SWIG_TMPOBJ ;
4936 PyObject * obj0 = 0 ;
4937 PyObject * obj1 = 0 ;
4938 char * kwnames[] = {
4939 (char *) "self",(char *) "pixel", NULL
4940 };
4941
4942 arg3 = &temp3;
4943 arg4 = &temp4;
4944 arg5 = &temp5;
4945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4947 if (!SWIG_IsOK(res1)) {
4948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4949 }
4950 arg1 = reinterpret_cast< wxPalette * >(argp1);
4951 ecode2 = SWIG_AsVal_int(obj1, &val2);
4952 if (!SWIG_IsOK(ecode2)) {
4953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4954 }
4955 arg2 = static_cast< int >(val2);
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 {
4963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4964 }
4965 if (SWIG_IsTmpObj(res3)) {
4966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4967 } else {
4968 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4970 }
4971 if (SWIG_IsTmpObj(res4)) {
4972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4973 } else {
4974 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4976 }
4977 if (SWIG_IsTmpObj(res5)) {
4978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4979 } else {
4980 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4982 }
4983 return resultobj;
4984fail:
4985 return NULL;
d55e5bfc
RD
4986}
4987
4988
1bd55598
RD
4989SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4990 PyObject *resultobj = 0;
4991 wxPalette *arg1 = (wxPalette *) 0 ;
4992 int result;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 PyObject *swig_obj[1] ;
4996
4997 if (!args) SWIG_fail;
4998 swig_obj[0] = args;
4999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPalette * >(argp1);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 resultobj = SWIG_From_int(static_cast< int >(result));
5011 return resultobj;
5012fail:
5013 return NULL;
d55e5bfc
RD
5014}
5015
5016
b39fe951 5017SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5018 PyObject *resultobj = 0;
5019 wxPalette *arg1 = (wxPalette *) 0 ;
5020 bool result;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 PyObject *swig_obj[1] ;
5024
5025 if (!args) SWIG_fail;
5026 swig_obj[0] = args;
5027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
b39fe951 5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
5030 }
5031 arg1 = reinterpret_cast< wxPalette * >(argp1);
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5034 result = (bool)(arg1)->IsOk();
1bd55598
RD
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 {
5039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5040 }
5041 return resultobj;
5042fail:
5043 return NULL;
5044}
5045
5046
5047SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5048 PyObject *obj;
5049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5050 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5051 return SWIG_Py_Void();
5052}
5053
5054SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5055 return SWIG_Python_InitShadowInstance(args);
5056}
5057
5058SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj = 0;
5060 wxColour *arg1 = 0 ;
5061 int arg2 = (int) 1 ;
5062 int arg3 = (int) wxSOLID ;
5063 wxPen *result = 0 ;
5064 wxColour temp1 ;
5065 int val2 ;
5066 int ecode2 = 0 ;
5067 int val3 ;
5068 int ecode3 = 0 ;
5069 PyObject * obj0 = 0 ;
5070 PyObject * obj1 = 0 ;
5071 PyObject * obj2 = 0 ;
5072 char * kwnames[] = {
5073 (char *) "colour",(char *) "width",(char *) "style", NULL
5074 };
5075
5076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5077 {
5078 arg1 = &temp1;
5079 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5080 }
5081 if (obj1) {
5082 ecode2 = SWIG_AsVal_int(obj1, &val2);
5083 if (!SWIG_IsOK(ecode2)) {
5084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5085 }
5086 arg2 = static_cast< int >(val2);
5087 }
5088 if (obj2) {
5089 ecode3 = SWIG_AsVal_int(obj2, &val3);
5090 if (!SWIG_IsOK(ecode3)) {
5091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5092 }
5093 arg3 = static_cast< int >(val3);
5094 }
5095 {
5096 if (!wxPyCheckForApp()) SWIG_fail;
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5103 return resultobj;
5104fail:
5105 return NULL;
d55e5bfc
RD
5106}
5107
5108
1bd55598
RD
5109SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5110 PyObject *resultobj = 0;
5111 wxPen *arg1 = (wxPen *) 0 ;
5112 void *argp1 = 0 ;
5113 int res1 = 0 ;
5114 PyObject *swig_obj[1] ;
5115
5116 if (!args) SWIG_fail;
5117 swig_obj[0] = args;
5118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5119 if (!SWIG_IsOK(res1)) {
5120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5121 }
5122 arg1 = reinterpret_cast< wxPen * >(argp1);
5123 {
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 delete arg1;
f78cc896 5126
1bd55598
RD
5127 wxPyEndAllowThreads(__tstate);
5128 if (PyErr_Occurred()) SWIG_fail;
5129 }
5130 resultobj = SWIG_Py_Void();
5131 return resultobj;
5132fail:
5133 return NULL;
f78cc896
RD
5134}
5135
5136
1bd55598
RD
5137SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5138 PyObject *resultobj = 0;
5139 wxPen *arg1 = (wxPen *) 0 ;
5140 int result;
5141 void *argp1 = 0 ;
5142 int res1 = 0 ;
5143 PyObject *swig_obj[1] ;
5144
5145 if (!args) SWIG_fail;
5146 swig_obj[0] = args;
5147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5148 if (!SWIG_IsOK(res1)) {
5149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5150 }
5151 arg1 = reinterpret_cast< wxPen * >(argp1);
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 result = (int)(arg1)->GetCap();
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = SWIG_From_int(static_cast< int >(result));
5159 return resultobj;
5160fail:
5161 return NULL;
d55e5bfc
RD
5162}
5163
5164
1bd55598
RD
5165SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5166 PyObject *resultobj = 0;
5167 wxPen *arg1 = (wxPen *) 0 ;
5168 wxColour result;
5169 void *argp1 = 0 ;
5170 int res1 = 0 ;
5171 PyObject *swig_obj[1] ;
5172
5173 if (!args) SWIG_fail;
5174 swig_obj[0] = args;
5175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5176 if (!SWIG_IsOK(res1)) {
5177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5178 }
5179 arg1 = reinterpret_cast< wxPen * >(argp1);
5180 {
5181 PyThreadState* __tstate = wxPyBeginAllowThreads();
5182 result = (arg1)->GetColour();
5183 wxPyEndAllowThreads(__tstate);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5187 return resultobj;
5188fail:
5189 return NULL;
d55e5bfc
RD
5190}
5191
5192
1bd55598
RD
5193SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5194 PyObject *resultobj = 0;
5195 wxPen *arg1 = (wxPen *) 0 ;
5196 int result;
5197 void *argp1 = 0 ;
5198 int res1 = 0 ;
5199 PyObject *swig_obj[1] ;
5200
5201 if (!args) SWIG_fail;
5202 swig_obj[0] = args;
5203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5204 if (!SWIG_IsOK(res1)) {
5205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5206 }
5207 arg1 = reinterpret_cast< wxPen * >(argp1);
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (int)(arg1)->GetJoin();
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_From_int(static_cast< int >(result));
5215 return resultobj;
5216fail:
5217 return NULL;
d55e5bfc
RD
5218}
5219
5220
1bd55598
RD
5221SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5222 PyObject *resultobj = 0;
5223 wxPen *arg1 = (wxPen *) 0 ;
5224 int result;
5225 void *argp1 = 0 ;
5226 int res1 = 0 ;
5227 PyObject *swig_obj[1] ;
5228
5229 if (!args) SWIG_fail;
5230 swig_obj[0] = args;
5231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5232 if (!SWIG_IsOK(res1)) {
5233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5234 }
5235 arg1 = reinterpret_cast< wxPen * >(argp1);
5236 {
5237 PyThreadState* __tstate = wxPyBeginAllowThreads();
5238 result = (int)(arg1)->GetStyle();
5239 wxPyEndAllowThreads(__tstate);
5240 if (PyErr_Occurred()) SWIG_fail;
5241 }
5242 resultobj = SWIG_From_int(static_cast< int >(result));
5243 return resultobj;
5244fail:
5245 return NULL;
d55e5bfc
RD
5246}
5247
5248
1bd55598
RD
5249SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5250 PyObject *resultobj = 0;
5251 wxPen *arg1 = (wxPen *) 0 ;
5252 int result;
5253 void *argp1 = 0 ;
5254 int res1 = 0 ;
5255 PyObject *swig_obj[1] ;
5256
5257 if (!args) SWIG_fail;
5258 swig_obj[0] = args;
5259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5260 if (!SWIG_IsOK(res1)) {
5261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5262 }
5263 arg1 = reinterpret_cast< wxPen * >(argp1);
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (int)(arg1)->GetWidth();
5267 wxPyEndAllowThreads(__tstate);
5268 if (PyErr_Occurred()) SWIG_fail;
5269 }
5270 resultobj = SWIG_From_int(static_cast< int >(result));
5271 return resultobj;
5272fail:
5273 return NULL;
d55e5bfc
RD
5274}
5275
5276
b39fe951 5277SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5278 PyObject *resultobj = 0;
5279 wxPen *arg1 = (wxPen *) 0 ;
5280 bool result;
5281 void *argp1 = 0 ;
5282 int res1 = 0 ;
5283 PyObject *swig_obj[1] ;
5284
5285 if (!args) SWIG_fail;
5286 swig_obj[0] = args;
5287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5288 if (!SWIG_IsOK(res1)) {
b39fe951 5289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5290 }
5291 arg1 = reinterpret_cast< wxPen * >(argp1);
5292 {
5293 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5294 result = (bool)(arg1)->IsOk();
1bd55598
RD
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
5298 {
5299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5300 }
5301 return resultobj;
5302fail:
5303 return NULL;
5304}
5305
5306
5307SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj = 0;
5309 wxPen *arg1 = (wxPen *) 0 ;
5310 int arg2 ;
5311 void *argp1 = 0 ;
5312 int res1 = 0 ;
5313 int val2 ;
5314 int ecode2 = 0 ;
5315 PyObject * obj0 = 0 ;
5316 PyObject * obj1 = 0 ;
5317 char * kwnames[] = {
5318 (char *) "self",(char *) "cap_style", NULL
5319 };
5320
5321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5323 if (!SWIG_IsOK(res1)) {
5324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5325 }
5326 arg1 = reinterpret_cast< wxPen * >(argp1);
5327 ecode2 = SWIG_AsVal_int(obj1, &val2);
5328 if (!SWIG_IsOK(ecode2)) {
5329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5330 }
5331 arg2 = static_cast< int >(val2);
5332 {
5333 PyThreadState* __tstate = wxPyBeginAllowThreads();
5334 (arg1)->SetCap(arg2);
5335 wxPyEndAllowThreads(__tstate);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 resultobj = SWIG_Py_Void();
5339 return resultobj;
5340fail:
5341 return NULL;
5342}
5343
5344
5345SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5346 PyObject *resultobj = 0;
5347 wxPen *arg1 = (wxPen *) 0 ;
5348 wxColour *arg2 = 0 ;
5349 void *argp1 = 0 ;
5350 int res1 = 0 ;
5351 wxColour temp2 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char * kwnames[] = {
5355 (char *) "self",(char *) "colour", NULL
5356 };
5357
5358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5360 if (!SWIG_IsOK(res1)) {
5361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5362 }
5363 arg1 = reinterpret_cast< wxPen * >(argp1);
5364 {
5365 arg2 = &temp2;
5366 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5367 }
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 (arg1)->SetColour(*arg2);
5371 wxPyEndAllowThreads(__tstate);
5372 if (PyErr_Occurred()) SWIG_fail;
5373 }
5374 resultobj = SWIG_Py_Void();
5375 return resultobj;
5376fail:
5377 return NULL;
5378}
5379
5380
5381SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5382 PyObject *resultobj = 0;
5383 wxPen *arg1 = (wxPen *) 0 ;
5384 int arg2 ;
5385 void *argp1 = 0 ;
5386 int res1 = 0 ;
5387 int val2 ;
5388 int ecode2 = 0 ;
5389 PyObject * obj0 = 0 ;
5390 PyObject * obj1 = 0 ;
5391 char * kwnames[] = {
5392 (char *) "self",(char *) "join_style", NULL
5393 };
5394
5395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5397 if (!SWIG_IsOK(res1)) {
5398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5399 }
5400 arg1 = reinterpret_cast< wxPen * >(argp1);
5401 ecode2 = SWIG_AsVal_int(obj1, &val2);
5402 if (!SWIG_IsOK(ecode2)) {
5403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5404 }
5405 arg2 = static_cast< int >(val2);
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 (arg1)->SetJoin(arg2);
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 resultobj = SWIG_Py_Void();
5413 return resultobj;
5414fail:
5415 return NULL;
5416}
5417
5418
5419SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5420 PyObject *resultobj = 0;
5421 wxPen *arg1 = (wxPen *) 0 ;
5422 int arg2 ;
5423 void *argp1 = 0 ;
5424 int res1 = 0 ;
5425 int val2 ;
5426 int ecode2 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 PyObject * obj1 = 0 ;
5429 char * kwnames[] = {
5430 (char *) "self",(char *) "style", NULL
5431 };
5432
5433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5435 if (!SWIG_IsOK(res1)) {
5436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5437 }
5438 arg1 = reinterpret_cast< wxPen * >(argp1);
5439 ecode2 = SWIG_AsVal_int(obj1, &val2);
5440 if (!SWIG_IsOK(ecode2)) {
5441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5442 }
5443 arg2 = static_cast< int >(val2);
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 (arg1)->SetStyle(arg2);
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 resultobj = SWIG_Py_Void();
5451 return resultobj;
5452fail:
5453 return NULL;
5454}
5455
5456
5457SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj = 0;
5459 wxPen *arg1 = (wxPen *) 0 ;
5460 int arg2 ;
5461 void *argp1 = 0 ;
5462 int res1 = 0 ;
5463 int val2 ;
5464 int ecode2 = 0 ;
5465 PyObject * obj0 = 0 ;
5466 PyObject * obj1 = 0 ;
5467 char * kwnames[] = {
5468 (char *) "self",(char *) "width", NULL
5469 };
5470
5471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5473 if (!SWIG_IsOK(res1)) {
5474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5475 }
5476 arg1 = reinterpret_cast< wxPen * >(argp1);
5477 ecode2 = SWIG_AsVal_int(obj1, &val2);
5478 if (!SWIG_IsOK(ecode2)) {
5479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5480 }
5481 arg2 = static_cast< int >(val2);
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 (arg1)->SetWidth(arg2);
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 resultobj = SWIG_Py_Void();
5489 return resultobj;
5490fail:
5491 return NULL;
5492}
5493
5494
5495SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5496 PyObject *resultobj = 0;
5497 wxPen *arg1 = (wxPen *) 0 ;
5498 int arg2 ;
5499 wxDash *arg3 = (wxDash *) 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 PyObject * obj0 = 0 ;
5503 PyObject * obj1 = 0 ;
5504 char * kwnames[] = {
5505 (char *) "self",(char *) "dashes", NULL
5506 };
5507
5508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5510 if (!SWIG_IsOK(res1)) {
5511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5512 }
5513 arg1 = reinterpret_cast< wxPen * >(argp1);
5514 {
5515 arg2 = PyList_Size(obj1);
5516 arg3 = (wxDash*)byte_LIST_helper(obj1);
5517 if (arg3 == NULL) SWIG_fail;
5518 }
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 (arg1)->SetDashes(arg2,arg3);
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 resultobj = SWIG_Py_Void();
5526 {
5527 if (arg3) delete [] arg3;
5528 }
5529 return resultobj;
5530fail:
5531 {
5532 if (arg3) delete [] arg3;
5533 }
5534 return NULL;
d6c14a4c
RD
5535}
5536
5537
1bd55598
RD
5538SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5539 PyObject *resultobj = 0;
5540 wxPen *arg1 = (wxPen *) 0 ;
5541 PyObject *result = 0 ;
5542 void *argp1 = 0 ;
5543 int res1 = 0 ;
5544 PyObject *swig_obj[1] ;
5545
5546 if (!args) SWIG_fail;
5547 swig_obj[0] = args;
5548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5549 if (!SWIG_IsOK(res1)) {
5550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5551 }
5552 arg1 = reinterpret_cast< wxPen * >(argp1);
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 result = (PyObject *)wxPen_GetDashes(arg1);
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 resultobj = result;
5560 return resultobj;
5561fail:
5562 return NULL;
5563}
5564
5565
5566SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj = 0;
5568 wxPen *arg1 = (wxPen *) 0 ;
5569 PyObject *arg2 = (PyObject *) 0 ;
5570 PyObject *arg3 = (PyObject *) 0 ;
5571 void *argp1 = 0 ;
5572 int res1 = 0 ;
5573 PyObject * obj0 = 0 ;
5574 PyObject * obj1 = 0 ;
5575 PyObject * obj2 = 0 ;
5576 char * kwnames[] = {
5577 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5578 };
5579
5580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5582 if (!SWIG_IsOK(res1)) {
5583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5584 }
5585 arg1 = reinterpret_cast< wxPen * >(argp1);
5586 arg2 = obj1;
5587 arg3 = obj2;
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 wxPen__SetDashes(arg1,arg2,arg3);
5591 wxPyEndAllowThreads(__tstate);
5592 if (PyErr_Occurred()) SWIG_fail;
5593 }
5594 resultobj = SWIG_Py_Void();
5595 return resultobj;
5596fail:
5597 return NULL;
5598}
5599
5600
5601SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5602 PyObject *resultobj = 0;
5603 wxPen *arg1 = (wxPen *) 0 ;
5604 wxPen *arg2 = (wxPen *) 0 ;
5605 bool result;
5606 void *argp1 = 0 ;
5607 int res1 = 0 ;
5608 void *argp2 = 0 ;
5609 int res2 = 0 ;
5610 PyObject * obj0 = 0 ;
5611 PyObject * obj1 = 0 ;
5612 char * kwnames[] = {
5613 (char *) "self",(char *) "other", NULL
5614 };
5615
5616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5618 if (!SWIG_IsOK(res1)) {
5619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5620 }
5621 arg1 = reinterpret_cast< wxPen * >(argp1);
5622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5623 if (!SWIG_IsOK(res2)) {
5624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5625 }
5626 arg2 = reinterpret_cast< wxPen * >(argp2);
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5630 wxPyEndAllowThreads(__tstate);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 {
5634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5635 }
5636 return resultobj;
5637fail:
5638 return NULL;
5639}
5640
5641
5642SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5643 PyObject *resultobj = 0;
5644 wxPen *arg1 = (wxPen *) 0 ;
5645 wxPen *arg2 = (wxPen *) 0 ;
5646 bool result;
5647 void *argp1 = 0 ;
5648 int res1 = 0 ;
5649 void *argp2 = 0 ;
5650 int res2 = 0 ;
5651 PyObject * obj0 = 0 ;
5652 PyObject * obj1 = 0 ;
5653 char * kwnames[] = {
5654 (char *) "self",(char *) "other", NULL
5655 };
5656
5657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5659 if (!SWIG_IsOK(res1)) {
5660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5661 }
5662 arg1 = reinterpret_cast< wxPen * >(argp1);
5663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5664 if (!SWIG_IsOK(res2)) {
5665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5666 }
5667 arg2 = reinterpret_cast< wxPen * >(argp2);
5668 {
5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
5670 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5671 wxPyEndAllowThreads(__tstate);
5672 if (PyErr_Occurred()) SWIG_fail;
5673 }
5674 {
5675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5676 }
5677 return resultobj;
5678fail:
5679 return NULL;
5680}
d55e5bfc
RD
5681
5682
1bd55598
RD
5683SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5684 PyObject *obj;
5685 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5686 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5687 return SWIG_Py_Void();
d55e5bfc
RD
5688}
5689
1bd55598
RD
5690SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5691 return SWIG_Python_InitShadowInstance(args);
5692}
d55e5bfc 5693
1bd55598
RD
5694SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5695 PyObject *resultobj = 0;
5696 wxColour *arg1 = 0 ;
5697 int arg2 = (int) wxSOLID ;
5698 wxBrush *result = 0 ;
5699 wxColour temp1 ;
5700 int val2 ;
5701 int ecode2 = 0 ;
5702 PyObject * obj0 = 0 ;
5703 PyObject * obj1 = 0 ;
5704 char * kwnames[] = {
5705 (char *) "colour",(char *) "style", NULL
5706 };
5707
5708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5709 {
5710 arg1 = &temp1;
5711 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5712 }
5713 if (obj1) {
5714 ecode2 = SWIG_AsVal_int(obj1, &val2);
5715 if (!SWIG_IsOK(ecode2)) {
5716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5717 }
5718 arg2 = static_cast< int >(val2);
5719 }
5720 {
5721 if (!wxPyCheckForApp()) SWIG_fail;
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5724 wxPyEndAllowThreads(__tstate);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5728 return resultobj;
5729fail:
5730 return NULL;
5731}
5732
5733
5734SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5735 PyObject *resultobj = 0;
5736 wxBitmap *arg1 = 0 ;
5737 wxBrush *result = 0 ;
5738 void *argp1 = 0 ;
5739 int res1 = 0 ;
5740 PyObject * obj0 = 0 ;
5741 char * kwnames[] = {
5742 (char *) "stippleBitmap", NULL
5743 };
5744
5745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5746 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5747 if (!SWIG_IsOK(res1)) {
5748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5749 }
5750 if (!argp1) {
5751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5752 }
5753 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5754 {
5755 if (!wxPyCheckForApp()) SWIG_fail;
5756 PyThreadState* __tstate = wxPyBeginAllowThreads();
5757 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5758 wxPyEndAllowThreads(__tstate);
5759 if (PyErr_Occurred()) SWIG_fail;
5760 }
5761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5762 return resultobj;
5763fail:
5764 return NULL;
d55e5bfc
RD
5765}
5766
5767
1bd55598
RD
5768SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5769 PyObject *resultobj = 0;
5770 wxBrush *arg1 = (wxBrush *) 0 ;
5771 void *argp1 = 0 ;
5772 int res1 = 0 ;
5773 PyObject *swig_obj[1] ;
5774
5775 if (!args) SWIG_fail;
5776 swig_obj[0] = args;
5777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5778 if (!SWIG_IsOK(res1)) {
5779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5780 }
5781 arg1 = reinterpret_cast< wxBrush * >(argp1);
5782 {
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 delete arg1;
d55e5bfc 5785
1bd55598
RD
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 resultobj = SWIG_Py_Void();
5790 return resultobj;
5791fail:
5792 return NULL;
5793}
5794
5795
5796SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5797 PyObject *resultobj = 0;
5798 wxBrush *arg1 = (wxBrush *) 0 ;
5799 wxColour *arg2 = 0 ;
5800 void *argp1 = 0 ;
5801 int res1 = 0 ;
5802 wxColour temp2 ;
5803 PyObject * obj0 = 0 ;
5804 PyObject * obj1 = 0 ;
5805 char * kwnames[] = {
5806 (char *) "self",(char *) "col", NULL
5807 };
5808
5809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5811 if (!SWIG_IsOK(res1)) {
5812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5813 }
5814 arg1 = reinterpret_cast< wxBrush * >(argp1);
5815 {
5816 arg2 = &temp2;
5817 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5818 }
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 (arg1)->SetColour((wxColour const &)*arg2);
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_Py_Void();
5826 return resultobj;
5827fail:
5828 return NULL;
5829}
5830
5831
5832SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj = 0;
5834 wxBrush *arg1 = (wxBrush *) 0 ;
5835 int arg2 ;
5836 void *argp1 = 0 ;
5837 int res1 = 0 ;
5838 int val2 ;
5839 int ecode2 = 0 ;
5840 PyObject * obj0 = 0 ;
5841 PyObject * obj1 = 0 ;
5842 char * kwnames[] = {
5843 (char *) "self",(char *) "style", NULL
5844 };
5845
5846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5848 if (!SWIG_IsOK(res1)) {
5849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5850 }
5851 arg1 = reinterpret_cast< wxBrush * >(argp1);
5852 ecode2 = SWIG_AsVal_int(obj1, &val2);
5853 if (!SWIG_IsOK(ecode2)) {
5854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5855 }
5856 arg2 = static_cast< int >(val2);
5857 {
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 (arg1)->SetStyle(arg2);
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 resultobj = SWIG_Py_Void();
5864 return resultobj;
5865fail:
5866 return NULL;
5867}
5868
5869
5870SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj = 0;
5872 wxBrush *arg1 = (wxBrush *) 0 ;
5873 wxBitmap *arg2 = 0 ;
5874 void *argp1 = 0 ;
5875 int res1 = 0 ;
5876 void *argp2 = 0 ;
5877 int res2 = 0 ;
5878 PyObject * obj0 = 0 ;
5879 PyObject * obj1 = 0 ;
5880 char * kwnames[] = {
5881 (char *) "self",(char *) "stipple", NULL
5882 };
5883
5884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5886 if (!SWIG_IsOK(res1)) {
5887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5888 }
5889 arg1 = reinterpret_cast< wxBrush * >(argp1);
5890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5891 if (!SWIG_IsOK(res2)) {
5892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5893 }
5894 if (!argp2) {
5895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5896 }
5897 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 (arg1)->SetStipple((wxBitmap const &)*arg2);
5901 wxPyEndAllowThreads(__tstate);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 }
5904 resultobj = SWIG_Py_Void();
5905 return resultobj;
5906fail:
5907 return NULL;
d55e5bfc
RD
5908}
5909
5910
1bd55598
RD
5911SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5912 PyObject *resultobj = 0;
5913 wxBrush *arg1 = (wxBrush *) 0 ;
5914 wxColour result;
5915 void *argp1 = 0 ;
5916 int res1 = 0 ;
5917 PyObject *swig_obj[1] ;
5918
5919 if (!args) SWIG_fail;
5920 swig_obj[0] = args;
5921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5922 if (!SWIG_IsOK(res1)) {
5923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5924 }
5925 arg1 = reinterpret_cast< wxBrush * >(argp1);
5926 {
5927 PyThreadState* __tstate = wxPyBeginAllowThreads();
5928 result = ((wxBrush const *)arg1)->GetColour();
5929 wxPyEndAllowThreads(__tstate);
5930 if (PyErr_Occurred()) SWIG_fail;
5931 }
5932 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5933 return resultobj;
5934fail:
5935 return NULL;
d55e5bfc
RD
5936}
5937
5938
1bd55598
RD
5939SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5940 PyObject *resultobj = 0;
5941 wxBrush *arg1 = (wxBrush *) 0 ;
5942 int result;
5943 void *argp1 = 0 ;
5944 int res1 = 0 ;
5945 PyObject *swig_obj[1] ;
5946
5947 if (!args) SWIG_fail;
5948 swig_obj[0] = args;
5949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5950 if (!SWIG_IsOK(res1)) {
5951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5952 }
5953 arg1 = reinterpret_cast< wxBrush * >(argp1);
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = (int)((wxBrush const *)arg1)->GetStyle();
5957 wxPyEndAllowThreads(__tstate);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 resultobj = SWIG_From_int(static_cast< int >(result));
5961 return resultobj;
5962fail:
5963 return NULL;
d55e5bfc
RD
5964}
5965
5966
1bd55598
RD
5967SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5968 PyObject *resultobj = 0;
5969 wxBrush *arg1 = (wxBrush *) 0 ;
5970 wxBitmap *result = 0 ;
5971 void *argp1 = 0 ;
5972 int res1 = 0 ;
5973 PyObject *swig_obj[1] ;
5974
5975 if (!args) SWIG_fail;
5976 swig_obj[0] = args;
5977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5978 if (!SWIG_IsOK(res1)) {
5979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5980 }
5981 arg1 = reinterpret_cast< wxBrush * >(argp1);
5982 {
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5989 return resultobj;
5990fail:
5991 return NULL;
d55e5bfc
RD
5992}
5993
5994
1bd55598
RD
5995SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5996 PyObject *resultobj = 0;
5997 wxBrush *arg1 = (wxBrush *) 0 ;
5998 bool result;
5999 void *argp1 = 0 ;
6000 int res1 = 0 ;
6001 PyObject *swig_obj[1] ;
6002
6003 if (!args) SWIG_fail;
6004 swig_obj[0] = args;
6005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6006 if (!SWIG_IsOK(res1)) {
6007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6008 }
6009 arg1 = reinterpret_cast< wxBrush * >(argp1);
6010 {
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
6012 result = (bool)((wxBrush const *)arg1)->IsHatch();
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 {
6017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6018 }
6019 return resultobj;
6020fail:
6021 return NULL;
d55e5bfc
RD
6022}
6023
6024
b39fe951 6025SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6026 PyObject *resultobj = 0;
6027 wxBrush *arg1 = (wxBrush *) 0 ;
6028 bool result;
6029 void *argp1 = 0 ;
6030 int res1 = 0 ;
6031 PyObject *swig_obj[1] ;
6032
6033 if (!args) SWIG_fail;
6034 swig_obj[0] = args;
6035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6036 if (!SWIG_IsOK(res1)) {
b39fe951 6037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
6038 }
6039 arg1 = reinterpret_cast< wxBrush * >(argp1);
6040 {
6041 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6042 result = (bool)(arg1)->IsOk();
1bd55598
RD
6043 wxPyEndAllowThreads(__tstate);
6044 if (PyErr_Occurred()) SWIG_fail;
6045 }
6046 {
6047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6048 }
6049 return resultobj;
6050fail:
6051 return NULL;
d55e5bfc
RD
6052}
6053
6054
1bd55598
RD
6055SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6056 PyObject *resultobj = 0;
6057 wxBrush *arg1 = (wxBrush *) 0 ;
6058 short result;
6059 void *argp1 = 0 ;
6060 int res1 = 0 ;
6061 PyObject *swig_obj[1] ;
6062
6063 if (!args) SWIG_fail;
6064 swig_obj[0] = args;
6065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6066 if (!SWIG_IsOK(res1)) {
6067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6068 }
6069 arg1 = reinterpret_cast< wxBrush * >(argp1);
6070 {
6071 PyThreadState* __tstate = wxPyBeginAllowThreads();
6072 result = (short)(arg1)->MacGetTheme();
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 resultobj = SWIG_From_short(static_cast< short >(result));
6077 return resultobj;
6078fail:
6079 return NULL;
6080}
6081
6082
6083SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj = 0;
6085 wxBrush *arg1 = (wxBrush *) 0 ;
6086 short arg2 ;
6087 void *argp1 = 0 ;
6088 int res1 = 0 ;
6089 short val2 ;
6090 int ecode2 = 0 ;
6091 PyObject * obj0 = 0 ;
6092 PyObject * obj1 = 0 ;
6093 char * kwnames[] = {
6094 (char *) "self",(char *) "macThemeBrush", NULL
6095 };
6096
6097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6099 if (!SWIG_IsOK(res1)) {
6100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6101 }
6102 arg1 = reinterpret_cast< wxBrush * >(argp1);
6103 ecode2 = SWIG_AsVal_short(obj1, &val2);
6104 if (!SWIG_IsOK(ecode2)) {
6105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6106 }
6107 arg2 = static_cast< short >(val2);
6108 {
6109 PyThreadState* __tstate = wxPyBeginAllowThreads();
6110 (arg1)->MacSetTheme(arg2);
6111 wxPyEndAllowThreads(__tstate);
6112 if (PyErr_Occurred()) SWIG_fail;
6113 }
6114 resultobj = SWIG_Py_Void();
6115 return resultobj;
6116fail:
6117 return NULL;
d55e5bfc
RD
6118}
6119
6120
1bd55598
RD
6121SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6122 PyObject *obj;
6123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6124 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6125 return SWIG_Py_Void();
d55e5bfc
RD
6126}
6127
1bd55598
RD
6128SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6129 return SWIG_Python_InitShadowInstance(args);
6130}
d55e5bfc 6131
1bd55598
RD
6132SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6133 PyObject *resultobj = 0;
6134 wxString *arg1 = 0 ;
6135 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6136 wxBitmap *result = 0 ;
6137 bool temp1 = false ;
6138 int val2 ;
6139 int ecode2 = 0 ;
6140 PyObject * obj0 = 0 ;
6141 PyObject * obj1 = 0 ;
6142 char * kwnames[] = {
6143 (char *) "name",(char *) "type", NULL
6144 };
6145
6146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6147 {
6148 arg1 = wxString_in_helper(obj0);
6149 if (arg1 == NULL) SWIG_fail;
6150 temp1 = true;
6151 }
6152 if (obj1) {
6153 ecode2 = SWIG_AsVal_int(obj1, &val2);
6154 if (!SWIG_IsOK(ecode2)) {
6155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6156 }
6157 arg2 = static_cast< wxBitmapType >(val2);
6158 }
6159 {
6160 if (!wxPyCheckForApp()) SWIG_fail;
6161 PyThreadState* __tstate = wxPyBeginAllowThreads();
6162 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6163 wxPyEndAllowThreads(__tstate);
6164 if (PyErr_Occurred()) SWIG_fail;
6165 }
6166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6167 {
6168 if (temp1)
6169 delete arg1;
6170 }
6171 return resultobj;
6172fail:
6173 {
6174 if (temp1)
6175 delete arg1;
6176 }
6177 return NULL;
d55e5bfc
RD
6178}
6179
6180
1bd55598
RD
6181SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6182 PyObject *resultobj = 0;
6183 wxBitmap *arg1 = (wxBitmap *) 0 ;
6184 void *argp1 = 0 ;
6185 int res1 = 0 ;
6186 PyObject *swig_obj[1] ;
6187
6188 if (!args) SWIG_fail;
6189 swig_obj[0] = args;
6190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6191 if (!SWIG_IsOK(res1)) {
6192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6193 }
6194 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6195 {
1bd55598 6196 delete arg1;
d55e5bfc 6197
1bd55598
RD
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
6200 resultobj = SWIG_Py_Void();
6201 return resultobj;
6202fail:
6203 return NULL;
6204}
6205
6206
6207SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6208 PyObject *resultobj = 0;
6209 int arg1 ;
6210 int arg2 ;
6211 int arg3 = (int) -1 ;
6212 wxBitmap *result = 0 ;
6213 int val1 ;
6214 int ecode1 = 0 ;
6215 int val2 ;
6216 int ecode2 = 0 ;
6217 int val3 ;
6218 int ecode3 = 0 ;
6219 PyObject * obj0 = 0 ;
6220 PyObject * obj1 = 0 ;
6221 PyObject * obj2 = 0 ;
6222 char * kwnames[] = {
6223 (char *) "width",(char *) "height",(char *) "depth", NULL
6224 };
6225
6226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6227 ecode1 = SWIG_AsVal_int(obj0, &val1);
6228 if (!SWIG_IsOK(ecode1)) {
6229 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6230 }
6231 arg1 = static_cast< int >(val1);
6232 ecode2 = SWIG_AsVal_int(obj1, &val2);
6233 if (!SWIG_IsOK(ecode2)) {
6234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6235 }
6236 arg2 = static_cast< int >(val2);
6237 if (obj2) {
6238 ecode3 = SWIG_AsVal_int(obj2, &val3);
6239 if (!SWIG_IsOK(ecode3)) {
6240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6241 }
6242 arg3 = static_cast< int >(val3);
6243 }
6244 {
6245 if (!wxPyCheckForApp()) SWIG_fail;
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6252 return resultobj;
6253fail:
6254 return NULL;
6255}
6256
6257
6258SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6259 PyObject *resultobj = 0;
6260 wxIcon *arg1 = 0 ;
6261 wxBitmap *result = 0 ;
6262 void *argp1 = 0 ;
6263 int res1 = 0 ;
6264 PyObject * obj0 = 0 ;
6265 char * kwnames[] = {
6266 (char *) "icon", NULL
6267 };
6268
6269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6270 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6271 if (!SWIG_IsOK(res1)) {
6272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6273 }
6274 if (!argp1) {
6275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6276 }
6277 arg1 = reinterpret_cast< wxIcon * >(argp1);
6278 {
6279 if (!wxPyCheckForApp()) SWIG_fail;
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6286 return resultobj;
6287fail:
6288 return NULL;
6289}
6290
6291
6292SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj = 0;
6294 wxImage *arg1 = 0 ;
6295 int arg2 = (int) -1 ;
6296 wxBitmap *result = 0 ;
6297 void *argp1 = 0 ;
6298 int res1 = 0 ;
6299 int val2 ;
6300 int ecode2 = 0 ;
6301 PyObject * obj0 = 0 ;
6302 PyObject * obj1 = 0 ;
6303 char * kwnames[] = {
6304 (char *) "image",(char *) "depth", NULL
6305 };
6306
6307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6308 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6309 if (!SWIG_IsOK(res1)) {
6310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6311 }
6312 if (!argp1) {
6313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6314 }
6315 arg1 = reinterpret_cast< wxImage * >(argp1);
6316 if (obj1) {
6317 ecode2 = SWIG_AsVal_int(obj1, &val2);
6318 if (!SWIG_IsOK(ecode2)) {
6319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6320 }
6321 arg2 = static_cast< int >(val2);
6322 }
6323 {
6324 if (!wxPyCheckForApp()) SWIG_fail;
6325 PyThreadState* __tstate = wxPyBeginAllowThreads();
6326 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6331 return resultobj;
6332fail:
6333 return NULL;
d55e5bfc
RD
6334}
6335
6336
1bd55598
RD
6337SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj = 0;
6339 PyObject *arg1 = (PyObject *) 0 ;
6340 wxBitmap *result = 0 ;
6341 PyObject * obj0 = 0 ;
6342 char * kwnames[] = {
6343 (char *) "listOfStrings", NULL
6344 };
6345
6346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6347 arg1 = obj0;
6348 {
6349 if (!wxPyCheckForApp()) SWIG_fail;
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 result = (wxBitmap *)new_wxBitmap(arg1);
6352 wxPyEndAllowThreads(__tstate);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6356 return resultobj;
6357fail:
6358 return NULL;
6359}
6360
6361
6362SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 PyObject *arg1 = (PyObject *) 0 ;
6365 int arg2 ;
6366 int arg3 ;
6367 int arg4 = (int) 1 ;
6368 wxBitmap *result = 0 ;
6369 int val2 ;
6370 int ecode2 = 0 ;
6371 int val3 ;
6372 int ecode3 = 0 ;
6373 int val4 ;
6374 int ecode4 = 0 ;
6375 PyObject * obj0 = 0 ;
6376 PyObject * obj1 = 0 ;
6377 PyObject * obj2 = 0 ;
6378 PyObject * obj3 = 0 ;
6379 char * kwnames[] = {
6380 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6381 };
6382
6383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6384 arg1 = obj0;
6385 ecode2 = SWIG_AsVal_int(obj1, &val2);
6386 if (!SWIG_IsOK(ecode2)) {
6387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6388 }
6389 arg2 = static_cast< int >(val2);
6390 ecode3 = SWIG_AsVal_int(obj2, &val3);
6391 if (!SWIG_IsOK(ecode3)) {
6392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6393 }
6394 arg3 = static_cast< int >(val3);
6395 if (obj3) {
6396 ecode4 = SWIG_AsVal_int(obj3, &val4);
6397 if (!SWIG_IsOK(ecode4)) {
6398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6399 }
6400 arg4 = static_cast< int >(val4);
6401 }
6402 {
6403 if (!wxPyCheckForApp()) SWIG_fail;
6404 PyThreadState* __tstate = wxPyBeginAllowThreads();
6405 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6406 wxPyEndAllowThreads(__tstate);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6410 return resultobj;
6411fail:
6412 return NULL;
d55e5bfc
RD
6413}
6414
6415
b39fe951 6416SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6417 PyObject *resultobj = 0;
6418 wxBitmap *arg1 = (wxBitmap *) 0 ;
6419 bool result;
6420 void *argp1 = 0 ;
6421 int res1 = 0 ;
6422 PyObject *swig_obj[1] ;
6423
6424 if (!args) SWIG_fail;
6425 swig_obj[0] = args;
6426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6427 if (!SWIG_IsOK(res1)) {
b39fe951 6428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6429 }
6430 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6431 {
b39fe951 6432 result = (bool)(arg1)->IsOk();
1bd55598
RD
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 {
6436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6437 }
6438 return resultobj;
6439fail:
6440 return NULL;
d55e5bfc
RD
6441}
6442
6443
1bd55598
RD
6444SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6445 PyObject *resultobj = 0;
6446 wxBitmap *arg1 = (wxBitmap *) 0 ;
6447 int result;
6448 void *argp1 = 0 ;
6449 int res1 = 0 ;
6450 PyObject *swig_obj[1] ;
6451
6452 if (!args) SWIG_fail;
6453 swig_obj[0] = args;
6454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6455 if (!SWIG_IsOK(res1)) {
6456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6457 }
6458 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6459 {
1bd55598 6460 result = (int)(arg1)->GetWidth();
1bd55598
RD
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_From_int(static_cast< int >(result));
6464 return resultobj;
6465fail:
6466 return NULL;
070c48b4
RD
6467}
6468
6469
1bd55598
RD
6470SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6471 PyObject *resultobj = 0;
6472 wxBitmap *arg1 = (wxBitmap *) 0 ;
6473 int result;
6474 void *argp1 = 0 ;
6475 int res1 = 0 ;
6476 PyObject *swig_obj[1] ;
6477
6478 if (!args) SWIG_fail;
6479 swig_obj[0] = args;
6480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6483 }
6484 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6485 {
1bd55598 6486 result = (int)(arg1)->GetHeight();
1bd55598
RD
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = SWIG_From_int(static_cast< int >(result));
6490 return resultobj;
6491fail:
6492 return NULL;
d55e5bfc
RD
6493}
6494
6495
1bd55598
RD
6496SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6497 PyObject *resultobj = 0;
6498 wxBitmap *arg1 = (wxBitmap *) 0 ;
6499 int result;
6500 void *argp1 = 0 ;
6501 int res1 = 0 ;
6502 PyObject *swig_obj[1] ;
6503
6504 if (!args) SWIG_fail;
6505 swig_obj[0] = args;
6506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6507 if (!SWIG_IsOK(res1)) {
6508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6509 }
6510 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6511 {
1bd55598 6512 result = (int)(arg1)->GetDepth();
1bd55598
RD
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 resultobj = SWIG_From_int(static_cast< int >(result));
6516 return resultobj;
6517fail:
6518 return NULL;
d55e5bfc
RD
6519}
6520
6521
1bd55598
RD
6522SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6523 PyObject *resultobj = 0;
6524 wxBitmap *arg1 = (wxBitmap *) 0 ;
6525 wxSize result;
6526 void *argp1 = 0 ;
6527 int res1 = 0 ;
6528 PyObject *swig_obj[1] ;
6529
6530 if (!args) SWIG_fail;
6531 swig_obj[0] = args;
6532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6533 if (!SWIG_IsOK(res1)) {
6534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6535 }
6536 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6537 {
1bd55598 6538 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6539 if (PyErr_Occurred()) SWIG_fail;
6540 }
6541 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6542 return resultobj;
6543fail:
6544 return NULL;
d55e5bfc
RD
6545}
6546
6547
1bd55598
RD
6548SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6549 PyObject *resultobj = 0;
6550 wxBitmap *arg1 = (wxBitmap *) 0 ;
6551 SwigValueWrapper<wxImage > result;
6552 void *argp1 = 0 ;
6553 int res1 = 0 ;
6554 PyObject *swig_obj[1] ;
6555
6556 if (!args) SWIG_fail;
6557 swig_obj[0] = args;
6558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6559 if (!SWIG_IsOK(res1)) {
6560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6561 }
6562 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6563 {
1bd55598 6564 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6565 if (PyErr_Occurred()) SWIG_fail;
6566 }
6567 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6568 return resultobj;
6569fail:
6570 return NULL;
d55e5bfc
RD
6571}
6572
6573
1bd55598
RD
6574SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6575 PyObject *resultobj = 0;
6576 wxBitmap *arg1 = (wxBitmap *) 0 ;
6577 wxMask *result = 0 ;
6578 void *argp1 = 0 ;
6579 int res1 = 0 ;
6580 PyObject *swig_obj[1] ;
6581
6582 if (!args) SWIG_fail;
6583 swig_obj[0] = args;
6584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6585 if (!SWIG_IsOK(res1)) {
6586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6587 }
6588 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6589 {
1bd55598 6590 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6591 if (PyErr_Occurred()) SWIG_fail;
6592 }
6593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6594 return resultobj;
6595fail:
6596 return NULL;
6597}
6598
6599
6600SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj = 0;
6602 wxBitmap *arg1 = (wxBitmap *) 0 ;
6603 wxMask *arg2 = (wxMask *) 0 ;
6604 void *argp1 = 0 ;
6605 int res1 = 0 ;
6606 int res2 = 0 ;
6607 PyObject * obj0 = 0 ;
6608 PyObject * obj1 = 0 ;
6609 char * kwnames[] = {
6610 (char *) "self",(char *) "mask", NULL
6611 };
6612
6613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6615 if (!SWIG_IsOK(res1)) {
6616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6617 }
6618 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6619 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6620 if (!SWIG_IsOK(res2)) {
6621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6622 }
6623 {
1bd55598 6624 (arg1)->SetMask(arg2);
1bd55598
RD
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 resultobj = SWIG_Py_Void();
6628 return resultobj;
6629fail:
6630 return NULL;
6631}
6632
6633
6634SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj = 0;
6636 wxBitmap *arg1 = (wxBitmap *) 0 ;
6637 wxColour *arg2 = 0 ;
6638 void *argp1 = 0 ;
6639 int res1 = 0 ;
6640 wxColour temp2 ;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char * kwnames[] = {
6644 (char *) "self",(char *) "colour", NULL
6645 };
6646
6647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6651 }
6652 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6653 {
6654 arg2 = &temp2;
6655 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6656 }
6657 {
1bd55598 6658 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 resultobj = SWIG_Py_Void();
6662 return resultobj;
6663fail:
6664 return NULL;
6665}
6666
6667
6668SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6669 PyObject *resultobj = 0;
6670 wxBitmap *arg1 = (wxBitmap *) 0 ;
6671 wxRect *arg2 = 0 ;
6672 SwigValueWrapper<wxBitmap > result;
6673 void *argp1 = 0 ;
6674 int res1 = 0 ;
6675 wxRect temp2 ;
6676 PyObject * obj0 = 0 ;
6677 PyObject * obj1 = 0 ;
6678 char * kwnames[] = {
6679 (char *) "self",(char *) "rect", NULL
6680 };
6681
6682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6684 if (!SWIG_IsOK(res1)) {
6685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6686 }
6687 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6688 {
6689 arg2 = &temp2;
6690 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6691 }
6692 {
1bd55598 6693 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6697 return resultobj;
6698fail:
6699 return NULL;
6700}
6701
6702
6703SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6704 PyObject *resultobj = 0;
6705 wxBitmap *arg1 = (wxBitmap *) 0 ;
6706 wxString *arg2 = 0 ;
6707 wxBitmapType arg3 ;
6708 wxPalette *arg4 = (wxPalette *) NULL ;
6709 bool result;
6710 void *argp1 = 0 ;
6711 int res1 = 0 ;
6712 bool temp2 = false ;
6713 int val3 ;
6714 int ecode3 = 0 ;
6715 void *argp4 = 0 ;
6716 int res4 = 0 ;
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719 PyObject * obj2 = 0 ;
6720 PyObject * obj3 = 0 ;
6721 char * kwnames[] = {
6722 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6723 };
6724
6725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6727 if (!SWIG_IsOK(res1)) {
6728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6729 }
6730 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6731 {
6732 arg2 = wxString_in_helper(obj1);
6733 if (arg2 == NULL) SWIG_fail;
6734 temp2 = true;
6735 }
6736 ecode3 = SWIG_AsVal_int(obj2, &val3);
6737 if (!SWIG_IsOK(ecode3)) {
6738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6739 }
6740 arg3 = static_cast< wxBitmapType >(val3);
6741 if (obj3) {
6742 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6743 if (!SWIG_IsOK(res4)) {
6744 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6745 }
1bd55598
RD
6746 arg4 = reinterpret_cast< wxPalette * >(argp4);
6747 }
6748 {
1bd55598 6749 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6750 if (PyErr_Occurred()) SWIG_fail;
6751 }
6752 {
6753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6754 }
6755 {
6756 if (temp2)
6757 delete arg2;
6758 }
6759 return resultobj;
6760fail:
6761 {
6762 if (temp2)
6763 delete arg2;
6764 }
6765 return NULL;
6766}
6767
6768
6769SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6770 PyObject *resultobj = 0;
6771 wxBitmap *arg1 = (wxBitmap *) 0 ;
6772 wxString *arg2 = 0 ;
6773 wxBitmapType arg3 ;
6774 bool result;
6775 void *argp1 = 0 ;
6776 int res1 = 0 ;
6777 bool temp2 = false ;
6778 int val3 ;
6779 int ecode3 = 0 ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 PyObject * obj2 = 0 ;
6783 char * kwnames[] = {
6784 (char *) "self",(char *) "name",(char *) "type", NULL
6785 };
6786
6787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6789 if (!SWIG_IsOK(res1)) {
6790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6791 }
6792 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6793 {
6794 arg2 = wxString_in_helper(obj1);
6795 if (arg2 == NULL) SWIG_fail;
6796 temp2 = true;
6797 }
6798 ecode3 = SWIG_AsVal_int(obj2, &val3);
6799 if (!SWIG_IsOK(ecode3)) {
6800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6801 }
6802 arg3 = static_cast< wxBitmapType >(val3);
6803 {
1bd55598 6804 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6805 if (PyErr_Occurred()) SWIG_fail;
6806 }
6807 {
6808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6809 }
6810 {
6811 if (temp2)
6812 delete arg2;
6813 }
6814 return resultobj;
6815fail:
6816 {
6817 if (temp2)
6818 delete arg2;
6819 }
6820 return NULL;
d04418a7
RD
6821}
6822
6823
1bd55598
RD
6824SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6825 PyObject *resultobj = 0;
6826 wxBitmap *arg1 = (wxBitmap *) 0 ;
6827 wxPalette *result = 0 ;
6828 void *argp1 = 0 ;
6829 int res1 = 0 ;
6830 PyObject *swig_obj[1] ;
6831
6832 if (!args) SWIG_fail;
6833 swig_obj[0] = args;
6834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6835 if (!SWIG_IsOK(res1)) {
6836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6837 }
6838 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6839 {
1bd55598 6840 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6841 if (PyErr_Occurred()) SWIG_fail;
6842 }
6843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6844 return resultobj;
6845fail:
6846 return NULL;
6847}
6848
6849
6850SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6851 PyObject *resultobj = 0;
6852 wxBitmap *arg1 = (wxBitmap *) 0 ;
6853 wxIcon *arg2 = 0 ;
6854 bool result;
6855 void *argp1 = 0 ;
6856 int res1 = 0 ;
6857 void *argp2 = 0 ;
6858 int res2 = 0 ;
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 char * kwnames[] = {
6862 (char *) "self",(char *) "icon", NULL
6863 };
6864
6865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6867 if (!SWIG_IsOK(res1)) {
6868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6869 }
6870 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6872 if (!SWIG_IsOK(res2)) {
6873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6874 }
6875 if (!argp2) {
6876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6877 }
6878 arg2 = reinterpret_cast< wxIcon * >(argp2);
6879 {
1bd55598 6880 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 {
6884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6885 }
6886 return resultobj;
6887fail:
6888 return NULL;
6889}
6890
6891
6892SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj = 0;
6894 wxBitmap *arg1 = (wxBitmap *) 0 ;
6895 int arg2 ;
6896 void *argp1 = 0 ;
6897 int res1 = 0 ;
6898 int val2 ;
6899 int ecode2 = 0 ;
6900 PyObject * obj0 = 0 ;
6901 PyObject * obj1 = 0 ;
6902 char * kwnames[] = {
6903 (char *) "self",(char *) "height", NULL
6904 };
6905
6906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6908 if (!SWIG_IsOK(res1)) {
6909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6910 }
6911 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6912 ecode2 = SWIG_AsVal_int(obj1, &val2);
6913 if (!SWIG_IsOK(ecode2)) {
6914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6915 }
6916 arg2 = static_cast< int >(val2);
6917 {
1bd55598 6918 (arg1)->SetHeight(arg2);
1bd55598
RD
6919 if (PyErr_Occurred()) SWIG_fail;
6920 }
6921 resultobj = SWIG_Py_Void();
6922 return resultobj;
6923fail:
6924 return NULL;
6925}
6926
6927
6928SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6929 PyObject *resultobj = 0;
6930 wxBitmap *arg1 = (wxBitmap *) 0 ;
6931 int arg2 ;
6932 void *argp1 = 0 ;
6933 int res1 = 0 ;
6934 int val2 ;
6935 int ecode2 = 0 ;
6936 PyObject * obj0 = 0 ;
6937 PyObject * obj1 = 0 ;
6938 char * kwnames[] = {
6939 (char *) "self",(char *) "width", NULL
6940 };
6941
6942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6944 if (!SWIG_IsOK(res1)) {
6945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6946 }
6947 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6948 ecode2 = SWIG_AsVal_int(obj1, &val2);
6949 if (!SWIG_IsOK(ecode2)) {
6950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6951 }
6952 arg2 = static_cast< int >(val2);
6953 {
1bd55598 6954 (arg1)->SetWidth(arg2);
1bd55598
RD
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 resultobj = SWIG_Py_Void();
6958 return resultobj;
6959fail:
6960 return NULL;
6961}
6962
6963
6964SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj = 0;
6966 wxBitmap *arg1 = (wxBitmap *) 0 ;
6967 int arg2 ;
6968 void *argp1 = 0 ;
6969 int res1 = 0 ;
6970 int val2 ;
6971 int ecode2 = 0 ;
6972 PyObject * obj0 = 0 ;
6973 PyObject * obj1 = 0 ;
6974 char * kwnames[] = {
6975 (char *) "self",(char *) "depth", NULL
6976 };
6977
6978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6980 if (!SWIG_IsOK(res1)) {
6981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6982 }
6983 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6984 ecode2 = SWIG_AsVal_int(obj1, &val2);
6985 if (!SWIG_IsOK(ecode2)) {
6986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6987 }
6988 arg2 = static_cast< int >(val2);
6989 {
1bd55598 6990 (arg1)->SetDepth(arg2);
1bd55598
RD
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 resultobj = SWIG_Py_Void();
6994 return resultobj;
6995fail:
6996 return NULL;
6997}
6998
6999
7000SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj = 0;
7002 wxBitmap *arg1 = (wxBitmap *) 0 ;
7003 wxSize *arg2 = 0 ;
7004 void *argp1 = 0 ;
7005 int res1 = 0 ;
7006 wxSize temp2 ;
7007 PyObject * obj0 = 0 ;
7008 PyObject * obj1 = 0 ;
7009 char * kwnames[] = {
7010 (char *) "self",(char *) "size", NULL
7011 };
7012
7013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7015 if (!SWIG_IsOK(res1)) {
7016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7017 }
7018 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7019 {
7020 arg2 = &temp2;
7021 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7022 }
7023 {
1bd55598 7024 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
7025 if (PyErr_Occurred()) SWIG_fail;
7026 }
7027 resultobj = SWIG_Py_Void();
7028 return resultobj;
7029fail:
7030 return NULL;
7031}
7032
7033
8f514ab4
RD
7034SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7035 PyObject *resultobj = 0;
7036 wxBitmap *arg1 = (wxBitmap *) 0 ;
7037 buffer arg2 ;
7038 int arg3 ;
7039 void *argp1 = 0 ;
7040 int res1 = 0 ;
7041 Py_ssize_t temp2 ;
7042 PyObject * obj0 = 0 ;
7043 PyObject * obj1 = 0 ;
7044 char * kwnames[] = {
7045 (char *) "self",(char *) "data", NULL
7046 };
7047
7048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7050 if (!SWIG_IsOK(res1)) {
7051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7052 }
7053 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7054 {
7055 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7056 arg3 = (int)temp2;
7057 }
7058 {
7059 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7060 if (PyErr_Occurred()) SWIG_fail;
7061 }
7062 resultobj = SWIG_Py_Void();
7063 return resultobj;
7064fail:
7065 return NULL;
7066}
7067
7068
7069SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7070 PyObject *resultobj = 0;
7071 wxBitmap *arg1 = (wxBitmap *) 0 ;
7072 buffer arg2 ;
7073 int arg3 ;
7074 void *argp1 = 0 ;
7075 int res1 = 0 ;
7076 Py_ssize_t temp2 ;
7077 PyObject * obj0 = 0 ;
7078 PyObject * obj1 = 0 ;
7079 char * kwnames[] = {
7080 (char *) "self",(char *) "data", NULL
7081 };
7082
7083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7085 if (!SWIG_IsOK(res1)) {
7086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7087 }
7088 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7089 {
7090 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7091 arg3 = (int)temp2;
7092 }
7093 {
7094 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 resultobj = SWIG_Py_Void();
7098 return resultobj;
7099fail:
7100 return NULL;
7101}
7102
7103
1bd55598
RD
7104SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj = 0;
7106 wxBitmap *arg1 = (wxBitmap *) 0 ;
7107 wxBitmap *arg2 = (wxBitmap *) 0 ;
7108 bool result;
7109 void *argp1 = 0 ;
7110 int res1 = 0 ;
7111 void *argp2 = 0 ;
7112 int res2 = 0 ;
7113 PyObject * obj0 = 0 ;
7114 PyObject * obj1 = 0 ;
7115 char * kwnames[] = {
7116 (char *) "self",(char *) "other", NULL
7117 };
7118
7119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7121 if (!SWIG_IsOK(res1)) {
7122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7123 }
7124 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7125 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7126 if (!SWIG_IsOK(res2)) {
7127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7128 }
7129 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7130 {
1bd55598 7131 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 {
fc46b7f3
RD
7135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7136 }
7137 return resultobj;
7138fail:
7139 return NULL;
7140}
7141
7142
7143SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7144 PyObject *resultobj = 0;
7145 wxBitmap *arg1 = (wxBitmap *) 0 ;
7146 wxBitmap *arg2 = (wxBitmap *) 0 ;
7147 bool result;
7148 void *argp1 = 0 ;
7149 int res1 = 0 ;
7150 void *argp2 = 0 ;
7151 int res2 = 0 ;
7152 PyObject * obj0 = 0 ;
7153 PyObject * obj1 = 0 ;
7154 char * kwnames[] = {
7155 (char *) "self",(char *) "other", NULL
7156 };
7157
7158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7160 if (!SWIG_IsOK(res1)) {
7161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7162 }
7163 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7164 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7165 if (!SWIG_IsOK(res2)) {
7166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7167 }
7168 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7169 {
7170 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 {
7174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7175 }
7176 return resultobj;
7177fail:
7178 return NULL;
7179}
7180
7181
7182SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7183 PyObject *obj;
7184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7185 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7186 return SWIG_Py_Void();
7187}
7188
7189SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7190 return SWIG_Python_InitShadowInstance(args);
7191}
7192
7193SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7194 PyObject *resultobj = 0;
7195 int arg1 ;
7196 int arg2 ;
7197 buffer arg3 ;
7198 int arg4 ;
7199 buffer arg5 ;
7200 int arg6 ;
7201 wxBitmap *result = 0 ;
7202 int val1 ;
7203 int ecode1 = 0 ;
7204 int val2 ;
7205 int ecode2 = 0 ;
8c9c423b
RD
7206 Py_ssize_t temp3 ;
7207 Py_ssize_t temp5 ;
fc46b7f3
RD
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 PyObject * obj2 = 0 ;
7211 PyObject * obj3 = 0 ;
7212 char * kwnames[] = {
7213 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7214 };
7215
7216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7217 ecode1 = SWIG_AsVal_int(obj0, &val1);
7218 if (!SWIG_IsOK(ecode1)) {
7219 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7220 }
7221 arg1 = static_cast< int >(val1);
7222 ecode2 = SWIG_AsVal_int(obj1, &val2);
7223 if (!SWIG_IsOK(ecode2)) {
7224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7225 }
7226 arg2 = static_cast< int >(val2);
7227 {
8c9c423b
RD
7228 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7229 arg4 = (int)temp3;
fc46b7f3
RD
7230 }
7231 {
7232 if (obj3 != Py_None) {
8c9c423b
RD
7233 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7234 arg6 = (int)temp5;
fc46b7f3
RD
7235 }
7236 }
7237 {
7238 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7242 return resultobj;
7243fail:
7244 return NULL;
7245}
7246
7247
7248SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7249 PyObject *resultobj = 0;
7250 int arg1 ;
7251 int arg2 ;
7252 buffer arg3 ;
7253 int arg4 ;
7254 wxBitmap *result = 0 ;
7255 int val1 ;
7256 int ecode1 = 0 ;
7257 int val2 ;
7258 int ecode2 = 0 ;
8c9c423b 7259 Py_ssize_t temp3 ;
fc46b7f3
RD
7260 PyObject * obj0 = 0 ;
7261 PyObject * obj1 = 0 ;
7262 PyObject * obj2 = 0 ;
7263 char * kwnames[] = {
7264 (char *) "width",(char *) "height",(char *) "data", NULL
7265 };
7266
7267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7268 ecode1 = SWIG_AsVal_int(obj0, &val1);
7269 if (!SWIG_IsOK(ecode1)) {
7270 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7271 }
7272 arg1 = static_cast< int >(val1);
7273 ecode2 = SWIG_AsVal_int(obj1, &val2);
7274 if (!SWIG_IsOK(ecode2)) {
7275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7276 }
7277 arg2 = static_cast< int >(val2);
7278 {
8c9c423b
RD
7279 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7280 arg4 = (int)temp3;
fc46b7f3
RD
7281 }
7282 {
7283 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7287 return resultobj;
7288fail:
7289 return NULL;
7290}
7291
7292
7293SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7294 PyObject *resultobj = 0;
7295 int arg1 ;
7296 int arg2 ;
7297 buffer arg3 ;
7298 int arg4 ;
7299 wxBitmap *result = 0 ;
7300 int val1 ;
7301 int ecode1 = 0 ;
7302 int val2 ;
7303 int ecode2 = 0 ;
8c9c423b 7304 Py_ssize_t temp3 ;
fc46b7f3
RD
7305 PyObject * obj0 = 0 ;
7306 PyObject * obj1 = 0 ;
7307 PyObject * obj2 = 0 ;
7308 char * kwnames[] = {
7309 (char *) "width",(char *) "height",(char *) "data", NULL
7310 };
7311
7312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7313 ecode1 = SWIG_AsVal_int(obj0, &val1);
7314 if (!SWIG_IsOK(ecode1)) {
7315 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7316 }
7317 arg1 = static_cast< int >(val1);
7318 ecode2 = SWIG_AsVal_int(obj1, &val2);
7319 if (!SWIG_IsOK(ecode2)) {
7320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7321 }
7322 arg2 = static_cast< int >(val2);
7323 {
8c9c423b
RD
7324 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7325 arg4 = (int)temp3;
fc46b7f3
RD
7326 }
7327 {
7328 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7332 return resultobj;
7333fail:
7334 return NULL;
7335}
7336
7337
7338SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7339 PyObject *resultobj = 0;
7340 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7341 wxPoint result;
7342 void *argp1 = 0 ;
7343 int res1 = 0 ;
7344 PyObject *swig_obj[1] ;
7345
7346 if (!args) SWIG_fail;
7347 swig_obj[0] = args;
7348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7349 if (!SWIG_IsOK(res1)) {
7350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7351 }
7352 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7353 {
7354 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7358 return resultobj;
7359fail:
7360 return NULL;
7361}
7362
7363
7364SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7365 PyObject *resultobj = 0;
7366 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7367 int result;
7368 void *argp1 = 0 ;
7369 int res1 = 0 ;
7370 PyObject *swig_obj[1] ;
7371
7372 if (!args) SWIG_fail;
7373 swig_obj[0] = args;
7374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7375 if (!SWIG_IsOK(res1)) {
7376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7377 }
7378 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7379 {
7380 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7381 if (PyErr_Occurred()) SWIG_fail;
7382 }
7383 resultobj = SWIG_From_int(static_cast< int >(result));
7384 return resultobj;
7385fail:
7386 return NULL;
7387}
7388
7389
7390SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7391 PyObject *resultobj = 0;
7392 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7393 int result;
7394 void *argp1 = 0 ;
7395 int res1 = 0 ;
7396 PyObject *swig_obj[1] ;
7397
7398 if (!args) SWIG_fail;
7399 swig_obj[0] = args;
7400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7401 if (!SWIG_IsOK(res1)) {
7402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7403 }
7404 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7405 {
7406 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7407 if (PyErr_Occurred()) SWIG_fail;
7408 }
7409 resultobj = SWIG_From_int(static_cast< int >(result));
7410 return resultobj;
7411fail:
7412 return NULL;
7413}
7414
7415
7416SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7417 PyObject *resultobj = 0;
7418 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7419 wxSize result;
7420 void *argp1 = 0 ;
7421 int res1 = 0 ;
7422 PyObject *swig_obj[1] ;
7423
7424 if (!args) SWIG_fail;
7425 swig_obj[0] = args;
7426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7427 if (!SWIG_IsOK(res1)) {
7428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7429 }
7430 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7431 {
7432 result = ((wxPixelDataBase const *)arg1)->GetSize();
7433 if (PyErr_Occurred()) SWIG_fail;
7434 }
7435 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7436 return resultobj;
7437fail:
7438 return NULL;
7439}
7440
7441
7442SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7443 PyObject *resultobj = 0;
7444 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7445 int result;
7446 void *argp1 = 0 ;
7447 int res1 = 0 ;
7448 PyObject *swig_obj[1] ;
7449
7450 if (!args) SWIG_fail;
7451 swig_obj[0] = args;
7452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7453 if (!SWIG_IsOK(res1)) {
7454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7455 }
7456 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7457 {
7458 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7459 if (PyErr_Occurred()) SWIG_fail;
7460 }
7461 resultobj = SWIG_From_int(static_cast< int >(result));
7462 return resultobj;
7463fail:
7464 return NULL;
7465}
7466
7467
7468SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7469 PyObject *obj;
7470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7471 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7472 return SWIG_Py_Void();
7473}
7474
7475SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7476 PyObject *resultobj = 0;
7477 wxBitmap *arg1 = 0 ;
7478 wxNativePixelData *result = 0 ;
7479 void *argp1 = 0 ;
7480 int res1 = 0 ;
7481
7482 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7484 if (!SWIG_IsOK(res1)) {
7485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7486 }
7487 if (!argp1) {
7488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7489 }
7490 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7491 {
7492 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7496 return resultobj;
7497fail:
7498 return NULL;
7499}
7500
7501
7502SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7503 PyObject *resultobj = 0;
7504 wxBitmap *arg1 = 0 ;
7505 wxRect *arg2 = 0 ;
7506 wxNativePixelData *result = 0 ;
7507 void *argp1 = 0 ;
7508 int res1 = 0 ;
7509 wxRect temp2 ;
7510
7511 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7513 if (!SWIG_IsOK(res1)) {
7514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7515 }
7516 if (!argp1) {
7517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7518 }
7519 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7520 {
7521 arg2 = &temp2;
7522 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7523 }
7524 {
7525 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7526 if (PyErr_Occurred()) SWIG_fail;
7527 }
7528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7529 return resultobj;
7530fail:
7531 return NULL;
7532}
7533
7534
7535SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7536 PyObject *resultobj = 0;
7537 wxBitmap *arg1 = 0 ;
7538 wxPoint *arg2 = 0 ;
7539 wxSize *arg3 = 0 ;
7540 wxNativePixelData *result = 0 ;
7541 void *argp1 = 0 ;
7542 int res1 = 0 ;
7543 wxPoint temp2 ;
7544 wxSize temp3 ;
7545
7546 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7548 if (!SWIG_IsOK(res1)) {
7549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7550 }
7551 if (!argp1) {
7552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7553 }
7554 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7555 {
7556 arg2 = &temp2;
7557 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7558 }
7559 {
7560 arg3 = &temp3;
7561 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7562 }
7563 {
7564 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7565 if (PyErr_Occurred()) SWIG_fail;
7566 }
7567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7568 return resultobj;
7569fail:
7570 return NULL;
7571}
7572
7573
7574SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7575 int argc;
7576 PyObject *argv[4];
7577
7578 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7579 --argc;
7580 if (argc == 1) {
7581 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7582 }
7583 if (argc == 2) {
7584 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7585 }
7586 if (argc == 3) {
7587 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7588 }
7589
7590fail:
7591 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7592 return NULL;
7593}
7594
7595
7596SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7597 PyObject *resultobj = 0;
7598 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7599 void *argp1 = 0 ;
7600 int res1 = 0 ;
7601 PyObject *swig_obj[1] ;
7602
7603 if (!args) SWIG_fail;
7604 swig_obj[0] = args;
7605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7606 if (!SWIG_IsOK(res1)) {
7607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7608 }
7609 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7610 {
7611 delete arg1;
7612
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 resultobj = SWIG_Py_Void();
7616 return resultobj;
7617fail:
7618 return NULL;
7619}
7620
7621
7622SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7623 PyObject *resultobj = 0;
7624 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7625 wxNativePixelData_Accessor result;
7626 void *argp1 = 0 ;
7627 int res1 = 0 ;
7628 PyObject *swig_obj[1] ;
7629
7630 if (!args) SWIG_fail;
7631 swig_obj[0] = args;
7632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7633 if (!SWIG_IsOK(res1)) {
7634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7635 }
7636 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7637 {
7638 result = ((wxNativePixelData const *)arg1)->GetPixels();
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7642 return resultobj;
7643fail:
7644 return NULL;
7645}
7646
7647
7648SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7649 PyObject *resultobj = 0;
7650 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7651 void *argp1 = 0 ;
7652 int res1 = 0 ;
7653 PyObject *swig_obj[1] ;
7654
7655 if (!args) SWIG_fail;
7656 swig_obj[0] = args;
7657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7658 if (!SWIG_IsOK(res1)) {
7659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7660 }
7661 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7662 {
7663 (arg1)->UseAlpha();
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 resultobj = SWIG_Py_Void();
7667 return resultobj;
7668fail:
7669 return NULL;
7670}
7671
7672
7673SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7674 PyObject *resultobj = 0;
7675 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7676 bool result;
7677 void *argp1 = 0 ;
7678 int res1 = 0 ;
7679 PyObject *swig_obj[1] ;
7680
7681 if (!args) SWIG_fail;
7682 swig_obj[0] = args;
7683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7684 if (!SWIG_IsOK(res1)) {
7685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7686 }
7687 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7688 {
7689 result = (bool)wxNativePixelData___nonzero__(arg1);
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 {
7693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7694 }
7695 return resultobj;
7696fail:
7697 return NULL;
7698}
7699
7700
7701SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7702 PyObject *obj;
7703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7704 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7705 return SWIG_Py_Void();
7706}
7707
7708SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7709 return SWIG_Python_InitShadowInstance(args);
7710}
7711
7712SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7713 PyObject *resultobj = 0;
7714 wxNativePixelData *arg1 = 0 ;
7715 wxNativePixelData_Accessor *result = 0 ;
7716 void *argp1 = 0 ;
7717 int res1 = 0 ;
7718
7719 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7721 if (!SWIG_IsOK(res1)) {
7722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7723 }
7724 if (!argp1) {
7725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7726 }
7727 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7728 {
7729 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7733 return resultobj;
7734fail:
7735 return NULL;
7736}
7737
7738
7739SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7740 PyObject *resultobj = 0;
7741 wxBitmap *arg1 = 0 ;
7742 wxNativePixelData *arg2 = 0 ;
7743 wxNativePixelData_Accessor *result = 0 ;
7744 void *argp1 = 0 ;
7745 int res1 = 0 ;
7746 void *argp2 = 0 ;
7747 int res2 = 0 ;
7748
7749 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7751 if (!SWIG_IsOK(res1)) {
7752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7753 }
7754 if (!argp1) {
7755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7756 }
7757 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7758 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7759 if (!SWIG_IsOK(res2)) {
7760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7761 }
7762 if (!argp2) {
7763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7764 }
7765 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7766 {
7767 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7771 return resultobj;
7772fail:
7773 return NULL;
7774}
7775
7776
7777SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7778 PyObject *resultobj = 0;
7779 wxNativePixelData_Accessor *result = 0 ;
7780
7781 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7782 {
7783 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7787 return resultobj;
7788fail:
7789 return NULL;
7790}
7791
7792
7793SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7794 int argc;
7795 PyObject *argv[3];
7796
7797 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7798 --argc;
7799 if (argc == 0) {
7800 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7801 }
7802 if (argc == 1) {
7803 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7804 }
7805 if (argc == 2) {
7806 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7807 }
7808
7809fail:
7810 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7811 return NULL;
7812}
7813
7814
7815SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7816 PyObject *resultobj = 0;
7817 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7818 void *argp1 = 0 ;
7819 int res1 = 0 ;
7820 PyObject *swig_obj[1] ;
7821
7822 if (!args) SWIG_fail;
7823 swig_obj[0] = args;
7824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7825 if (!SWIG_IsOK(res1)) {
7826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7827 }
7828 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7829 {
7830 delete arg1;
7831
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_Py_Void();
7835 return resultobj;
7836fail:
7837 return NULL;
7838}
7839
7840
7841SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj = 0;
7843 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7844 wxNativePixelData *arg2 = 0 ;
7845 void *argp1 = 0 ;
7846 int res1 = 0 ;
7847 void *argp2 = 0 ;
7848 int res2 = 0 ;
7849 PyObject * obj0 = 0 ;
7850 PyObject * obj1 = 0 ;
7851 char * kwnames[] = {
7852 (char *) "self",(char *) "data", NULL
7853 };
7854
7855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7857 if (!SWIG_IsOK(res1)) {
7858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7859 }
7860 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7861 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7862 if (!SWIG_IsOK(res2)) {
7863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7864 }
7865 if (!argp2) {
7866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7867 }
7868 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7869 {
7870 (arg1)->Reset((wxNativePixelData const &)*arg2);
7871 if (PyErr_Occurred()) SWIG_fail;
7872 }
7873 resultobj = SWIG_Py_Void();
7874 return resultobj;
7875fail:
7876 return NULL;
7877}
7878
7879
7880SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7881 PyObject *resultobj = 0;
7882 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7883 bool result;
7884 void *argp1 = 0 ;
7885 int res1 = 0 ;
7886 PyObject *swig_obj[1] ;
7887
7888 if (!args) SWIG_fail;
7889 swig_obj[0] = args;
7890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7891 if (!SWIG_IsOK(res1)) {
7892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7893 }
7894 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7895 {
7896 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7897 if (PyErr_Occurred()) SWIG_fail;
7898 }
7899 {
7900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7901 }
7902 return resultobj;
7903fail:
7904 return NULL;
7905}
7906
7907
7908SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7909 PyObject *resultobj = 0;
7910 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7911 void *argp1 = 0 ;
7912 int res1 = 0 ;
7913 PyObject *swig_obj[1] ;
7914
7915 if (!args) SWIG_fail;
7916 swig_obj[0] = args;
7917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7918 if (!SWIG_IsOK(res1)) {
7919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7920 }
7921 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7922 {
7923 wxNativePixelData_Accessor_nextPixel(arg1);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 resultobj = SWIG_Py_Void();
7927 return resultobj;
7928fail:
7929 return NULL;
7930}
7931
7932
7933SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7934 PyObject *resultobj = 0;
7935 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7936 wxNativePixelData *arg2 = 0 ;
7937 int arg3 ;
7938 int arg4 ;
7939 void *argp1 = 0 ;
7940 int res1 = 0 ;
7941 void *argp2 = 0 ;
7942 int res2 = 0 ;
7943 int val3 ;
7944 int ecode3 = 0 ;
7945 int val4 ;
7946 int ecode4 = 0 ;
7947 PyObject * obj0 = 0 ;
7948 PyObject * obj1 = 0 ;
7949 PyObject * obj2 = 0 ;
7950 PyObject * obj3 = 0 ;
7951 char * kwnames[] = {
7952 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7953 };
7954
7955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7957 if (!SWIG_IsOK(res1)) {
7958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7959 }
7960 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7962 if (!SWIG_IsOK(res2)) {
7963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7964 }
7965 if (!argp2) {
7966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7967 }
7968 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7969 ecode3 = SWIG_AsVal_int(obj2, &val3);
7970 if (!SWIG_IsOK(ecode3)) {
7971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7972 }
7973 arg3 = static_cast< int >(val3);
7974 ecode4 = SWIG_AsVal_int(obj3, &val4);
7975 if (!SWIG_IsOK(ecode4)) {
7976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7977 }
7978 arg4 = static_cast< int >(val4);
7979 {
7980 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 resultobj = SWIG_Py_Void();
7984 return resultobj;
7985fail:
7986 return NULL;
7987}
7988
7989
7990SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7991 PyObject *resultobj = 0;
7992 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7993 wxNativePixelData *arg2 = 0 ;
7994 int arg3 ;
7995 void *argp1 = 0 ;
7996 int res1 = 0 ;
7997 void *argp2 = 0 ;
7998 int res2 = 0 ;
7999 int val3 ;
8000 int ecode3 = 0 ;
8001 PyObject * obj0 = 0 ;
8002 PyObject * obj1 = 0 ;
8003 PyObject * obj2 = 0 ;
8004 char * kwnames[] = {
8005 (char *) "self",(char *) "data",(char *) "x", NULL
8006 };
8007
8008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8010 if (!SWIG_IsOK(res1)) {
8011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8012 }
8013 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8015 if (!SWIG_IsOK(res2)) {
8016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8017 }
8018 if (!argp2) {
8019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8020 }
8021 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8022 ecode3 = SWIG_AsVal_int(obj2, &val3);
8023 if (!SWIG_IsOK(ecode3)) {
8024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8025 }
8026 arg3 = static_cast< int >(val3);
8027 {
8028 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8029 if (PyErr_Occurred()) SWIG_fail;
8030 }
8031 resultobj = SWIG_Py_Void();
8032 return resultobj;
8033fail:
8034 return NULL;
8035}
8036
8037
8038SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8039 PyObject *resultobj = 0;
8040 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8041 wxNativePixelData *arg2 = 0 ;
8042 int arg3 ;
8043 void *argp1 = 0 ;
8044 int res1 = 0 ;
8045 void *argp2 = 0 ;
8046 int res2 = 0 ;
8047 int val3 ;
8048 int ecode3 = 0 ;
8049 PyObject * obj0 = 0 ;
8050 PyObject * obj1 = 0 ;
8051 PyObject * obj2 = 0 ;
8052 char * kwnames[] = {
8053 (char *) "self",(char *) "data",(char *) "y", NULL
8054 };
8055
8056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8058 if (!SWIG_IsOK(res1)) {
8059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8060 }
8061 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8063 if (!SWIG_IsOK(res2)) {
8064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8065 }
8066 if (!argp2) {
8067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8068 }
8069 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8070 ecode3 = SWIG_AsVal_int(obj2, &val3);
8071 if (!SWIG_IsOK(ecode3)) {
8072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8073 }
8074 arg3 = static_cast< int >(val3);
8075 {
8076 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 resultobj = SWIG_Py_Void();
8080 return resultobj;
8081fail:
8082 return NULL;
8083}
8084
8085
8086SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8087 PyObject *resultobj = 0;
8088 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8089 wxNativePixelData *arg2 = 0 ;
8090 int arg3 ;
8091 int arg4 ;
8092 void *argp1 = 0 ;
8093 int res1 = 0 ;
8094 void *argp2 = 0 ;
8095 int res2 = 0 ;
8096 int val3 ;
8097 int ecode3 = 0 ;
8098 int val4 ;
8099 int ecode4 = 0 ;
8100 PyObject * obj0 = 0 ;
8101 PyObject * obj1 = 0 ;
8102 PyObject * obj2 = 0 ;
8103 PyObject * obj3 = 0 ;
8104 char * kwnames[] = {
8105 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8106 };
8107
8108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8110 if (!SWIG_IsOK(res1)) {
8111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8112 }
8113 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8114 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8115 if (!SWIG_IsOK(res2)) {
8116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8117 }
8118 if (!argp2) {
8119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8120 }
8121 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8122 ecode3 = SWIG_AsVal_int(obj2, &val3);
8123 if (!SWIG_IsOK(ecode3)) {
8124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8125 }
8126 arg3 = static_cast< int >(val3);
8127 ecode4 = SWIG_AsVal_int(obj3, &val4);
8128 if (!SWIG_IsOK(ecode4)) {
8129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8130 }
8131 arg4 = static_cast< int >(val4);
8132 {
8133 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 resultobj = SWIG_Py_Void();
8137 return resultobj;
8138fail:
8139 return NULL;
8140}
8141
8142
8143SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8144 PyObject *resultobj = 0;
8145 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8146 byte arg2 ;
8147 byte arg3 ;
8148 byte arg4 ;
8149 void *argp1 = 0 ;
8150 int res1 = 0 ;
8151 unsigned char val2 ;
8152 int ecode2 = 0 ;
8153 unsigned char val3 ;
8154 int ecode3 = 0 ;
8155 unsigned char val4 ;
8156 int ecode4 = 0 ;
8157 PyObject * obj0 = 0 ;
8158 PyObject * obj1 = 0 ;
8159 PyObject * obj2 = 0 ;
8160 PyObject * obj3 = 0 ;
8161 char * kwnames[] = {
8162 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8163 };
8164
8165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8167 if (!SWIG_IsOK(res1)) {
8168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8169 }
8170 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8171 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8172 if (!SWIG_IsOK(ecode2)) {
8173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8174 }
8175 arg2 = static_cast< byte >(val2);
8176 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8177 if (!SWIG_IsOK(ecode3)) {
8178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8179 }
8180 arg3 = static_cast< byte >(val3);
8181 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8182 if (!SWIG_IsOK(ecode4)) {
8183 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8184 }
8185 arg4 = static_cast< byte >(val4);
8186 {
8187 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 resultobj = SWIG_Py_Void();
8191 return resultobj;
8192fail:
8193 return NULL;
8194}
8195
8196
8197SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8198 PyObject *resultobj = 0;
8199 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8200 PyObject *result = 0 ;
8201 void *argp1 = 0 ;
8202 int res1 = 0 ;
8203 PyObject *swig_obj[1] ;
8204
8205 if (!args) SWIG_fail;
8206 swig_obj[0] = args;
8207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8208 if (!SWIG_IsOK(res1)) {
8209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8210 }
8211 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8212 {
8213 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 resultobj = result;
8217 return resultobj;
8218fail:
8219 return NULL;
8220}
8221
8222
8223SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8224 PyObject *obj;
8225 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8226 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8227 return SWIG_Py_Void();
8228}
8229
8230SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8231 return SWIG_Python_InitShadowInstance(args);
8232}
8233
8234SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8235 PyObject *resultobj = 0;
8236 wxBitmap *arg1 = 0 ;
8237 wxAlphaPixelData *result = 0 ;
8238 void *argp1 = 0 ;
8239 int res1 = 0 ;
8240
8241 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8243 if (!SWIG_IsOK(res1)) {
8244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8245 }
8246 if (!argp1) {
8247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8248 }
8249 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8250 {
8251 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 }
8254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8255 return resultobj;
8256fail:
8257 return NULL;
8258}
8259
8260
8261SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8262 PyObject *resultobj = 0;
8263 wxBitmap *arg1 = 0 ;
8264 wxRect *arg2 = 0 ;
8265 wxAlphaPixelData *result = 0 ;
8266 void *argp1 = 0 ;
8267 int res1 = 0 ;
8268 wxRect temp2 ;
8269
8270 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8272 if (!SWIG_IsOK(res1)) {
8273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8274 }
8275 if (!argp1) {
8276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8277 }
8278 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8279 {
8280 arg2 = &temp2;
8281 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8282 }
8283 {
8284 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8288 return resultobj;
8289fail:
8290 return NULL;
8291}
8292
8293
8294SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8295 PyObject *resultobj = 0;
8296 wxBitmap *arg1 = 0 ;
8297 wxPoint *arg2 = 0 ;
8298 wxSize *arg3 = 0 ;
8299 wxAlphaPixelData *result = 0 ;
8300 void *argp1 = 0 ;
8301 int res1 = 0 ;
8302 wxPoint temp2 ;
8303 wxSize temp3 ;
8304
8305 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8307 if (!SWIG_IsOK(res1)) {
8308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8309 }
8310 if (!argp1) {
8311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8312 }
8313 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8314 {
8315 arg2 = &temp2;
8316 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8317 }
8318 {
8319 arg3 = &temp3;
8320 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8321 }
8322 {
8323 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8327 return resultobj;
8328fail:
8329 return NULL;
8330}
8331
8332
8333SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8334 int argc;
8335 PyObject *argv[4];
8336
8337 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8338 --argc;
8339 if (argc == 1) {
8340 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8341 }
8342 if (argc == 2) {
8343 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8344 }
8345 if (argc == 3) {
8346 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8347 }
8348
8349fail:
8350 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8351 return NULL;
8352}
8353
8354
8355SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8356 PyObject *resultobj = 0;
8357 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8358 void *argp1 = 0 ;
8359 int res1 = 0 ;
8360 PyObject *swig_obj[1] ;
8361
8362 if (!args) SWIG_fail;
8363 swig_obj[0] = args;
8364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8365 if (!SWIG_IsOK(res1)) {
8366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8367 }
8368 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8369 {
8370 delete arg1;
8371
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = SWIG_Py_Void();
8375 return resultobj;
8376fail:
8377 return NULL;
8378}
8379
8380
8381SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8382 PyObject *resultobj = 0;
8383 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8384 wxAlphaPixelData_Accessor result;
8385 void *argp1 = 0 ;
8386 int res1 = 0 ;
8387 PyObject *swig_obj[1] ;
8388
8389 if (!args) SWIG_fail;
8390 swig_obj[0] = args;
8391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8392 if (!SWIG_IsOK(res1)) {
8393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8394 }
8395 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8396 {
8397 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8398 if (PyErr_Occurred()) SWIG_fail;
8399 }
8400 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8401 return resultobj;
8402fail:
8403 return NULL;
8404}
8405
8406
8407SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8408 PyObject *resultobj = 0;
8409 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8410 void *argp1 = 0 ;
8411 int res1 = 0 ;
8412 PyObject *swig_obj[1] ;
8413
8414 if (!args) SWIG_fail;
8415 swig_obj[0] = args;
8416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8417 if (!SWIG_IsOK(res1)) {
8418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8419 }
8420 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8421 {
8422 (arg1)->UseAlpha();
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 resultobj = SWIG_Py_Void();
8426 return resultobj;
8427fail:
8428 return NULL;
8429}
8430
8431
8432SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8433 PyObject *resultobj = 0;
8434 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8435 bool result;
8436 void *argp1 = 0 ;
8437 int res1 = 0 ;
8438 PyObject *swig_obj[1] ;
8439
8440 if (!args) SWIG_fail;
8441 swig_obj[0] = args;
8442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8443 if (!SWIG_IsOK(res1)) {
8444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8445 }
8446 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8447 {
8448 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8449 if (PyErr_Occurred()) SWIG_fail;
8450 }
8451 {
8452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8453 }
8454 return resultobj;
8455fail:
8456 return NULL;
8457}
8458
8459
8460SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8461 PyObject *obj;
8462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8463 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8464 return SWIG_Py_Void();
8465}
8466
8467SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8468 return SWIG_Python_InitShadowInstance(args);
8469}
8470
8471SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8472 PyObject *resultobj = 0;
8473 wxAlphaPixelData *arg1 = 0 ;
8474 wxAlphaPixelData_Accessor *result = 0 ;
8475 void *argp1 = 0 ;
8476 int res1 = 0 ;
8477
8478 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8480 if (!SWIG_IsOK(res1)) {
8481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8482 }
8483 if (!argp1) {
8484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8485 }
8486 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8487 {
8488 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8492 return resultobj;
8493fail:
8494 return NULL;
8495}
8496
8497
8498SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8499 PyObject *resultobj = 0;
8500 wxBitmap *arg1 = 0 ;
8501 wxAlphaPixelData *arg2 = 0 ;
8502 wxAlphaPixelData_Accessor *result = 0 ;
8503 void *argp1 = 0 ;
8504 int res1 = 0 ;
8505 void *argp2 = 0 ;
8506 int res2 = 0 ;
8507
8508 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8512 }
8513 if (!argp1) {
8514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8515 }
8516 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8517 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8518 if (!SWIG_IsOK(res2)) {
8519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8520 }
8521 if (!argp2) {
8522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8523 }
8524 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8525 {
8526 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8527 if (PyErr_Occurred()) SWIG_fail;
8528 }
8529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8530 return resultobj;
8531fail:
8532 return NULL;
8533}
8534
8535
8536SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8537 PyObject *resultobj = 0;
8538 wxAlphaPixelData_Accessor *result = 0 ;
8539
8540 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8541 {
8542 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8543 if (PyErr_Occurred()) SWIG_fail;
8544 }
8545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8546 return resultobj;
8547fail:
8548 return NULL;
8549}
8550
8551
8552SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8553 int argc;
8554 PyObject *argv[3];
8555
8556 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8557 --argc;
8558 if (argc == 0) {
8559 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8560 }
8561 if (argc == 1) {
8562 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8563 }
8564 if (argc == 2) {
8565 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8566 }
8567
8568fail:
8569 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8570 return NULL;
8571}
8572
8573
8574SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8575 PyObject *resultobj = 0;
8576 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8577 void *argp1 = 0 ;
8578 int res1 = 0 ;
8579 PyObject *swig_obj[1] ;
8580
8581 if (!args) SWIG_fail;
8582 swig_obj[0] = args;
8583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8584 if (!SWIG_IsOK(res1)) {
8585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8586 }
8587 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8588 {
8589 delete arg1;
8590
8591 if (PyErr_Occurred()) SWIG_fail;
8592 }
8593 resultobj = SWIG_Py_Void();
8594 return resultobj;
8595fail:
8596 return NULL;
8597}
8598
8599
8600SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8601 PyObject *resultobj = 0;
8602 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8603 wxAlphaPixelData *arg2 = 0 ;
8604 void *argp1 = 0 ;
8605 int res1 = 0 ;
8606 void *argp2 = 0 ;
8607 int res2 = 0 ;
8608 PyObject * obj0 = 0 ;
8609 PyObject * obj1 = 0 ;
8610 char * kwnames[] = {
8611 (char *) "self",(char *) "data", NULL
8612 };
8613
8614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8616 if (!SWIG_IsOK(res1)) {
8617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8618 }
8619 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8621 if (!SWIG_IsOK(res2)) {
8622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8623 }
8624 if (!argp2) {
8625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8626 }
8627 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8628 {
8629 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 resultobj = SWIG_Py_Void();
8633 return resultobj;
8634fail:
8635 return NULL;
8636}
8637
8638
8639SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8640 PyObject *resultobj = 0;
8641 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8642 bool result;
8643 void *argp1 = 0 ;
8644 int res1 = 0 ;
8645 PyObject *swig_obj[1] ;
8646
8647 if (!args) SWIG_fail;
8648 swig_obj[0] = args;
8649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8650 if (!SWIG_IsOK(res1)) {
8651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8652 }
8653 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8654 {
8655 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 {
8659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8660 }
8661 return resultobj;
8662fail:
8663 return NULL;
8664}
8665
8666
8667SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8668 PyObject *resultobj = 0;
8669 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8670 void *argp1 = 0 ;
8671 int res1 = 0 ;
8672 PyObject *swig_obj[1] ;
8673
8674 if (!args) SWIG_fail;
8675 swig_obj[0] = args;
8676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8677 if (!SWIG_IsOK(res1)) {
8678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8679 }
8680 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8681 {
8682 wxAlphaPixelData_Accessor_nextPixel(arg1);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 resultobj = SWIG_Py_Void();
8686 return resultobj;
8687fail:
8688 return NULL;
8689}
8690
8691
8692SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj = 0;
8694 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8695 wxAlphaPixelData *arg2 = 0 ;
8696 int arg3 ;
8697 int arg4 ;
8698 void *argp1 = 0 ;
8699 int res1 = 0 ;
8700 void *argp2 = 0 ;
8701 int res2 = 0 ;
8702 int val3 ;
8703 int ecode3 = 0 ;
8704 int val4 ;
8705 int ecode4 = 0 ;
8706 PyObject * obj0 = 0 ;
8707 PyObject * obj1 = 0 ;
8708 PyObject * obj2 = 0 ;
8709 PyObject * obj3 = 0 ;
8710 char * kwnames[] = {
8711 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8712 };
8713
8714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8716 if (!SWIG_IsOK(res1)) {
8717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8718 }
8719 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8721 if (!SWIG_IsOK(res2)) {
8722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8723 }
8724 if (!argp2) {
8725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8726 }
8727 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8728 ecode3 = SWIG_AsVal_int(obj2, &val3);
8729 if (!SWIG_IsOK(ecode3)) {
8730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8731 }
8732 arg3 = static_cast< int >(val3);
8733 ecode4 = SWIG_AsVal_int(obj3, &val4);
8734 if (!SWIG_IsOK(ecode4)) {
8735 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8736 }
8737 arg4 = static_cast< int >(val4);
8738 {
8739 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 resultobj = SWIG_Py_Void();
8743 return resultobj;
8744fail:
8745 return NULL;
8746}
8747
8748
8749SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8750 PyObject *resultobj = 0;
8751 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8752 wxAlphaPixelData *arg2 = 0 ;
8753 int arg3 ;
8754 void *argp1 = 0 ;
8755 int res1 = 0 ;
8756 void *argp2 = 0 ;
8757 int res2 = 0 ;
8758 int val3 ;
8759 int ecode3 = 0 ;
8760 PyObject * obj0 = 0 ;
8761 PyObject * obj1 = 0 ;
8762 PyObject * obj2 = 0 ;
8763 char * kwnames[] = {
8764 (char *) "self",(char *) "data",(char *) "x", NULL
8765 };
8766
8767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8771 }
8772 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8773 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8774 if (!SWIG_IsOK(res2)) {
8775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8776 }
8777 if (!argp2) {
8778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8779 }
8780 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8781 ecode3 = SWIG_AsVal_int(obj2, &val3);
8782 if (!SWIG_IsOK(ecode3)) {
8783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8784 }
8785 arg3 = static_cast< int >(val3);
8786 {
8787 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8788 if (PyErr_Occurred()) SWIG_fail;
8789 }
8790 resultobj = SWIG_Py_Void();
8791 return resultobj;
8792fail:
8793 return NULL;
8794}
8795
8796
8797SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8798 PyObject *resultobj = 0;
8799 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8800 wxAlphaPixelData *arg2 = 0 ;
8801 int arg3 ;
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
8804 void *argp2 = 0 ;
8805 int res2 = 0 ;
8806 int val3 ;
8807 int ecode3 = 0 ;
8808 PyObject * obj0 = 0 ;
8809 PyObject * obj1 = 0 ;
8810 PyObject * obj2 = 0 ;
8811 char * kwnames[] = {
8812 (char *) "self",(char *) "data",(char *) "y", NULL
8813 };
8814
8815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8817 if (!SWIG_IsOK(res1)) {
8818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8819 }
8820 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8822 if (!SWIG_IsOK(res2)) {
8823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8824 }
8825 if (!argp2) {
8826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8827 }
8828 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8829 ecode3 = SWIG_AsVal_int(obj2, &val3);
8830 if (!SWIG_IsOK(ecode3)) {
8831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8832 }
8833 arg3 = static_cast< int >(val3);
8834 {
8835 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8836 if (PyErr_Occurred()) SWIG_fail;
8837 }
8838 resultobj = SWIG_Py_Void();
8839 return resultobj;
8840fail:
8841 return NULL;
8842}
8843
8844
8845SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj = 0;
8847 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8848 wxAlphaPixelData *arg2 = 0 ;
8849 int arg3 ;
8850 int arg4 ;
8851 void *argp1 = 0 ;
8852 int res1 = 0 ;
8853 void *argp2 = 0 ;
8854 int res2 = 0 ;
8855 int val3 ;
8856 int ecode3 = 0 ;
8857 int val4 ;
8858 int ecode4 = 0 ;
8859 PyObject * obj0 = 0 ;
8860 PyObject * obj1 = 0 ;
8861 PyObject * obj2 = 0 ;
8862 PyObject * obj3 = 0 ;
8863 char * kwnames[] = {
8864 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8865 };
8866
8867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8869 if (!SWIG_IsOK(res1)) {
8870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8871 }
8872 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8873 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8874 if (!SWIG_IsOK(res2)) {
8875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8876 }
8877 if (!argp2) {
8878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8879 }
8880 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8881 ecode3 = SWIG_AsVal_int(obj2, &val3);
8882 if (!SWIG_IsOK(ecode3)) {
8883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8884 }
8885 arg3 = static_cast< int >(val3);
8886 ecode4 = SWIG_AsVal_int(obj3, &val4);
8887 if (!SWIG_IsOK(ecode4)) {
8888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8889 }
8890 arg4 = static_cast< int >(val4);
8891 {
8892 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8893 if (PyErr_Occurred()) SWIG_fail;
8894 }
8895 resultobj = SWIG_Py_Void();
8896 return resultobj;
8897fail:
8898 return NULL;
8899}
8900
8901
8902SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8903 PyObject *resultobj = 0;
8904 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8905 byte arg2 ;
8906 byte arg3 ;
8907 byte arg4 ;
8908 byte arg5 ;
8909 void *argp1 = 0 ;
8910 int res1 = 0 ;
8911 unsigned char val2 ;
8912 int ecode2 = 0 ;
8913 unsigned char val3 ;
8914 int ecode3 = 0 ;
8915 unsigned char val4 ;
8916 int ecode4 = 0 ;
8917 unsigned char val5 ;
8918 int ecode5 = 0 ;
8919 PyObject * obj0 = 0 ;
8920 PyObject * obj1 = 0 ;
8921 PyObject * obj2 = 0 ;
8922 PyObject * obj3 = 0 ;
8923 PyObject * obj4 = 0 ;
8924 char * kwnames[] = {
8925 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8926 };
8927
8928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8930 if (!SWIG_IsOK(res1)) {
8931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8932 }
8933 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8934 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8935 if (!SWIG_IsOK(ecode2)) {
8936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8937 }
8938 arg2 = static_cast< byte >(val2);
8939 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8940 if (!SWIG_IsOK(ecode3)) {
8941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8942 }
8943 arg3 = static_cast< byte >(val3);
8944 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8945 if (!SWIG_IsOK(ecode4)) {
8946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8947 }
8948 arg4 = static_cast< byte >(val4);
8949 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8950 if (!SWIG_IsOK(ecode5)) {
8951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8952 }
8953 arg5 = static_cast< byte >(val5);
8954 {
8955 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8956 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8957 }
fc46b7f3 8958 resultobj = SWIG_Py_Void();
1bd55598
RD
8959 return resultobj;
8960fail:
8961 return NULL;
8962}
8963
8964
fc46b7f3 8965SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8966 PyObject *resultobj = 0;
fc46b7f3
RD
8967 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8968 PyObject *result = 0 ;
1bd55598
RD
8969 void *argp1 = 0 ;
8970 int res1 = 0 ;
fc46b7f3 8971 PyObject *swig_obj[1] ;
1bd55598 8972
fc46b7f3
RD
8973 if (!args) SWIG_fail;
8974 swig_obj[0] = args;
8975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8976 if (!SWIG_IsOK(res1)) {
fc46b7f3 8977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8978 }
fc46b7f3 8979 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8980 {
fc46b7f3 8981 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8982 if (PyErr_Occurred()) SWIG_fail;
8983 }
fc46b7f3 8984 resultobj = result;
1bd55598
RD
8985 return resultobj;
8986fail:
8987 return NULL;
d55e5bfc
RD
8988}
8989
8990
fc46b7f3 8991SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8992 PyObject *obj;
8993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8994 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8995 return SWIG_Py_Void();
d55e5bfc
RD
8996}
8997
fc46b7f3 8998SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8999 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9000}
9001
1bd55598
RD
9002SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9003 PyObject *resultobj = 0;
9004 wxBitmap *arg1 = 0 ;
9005 wxColour const &arg2_defvalue = wxNullColour ;
9006 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9007 wxMask *result = 0 ;
9008 void *argp1 = 0 ;
9009 int res1 = 0 ;
9010 wxColour temp2 ;
9011 PyObject * obj0 = 0 ;
9012 PyObject * obj1 = 0 ;
9013 char * kwnames[] = {
9014 (char *) "bitmap",(char *) "colour", NULL
9015 };
9016
9017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9018 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9019 if (!SWIG_IsOK(res1)) {
9020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9021 }
9022 if (!argp1) {
9023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9024 }
9025 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9026 if (obj1) {
d55e5bfc 9027 {
1bd55598
RD
9028 arg2 = &temp2;
9029 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9030 }
1bd55598
RD
9031 }
9032 {
9033 if (!wxPyCheckForApp()) SWIG_fail;
9034 PyThreadState* __tstate = wxPyBeginAllowThreads();
9035 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9040 return resultobj;
9041fail:
9042 return NULL;
d55e5bfc
RD
9043}
9044
9045
1bd55598
RD
9046SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9047 PyObject *resultobj = 0;
9048 wxMask *arg1 = (wxMask *) 0 ;
9049 void *argp1 = 0 ;
9050 int res1 = 0 ;
9051 PyObject *swig_obj[1] ;
9052
9053 if (!args) SWIG_fail;
9054 swig_obj[0] = args;
9055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9056 if (!SWIG_IsOK(res1)) {
9057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9058 }
9059 arg1 = reinterpret_cast< wxMask * >(argp1);
9060 {
1bd55598 9061 delete arg1;
d55e5bfc 9062
1bd55598
RD
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 resultobj = SWIG_Py_Void();
9066 return resultobj;
9067fail:
9068 return NULL;
9069}
9070
9071
9072SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9073 PyObject *obj;
9074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9075 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9076 return SWIG_Py_Void();
9077}
9078
9079SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9080 return SWIG_Python_InitShadowInstance(args);
9081}
9082
9083SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9084 PyObject *resultobj = 0;
9085 wxString *arg1 = 0 ;
9086 wxBitmapType arg2 ;
9087 int arg3 = (int) -1 ;
9088 int arg4 = (int) -1 ;
9089 wxIcon *result = 0 ;
9090 bool temp1 = false ;
9091 int val2 ;
9092 int ecode2 = 0 ;
9093 int val3 ;
9094 int ecode3 = 0 ;
9095 int val4 ;
9096 int ecode4 = 0 ;
9097 PyObject * obj0 = 0 ;
9098 PyObject * obj1 = 0 ;
9099 PyObject * obj2 = 0 ;
9100 PyObject * obj3 = 0 ;
9101 char * kwnames[] = {
9102 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9103 };
9104
9105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9106 {
9107 arg1 = wxString_in_helper(obj0);
9108 if (arg1 == NULL) SWIG_fail;
9109 temp1 = true;
9110 }
9111 ecode2 = SWIG_AsVal_int(obj1, &val2);
9112 if (!SWIG_IsOK(ecode2)) {
9113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9114 }
9115 arg2 = static_cast< wxBitmapType >(val2);
9116 if (obj2) {
9117 ecode3 = SWIG_AsVal_int(obj2, &val3);
9118 if (!SWIG_IsOK(ecode3)) {
9119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9120 }
9121 arg3 = static_cast< int >(val3);
9122 }
9123 if (obj3) {
9124 ecode4 = SWIG_AsVal_int(obj3, &val4);
9125 if (!SWIG_IsOK(ecode4)) {
9126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9127 }
9128 arg4 = static_cast< int >(val4);
9129 }
9130 {
9131 if (!wxPyCheckForApp()) SWIG_fail;
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9138 {
9139 if (temp1)
9140 delete arg1;
9141 }
9142 return resultobj;
9143fail:
9144 {
9145 if (temp1)
9146 delete arg1;
9147 }
9148 return NULL;
d55e5bfc
RD
9149}
9150
9151
1bd55598
RD
9152SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9153 PyObject *resultobj = 0;
9154 wxIcon *arg1 = (wxIcon *) 0 ;
9155 void *argp1 = 0 ;
9156 int res1 = 0 ;
9157 PyObject *swig_obj[1] ;
9158
9159 if (!args) SWIG_fail;
9160 swig_obj[0] = args;
9161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9162 if (!SWIG_IsOK(res1)) {
9163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9164 }
9165 arg1 = reinterpret_cast< wxIcon * >(argp1);
9166 {
9167 PyThreadState* __tstate = wxPyBeginAllowThreads();
9168 delete arg1;
d55e5bfc 9169
1bd55598
RD
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 }
9173 resultobj = SWIG_Py_Void();
9174 return resultobj;
9175fail:
9176 return NULL;
d55e5bfc
RD
9177}
9178
9179
1bd55598
RD
9180SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9181 PyObject *resultobj = 0;
9182 wxIcon *result = 0 ;
9183
9184 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9185 {
9186 if (!wxPyCheckForApp()) SWIG_fail;
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 result = (wxIcon *)new wxIcon();
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9193 return resultobj;
9194fail:
9195 return NULL;
9196}
9197
9198
9199SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9200 PyObject *resultobj = 0;
9201 wxIconLocation *arg1 = 0 ;
9202 wxIcon *result = 0 ;
9203 void *argp1 = 0 ;
9204 int res1 = 0 ;
9205 PyObject * obj0 = 0 ;
9206 char * kwnames[] = {
9207 (char *) "loc", NULL
9208 };
9209
9210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9211 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9212 if (!SWIG_IsOK(res1)) {
9213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9214 }
9215 if (!argp1) {
9216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9217 }
9218 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9219 {
9220 if (!wxPyCheckForApp()) SWIG_fail;
9221 PyThreadState* __tstate = wxPyBeginAllowThreads();
9222 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9223 wxPyEndAllowThreads(__tstate);
9224 if (PyErr_Occurred()) SWIG_fail;
9225 }
9226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9227 return resultobj;
9228fail:
9229 return NULL;
9230}
9231
9232
9233SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9234 PyObject *resultobj = 0;
9235 wxBitmap *arg1 = 0 ;
9236 wxIcon *result = 0 ;
9237 void *argp1 = 0 ;
9238 int res1 = 0 ;
9239 PyObject * obj0 = 0 ;
9240 char * kwnames[] = {
9241 (char *) "bmp", NULL
9242 };
9243
9244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9245 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9246 if (!SWIG_IsOK(res1)) {
9247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9248 }
9249 if (!argp1) {
9250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9251 }
9252 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9253 {
9254 if (!wxPyCheckForApp()) SWIG_fail;
9255 PyThreadState* __tstate = wxPyBeginAllowThreads();
9256 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9257 wxPyEndAllowThreads(__tstate);
9258 if (PyErr_Occurred()) SWIG_fail;
9259 }
9260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9261 return resultobj;
9262fail:
9263 return NULL;
d55e5bfc
RD
9264}
9265
9266
1bd55598
RD
9267SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9268 PyObject *resultobj = 0;
9269 PyObject *arg1 = (PyObject *) 0 ;
9270 wxIcon *result = 0 ;
9271 PyObject * obj0 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "listOfStrings", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9277 arg1 = obj0;
9278 {
9279 if (!wxPyCheckForApp()) SWIG_fail;
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 result = (wxIcon *)new_wxIcon(arg1);
9282 wxPyEndAllowThreads(__tstate);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 }
9285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9286 return resultobj;
9287fail:
9288 return NULL;
d55e5bfc
RD
9289}
9290
9291
b39fe951 9292SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9293 PyObject *resultobj = 0;
9294 wxIcon *arg1 = (wxIcon *) 0 ;
9295 bool result;
9296 void *argp1 = 0 ;
9297 int res1 = 0 ;
9298 PyObject *swig_obj[1] ;
9299
9300 if (!args) SWIG_fail;
9301 swig_obj[0] = args;
9302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9303 if (!SWIG_IsOK(res1)) {
b39fe951 9304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9305 }
9306 arg1 = reinterpret_cast< wxIcon * >(argp1);
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9309 result = (bool)(arg1)->IsOk();
1bd55598
RD
9310 wxPyEndAllowThreads(__tstate);
9311 if (PyErr_Occurred()) SWIG_fail;
9312 }
9313 {
9314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9315 }
9316 return resultobj;
9317fail:
9318 return NULL;
d55e5bfc
RD
9319}
9320
9321
1bd55598
RD
9322SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9323 PyObject *resultobj = 0;
9324 wxIcon *arg1 = (wxIcon *) 0 ;
9325 int result;
9326 void *argp1 = 0 ;
9327 int res1 = 0 ;
9328 PyObject *swig_obj[1] ;
9329
9330 if (!args) SWIG_fail;
9331 swig_obj[0] = args;
9332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9333 if (!SWIG_IsOK(res1)) {
9334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9335 }
9336 arg1 = reinterpret_cast< wxIcon * >(argp1);
9337 {
9338 PyThreadState* __tstate = wxPyBeginAllowThreads();
9339 result = (int)(arg1)->GetWidth();
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 resultobj = SWIG_From_int(static_cast< int >(result));
9344 return resultobj;
9345fail:
9346 return NULL;
d55e5bfc
RD
9347}
9348
9349
1bd55598
RD
9350SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9351 PyObject *resultobj = 0;
9352 wxIcon *arg1 = (wxIcon *) 0 ;
9353 int result;
9354 void *argp1 = 0 ;
9355 int res1 = 0 ;
9356 PyObject *swig_obj[1] ;
9357
9358 if (!args) SWIG_fail;
9359 swig_obj[0] = args;
9360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9361 if (!SWIG_IsOK(res1)) {
9362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9363 }
9364 arg1 = reinterpret_cast< wxIcon * >(argp1);
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 result = (int)(arg1)->GetHeight();
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 resultobj = SWIG_From_int(static_cast< int >(result));
9372 return resultobj;
9373fail:
9374 return NULL;
d55e5bfc
RD
9375}
9376
9377
1bd55598
RD
9378SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9379 PyObject *resultobj = 0;
9380 wxIcon *arg1 = (wxIcon *) 0 ;
9381 int result;
9382 void *argp1 = 0 ;
9383 int res1 = 0 ;
9384 PyObject *swig_obj[1] ;
9385
9386 if (!args) SWIG_fail;
9387 swig_obj[0] = args;
9388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9389 if (!SWIG_IsOK(res1)) {
9390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9391 }
9392 arg1 = reinterpret_cast< wxIcon * >(argp1);
9393 {
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 result = (int)(arg1)->GetDepth();
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 resultobj = SWIG_From_int(static_cast< int >(result));
9400 return resultobj;
9401fail:
9402 return NULL;
9403}
9404
9405
9406SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9407 PyObject *resultobj = 0;
9408 wxIcon *arg1 = (wxIcon *) 0 ;
9409 int arg2 ;
9410 void *argp1 = 0 ;
9411 int res1 = 0 ;
9412 int val2 ;
9413 int ecode2 = 0 ;
9414 PyObject * obj0 = 0 ;
9415 PyObject * obj1 = 0 ;
9416 char * kwnames[] = {
9417 (char *) "self",(char *) "w", NULL
9418 };
9419
9420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9422 if (!SWIG_IsOK(res1)) {
9423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9424 }
9425 arg1 = reinterpret_cast< wxIcon * >(argp1);
9426 ecode2 = SWIG_AsVal_int(obj1, &val2);
9427 if (!SWIG_IsOK(ecode2)) {
9428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9429 }
9430 arg2 = static_cast< int >(val2);
9431 {
9432 PyThreadState* __tstate = wxPyBeginAllowThreads();
9433 (arg1)->SetWidth(arg2);
9434 wxPyEndAllowThreads(__tstate);
9435 if (PyErr_Occurred()) SWIG_fail;
9436 }
9437 resultobj = SWIG_Py_Void();
9438 return resultobj;
9439fail:
9440 return NULL;
9441}
9442
9443
9444SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9445 PyObject *resultobj = 0;
9446 wxIcon *arg1 = (wxIcon *) 0 ;
9447 int arg2 ;
9448 void *argp1 = 0 ;
9449 int res1 = 0 ;
9450 int val2 ;
9451 int ecode2 = 0 ;
9452 PyObject * obj0 = 0 ;
9453 PyObject * obj1 = 0 ;
9454 char * kwnames[] = {
9455 (char *) "self",(char *) "h", NULL
9456 };
9457
9458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9460 if (!SWIG_IsOK(res1)) {
9461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9462 }
9463 arg1 = reinterpret_cast< wxIcon * >(argp1);
9464 ecode2 = SWIG_AsVal_int(obj1, &val2);
9465 if (!SWIG_IsOK(ecode2)) {
9466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9467 }
9468 arg2 = static_cast< int >(val2);
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 (arg1)->SetHeight(arg2);
9472 wxPyEndAllowThreads(__tstate);
9473 if (PyErr_Occurred()) SWIG_fail;
9474 }
9475 resultobj = SWIG_Py_Void();
9476 return resultobj;
9477fail:
9478 return NULL;
9479}
9480
9481
9482SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9483 PyObject *resultobj = 0;
9484 wxIcon *arg1 = (wxIcon *) 0 ;
9485 int arg2 ;
9486 void *argp1 = 0 ;
9487 int res1 = 0 ;
9488 int val2 ;
9489 int ecode2 = 0 ;
9490 PyObject * obj0 = 0 ;
9491 PyObject * obj1 = 0 ;
9492 char * kwnames[] = {
9493 (char *) "self",(char *) "d", NULL
9494 };
9495
9496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9498 if (!SWIG_IsOK(res1)) {
9499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9500 }
9501 arg1 = reinterpret_cast< wxIcon * >(argp1);
9502 ecode2 = SWIG_AsVal_int(obj1, &val2);
9503 if (!SWIG_IsOK(ecode2)) {
9504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9505 }
9506 arg2 = static_cast< int >(val2);
9507 {
9508 PyThreadState* __tstate = wxPyBeginAllowThreads();
9509 (arg1)->SetDepth(arg2);
9510 wxPyEndAllowThreads(__tstate);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 }
9513 resultobj = SWIG_Py_Void();
9514 return resultobj;
9515fail:
9516 return NULL;
9517}
9518
9519
9520SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj = 0;
9522 wxIcon *arg1 = (wxIcon *) 0 ;
9523 wxBitmap *arg2 = 0 ;
9524 void *argp1 = 0 ;
9525 int res1 = 0 ;
9526 void *argp2 = 0 ;
9527 int res2 = 0 ;
9528 PyObject * obj0 = 0 ;
9529 PyObject * obj1 = 0 ;
9530 char * kwnames[] = {
9531 (char *) "self",(char *) "bmp", NULL
9532 };
9533
9534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9536 if (!SWIG_IsOK(res1)) {
9537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9538 }
9539 arg1 = reinterpret_cast< wxIcon * >(argp1);
9540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9541 if (!SWIG_IsOK(res2)) {
9542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9543 }
9544 if (!argp2) {
9545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9546 }
9547 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9548 {
9549 PyThreadState* __tstate = wxPyBeginAllowThreads();
9550 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9551 wxPyEndAllowThreads(__tstate);
9552 if (PyErr_Occurred()) SWIG_fail;
9553 }
9554 resultobj = SWIG_Py_Void();
9555 return resultobj;
9556fail:
9557 return NULL;
d55e5bfc
RD
9558}
9559
9560
1bd55598
RD
9561SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9562 PyObject *obj;
9563 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9564 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9565 return SWIG_Py_Void();
d55e5bfc
RD
9566}
9567
1bd55598
RD
9568SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9569 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9570}
9571
1bd55598
RD
9572SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9573 PyObject *resultobj = 0;
9574 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9575 int arg2 = (int) 0 ;
9576 wxIconLocation *result = 0 ;
9577 bool temp1 = false ;
9578 int val2 ;
9579 int ecode2 = 0 ;
9580 PyObject * obj0 = 0 ;
9581 PyObject * obj1 = 0 ;
9582 char * kwnames[] = {
9583 (char *) "filename",(char *) "num", NULL
9584 };
9585
9586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9587 if (obj0) {
d55e5bfc 9588 {
1bd55598
RD
9589 arg1 = wxString_in_helper(obj0);
9590 if (arg1 == NULL) SWIG_fail;
9591 temp1 = true;
d55e5bfc 9592 }
1bd55598
RD
9593 }
9594 if (obj1) {
9595 ecode2 = SWIG_AsVal_int(obj1, &val2);
9596 if (!SWIG_IsOK(ecode2)) {
9597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9598 }
9599 arg2 = static_cast< int >(val2);
9600 }
9601 {
9602 PyThreadState* __tstate = wxPyBeginAllowThreads();
9603 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9608 {
9609 if (temp1)
9610 delete arg1;
9611 }
9612 return resultobj;
9613fail:
9614 {
9615 if (temp1)
9616 delete arg1;
9617 }
9618 return NULL;
d55e5bfc
RD
9619}
9620
9621
1bd55598
RD
9622SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9623 PyObject *resultobj = 0;
9624 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9625 void *argp1 = 0 ;
9626 int res1 = 0 ;
9627 PyObject *swig_obj[1] ;
9628
9629 if (!args) SWIG_fail;
9630 swig_obj[0] = args;
9631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9632 if (!SWIG_IsOK(res1)) {
9633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9634 }
9635 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 delete arg1;
d55e5bfc 9639
1bd55598
RD
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 resultobj = SWIG_Py_Void();
9644 return resultobj;
9645fail:
9646 return NULL;
d55e5bfc
RD
9647}
9648
9649
1bd55598
RD
9650SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9651 PyObject *resultobj = 0;
9652 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9653 bool result;
9654 void *argp1 = 0 ;
9655 int res1 = 0 ;
9656 PyObject *swig_obj[1] ;
9657
9658 if (!args) SWIG_fail;
9659 swig_obj[0] = args;
9660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9661 if (!SWIG_IsOK(res1)) {
9662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9663 }
9664 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 {
9672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9673 }
9674 return resultobj;
9675fail:
9676 return NULL;
9677}
9678
9679
9680SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9681 PyObject *resultobj = 0;
9682 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9683 wxString *arg2 = 0 ;
9684 void *argp1 = 0 ;
9685 int res1 = 0 ;
9686 bool temp2 = false ;
9687 PyObject * obj0 = 0 ;
9688 PyObject * obj1 = 0 ;
9689 char * kwnames[] = {
9690 (char *) "self",(char *) "filename", NULL
9691 };
9692
9693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9695 if (!SWIG_IsOK(res1)) {
9696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9697 }
9698 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9699 {
9700 arg2 = wxString_in_helper(obj1);
9701 if (arg2 == NULL) SWIG_fail;
9702 temp2 = true;
9703 }
9704 {
9705 PyThreadState* __tstate = wxPyBeginAllowThreads();
9706 (arg1)->SetFileName((wxString const &)*arg2);
9707 wxPyEndAllowThreads(__tstate);
9708 if (PyErr_Occurred()) SWIG_fail;
9709 }
9710 resultobj = SWIG_Py_Void();
9711 {
9712 if (temp2)
9713 delete arg2;
9714 }
9715 return resultobj;
9716fail:
9717 {
9718 if (temp2)
9719 delete arg2;
9720 }
9721 return NULL;
d55e5bfc
RD
9722}
9723
9724
1bd55598
RD
9725SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9726 PyObject *resultobj = 0;
9727 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9728 wxString *result = 0 ;
9729 void *argp1 = 0 ;
9730 int res1 = 0 ;
9731 PyObject *swig_obj[1] ;
9732
9733 if (!args) SWIG_fail;
9734 swig_obj[0] = args;
9735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9736 if (!SWIG_IsOK(res1)) {
9737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9738 }
9739 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9742 {
1bd55598
RD
9743 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9744 result = (wxString *) &_result_ref;
d55e5bfc 9745 }
1bd55598
RD
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 {
9750#if wxUSE_UNICODE
9751 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9752#else
9753 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9754#endif
9755 }
9756 return resultobj;
9757fail:
9758 return NULL;
9759}
9760
9761
9762SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9763 PyObject *resultobj = 0;
9764 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9765 int arg2 ;
9766 void *argp1 = 0 ;
9767 int res1 = 0 ;
9768 int val2 ;
9769 int ecode2 = 0 ;
9770 PyObject * obj0 = 0 ;
9771 PyObject * obj1 = 0 ;
9772 char * kwnames[] = {
9773 (char *) "self",(char *) "num", NULL
9774 };
9775
9776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9778 if (!SWIG_IsOK(res1)) {
9779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9780 }
9781 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9782 ecode2 = SWIG_AsVal_int(obj1, &val2);
9783 if (!SWIG_IsOK(ecode2)) {
9784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9785 }
9786 arg2 = static_cast< int >(val2);
9787 {
9788 PyThreadState* __tstate = wxPyBeginAllowThreads();
9789 wxIconLocation_SetIndex(arg1,arg2);
9790 wxPyEndAllowThreads(__tstate);
9791 if (PyErr_Occurred()) SWIG_fail;
9792 }
9793 resultobj = SWIG_Py_Void();
9794 return resultobj;
9795fail:
9796 return NULL;
d55e5bfc
RD
9797}
9798
9799
1bd55598
RD
9800SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9801 PyObject *resultobj = 0;
9802 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9803 int result;
9804 void *argp1 = 0 ;
9805 int res1 = 0 ;
9806 PyObject *swig_obj[1] ;
9807
9808 if (!args) SWIG_fail;
9809 swig_obj[0] = args;
9810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9811 if (!SWIG_IsOK(res1)) {
9812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9813 }
9814 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 result = (int)wxIconLocation_GetIndex(arg1);
9818 wxPyEndAllowThreads(__tstate);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 }
9821 resultobj = SWIG_From_int(static_cast< int >(result));
9822 return resultobj;
9823fail:
9824 return NULL;
d55e5bfc
RD
9825}
9826
9827
1bd55598
RD
9828SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9829 PyObject *obj;
9830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9831 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9832 return SWIG_Py_Void();
d55e5bfc
RD
9833}
9834
1bd55598
RD
9835SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9836 return SWIG_Python_InitShadowInstance(args);
9837}
d55e5bfc 9838
1bd55598
RD
9839SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9840 PyObject *resultobj = 0;
9841 wxIconBundle *result = 0 ;
9842
9843 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9844 {
9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
9846 result = (wxIconBundle *)new wxIconBundle();
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9851 return resultobj;
9852fail:
9853 return NULL;
9854}
9855
9856
9857SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9858 PyObject *resultobj = 0;
9859 wxString *arg1 = 0 ;
9860 long arg2 ;
9861 wxIconBundle *result = 0 ;
9862 bool temp1 = false ;
9863 long val2 ;
9864 int ecode2 = 0 ;
9865 PyObject * obj0 = 0 ;
9866 PyObject * obj1 = 0 ;
9867 char * kwnames[] = {
9868 (char *) "file",(char *) "type", NULL
9869 };
9870
9871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9872 {
9873 arg1 = wxString_in_helper(obj0);
9874 if (arg1 == NULL) SWIG_fail;
9875 temp1 = true;
9876 }
9877 ecode2 = SWIG_AsVal_long(obj1, &val2);
9878 if (!SWIG_IsOK(ecode2)) {
9879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9880 }
9881 arg2 = static_cast< long >(val2);
9882 {
9883 PyThreadState* __tstate = wxPyBeginAllowThreads();
9884 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9885 wxPyEndAllowThreads(__tstate);
9886 if (PyErr_Occurred()) SWIG_fail;
9887 }
9888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9889 {
9890 if (temp1)
9891 delete arg1;
9892 }
9893 return resultobj;
9894fail:
9895 {
9896 if (temp1)
9897 delete arg1;
9898 }
9899 return NULL;
d55e5bfc
RD
9900}
9901
9902
1bd55598
RD
9903SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9904 PyObject *resultobj = 0;
9905 wxIcon *arg1 = 0 ;
9906 wxIconBundle *result = 0 ;
9907 void *argp1 = 0 ;
9908 int res1 = 0 ;
9909 PyObject * obj0 = 0 ;
9910 char * kwnames[] = {
9911 (char *) "icon", NULL
9912 };
9913
9914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9915 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9916 if (!SWIG_IsOK(res1)) {
9917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9918 }
9919 if (!argp1) {
9920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9921 }
9922 arg1 = reinterpret_cast< wxIcon * >(argp1);
9923 {
9924 PyThreadState* __tstate = wxPyBeginAllowThreads();
9925 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9926 wxPyEndAllowThreads(__tstate);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9930 return resultobj;
9931fail:
9932 return NULL;
d55e5bfc
RD
9933}
9934
9935
1bd55598
RD
9936SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9937 PyObject *resultobj = 0;
9938 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9939 void *argp1 = 0 ;
9940 int res1 = 0 ;
9941 PyObject *swig_obj[1] ;
9942
9943 if (!args) SWIG_fail;
9944 swig_obj[0] = args;
9945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9946 if (!SWIG_IsOK(res1)) {
9947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9948 }
9949 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 delete arg1;
d55e5bfc 9953
1bd55598
RD
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 resultobj = SWIG_Py_Void();
9958 return resultobj;
9959fail:
9960 return NULL;
9961}
9962
9963
9964SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9965 PyObject *resultobj = 0;
9966 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9967 wxIcon *arg2 = 0 ;
9968 void *argp1 = 0 ;
9969 int res1 = 0 ;
9970 void *argp2 = 0 ;
9971 int res2 = 0 ;
9972 PyObject * obj0 = 0 ;
9973 PyObject * obj1 = 0 ;
9974 char * kwnames[] = {
9975 (char *) "self",(char *) "icon", NULL
9976 };
9977
9978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9980 if (!SWIG_IsOK(res1)) {
9981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9982 }
9983 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9984 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9985 if (!SWIG_IsOK(res2)) {
9986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9987 }
9988 if (!argp2) {
9989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9990 }
9991 arg2 = reinterpret_cast< wxIcon * >(argp2);
9992 {
9993 PyThreadState* __tstate = wxPyBeginAllowThreads();
9994 (arg1)->AddIcon((wxIcon const &)*arg2);
9995 wxPyEndAllowThreads(__tstate);
9996 if (PyErr_Occurred()) SWIG_fail;
9997 }
9998 resultobj = SWIG_Py_Void();
9999 return resultobj;
10000fail:
10001 return NULL;
10002}
10003
10004
10005SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10006 PyObject *resultobj = 0;
10007 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10008 wxString *arg2 = 0 ;
10009 long arg3 ;
10010 void *argp1 = 0 ;
10011 int res1 = 0 ;
10012 bool temp2 = false ;
10013 long val3 ;
10014 int ecode3 = 0 ;
10015 PyObject * obj0 = 0 ;
10016 PyObject * obj1 = 0 ;
10017 PyObject * obj2 = 0 ;
10018 char * kwnames[] = {
10019 (char *) "self",(char *) "file",(char *) "type", NULL
10020 };
10021
10022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10024 if (!SWIG_IsOK(res1)) {
10025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10026 }
10027 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10028 {
10029 arg2 = wxString_in_helper(obj1);
10030 if (arg2 == NULL) SWIG_fail;
10031 temp2 = true;
10032 }
10033 ecode3 = SWIG_AsVal_long(obj2, &val3);
10034 if (!SWIG_IsOK(ecode3)) {
10035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10036 }
10037 arg3 = static_cast< long >(val3);
10038 {
10039 PyThreadState* __tstate = wxPyBeginAllowThreads();
10040 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10041 wxPyEndAllowThreads(__tstate);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 resultobj = SWIG_Py_Void();
10045 {
10046 if (temp2)
10047 delete arg2;
10048 }
10049 return resultobj;
10050fail:
10051 {
10052 if (temp2)
10053 delete arg2;
10054 }
10055 return NULL;
10056}
10057
10058
10059SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10060 PyObject *resultobj = 0;
10061 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10062 wxSize *arg2 = 0 ;
10063 wxIcon *result = 0 ;
10064 void *argp1 = 0 ;
10065 int res1 = 0 ;
10066 wxSize temp2 ;
10067 PyObject * obj0 = 0 ;
10068 PyObject * obj1 = 0 ;
10069 char * kwnames[] = {
10070 (char *) "self",(char *) "size", NULL
10071 };
10072
10073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10075 if (!SWIG_IsOK(res1)) {
10076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10077 }
10078 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10079 {
10080 arg2 = &temp2;
10081 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10082 }
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10085 {
1bd55598
RD
10086 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10087 result = (wxIcon *) &_result_ref;
d55e5bfc 10088 }
1bd55598
RD
10089 wxPyEndAllowThreads(__tstate);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 }
10092 {
10093 wxIcon* resultptr = new wxIcon(*result);
10094 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10095 }
10096 return resultobj;
10097fail:
10098 return NULL;
10099}
10100
10101
10102SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10103 PyObject *obj;
10104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10105 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10106 return SWIG_Py_Void();
10107}
10108
10109SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10110 return SWIG_Python_InitShadowInstance(args);
10111}
10112
10113SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10114 PyObject *resultobj = 0;
10115 wxString *arg1 = 0 ;
10116 long arg2 ;
10117 int arg3 = (int) 0 ;
10118 int arg4 = (int) 0 ;
10119 wxCursor *result = 0 ;
10120 bool temp1 = false ;
10121 long val2 ;
10122 int ecode2 = 0 ;
10123 int val3 ;
10124 int ecode3 = 0 ;
10125 int val4 ;
10126 int ecode4 = 0 ;
10127 PyObject * obj0 = 0 ;
10128 PyObject * obj1 = 0 ;
10129 PyObject * obj2 = 0 ;
10130 PyObject * obj3 = 0 ;
10131 char * kwnames[] = {
10132 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10133 };
10134
10135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10136 {
10137 arg1 = wxString_in_helper(obj0);
10138 if (arg1 == NULL) SWIG_fail;
10139 temp1 = true;
10140 }
10141 ecode2 = SWIG_AsVal_long(obj1, &val2);
10142 if (!SWIG_IsOK(ecode2)) {
10143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10144 }
10145 arg2 = static_cast< long >(val2);
10146 if (obj2) {
10147 ecode3 = SWIG_AsVal_int(obj2, &val3);
10148 if (!SWIG_IsOK(ecode3)) {
10149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10150 }
10151 arg3 = static_cast< int >(val3);
10152 }
10153 if (obj3) {
10154 ecode4 = SWIG_AsVal_int(obj3, &val4);
10155 if (!SWIG_IsOK(ecode4)) {
10156 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10157 }
10158 arg4 = static_cast< int >(val4);
10159 }
10160 {
10161 if (!wxPyCheckForApp()) SWIG_fail;
10162 PyThreadState* __tstate = wxPyBeginAllowThreads();
10163 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10164 wxPyEndAllowThreads(__tstate);
10165 if (PyErr_Occurred()) SWIG_fail;
10166 }
10167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10168 {
10169 if (temp1)
10170 delete arg1;
10171 }
10172 return resultobj;
10173fail:
10174 {
10175 if (temp1)
10176 delete arg1;
10177 }
10178 return NULL;
d55e5bfc
RD
10179}
10180
10181
1bd55598
RD
10182SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10183 PyObject *resultobj = 0;
10184 wxCursor *arg1 = (wxCursor *) 0 ;
10185 void *argp1 = 0 ;
10186 int res1 = 0 ;
10187 PyObject *swig_obj[1] ;
10188
10189 if (!args) SWIG_fail;
10190 swig_obj[0] = args;
10191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10192 if (!SWIG_IsOK(res1)) {
10193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10194 }
10195 arg1 = reinterpret_cast< wxCursor * >(argp1);
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 delete arg1;
d55e5bfc 10199
1bd55598
RD
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_Py_Void();
10204 return resultobj;
10205fail:
10206 return NULL;
10207}
10208
10209
10210SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10211 PyObject *resultobj = 0;
10212 int arg1 ;
10213 wxCursor *result = 0 ;
10214 int val1 ;
10215 int ecode1 = 0 ;
10216 PyObject * obj0 = 0 ;
10217 char * kwnames[] = {
10218 (char *) "id", NULL
10219 };
10220
10221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10222 ecode1 = SWIG_AsVal_int(obj0, &val1);
10223 if (!SWIG_IsOK(ecode1)) {
10224 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10225 }
10226 arg1 = static_cast< int >(val1);
10227 {
10228 if (!wxPyCheckForApp()) SWIG_fail;
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = (wxCursor *)new wxCursor(arg1);
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10235 return resultobj;
10236fail:
10237 return NULL;
10238}
10239
10240
10241SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj = 0;
10243 wxImage *arg1 = 0 ;
10244 wxCursor *result = 0 ;
10245 void *argp1 = 0 ;
10246 int res1 = 0 ;
10247 PyObject * obj0 = 0 ;
10248 char * kwnames[] = {
10249 (char *) "image", NULL
10250 };
10251
10252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10253 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10254 if (!SWIG_IsOK(res1)) {
10255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10256 }
10257 if (!argp1) {
10258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10259 }
10260 arg1 = reinterpret_cast< wxImage * >(argp1);
10261 {
10262 if (!wxPyCheckForApp()) SWIG_fail;
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10269 return resultobj;
10270fail:
10271 return NULL;
d55e5bfc
RD
10272}
10273
10274
b39fe951 10275SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10276 PyObject *resultobj = 0;
10277 wxCursor *arg1 = (wxCursor *) 0 ;
10278 bool result;
10279 void *argp1 = 0 ;
10280 int res1 = 0 ;
10281 PyObject *swig_obj[1] ;
10282
10283 if (!args) SWIG_fail;
10284 swig_obj[0] = args;
10285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10286 if (!SWIG_IsOK(res1)) {
b39fe951 10287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10288 }
10289 arg1 = reinterpret_cast< wxCursor * >(argp1);
10290 {
10291 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10292 result = (bool)(arg1)->IsOk();
1bd55598
RD
10293 wxPyEndAllowThreads(__tstate);
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 {
10297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10298 }
10299 return resultobj;
10300fail:
10301 return NULL;
10302}
10303
10304
10305SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10306 PyObject *obj;
10307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10308 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10309 return SWIG_Py_Void();
10310}
10311
10312SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10313 return SWIG_Python_InitShadowInstance(args);
10314}
10315
10316SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj = 0;
10318 int arg1 = (int) 0 ;
10319 int arg2 = (int) 0 ;
10320 int arg3 = (int) 0 ;
10321 int arg4 = (int) 0 ;
10322 wxRegion *result = 0 ;
10323 int val1 ;
10324 int ecode1 = 0 ;
10325 int val2 ;
10326 int ecode2 = 0 ;
10327 int val3 ;
10328 int ecode3 = 0 ;
10329 int val4 ;
10330 int ecode4 = 0 ;
10331 PyObject * obj0 = 0 ;
10332 PyObject * obj1 = 0 ;
10333 PyObject * obj2 = 0 ;
10334 PyObject * obj3 = 0 ;
10335 char * kwnames[] = {
10336 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10337 };
10338
10339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10340 if (obj0) {
10341 ecode1 = SWIG_AsVal_int(obj0, &val1);
10342 if (!SWIG_IsOK(ecode1)) {
10343 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10344 }
10345 arg1 = static_cast< int >(val1);
10346 }
10347 if (obj1) {
10348 ecode2 = SWIG_AsVal_int(obj1, &val2);
10349 if (!SWIG_IsOK(ecode2)) {
10350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10351 }
10352 arg2 = static_cast< int >(val2);
10353 }
10354 if (obj2) {
10355 ecode3 = SWIG_AsVal_int(obj2, &val3);
10356 if (!SWIG_IsOK(ecode3)) {
10357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10358 }
10359 arg3 = static_cast< int >(val3);
10360 }
10361 if (obj3) {
10362 ecode4 = SWIG_AsVal_int(obj3, &val4);
10363 if (!SWIG_IsOK(ecode4)) {
10364 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10365 }
10366 arg4 = static_cast< int >(val4);
10367 }
10368 {
10369 if (!wxPyCheckForApp()) SWIG_fail;
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10372 wxPyEndAllowThreads(__tstate);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 }
10375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10376 return resultobj;
10377fail:
10378 return NULL;
10379}
10380
10381
10382SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10383 PyObject *resultobj = 0;
10384 wxBitmap *arg1 = 0 ;
10385 wxRegion *result = 0 ;
10386 void *argp1 = 0 ;
10387 int res1 = 0 ;
10388 PyObject * obj0 = 0 ;
10389 char * kwnames[] = {
10390 (char *) "bmp", NULL
10391 };
10392
10393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10394 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10395 if (!SWIG_IsOK(res1)) {
10396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10397 }
10398 if (!argp1) {
10399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10400 }
10401 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10402 {
10403 if (!wxPyCheckForApp()) SWIG_fail;
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10410 return resultobj;
10411fail:
10412 return NULL;
10413}
10414
10415
10416SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10417 PyObject *resultobj = 0;
10418 wxBitmap *arg1 = 0 ;
10419 wxColour *arg2 = 0 ;
10420 int arg3 = (int) 0 ;
10421 wxRegion *result = 0 ;
10422 void *argp1 = 0 ;
10423 int res1 = 0 ;
10424 wxColour temp2 ;
10425 int val3 ;
10426 int ecode3 = 0 ;
10427 PyObject * obj0 = 0 ;
10428 PyObject * obj1 = 0 ;
10429 PyObject * obj2 = 0 ;
10430 char * kwnames[] = {
10431 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10432 };
10433
10434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10435 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10436 if (!SWIG_IsOK(res1)) {
10437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10438 }
10439 if (!argp1) {
10440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10441 }
10442 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10443 {
10444 arg2 = &temp2;
10445 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10446 }
10447 if (obj2) {
10448 ecode3 = SWIG_AsVal_int(obj2, &val3);
10449 if (!SWIG_IsOK(ecode3)) {
10450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10451 }
10452 arg3 = static_cast< int >(val3);
10453 }
10454 {
10455 if (!wxPyCheckForApp()) SWIG_fail;
10456 PyThreadState* __tstate = wxPyBeginAllowThreads();
10457 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10458 wxPyEndAllowThreads(__tstate);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 }
10461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10462 return resultobj;
10463fail:
10464 return NULL;
10465}
10466
10467
10468SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10469 PyObject *resultobj = 0;
10470 int arg1 ;
10471 wxPoint *arg2 = (wxPoint *) 0 ;
10472 int arg3 = (int) wxWINDING_RULE ;
10473 wxRegion *result = 0 ;
10474 int val3 ;
10475 int ecode3 = 0 ;
10476 PyObject * obj0 = 0 ;
10477 PyObject * obj1 = 0 ;
10478 char * kwnames[] = {
10479 (char *) "points",(char *) "fillStyle", NULL
10480 };
10481
10482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10483 {
10484 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10485 if (arg2 == NULL) SWIG_fail;
10486 }
10487 if (obj1) {
10488 ecode3 = SWIG_AsVal_int(obj1, &val3);
10489 if (!SWIG_IsOK(ecode3)) {
10490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10491 }
10492 arg3 = static_cast< int >(val3);
10493 }
10494 {
10495 if (!wxPyCheckForApp()) SWIG_fail;
10496 PyThreadState* __tstate = wxPyBeginAllowThreads();
10497 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10498 wxPyEndAllowThreads(__tstate);
10499 if (PyErr_Occurred()) SWIG_fail;
10500 }
10501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10502 {
10503 if (arg2) delete [] arg2;
10504 }
10505 return resultobj;
10506fail:
10507 {
10508 if (arg2) delete [] arg2;
10509 }
10510 return NULL;
d55e5bfc
RD
10511}
10512
10513
1bd55598
RD
10514SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10515 PyObject *resultobj = 0;
10516 wxRegion *arg1 = (wxRegion *) 0 ;
10517 void *argp1 = 0 ;
10518 int res1 = 0 ;
10519 PyObject *swig_obj[1] ;
10520
10521 if (!args) SWIG_fail;
10522 swig_obj[0] = args;
10523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10524 if (!SWIG_IsOK(res1)) {
10525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10526 }
10527 arg1 = reinterpret_cast< wxRegion * >(argp1);
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 delete arg1;
d55e5bfc 10531
1bd55598
RD
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_Py_Void();
10536 return resultobj;
10537fail:
10538 return NULL;
d55e5bfc
RD
10539}
10540
10541
1bd55598
RD
10542SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10543 PyObject *resultobj = 0;
10544 wxRegion *arg1 = (wxRegion *) 0 ;
10545 void *argp1 = 0 ;
10546 int res1 = 0 ;
10547 PyObject *swig_obj[1] ;
10548
10549 if (!args) SWIG_fail;
10550 swig_obj[0] = args;
10551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10552 if (!SWIG_IsOK(res1)) {
10553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10554 }
10555 arg1 = reinterpret_cast< wxRegion * >(argp1);
10556 {
10557 PyThreadState* __tstate = wxPyBeginAllowThreads();
10558 (arg1)->Clear();
10559 wxPyEndAllowThreads(__tstate);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 resultobj = SWIG_Py_Void();
10563 return resultobj;
10564fail:
10565 return NULL;
10566}
10567
10568
10569SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10570 PyObject *resultobj = 0;
10571 wxRegion *arg1 = (wxRegion *) 0 ;
10572 int arg2 ;
10573 int arg3 ;
10574 bool result;
10575 void *argp1 = 0 ;
10576 int res1 = 0 ;
10577 int val2 ;
10578 int ecode2 = 0 ;
10579 int val3 ;
10580 int ecode3 = 0 ;
10581 PyObject * obj0 = 0 ;
10582 PyObject * obj1 = 0 ;
10583 PyObject * obj2 = 0 ;
10584 char * kwnames[] = {
10585 (char *) "self",(char *) "x",(char *) "y", NULL
10586 };
10587
10588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10590 if (!SWIG_IsOK(res1)) {
10591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10592 }
10593 arg1 = reinterpret_cast< wxRegion * >(argp1);
10594 ecode2 = SWIG_AsVal_int(obj1, &val2);
10595 if (!SWIG_IsOK(ecode2)) {
10596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10597 }
10598 arg2 = static_cast< int >(val2);
10599 ecode3 = SWIG_AsVal_int(obj2, &val3);
10600 if (!SWIG_IsOK(ecode3)) {
10601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10602 }
10603 arg3 = static_cast< int >(val3);
10604 {
10605 PyThreadState* __tstate = wxPyBeginAllowThreads();
10606 result = (bool)(arg1)->Offset(arg2,arg3);
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 {
10611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10612 }
10613 return resultobj;
10614fail:
10615 return NULL;
10616}
10617
10618
10619SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj = 0;
10621 wxRegion *arg1 = (wxRegion *) 0 ;
10622 int arg2 ;
10623 int arg3 ;
10624 wxRegionContain result;
10625 void *argp1 = 0 ;
10626 int res1 = 0 ;
10627 int val2 ;
10628 int ecode2 = 0 ;
10629 int val3 ;
10630 int ecode3 = 0 ;
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 PyObject * obj2 = 0 ;
10634 char * kwnames[] = {
10635 (char *) "self",(char *) "x",(char *) "y", NULL
10636 };
10637
10638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10640 if (!SWIG_IsOK(res1)) {
10641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10642 }
10643 arg1 = reinterpret_cast< wxRegion * >(argp1);
10644 ecode2 = SWIG_AsVal_int(obj1, &val2);
10645 if (!SWIG_IsOK(ecode2)) {
10646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10647 }
10648 arg2 = static_cast< int >(val2);
10649 ecode3 = SWIG_AsVal_int(obj2, &val3);
10650 if (!SWIG_IsOK(ecode3)) {
10651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10652 }
10653 arg3 = static_cast< int >(val3);
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_From_int(static_cast< int >(result));
10661 return resultobj;
10662fail:
10663 return NULL;
10664}
10665
10666
10667SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxRegion *arg1 = (wxRegion *) 0 ;
10670 wxPoint *arg2 = 0 ;
10671 wxRegionContain result;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 wxPoint temp2 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 char * kwnames[] = {
10678 (char *) "self",(char *) "pt", NULL
10679 };
10680
10681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10685 }
10686 arg1 = reinterpret_cast< wxRegion * >(argp1);
10687 {
10688 arg2 = &temp2;
10689 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10690 }
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 resultobj = SWIG_From_int(static_cast< int >(result));
10698 return resultobj;
10699fail:
10700 return NULL;
10701}
10702
10703
10704SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj = 0;
10706 wxRegion *arg1 = (wxRegion *) 0 ;
10707 wxRect *arg2 = 0 ;
10708 wxRegionContain result;
10709 void *argp1 = 0 ;
10710 int res1 = 0 ;
10711 wxRect temp2 ;
10712 PyObject * obj0 = 0 ;
10713 PyObject * obj1 = 0 ;
10714 char * kwnames[] = {
10715 (char *) "self",(char *) "rect", NULL
10716 };
10717
10718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10720 if (!SWIG_IsOK(res1)) {
10721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10722 }
10723 arg1 = reinterpret_cast< wxRegion * >(argp1);
10724 {
10725 arg2 = &temp2;
10726 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10727 }
10728 {
10729 PyThreadState* __tstate = wxPyBeginAllowThreads();
10730 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 resultobj = SWIG_From_int(static_cast< int >(result));
10735 return resultobj;
10736fail:
10737 return NULL;
10738}
10739
10740
10741SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10742 PyObject *resultobj = 0;
10743 wxRegion *arg1 = (wxRegion *) 0 ;
10744 int arg2 ;
10745 int arg3 ;
10746 int arg4 ;
10747 int arg5 ;
10748 wxRegionContain result;
10749 void *argp1 = 0 ;
10750 int res1 = 0 ;
10751 int val2 ;
10752 int ecode2 = 0 ;
10753 int val3 ;
10754 int ecode3 = 0 ;
10755 int val4 ;
10756 int ecode4 = 0 ;
10757 int val5 ;
10758 int ecode5 = 0 ;
10759 PyObject * obj0 = 0 ;
10760 PyObject * obj1 = 0 ;
10761 PyObject * obj2 = 0 ;
10762 PyObject * obj3 = 0 ;
10763 PyObject * obj4 = 0 ;
10764 char * kwnames[] = {
10765 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10766 };
10767
10768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10770 if (!SWIG_IsOK(res1)) {
10771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10772 }
10773 arg1 = reinterpret_cast< wxRegion * >(argp1);
10774 ecode2 = SWIG_AsVal_int(obj1, &val2);
10775 if (!SWIG_IsOK(ecode2)) {
10776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10777 }
10778 arg2 = static_cast< int >(val2);
10779 ecode3 = SWIG_AsVal_int(obj2, &val3);
10780 if (!SWIG_IsOK(ecode3)) {
10781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10782 }
10783 arg3 = static_cast< int >(val3);
10784 ecode4 = SWIG_AsVal_int(obj3, &val4);
10785 if (!SWIG_IsOK(ecode4)) {
10786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10787 }
10788 arg4 = static_cast< int >(val4);
10789 ecode5 = SWIG_AsVal_int(obj4, &val5);
10790 if (!SWIG_IsOK(ecode5)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10792 }
10793 arg5 = static_cast< int >(val5);
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_From_int(static_cast< int >(result));
10801 return resultobj;
10802fail:
10803 return NULL;
d55e5bfc
RD
10804}
10805
10806
1bd55598
RD
10807SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10808 PyObject *resultobj = 0;
10809 wxRegion *arg1 = (wxRegion *) 0 ;
10810 wxRect result;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 PyObject *swig_obj[1] ;
10814
10815 if (!args) SWIG_fail;
10816 swig_obj[0] = args;
10817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10818 if (!SWIG_IsOK(res1)) {
10819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10820 }
10821 arg1 = reinterpret_cast< wxRegion * >(argp1);
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 result = (arg1)->GetBox();
10825 wxPyEndAllowThreads(__tstate);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10829 return resultobj;
10830fail:
10831 return NULL;
10832}
10833
10834
10835SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10836 PyObject *resultobj = 0;
10837 wxRegion *arg1 = (wxRegion *) 0 ;
10838 int arg2 ;
10839 int arg3 ;
10840 int arg4 ;
10841 int arg5 ;
10842 bool result;
10843 void *argp1 = 0 ;
10844 int res1 = 0 ;
10845 int val2 ;
10846 int ecode2 = 0 ;
10847 int val3 ;
10848 int ecode3 = 0 ;
10849 int val4 ;
10850 int ecode4 = 0 ;
10851 int val5 ;
10852 int ecode5 = 0 ;
10853 PyObject * obj0 = 0 ;
10854 PyObject * obj1 = 0 ;
10855 PyObject * obj2 = 0 ;
10856 PyObject * obj3 = 0 ;
10857 PyObject * obj4 = 0 ;
10858 char * kwnames[] = {
10859 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10860 };
10861
10862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10864 if (!SWIG_IsOK(res1)) {
10865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10866 }
10867 arg1 = reinterpret_cast< wxRegion * >(argp1);
10868 ecode2 = SWIG_AsVal_int(obj1, &val2);
10869 if (!SWIG_IsOK(ecode2)) {
10870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10871 }
10872 arg2 = static_cast< int >(val2);
10873 ecode3 = SWIG_AsVal_int(obj2, &val3);
10874 if (!SWIG_IsOK(ecode3)) {
10875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10876 }
10877 arg3 = static_cast< int >(val3);
10878 ecode4 = SWIG_AsVal_int(obj3, &val4);
10879 if (!SWIG_IsOK(ecode4)) {
10880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10881 }
10882 arg4 = static_cast< int >(val4);
10883 ecode5 = SWIG_AsVal_int(obj4, &val5);
10884 if (!SWIG_IsOK(ecode5)) {
10885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10886 }
10887 arg5 = static_cast< int >(val5);
10888 {
10889 PyThreadState* __tstate = wxPyBeginAllowThreads();
10890 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10891 wxPyEndAllowThreads(__tstate);
10892 if (PyErr_Occurred()) SWIG_fail;
10893 }
10894 {
10895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10896 }
10897 return resultobj;
10898fail:
10899 return NULL;
10900}
10901
10902
10903SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10904 PyObject *resultobj = 0;
10905 wxRegion *arg1 = (wxRegion *) 0 ;
10906 wxRect *arg2 = 0 ;
10907 bool result;
10908 void *argp1 = 0 ;
10909 int res1 = 0 ;
10910 wxRect temp2 ;
10911 PyObject * obj0 = 0 ;
10912 PyObject * obj1 = 0 ;
10913 char * kwnames[] = {
10914 (char *) "self",(char *) "rect", NULL
10915 };
10916
10917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10919 if (!SWIG_IsOK(res1)) {
10920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10921 }
10922 arg1 = reinterpret_cast< wxRegion * >(argp1);
10923 {
10924 arg2 = &temp2;
10925 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10926 }
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10930 wxPyEndAllowThreads(__tstate);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 }
10933 {
10934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10935 }
10936 return resultobj;
10937fail:
10938 return NULL;
10939}
10940
10941
10942SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10943 PyObject *resultobj = 0;
10944 wxRegion *arg1 = (wxRegion *) 0 ;
10945 wxRegion *arg2 = 0 ;
10946 bool result;
10947 void *argp1 = 0 ;
10948 int res1 = 0 ;
10949 void *argp2 = 0 ;
10950 int res2 = 0 ;
10951 PyObject * obj0 = 0 ;
10952 PyObject * obj1 = 0 ;
10953 char * kwnames[] = {
10954 (char *) "self",(char *) "region", NULL
10955 };
10956
10957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10959 if (!SWIG_IsOK(res1)) {
10960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10961 }
10962 arg1 = reinterpret_cast< wxRegion * >(argp1);
10963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10964 if (!SWIG_IsOK(res2)) {
10965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10966 }
10967 if (!argp2) {
10968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10969 }
10970 arg2 = reinterpret_cast< wxRegion * >(argp2);
10971 {
10972 PyThreadState* __tstate = wxPyBeginAllowThreads();
10973 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 {
10978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10979 }
10980 return resultobj;
10981fail:
10982 return NULL;
d55e5bfc
RD
10983}
10984
10985
1bd55598
RD
10986SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10987 PyObject *resultobj = 0;
10988 wxRegion *arg1 = (wxRegion *) 0 ;
10989 bool result;
10990 void *argp1 = 0 ;
10991 int res1 = 0 ;
10992 PyObject *swig_obj[1] ;
10993
10994 if (!args) SWIG_fail;
10995 swig_obj[0] = args;
10996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10997 if (!SWIG_IsOK(res1)) {
10998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10999 }
11000 arg1 = reinterpret_cast< wxRegion * >(argp1);
11001 {
11002 PyThreadState* __tstate = wxPyBeginAllowThreads();
11003 result = (bool)(arg1)->IsEmpty();
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 {
11008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11009 }
11010 return resultobj;
11011fail:
11012 return NULL;
11013}
11014
11015
f5263701
RD
11016SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11017 PyObject *resultobj = 0;
11018 wxRegion *arg1 = (wxRegion *) 0 ;
11019 wxRegion *arg2 = 0 ;
11020 bool result;
11021 void *argp1 = 0 ;
11022 int res1 = 0 ;
11023 void *argp2 = 0 ;
11024 int res2 = 0 ;
11025 PyObject * obj0 = 0 ;
11026 PyObject * obj1 = 0 ;
11027 char * kwnames[] = {
11028 (char *) "self",(char *) "region", NULL
11029 };
11030
11031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11033 if (!SWIG_IsOK(res1)) {
11034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11035 }
11036 arg1 = reinterpret_cast< wxRegion * >(argp1);
11037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11038 if (!SWIG_IsOK(res2)) {
11039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11040 }
11041 if (!argp2) {
11042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11043 }
11044 arg2 = reinterpret_cast< wxRegion * >(argp2);
11045 {
11046 PyThreadState* __tstate = wxPyBeginAllowThreads();
11047 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11048 wxPyEndAllowThreads(__tstate);
11049 if (PyErr_Occurred()) SWIG_fail;
11050 }
11051 {
11052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11053 }
11054 return resultobj;
11055fail:
11056 return NULL;
11057}
11058
11059
1bd55598
RD
11060SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11061 PyObject *resultobj = 0;
11062 wxRegion *arg1 = (wxRegion *) 0 ;
11063 int arg2 ;
11064 int arg3 ;
11065 int arg4 ;
11066 int arg5 ;
11067 bool result;
11068 void *argp1 = 0 ;
11069 int res1 = 0 ;
11070 int val2 ;
11071 int ecode2 = 0 ;
11072 int val3 ;
11073 int ecode3 = 0 ;
11074 int val4 ;
11075 int ecode4 = 0 ;
11076 int val5 ;
11077 int ecode5 = 0 ;
11078 PyObject * obj0 = 0 ;
11079 PyObject * obj1 = 0 ;
11080 PyObject * obj2 = 0 ;
11081 PyObject * obj3 = 0 ;
11082 PyObject * obj4 = 0 ;
11083 char * kwnames[] = {
11084 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11085 };
11086
11087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11089 if (!SWIG_IsOK(res1)) {
11090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11091 }
11092 arg1 = reinterpret_cast< wxRegion * >(argp1);
11093 ecode2 = SWIG_AsVal_int(obj1, &val2);
11094 if (!SWIG_IsOK(ecode2)) {
11095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11096 }
11097 arg2 = static_cast< int >(val2);
11098 ecode3 = SWIG_AsVal_int(obj2, &val3);
11099 if (!SWIG_IsOK(ecode3)) {
11100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11101 }
11102 arg3 = static_cast< int >(val3);
11103 ecode4 = SWIG_AsVal_int(obj3, &val4);
11104 if (!SWIG_IsOK(ecode4)) {
11105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11106 }
11107 arg4 = static_cast< int >(val4);
11108 ecode5 = SWIG_AsVal_int(obj4, &val5);
11109 if (!SWIG_IsOK(ecode5)) {
11110 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11111 }
11112 arg5 = static_cast< int >(val5);
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11116 wxPyEndAllowThreads(__tstate);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 }
11119 {
11120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11121 }
11122 return resultobj;
11123fail:
11124 return NULL;
11125}
11126
11127
11128SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11129 PyObject *resultobj = 0;
11130 wxRegion *arg1 = (wxRegion *) 0 ;
11131 wxRect *arg2 = 0 ;
11132 bool result;
11133 void *argp1 = 0 ;
11134 int res1 = 0 ;
11135 wxRect temp2 ;
11136 PyObject * obj0 = 0 ;
11137 PyObject * obj1 = 0 ;
11138 char * kwnames[] = {
11139 (char *) "self",(char *) "rect", NULL
11140 };
11141
11142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11144 if (!SWIG_IsOK(res1)) {
11145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11146 }
11147 arg1 = reinterpret_cast< wxRegion * >(argp1);
11148 {
11149 arg2 = &temp2;
11150 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11151 }
11152 {
11153 PyThreadState* __tstate = wxPyBeginAllowThreads();
11154 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11155 wxPyEndAllowThreads(__tstate);
11156 if (PyErr_Occurred()) SWIG_fail;
11157 }
11158 {
11159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11160 }
11161 return resultobj;
11162fail:
11163 return NULL;
11164}
11165
11166
11167SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11168 PyObject *resultobj = 0;
11169 wxRegion *arg1 = (wxRegion *) 0 ;
11170 wxRegion *arg2 = 0 ;
11171 bool result;
11172 void *argp1 = 0 ;
11173 int res1 = 0 ;
11174 void *argp2 = 0 ;
11175 int res2 = 0 ;
11176 PyObject * obj0 = 0 ;
11177 PyObject * obj1 = 0 ;
11178 char * kwnames[] = {
11179 (char *) "self",(char *) "region", NULL
11180 };
11181
11182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11184 if (!SWIG_IsOK(res1)) {
11185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11186 }
11187 arg1 = reinterpret_cast< wxRegion * >(argp1);
11188 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11189 if (!SWIG_IsOK(res2)) {
11190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11191 }
11192 if (!argp2) {
11193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11194 }
11195 arg2 = reinterpret_cast< wxRegion * >(argp2);
11196 {
11197 PyThreadState* __tstate = wxPyBeginAllowThreads();
11198 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11199 wxPyEndAllowThreads(__tstate);
11200 if (PyErr_Occurred()) SWIG_fail;
11201 }
11202 {
11203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11204 }
11205 return resultobj;
11206fail:
11207 return NULL;
11208}
11209
11210
11211SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11212 PyObject *resultobj = 0;
11213 wxRegion *arg1 = (wxRegion *) 0 ;
11214 int arg2 ;
11215 int arg3 ;
11216 int arg4 ;
11217 int arg5 ;
11218 bool result;
11219 void *argp1 = 0 ;
11220 int res1 = 0 ;
11221 int val2 ;
11222 int ecode2 = 0 ;
11223 int val3 ;
11224 int ecode3 = 0 ;
11225 int val4 ;
11226 int ecode4 = 0 ;
11227 int val5 ;
11228 int ecode5 = 0 ;
11229 PyObject * obj0 = 0 ;
11230 PyObject * obj1 = 0 ;
11231 PyObject * obj2 = 0 ;
11232 PyObject * obj3 = 0 ;
11233 PyObject * obj4 = 0 ;
11234 char * kwnames[] = {
11235 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11236 };
11237
11238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11240 if (!SWIG_IsOK(res1)) {
11241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11242 }
11243 arg1 = reinterpret_cast< wxRegion * >(argp1);
11244 ecode2 = SWIG_AsVal_int(obj1, &val2);
11245 if (!SWIG_IsOK(ecode2)) {
11246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11247 }
11248 arg2 = static_cast< int >(val2);
11249 ecode3 = SWIG_AsVal_int(obj2, &val3);
11250 if (!SWIG_IsOK(ecode3)) {
11251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11252 }
11253 arg3 = static_cast< int >(val3);
11254 ecode4 = SWIG_AsVal_int(obj3, &val4);
11255 if (!SWIG_IsOK(ecode4)) {
11256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11257 }
11258 arg4 = static_cast< int >(val4);
11259 ecode5 = SWIG_AsVal_int(obj4, &val5);
11260 if (!SWIG_IsOK(ecode5)) {
11261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11262 }
11263 arg5 = static_cast< int >(val5);
11264 {
11265 PyThreadState* __tstate = wxPyBeginAllowThreads();
11266 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 {
11271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11272 }
11273 return resultobj;
11274fail:
11275 return NULL;
11276}
11277
11278
11279SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11280 PyObject *resultobj = 0;
11281 wxRegion *arg1 = (wxRegion *) 0 ;
11282 wxRect *arg2 = 0 ;
11283 bool result;
11284 void *argp1 = 0 ;
11285 int res1 = 0 ;
11286 wxRect temp2 ;
11287 PyObject * obj0 = 0 ;
11288 PyObject * obj1 = 0 ;
11289 char * kwnames[] = {
11290 (char *) "self",(char *) "rect", NULL
11291 };
11292
11293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11295 if (!SWIG_IsOK(res1)) {
11296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11297 }
11298 arg1 = reinterpret_cast< wxRegion * >(argp1);
11299 {
11300 arg2 = &temp2;
11301 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11302 }
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11306 wxPyEndAllowThreads(__tstate);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 }
11309 {
11310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11311 }
11312 return resultobj;
11313fail:
11314 return NULL;
11315}
11316
11317
11318SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11319 PyObject *resultobj = 0;
11320 wxRegion *arg1 = (wxRegion *) 0 ;
11321 wxRegion *arg2 = 0 ;
11322 bool result;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 void *argp2 = 0 ;
11326 int res2 = 0 ;
11327 PyObject * obj0 = 0 ;
11328 PyObject * obj1 = 0 ;
11329 char * kwnames[] = {
11330 (char *) "self",(char *) "region", NULL
11331 };
11332
11333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11335 if (!SWIG_IsOK(res1)) {
11336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11337 }
11338 arg1 = reinterpret_cast< wxRegion * >(argp1);
11339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11340 if (!SWIG_IsOK(res2)) {
11341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11342 }
11343 if (!argp2) {
11344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11345 }
11346 arg2 = reinterpret_cast< wxRegion * >(argp2);
11347 {
11348 PyThreadState* __tstate = wxPyBeginAllowThreads();
11349 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11350 wxPyEndAllowThreads(__tstate);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 }
11353 {
11354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11355 }
11356 return resultobj;
11357fail:
11358 return NULL;
11359}
11360
11361
11362SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11363 PyObject *resultobj = 0;
11364 wxRegion *arg1 = (wxRegion *) 0 ;
11365 int arg2 ;
11366 int arg3 ;
11367 int arg4 ;
11368 int arg5 ;
11369 bool result;
11370 void *argp1 = 0 ;
11371 int res1 = 0 ;
11372 int val2 ;
11373 int ecode2 = 0 ;
11374 int val3 ;
11375 int ecode3 = 0 ;
11376 int val4 ;
11377 int ecode4 = 0 ;
11378 int val5 ;
11379 int ecode5 = 0 ;
11380 PyObject * obj0 = 0 ;
11381 PyObject * obj1 = 0 ;
11382 PyObject * obj2 = 0 ;
11383 PyObject * obj3 = 0 ;
11384 PyObject * obj4 = 0 ;
11385 char * kwnames[] = {
11386 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11387 };
11388
11389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11391 if (!SWIG_IsOK(res1)) {
11392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11393 }
11394 arg1 = reinterpret_cast< wxRegion * >(argp1);
11395 ecode2 = SWIG_AsVal_int(obj1, &val2);
11396 if (!SWIG_IsOK(ecode2)) {
11397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11398 }
11399 arg2 = static_cast< int >(val2);
11400 ecode3 = SWIG_AsVal_int(obj2, &val3);
11401 if (!SWIG_IsOK(ecode3)) {
11402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11403 }
11404 arg3 = static_cast< int >(val3);
11405 ecode4 = SWIG_AsVal_int(obj3, &val4);
11406 if (!SWIG_IsOK(ecode4)) {
11407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11408 }
11409 arg4 = static_cast< int >(val4);
11410 ecode5 = SWIG_AsVal_int(obj4, &val5);
11411 if (!SWIG_IsOK(ecode5)) {
11412 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11413 }
11414 arg5 = static_cast< int >(val5);
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 {
11422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11423 }
11424 return resultobj;
11425fail:
11426 return NULL;
11427}
11428
11429
11430SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11431 PyObject *resultobj = 0;
11432 wxRegion *arg1 = (wxRegion *) 0 ;
11433 wxRect *arg2 = 0 ;
11434 bool result;
11435 void *argp1 = 0 ;
11436 int res1 = 0 ;
11437 wxRect temp2 ;
11438 PyObject * obj0 = 0 ;
11439 PyObject * obj1 = 0 ;
11440 char * kwnames[] = {
11441 (char *) "self",(char *) "rect", NULL
11442 };
11443
11444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11446 if (!SWIG_IsOK(res1)) {
11447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11448 }
11449 arg1 = reinterpret_cast< wxRegion * >(argp1);
11450 {
11451 arg2 = &temp2;
11452 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11453 }
11454 {
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 {
11461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11462 }
11463 return resultobj;
11464fail:
11465 return NULL;
11466}
11467
11468
11469SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11470 PyObject *resultobj = 0;
11471 wxRegion *arg1 = (wxRegion *) 0 ;
11472 wxRegion *arg2 = 0 ;
11473 bool result;
11474 void *argp1 = 0 ;
11475 int res1 = 0 ;
11476 void *argp2 = 0 ;
11477 int res2 = 0 ;
11478 PyObject * obj0 = 0 ;
11479 PyObject * obj1 = 0 ;
11480 char * kwnames[] = {
11481 (char *) "self",(char *) "region", NULL
11482 };
11483
11484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11486 if (!SWIG_IsOK(res1)) {
11487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11488 }
11489 arg1 = reinterpret_cast< wxRegion * >(argp1);
11490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11491 if (!SWIG_IsOK(res2)) {
11492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11493 }
11494 if (!argp2) {
11495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11496 }
11497 arg2 = reinterpret_cast< wxRegion * >(argp2);
11498 {
11499 PyThreadState* __tstate = wxPyBeginAllowThreads();
11500 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11501 wxPyEndAllowThreads(__tstate);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 {
11505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11506 }
11507 return resultobj;
11508fail:
11509 return NULL;
d55e5bfc
RD
11510}
11511
11512
1bd55598
RD
11513SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11514 PyObject *resultobj = 0;
11515 wxRegion *arg1 = (wxRegion *) 0 ;
11516 SwigValueWrapper<wxBitmap > result;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 PyObject *swig_obj[1] ;
11520
11521 if (!args) SWIG_fail;
11522 swig_obj[0] = args;
11523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11524 if (!SWIG_IsOK(res1)) {
11525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11526 }
11527 arg1 = reinterpret_cast< wxRegion * >(argp1);
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 result = (arg1)->ConvertToBitmap();
11531 wxPyEndAllowThreads(__tstate);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11535 return resultobj;
11536fail:
11537 return NULL;
11538}
11539
11540
11541SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11542 PyObject *resultobj = 0;
11543 wxRegion *arg1 = (wxRegion *) 0 ;
11544 wxBitmap *arg2 = 0 ;
11545 bool result;
11546 void *argp1 = 0 ;
11547 int res1 = 0 ;
11548 void *argp2 = 0 ;
11549 int res2 = 0 ;
11550 PyObject * obj0 = 0 ;
11551 PyObject * obj1 = 0 ;
11552 char * kwnames[] = {
11553 (char *) "self",(char *) "bmp", NULL
11554 };
11555
11556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11558 if (!SWIG_IsOK(res1)) {
11559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11560 }
11561 arg1 = reinterpret_cast< wxRegion * >(argp1);
11562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11563 if (!SWIG_IsOK(res2)) {
11564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11565 }
11566 if (!argp2) {
11567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11568 }
11569 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11570 {
11571 PyThreadState* __tstate = wxPyBeginAllowThreads();
11572 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11573 wxPyEndAllowThreads(__tstate);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 {
11577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11578 }
11579 return resultobj;
11580fail:
11581 return NULL;
11582}
11583
11584
11585SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj = 0;
11587 wxRegion *arg1 = (wxRegion *) 0 ;
11588 wxBitmap *arg2 = 0 ;
11589 wxColour *arg3 = 0 ;
11590 int arg4 = (int) 0 ;
11591 bool result;
11592 void *argp1 = 0 ;
11593 int res1 = 0 ;
11594 void *argp2 = 0 ;
11595 int res2 = 0 ;
11596 wxColour temp3 ;
11597 int val4 ;
11598 int ecode4 = 0 ;
11599 PyObject * obj0 = 0 ;
11600 PyObject * obj1 = 0 ;
11601 PyObject * obj2 = 0 ;
11602 PyObject * obj3 = 0 ;
11603 char * kwnames[] = {
11604 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11605 };
11606
11607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11609 if (!SWIG_IsOK(res1)) {
11610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11611 }
11612 arg1 = reinterpret_cast< wxRegion * >(argp1);
11613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11614 if (!SWIG_IsOK(res2)) {
11615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11616 }
11617 if (!argp2) {
11618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11619 }
11620 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11621 {
11622 arg3 = &temp3;
11623 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11624 }
11625 if (obj3) {
11626 ecode4 = SWIG_AsVal_int(obj3, &val4);
11627 if (!SWIG_IsOK(ecode4)) {
11628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11629 }
11630 arg4 = static_cast< int >(val4);
11631 }
11632 {
11633 PyThreadState* __tstate = wxPyBeginAllowThreads();
11634 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11635 wxPyEndAllowThreads(__tstate);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 }
11638 {
11639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11640 }
11641 return resultobj;
11642fail:
11643 return NULL;
d55e5bfc
RD
11644}
11645
11646
1bd55598
RD
11647SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11648 PyObject *obj;
11649 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11650 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11651 return SWIG_Py_Void();
d55e5bfc
RD
11652}
11653
1bd55598
RD
11654SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11655 return SWIG_Python_InitShadowInstance(args);
11656}
d55e5bfc 11657
1bd55598
RD
11658SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11659 PyObject *resultobj = 0;
11660 wxRegion *arg1 = 0 ;
11661 wxRegionIterator *result = 0 ;
11662 void *argp1 = 0 ;
11663 int res1 = 0 ;
11664 PyObject * obj0 = 0 ;
11665 char * kwnames[] = {
11666 (char *) "region", NULL
11667 };
11668
11669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11670 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11671 if (!SWIG_IsOK(res1)) {
11672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11673 }
11674 if (!argp1) {
11675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11676 }
11677 arg1 = reinterpret_cast< wxRegion * >(argp1);
11678 {
11679 if (!wxPyCheckForApp()) SWIG_fail;
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11682 wxPyEndAllowThreads(__tstate);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 }
11685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11686 return resultobj;
11687fail:
11688 return NULL;
d55e5bfc
RD
11689}
11690
11691
1bd55598
RD
11692SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11693 PyObject *resultobj = 0;
11694 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11695 void *argp1 = 0 ;
11696 int res1 = 0 ;
11697 PyObject *swig_obj[1] ;
11698
11699 if (!args) SWIG_fail;
11700 swig_obj[0] = args;
11701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11702 if (!SWIG_IsOK(res1)) {
11703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11704 }
11705 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11706 {
11707 PyThreadState* __tstate = wxPyBeginAllowThreads();
11708 delete arg1;
d55e5bfc 11709
1bd55598
RD
11710 wxPyEndAllowThreads(__tstate);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 resultobj = SWIG_Py_Void();
11714 return resultobj;
11715fail:
11716 return NULL;
d55e5bfc
RD
11717}
11718
11719
1bd55598
RD
11720SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11721 PyObject *resultobj = 0;
11722 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11723 int result;
11724 void *argp1 = 0 ;
11725 int res1 = 0 ;
11726 PyObject *swig_obj[1] ;
11727
11728 if (!args) SWIG_fail;
11729 swig_obj[0] = args;
11730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11731 if (!SWIG_IsOK(res1)) {
11732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11733 }
11734 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11735 {
11736 PyThreadState* __tstate = wxPyBeginAllowThreads();
11737 result = (int)(arg1)->GetX();
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 resultobj = SWIG_From_int(static_cast< int >(result));
11742 return resultobj;
11743fail:
11744 return NULL;
d55e5bfc
RD
11745}
11746
11747
1bd55598
RD
11748SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11749 PyObject *resultobj = 0;
11750 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11751 int result;
11752 void *argp1 = 0 ;
11753 int res1 = 0 ;
11754 PyObject *swig_obj[1] ;
11755
11756 if (!args) SWIG_fail;
11757 swig_obj[0] = args;
11758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11759 if (!SWIG_IsOK(res1)) {
11760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11761 }
11762 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11763 {
11764 PyThreadState* __tstate = wxPyBeginAllowThreads();
11765 result = (int)(arg1)->GetY();
11766 wxPyEndAllowThreads(__tstate);
11767 if (PyErr_Occurred()) SWIG_fail;
11768 }
11769 resultobj = SWIG_From_int(static_cast< int >(result));
11770 return resultobj;
11771fail:
11772 return NULL;
d55e5bfc
RD
11773}
11774
11775
1bd55598
RD
11776SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11777 PyObject *resultobj = 0;
11778 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11779 int result;
11780 void *argp1 = 0 ;
11781 int res1 = 0 ;
11782 PyObject *swig_obj[1] ;
11783
11784 if (!args) SWIG_fail;
11785 swig_obj[0] = args;
11786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11787 if (!SWIG_IsOK(res1)) {
11788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11789 }
11790 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 result = (int)(arg1)->GetW();
11794 wxPyEndAllowThreads(__tstate);
11795 if (PyErr_Occurred()) SWIG_fail;
11796 }
11797 resultobj = SWIG_From_int(static_cast< int >(result));
11798 return resultobj;
11799fail:
11800 return NULL;
d55e5bfc
RD
11801}
11802
11803
1bd55598
RD
11804SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11805 PyObject *resultobj = 0;
11806 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11807 int result;
11808 void *argp1 = 0 ;
11809 int res1 = 0 ;
11810 PyObject *swig_obj[1] ;
11811
11812 if (!args) SWIG_fail;
11813 swig_obj[0] = args;
11814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11815 if (!SWIG_IsOK(res1)) {
11816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11817 }
11818 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11819 {
11820 PyThreadState* __tstate = wxPyBeginAllowThreads();
11821 result = (int)(arg1)->GetWidth();
11822 wxPyEndAllowThreads(__tstate);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 }
11825 resultobj = SWIG_From_int(static_cast< int >(result));
11826 return resultobj;
11827fail:
11828 return NULL;
d55e5bfc
RD
11829}
11830
11831
1bd55598
RD
11832SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11833 PyObject *resultobj = 0;
11834 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11835 int result;
11836 void *argp1 = 0 ;
11837 int res1 = 0 ;
11838 PyObject *swig_obj[1] ;
11839
11840 if (!args) SWIG_fail;
11841 swig_obj[0] = args;
11842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11843 if (!SWIG_IsOK(res1)) {
11844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11845 }
11846 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 result = (int)(arg1)->GetH();
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 resultobj = SWIG_From_int(static_cast< int >(result));
11854 return resultobj;
11855fail:
11856 return NULL;
d07096ad
RD
11857}
11858
11859
1bd55598
RD
11860SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11861 PyObject *resultobj = 0;
11862 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11863 int result;
11864 void *argp1 = 0 ;
11865 int res1 = 0 ;
11866 PyObject *swig_obj[1] ;
11867
11868 if (!args) SWIG_fail;
11869 swig_obj[0] = args;
11870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11871 if (!SWIG_IsOK(res1)) {
11872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11873 }
11874 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = (int)(arg1)->GetHeight();
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 resultobj = SWIG_From_int(static_cast< int >(result));
11882 return resultobj;
11883fail:
11884 return NULL;
d55e5bfc
RD
11885}
11886
11887
1bd55598
RD
11888SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11889 PyObject *resultobj = 0;
11890 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11891 wxRect result;
11892 void *argp1 = 0 ;
11893 int res1 = 0 ;
11894 PyObject *swig_obj[1] ;
11895
11896 if (!args) SWIG_fail;
11897 swig_obj[0] = args;
11898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11899 if (!SWIG_IsOK(res1)) {
11900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11901 }
11902 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 result = (arg1)->GetRect();
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11910 return resultobj;
11911fail:
11912 return NULL;
d55e5bfc
RD
11913}
11914
11915
1bd55598
RD
11916SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11917 PyObject *resultobj = 0;
11918 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11919 bool result;
11920 void *argp1 = 0 ;
11921 int res1 = 0 ;
11922 PyObject *swig_obj[1] ;
11923
11924 if (!args) SWIG_fail;
11925 swig_obj[0] = args;
11926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11927 if (!SWIG_IsOK(res1)) {
11928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11929 }
11930 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11931 {
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 result = (bool)(arg1)->HaveRects();
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 {
11938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11939 }
11940 return resultobj;
11941fail:
11942 return NULL;
d55e5bfc
RD
11943}
11944
11945
1bd55598
RD
11946SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11947 PyObject *resultobj = 0;
11948 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11949 void *argp1 = 0 ;
11950 int res1 = 0 ;
11951 PyObject *swig_obj[1] ;
11952
11953 if (!args) SWIG_fail;
11954 swig_obj[0] = args;
11955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11956 if (!SWIG_IsOK(res1)) {
11957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11958 }
11959 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 (arg1)->Reset();
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 resultobj = SWIG_Py_Void();
11967 return resultobj;
11968fail:
11969 return NULL;
d55e5bfc
RD
11970}
11971
11972
1bd55598
RD
11973SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11974 PyObject *resultobj = 0;
11975 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 PyObject *swig_obj[1] ;
11979
11980 if (!args) SWIG_fail;
11981 swig_obj[0] = args;
11982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11985 }
11986 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 wxRegionIterator_Next(arg1);
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 resultobj = SWIG_Py_Void();
11994 return resultobj;
11995fail:
11996 return NULL;
070c48b4
RD
11997}
11998
11999
1bd55598
RD
12000SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12001 PyObject *resultobj = 0;
12002 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12003 bool result;
12004 void *argp1 = 0 ;
12005 int res1 = 0 ;
12006 PyObject *swig_obj[1] ;
12007
12008 if (!args) SWIG_fail;
12009 swig_obj[0] = args;
12010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12013 }
12014 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12015 {
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 result = (bool)wxRegionIterator___nonzero__(arg1);
12018 wxPyEndAllowThreads(__tstate);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 {
12022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12023 }
12024 return resultobj;
12025fail:
12026 return NULL;
d55e5bfc
RD
12027}
12028
12029
1bd55598
RD
12030SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12031 PyObject *obj;
12032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12033 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12034 return SWIG_Py_Void();
d55e5bfc
RD
12035}
12036
1bd55598
RD
12037SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12038 return SWIG_Python_InitShadowInstance(args);
12039}
d55e5bfc 12040
1bd55598
RD
12041SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12042 PyObject *resultobj = 0;
12043 wxNativeFontInfo *result = 0 ;
12044
12045 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12053 return resultobj;
12054fail:
12055 return NULL;
d55e5bfc
RD
12056}
12057
12058
1bd55598
RD
12059SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12060 PyObject *resultobj = 0;
12061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 PyObject *swig_obj[1] ;
12065
12066 if (!args) SWIG_fail;
12067 swig_obj[0] = args;
12068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12071 }
12072 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 delete arg1;
d55e5bfc 12076
1bd55598
RD
12077 wxPyEndAllowThreads(__tstate);
12078 if (PyErr_Occurred()) SWIG_fail;
12079 }
12080 resultobj = SWIG_Py_Void();
12081 return resultobj;
12082fail:
12083 return NULL;
d55e5bfc
RD
12084}
12085
12086
1bd55598
RD
12087SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12088 PyObject *resultobj = 0;
12089 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12090 void *argp1 = 0 ;
12091 int res1 = 0 ;
12092 PyObject *swig_obj[1] ;
12093
12094 if (!args) SWIG_fail;
12095 swig_obj[0] = args;
12096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12099 }
12100 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 (arg1)->Init();
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 resultobj = SWIG_Py_Void();
12108 return resultobj;
12109fail:
12110 return NULL;
12111}
12112
12113
12114SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj = 0;
12116 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12117 wxFont *arg2 = 0 ;
12118 void *argp1 = 0 ;
12119 int res1 = 0 ;
12120 void *argp2 = 0 ;
12121 int res2 = 0 ;
12122 PyObject * obj0 = 0 ;
12123 PyObject * obj1 = 0 ;
12124 char * kwnames[] = {
12125 (char *) "self",(char *) "font", NULL
12126 };
12127
12128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12130 if (!SWIG_IsOK(res1)) {
12131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12132 }
12133 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12135 if (!SWIG_IsOK(res2)) {
12136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12137 }
12138 if (!argp2) {
12139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12140 }
12141 arg2 = reinterpret_cast< wxFont * >(argp2);
12142 {
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 (arg1)->InitFromFont((wxFont const &)*arg2);
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 resultobj = SWIG_Py_Void();
12149 return resultobj;
12150fail:
12151 return NULL;
d55e5bfc
RD
12152}
12153
12154
1bd55598
RD
12155SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12156 PyObject *resultobj = 0;
12157 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12158 int result;
12159 void *argp1 = 0 ;
12160 int res1 = 0 ;
12161 PyObject *swig_obj[1] ;
12162
12163 if (!args) SWIG_fail;
12164 swig_obj[0] = args;
12165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12166 if (!SWIG_IsOK(res1)) {
12167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12168 }
12169 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12170 {
12171 PyThreadState* __tstate = wxPyBeginAllowThreads();
12172 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 resultobj = SWIG_From_int(static_cast< int >(result));
12177 return resultobj;
12178fail:
12179 return NULL;
d55e5bfc
RD
12180}
12181
12182
1bd55598
RD
12183SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12184 PyObject *resultobj = 0;
12185 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12186 wxFontStyle result;
12187 void *argp1 = 0 ;
12188 int res1 = 0 ;
12189 PyObject *swig_obj[1] ;
12190
12191 if (!args) SWIG_fail;
12192 swig_obj[0] = args;
12193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12194 if (!SWIG_IsOK(res1)) {
12195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12196 }
12197 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12198 {
12199 PyThreadState* __tstate = wxPyBeginAllowThreads();
12200 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 resultobj = SWIG_From_int(static_cast< int >(result));
12205 return resultobj;
12206fail:
12207 return NULL;
d55e5bfc
RD
12208}
12209
12210
1bd55598
RD
12211SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12212 PyObject *resultobj = 0;
12213 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12214 wxFontWeight result;
12215 void *argp1 = 0 ;
12216 int res1 = 0 ;
12217 PyObject *swig_obj[1] ;
12218
12219 if (!args) SWIG_fail;
12220 swig_obj[0] = args;
12221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12222 if (!SWIG_IsOK(res1)) {
12223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12224 }
12225 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12226 {
12227 PyThreadState* __tstate = wxPyBeginAllowThreads();
12228 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 resultobj = SWIG_From_int(static_cast< int >(result));
12233 return resultobj;
12234fail:
12235 return NULL;
d55e5bfc
RD
12236}
12237
12238
1bd55598
RD
12239SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12240 PyObject *resultobj = 0;
12241 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12242 bool result;
12243 void *argp1 = 0 ;
12244 int res1 = 0 ;
12245 PyObject *swig_obj[1] ;
12246
12247 if (!args) SWIG_fail;
12248 swig_obj[0] = args;
12249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12250 if (!SWIG_IsOK(res1)) {
12251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12252 }
12253 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12254 {
12255 PyThreadState* __tstate = wxPyBeginAllowThreads();
12256 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 {
12261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12262 }
12263 return resultobj;
12264fail:
12265 return NULL;
d55e5bfc
RD
12266}
12267
12268
1bd55598
RD
12269SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12272 wxString result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12282 }
12283 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291#if wxUSE_UNICODE
12292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12293#else
12294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12295#endif
12296 }
12297 return resultobj;
12298fail:
12299 return NULL;
d55e5bfc
RD
12300}
12301
12302
1bd55598
RD
12303SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12306 wxFontFamily result;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 PyObject *swig_obj[1] ;
12310
12311 if (!args) SWIG_fail;
12312 swig_obj[0] = args;
12313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12314 if (!SWIG_IsOK(res1)) {
12315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12316 }
12317 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 resultobj = SWIG_From_int(static_cast< int >(result));
12325 return resultobj;
12326fail:
12327 return NULL;
d55e5bfc
RD
12328}
12329
12330
1bd55598
RD
12331SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12334 wxFontEncoding result;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 PyObject *swig_obj[1] ;
12338
12339 if (!args) SWIG_fail;
12340 swig_obj[0] = args;
12341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12344 }
12345 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 resultobj = SWIG_From_int(static_cast< int >(result));
12353 return resultobj;
12354fail:
12355 return NULL;
12356}
12357
12358
12359SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12360 PyObject *resultobj = 0;
12361 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12362 int arg2 ;
12363 void *argp1 = 0 ;
12364 int res1 = 0 ;
12365 int val2 ;
12366 int ecode2 = 0 ;
12367 PyObject * obj0 = 0 ;
12368 PyObject * obj1 = 0 ;
12369 char * kwnames[] = {
12370 (char *) "self",(char *) "pointsize", NULL
12371 };
12372
12373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12375 if (!SWIG_IsOK(res1)) {
12376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12377 }
12378 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12379 ecode2 = SWIG_AsVal_int(obj1, &val2);
12380 if (!SWIG_IsOK(ecode2)) {
12381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12382 }
12383 arg2 = static_cast< int >(val2);
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 (arg1)->SetPointSize(arg2);
12387 wxPyEndAllowThreads(__tstate);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 }
12390 resultobj = SWIG_Py_Void();
12391 return resultobj;
12392fail:
12393 return NULL;
12394}
12395
12396
12397SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = 0;
12399 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12400 wxFontStyle arg2 ;
12401 void *argp1 = 0 ;
12402 int res1 = 0 ;
12403 int val2 ;
12404 int ecode2 = 0 ;
12405 PyObject * obj0 = 0 ;
12406 PyObject * obj1 = 0 ;
12407 char * kwnames[] = {
12408 (char *) "self",(char *) "style", NULL
12409 };
12410
12411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12415 }
12416 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12417 ecode2 = SWIG_AsVal_int(obj1, &val2);
12418 if (!SWIG_IsOK(ecode2)) {
12419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12420 }
12421 arg2 = static_cast< wxFontStyle >(val2);
12422 {
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
12424 (arg1)->SetStyle(arg2);
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 resultobj = SWIG_Py_Void();
12429 return resultobj;
12430fail:
12431 return NULL;
12432}
12433
12434
12435SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12436 PyObject *resultobj = 0;
12437 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12438 wxFontWeight arg2 ;
12439 void *argp1 = 0 ;
12440 int res1 = 0 ;
12441 int val2 ;
12442 int ecode2 = 0 ;
12443 PyObject * obj0 = 0 ;
12444 PyObject * obj1 = 0 ;
12445 char * kwnames[] = {
12446 (char *) "self",(char *) "weight", NULL
12447 };
12448
12449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12451 if (!SWIG_IsOK(res1)) {
12452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12453 }
12454 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12455 ecode2 = SWIG_AsVal_int(obj1, &val2);
12456 if (!SWIG_IsOK(ecode2)) {
12457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12458 }
12459 arg2 = static_cast< wxFontWeight >(val2);
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 (arg1)->SetWeight(arg2);
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 }
12466 resultobj = SWIG_Py_Void();
12467 return resultobj;
12468fail:
12469 return NULL;
12470}
12471
12472
12473SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12474 PyObject *resultobj = 0;
12475 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12476 bool arg2 ;
12477 void *argp1 = 0 ;
12478 int res1 = 0 ;
12479 bool val2 ;
12480 int ecode2 = 0 ;
12481 PyObject * obj0 = 0 ;
12482 PyObject * obj1 = 0 ;
12483 char * kwnames[] = {
12484 (char *) "self",(char *) "underlined", NULL
12485 };
12486
12487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12491 }
12492 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12493 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12494 if (!SWIG_IsOK(ecode2)) {
12495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12496 }
12497 arg2 = static_cast< bool >(val2);
12498 {
12499 PyThreadState* __tstate = wxPyBeginAllowThreads();
12500 (arg1)->SetUnderlined(arg2);
12501 wxPyEndAllowThreads(__tstate);
12502 if (PyErr_Occurred()) SWIG_fail;
12503 }
12504 resultobj = SWIG_Py_Void();
12505 return resultobj;
12506fail:
12507 return NULL;
12508}
12509
12510
12511SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12512 PyObject *resultobj = 0;
12513 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12514 wxString arg2 ;
704eda0c 12515 bool result;
1bd55598
RD
12516 void *argp1 = 0 ;
12517 int res1 = 0 ;
12518 PyObject * obj0 = 0 ;
12519 PyObject * obj1 = 0 ;
12520 char * kwnames[] = {
12521 (char *) "self",(char *) "facename", NULL
12522 };
12523
12524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12526 if (!SWIG_IsOK(res1)) {
12527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12528 }
12529 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12530 {
12531 wxString* sptr = wxString_in_helper(obj1);
12532 if (sptr == NULL) SWIG_fail;
12533 arg2 = *sptr;
12534 delete sptr;
12535 }
12536 {
12537 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12538 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12539 wxPyEndAllowThreads(__tstate);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 }
704eda0c
RD
12542 {
12543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12544 }
1bd55598
RD
12545 return resultobj;
12546fail:
12547 return NULL;
12548}
12549
12550
12551SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12552 PyObject *resultobj = 0;
12553 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12554 wxFontFamily arg2 ;
12555 void *argp1 = 0 ;
12556 int res1 = 0 ;
12557 int val2 ;
12558 int ecode2 = 0 ;
12559 PyObject * obj0 = 0 ;
12560 PyObject * obj1 = 0 ;
12561 char * kwnames[] = {
12562 (char *) "self",(char *) "family", NULL
12563 };
12564
12565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12569 }
12570 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12571 ecode2 = SWIG_AsVal_int(obj1, &val2);
12572 if (!SWIG_IsOK(ecode2)) {
12573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12574 }
12575 arg2 = static_cast< wxFontFamily >(val2);
12576 {
12577 PyThreadState* __tstate = wxPyBeginAllowThreads();
12578 (arg1)->SetFamily(arg2);
12579 wxPyEndAllowThreads(__tstate);
12580 if (PyErr_Occurred()) SWIG_fail;
12581 }
12582 resultobj = SWIG_Py_Void();
12583 return resultobj;
12584fail:
12585 return NULL;
12586}
12587
12588
12589SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12590 PyObject *resultobj = 0;
12591 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12592 wxFontEncoding arg2 ;
12593 void *argp1 = 0 ;
12594 int res1 = 0 ;
12595 int val2 ;
12596 int ecode2 = 0 ;
12597 PyObject * obj0 = 0 ;
12598 PyObject * obj1 = 0 ;
12599 char * kwnames[] = {
12600 (char *) "self",(char *) "encoding", NULL
12601 };
12602
12603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12605 if (!SWIG_IsOK(res1)) {
12606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12607 }
12608 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12609 ecode2 = SWIG_AsVal_int(obj1, &val2);
12610 if (!SWIG_IsOK(ecode2)) {
12611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12612 }
12613 arg2 = static_cast< wxFontEncoding >(val2);
12614 {
12615 PyThreadState* __tstate = wxPyBeginAllowThreads();
12616 (arg1)->SetEncoding(arg2);
12617 wxPyEndAllowThreads(__tstate);
12618 if (PyErr_Occurred()) SWIG_fail;
12619 }
12620 resultobj = SWIG_Py_Void();
12621 return resultobj;
12622fail:
12623 return NULL;
12624}
12625
12626
12627SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12628 PyObject *resultobj = 0;
12629 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12630 wxString *arg2 = 0 ;
12631 bool result;
12632 void *argp1 = 0 ;
12633 int res1 = 0 ;
12634 bool temp2 = false ;
12635 PyObject * obj0 = 0 ;
12636 PyObject * obj1 = 0 ;
12637 char * kwnames[] = {
12638 (char *) "self",(char *) "s", NULL
12639 };
12640
12641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12643 if (!SWIG_IsOK(res1)) {
12644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12645 }
12646 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12647 {
12648 arg2 = wxString_in_helper(obj1);
12649 if (arg2 == NULL) SWIG_fail;
12650 temp2 = true;
12651 }
12652 {
12653 PyThreadState* __tstate = wxPyBeginAllowThreads();
12654 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12655 wxPyEndAllowThreads(__tstate);
12656 if (PyErr_Occurred()) SWIG_fail;
12657 }
12658 {
12659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12660 }
12661 {
12662 if (temp2)
12663 delete arg2;
12664 }
12665 return resultobj;
12666fail:
12667 {
12668 if (temp2)
12669 delete arg2;
12670 }
12671 return NULL;
d55e5bfc
RD
12672}
12673
12674
1bd55598
RD
12675SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12676 PyObject *resultobj = 0;
12677 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12678 wxString result;
12679 void *argp1 = 0 ;
12680 int res1 = 0 ;
12681 PyObject *swig_obj[1] ;
12682
12683 if (!args) SWIG_fail;
12684 swig_obj[0] = args;
12685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12686 if (!SWIG_IsOK(res1)) {
12687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12688 }
12689 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12690 {
12691 PyThreadState* __tstate = wxPyBeginAllowThreads();
12692 result = ((wxNativeFontInfo const *)arg1)->ToString();
12693 wxPyEndAllowThreads(__tstate);
12694 if (PyErr_Occurred()) SWIG_fail;
12695 }
12696 {
12697#if wxUSE_UNICODE
12698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12699#else
12700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12701#endif
12702 }
12703 return resultobj;
12704fail:
12705 return NULL;
d55e5bfc
RD
12706}
12707
12708
1bd55598
RD
12709SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12710 PyObject *resultobj = 0;
12711 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12712 wxString result;
12713 void *argp1 = 0 ;
12714 int res1 = 0 ;
12715 PyObject *swig_obj[1] ;
12716
12717 if (!args) SWIG_fail;
12718 swig_obj[0] = args;
12719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12720 if (!SWIG_IsOK(res1)) {
12721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12722 }
12723 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 result = wxNativeFontInfo___str__(arg1);
12727 wxPyEndAllowThreads(__tstate);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 {
12731#if wxUSE_UNICODE
12732 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12733#else
12734 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12735#endif
12736 }
12737 return resultobj;
12738fail:
12739 return NULL;
12740}
12741
12742
12743SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12744 PyObject *resultobj = 0;
12745 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12746 wxString *arg2 = 0 ;
12747 bool result;
12748 void *argp1 = 0 ;
12749 int res1 = 0 ;
12750 bool temp2 = false ;
12751 PyObject * obj0 = 0 ;
12752 PyObject * obj1 = 0 ;
12753 char * kwnames[] = {
12754 (char *) "self",(char *) "s", NULL
12755 };
12756
12757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12759 if (!SWIG_IsOK(res1)) {
12760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12761 }
12762 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12763 {
12764 arg2 = wxString_in_helper(obj1);
12765 if (arg2 == NULL) SWIG_fail;
12766 temp2 = true;
12767 }
12768 {
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 {
12775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12776 }
12777 {
12778 if (temp2)
12779 delete arg2;
12780 }
12781 return resultobj;
12782fail:
12783 {
12784 if (temp2)
12785 delete arg2;
12786 }
12787 return NULL;
d55e5bfc
RD
12788}
12789
12790
1bd55598
RD
12791SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12792 PyObject *resultobj = 0;
12793 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12794 wxString result;
12795 void *argp1 = 0 ;
12796 int res1 = 0 ;
12797 PyObject *swig_obj[1] ;
12798
12799 if (!args) SWIG_fail;
12800 swig_obj[0] = args;
12801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12802 if (!SWIG_IsOK(res1)) {
12803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12804 }
12805 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12806 {
12807 PyThreadState* __tstate = wxPyBeginAllowThreads();
12808 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12809 wxPyEndAllowThreads(__tstate);
12810 if (PyErr_Occurred()) SWIG_fail;
12811 }
12812 {
36ed4f51 12813#if wxUSE_UNICODE
1bd55598 12814 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12815#else
1bd55598 12816 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12817#endif
1bd55598
RD
12818 }
12819 return resultobj;
12820fail:
12821 return NULL;
d55e5bfc
RD
12822}
12823
12824
1bd55598
RD
12825SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12826 PyObject *obj;
12827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12828 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12829 return SWIG_Py_Void();
d55e5bfc
RD
12830}
12831
1bd55598
RD
12832SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12833 return SWIG_Python_InitShadowInstance(args);
12834}
d55e5bfc 12835
1bd55598
RD
12836SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12837 PyObject *resultobj = 0;
12838 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12839 wxString *arg2 = (wxString *) 0 ;
12840 void *argp1 = 0 ;
12841 int res1 = 0 ;
12842 bool temp2 = false ;
12843 PyObject *swig_obj[2] ;
12844
12845 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12847 if (!SWIG_IsOK(res1)) {
12848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12849 }
12850 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12851 {
12852 arg2 = wxString_in_helper(swig_obj[1]);
12853 if (arg2 == NULL) SWIG_fail;
12854 temp2 = true;
12855 }
12856 if (arg1) (arg1)->facename = *arg2;
12857
12858 resultobj = SWIG_Py_Void();
12859 {
12860 if (temp2)
12861 delete arg2;
12862 }
12863 return resultobj;
12864fail:
12865 {
12866 if (temp2)
12867 delete arg2;
12868 }
12869 return NULL;
d55e5bfc
RD
12870}
12871
12872
1bd55598
RD
12873SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12874 PyObject *resultobj = 0;
12875 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12876 wxString *result = 0 ;
12877 void *argp1 = 0 ;
12878 int res1 = 0 ;
12879 PyObject *swig_obj[1] ;
12880
12881 if (!args) SWIG_fail;
12882 swig_obj[0] = args;
12883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12884 if (!SWIG_IsOK(res1)) {
12885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12886 }
12887 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12888 result = (wxString *)& ((arg1)->facename);
12889 {
12890#if wxUSE_UNICODE
12891 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12892#else
12893 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12894#endif
12895 }
12896 return resultobj;
12897fail:
12898 return NULL;
d55e5bfc
RD
12899}
12900
12901
1bd55598
RD
12902SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12903 PyObject *resultobj = 0;
12904 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12905 wxFontEncoding arg2 ;
12906 void *argp1 = 0 ;
12907 int res1 = 0 ;
12908 int val2 ;
12909 int ecode2 = 0 ;
12910 PyObject *swig_obj[2] ;
12911
12912 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12914 if (!SWIG_IsOK(res1)) {
12915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12916 }
12917 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12918 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12919 if (!SWIG_IsOK(ecode2)) {
12920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12921 }
12922 arg2 = static_cast< wxFontEncoding >(val2);
12923 if (arg1) (arg1)->encoding = arg2;
12924
12925 resultobj = SWIG_Py_Void();
12926 return resultobj;
12927fail:
12928 return NULL;
d55e5bfc
RD
12929}
12930
12931
1bd55598
RD
12932SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12933 PyObject *resultobj = 0;
12934 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12935 wxFontEncoding result;
12936 void *argp1 = 0 ;
12937 int res1 = 0 ;
12938 PyObject *swig_obj[1] ;
12939
12940 if (!args) SWIG_fail;
12941 swig_obj[0] = args;
12942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12943 if (!SWIG_IsOK(res1)) {
12944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12945 }
12946 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12947 result = (wxFontEncoding) ((arg1)->encoding);
12948 resultobj = SWIG_From_int(static_cast< int >(result));
12949 return resultobj;
12950fail:
12951 return NULL;
d07096ad
RD
12952}
12953
12954
1bd55598
RD
12955SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12956 PyObject *resultobj = 0;
12957 wxNativeEncodingInfo *result = 0 ;
12958
12959 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12963 wxPyEndAllowThreads(__tstate);
12964 if (PyErr_Occurred()) SWIG_fail;
12965 }
12966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12967 return resultobj;
12968fail:
12969 return NULL;
d55e5bfc
RD
12970}
12971
12972
1bd55598
RD
12973SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12974 PyObject *resultobj = 0;
12975 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12976 void *argp1 = 0 ;
12977 int res1 = 0 ;
12978 PyObject *swig_obj[1] ;
12979
12980 if (!args) SWIG_fail;
12981 swig_obj[0] = args;
12982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12983 if (!SWIG_IsOK(res1)) {
12984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12985 }
12986 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 delete arg1;
d55e5bfc 12990
1bd55598
RD
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 resultobj = SWIG_Py_Void();
12995 return resultobj;
12996fail:
12997 return NULL;
12998}
12999
13000
13001SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13002 PyObject *resultobj = 0;
13003 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13004 wxString *arg2 = 0 ;
13005 bool result;
13006 void *argp1 = 0 ;
13007 int res1 = 0 ;
13008 bool temp2 = false ;
13009 PyObject * obj0 = 0 ;
13010 PyObject * obj1 = 0 ;
13011 char * kwnames[] = {
13012 (char *) "self",(char *) "s", NULL
13013 };
13014
13015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13017 if (!SWIG_IsOK(res1)) {
13018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13019 }
13020 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13021 {
13022 arg2 = wxString_in_helper(obj1);
13023 if (arg2 == NULL) SWIG_fail;
13024 temp2 = true;
13025 }
13026 {
13027 PyThreadState* __tstate = wxPyBeginAllowThreads();
13028 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13029 wxPyEndAllowThreads(__tstate);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 }
13032 {
13033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13034 }
13035 {
13036 if (temp2)
13037 delete arg2;
13038 }
13039 return resultobj;
13040fail:
13041 {
13042 if (temp2)
13043 delete arg2;
13044 }
13045 return NULL;
d55e5bfc
RD
13046}
13047
13048
1bd55598
RD
13049SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13050 PyObject *resultobj = 0;
13051 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13052 wxString result;
13053 void *argp1 = 0 ;
13054 int res1 = 0 ;
13055 PyObject *swig_obj[1] ;
13056
13057 if (!args) SWIG_fail;
13058 swig_obj[0] = args;
13059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13060 if (!SWIG_IsOK(res1)) {
13061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13062 }
13063 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13067 wxPyEndAllowThreads(__tstate);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 {
13071#if wxUSE_UNICODE
13072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13073#else
13074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13075#endif
13076 }
13077 return resultobj;
13078fail:
13079 return NULL;
d55e5bfc
RD
13080}
13081
13082
1bd55598
RD
13083SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13084 PyObject *obj;
13085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13086 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13087 return SWIG_Py_Void();
d55e5bfc
RD
13088}
13089
1bd55598
RD
13090SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13091 return SWIG_Python_InitShadowInstance(args);
13092}
d55e5bfc 13093
1bd55598
RD
13094SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13095 PyObject *resultobj = 0;
13096 wxFontEncoding arg1 ;
13097 wxNativeEncodingInfo *result = 0 ;
13098 int val1 ;
13099 int ecode1 = 0 ;
13100 PyObject * obj0 = 0 ;
13101 char * kwnames[] = {
13102 (char *) "encoding", NULL
13103 };
13104
13105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13106 ecode1 = SWIG_AsVal_int(obj0, &val1);
13107 if (!SWIG_IsOK(ecode1)) {
13108 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13109 }
13110 arg1 = static_cast< wxFontEncoding >(val1);
13111 {
13112 PyThreadState* __tstate = wxPyBeginAllowThreads();
13113 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13114 wxPyEndAllowThreads(__tstate);
13115 if (PyErr_Occurred()) SWIG_fail;
13116 }
13117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13118 return resultobj;
13119fail:
13120 return NULL;
13121}
13122
13123
13124SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13125 PyObject *resultobj = 0;
13126 wxNativeEncodingInfo *arg1 = 0 ;
13127 bool result;
13128 void *argp1 = 0 ;
13129 int res1 = 0 ;
13130 PyObject * obj0 = 0 ;
13131 char * kwnames[] = {
13132 (char *) "info", NULL
13133 };
13134
13135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13136 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13137 if (!SWIG_IsOK(res1)) {
13138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13139 }
13140 if (!argp1) {
13141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13142 }
13143 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13144 {
13145 PyThreadState* __tstate = wxPyBeginAllowThreads();
13146 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13147 wxPyEndAllowThreads(__tstate);
13148 if (PyErr_Occurred()) SWIG_fail;
13149 }
13150 {
13151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13152 }
13153 return resultobj;
13154fail:
13155 return NULL;
d55e5bfc
RD
13156}
13157
13158
1bd55598
RD
13159SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13160 PyObject *resultobj = 0;
13161 wxFontMapper *result = 0 ;
13162
13163 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13164 {
13165 PyThreadState* __tstate = wxPyBeginAllowThreads();
13166 result = (wxFontMapper *)new wxFontMapper();
13167 wxPyEndAllowThreads(__tstate);
13168 if (PyErr_Occurred()) SWIG_fail;
13169 }
13170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13171 return resultobj;
13172fail:
13173 return NULL;
d55e5bfc
RD
13174}
13175
13176
1bd55598
RD
13177SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13178 PyObject *resultobj = 0;
13179 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13180 void *argp1 = 0 ;
13181 int res1 = 0 ;
13182 PyObject *swig_obj[1] ;
13183
13184 if (!args) SWIG_fail;
13185 swig_obj[0] = args;
13186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13187 if (!SWIG_IsOK(res1)) {
13188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13189 }
13190 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13191 {
13192 PyThreadState* __tstate = wxPyBeginAllowThreads();
13193 delete arg1;
d55e5bfc 13194
1bd55598
RD
13195 wxPyEndAllowThreads(__tstate);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 resultobj = SWIG_Py_Void();
13199 return resultobj;
13200fail:
13201 return NULL;
d55e5bfc
RD
13202}
13203
13204
1bd55598
RD
13205SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13206 PyObject *resultobj = 0;
13207 wxFontMapper *result = 0 ;
13208
13209 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13210 {
13211 PyThreadState* __tstate = wxPyBeginAllowThreads();
13212 result = (wxFontMapper *)wxFontMapper::Get();
13213 wxPyEndAllowThreads(__tstate);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13217 return resultobj;
13218fail:
13219 return NULL;
13220}
13221
13222
13223SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13224 PyObject *resultobj = 0;
13225 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13226 wxFontMapper *result = 0 ;
13227 void *argp1 = 0 ;
13228 int res1 = 0 ;
13229 PyObject * obj0 = 0 ;
13230 char * kwnames[] = {
13231 (char *) "mapper", NULL
13232 };
13233
13234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13236 if (!SWIG_IsOK(res1)) {
13237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13238 }
13239 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13240 {
13241 PyThreadState* __tstate = wxPyBeginAllowThreads();
13242 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13243 wxPyEndAllowThreads(__tstate);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13247 return resultobj;
13248fail:
13249 return NULL;
13250}
13251
13252
13253SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13254 PyObject *resultobj = 0;
13255 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13256 wxString *arg2 = 0 ;
13257 bool arg3 = (bool) true ;
13258 wxFontEncoding result;
13259 void *argp1 = 0 ;
13260 int res1 = 0 ;
13261 bool temp2 = false ;
13262 bool val3 ;
13263 int ecode3 = 0 ;
13264 PyObject * obj0 = 0 ;
13265 PyObject * obj1 = 0 ;
13266 PyObject * obj2 = 0 ;
13267 char * kwnames[] = {
13268 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13269 };
13270
13271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13273 if (!SWIG_IsOK(res1)) {
13274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13275 }
13276 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13277 {
13278 arg2 = wxString_in_helper(obj1);
13279 if (arg2 == NULL) SWIG_fail;
13280 temp2 = true;
13281 }
13282 if (obj2) {
13283 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13284 if (!SWIG_IsOK(ecode3)) {
13285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13286 }
13287 arg3 = static_cast< bool >(val3);
13288 }
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 resultobj = SWIG_From_int(static_cast< int >(result));
13296 {
13297 if (temp2)
13298 delete arg2;
13299 }
13300 return resultobj;
13301fail:
13302 {
13303 if (temp2)
13304 delete arg2;
13305 }
13306 return NULL;
d55e5bfc
RD
13307}
13308
13309
1bd55598
RD
13310SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13311 PyObject *resultobj = 0;
13312 size_t result;
13313
13314 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13315 {
13316 PyThreadState* __tstate = wxPyBeginAllowThreads();
13317 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13322 return resultobj;
13323fail:
13324 return NULL;
13325}
13326
13327
13328SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13329 PyObject *resultobj = 0;
13330 size_t arg1 ;
13331 wxFontEncoding result;
13332 size_t val1 ;
13333 int ecode1 = 0 ;
13334 PyObject * obj0 = 0 ;
13335 char * kwnames[] = {
13336 (char *) "n", NULL
13337 };
13338
13339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13340 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13341 if (!SWIG_IsOK(ecode1)) {
13342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13343 }
13344 arg1 = static_cast< size_t >(val1);
13345 {
13346 PyThreadState* __tstate = wxPyBeginAllowThreads();
13347 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13348 wxPyEndAllowThreads(__tstate);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 }
13351 resultobj = SWIG_From_int(static_cast< int >(result));
13352 return resultobj;
13353fail:
13354 return NULL;
13355}
13356
13357
13358SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13359 PyObject *resultobj = 0;
13360 wxFontEncoding arg1 ;
13361 wxString result;
13362 int val1 ;
13363 int ecode1 = 0 ;
13364 PyObject * obj0 = 0 ;
13365 char * kwnames[] = {
13366 (char *) "encoding", NULL
13367 };
13368
13369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13370 ecode1 = SWIG_AsVal_int(obj0, &val1);
13371 if (!SWIG_IsOK(ecode1)) {
13372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13373 }
13374 arg1 = static_cast< wxFontEncoding >(val1);
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 result = wxFontMapper::GetEncodingName(arg1);
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 {
13382#if wxUSE_UNICODE
13383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13384#else
13385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13386#endif
13387 }
13388 return resultobj;
13389fail:
13390 return NULL;
d55e5bfc
RD
13391}
13392
13393
1bd55598
RD
13394SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13395 PyObject *resultobj = 0;
13396 wxFontEncoding arg1 ;
13397 wxString result;
13398 int val1 ;
13399 int ecode1 = 0 ;
13400 PyObject * obj0 = 0 ;
13401 char * kwnames[] = {
13402 (char *) "encoding", NULL
13403 };
13404
13405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13406 ecode1 = SWIG_AsVal_int(obj0, &val1);
13407 if (!SWIG_IsOK(ecode1)) {
13408 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13409 }
13410 arg1 = static_cast< wxFontEncoding >(val1);
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 result = wxFontMapper::GetEncodingDescription(arg1);
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 {
13418#if wxUSE_UNICODE
13419 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13420#else
13421 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13422#endif
13423 }
13424 return resultobj;
13425fail:
13426 return NULL;
d55e5bfc
RD
13427}
13428
13429
1bd55598
RD
13430SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj = 0;
13432 wxString *arg1 = 0 ;
13433 wxFontEncoding result;
13434 bool temp1 = false ;
13435 PyObject * obj0 = 0 ;
13436 char * kwnames[] = {
13437 (char *) "name", NULL
13438 };
13439
13440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13441 {
13442 arg1 = wxString_in_helper(obj0);
13443 if (arg1 == NULL) SWIG_fail;
13444 temp1 = true;
13445 }
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
13448 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13449 wxPyEndAllowThreads(__tstate);
13450 if (PyErr_Occurred()) SWIG_fail;
13451 }
13452 resultobj = SWIG_From_int(static_cast< int >(result));
13453 {
13454 if (temp1)
13455 delete arg1;
13456 }
13457 return resultobj;
13458fail:
13459 {
13460 if (temp1)
13461 delete arg1;
13462 }
13463 return NULL;
d55e5bfc
RD
13464}
13465
13466
1bd55598
RD
13467SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13468 PyObject *resultobj = 0;
13469 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13470 wxString *arg2 = 0 ;
13471 void *argp1 = 0 ;
13472 int res1 = 0 ;
13473 bool temp2 = false ;
13474 PyObject * obj0 = 0 ;
13475 PyObject * obj1 = 0 ;
13476 char * kwnames[] = {
13477 (char *) "self",(char *) "prefix", NULL
13478 };
13479
13480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13482 if (!SWIG_IsOK(res1)) {
13483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13484 }
13485 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13486 {
13487 arg2 = wxString_in_helper(obj1);
13488 if (arg2 == NULL) SWIG_fail;
13489 temp2 = true;
13490 }
13491 {
13492 PyThreadState* __tstate = wxPyBeginAllowThreads();
13493 (arg1)->SetConfigPath((wxString const &)*arg2);
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 resultobj = SWIG_Py_Void();
13498 {
13499 if (temp2)
13500 delete arg2;
13501 }
13502 return resultobj;
13503fail:
13504 {
13505 if (temp2)
13506 delete arg2;
13507 }
13508 return NULL;
13509}
13510
13511
13512SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13513 PyObject *resultobj = 0;
13514 wxString result;
13515
13516 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 result = wxFontMapper::GetDefaultConfigPath();
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 {
13524#if wxUSE_UNICODE
13525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13526#else
13527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13528#endif
13529 }
13530 return resultobj;
13531fail:
13532 return NULL;
13533}
13534
13535
13536SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13537 PyObject *resultobj = 0;
13538 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13539 wxFontEncoding arg2 ;
13540 wxString const &arg3_defvalue = wxPyEmptyString ;
13541 wxString *arg3 = (wxString *) &arg3_defvalue ;
13542 bool arg4 = (bool) true ;
13543 PyObject *result = 0 ;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 int val2 ;
13547 int ecode2 = 0 ;
13548 bool temp3 = false ;
13549 bool val4 ;
13550 int ecode4 = 0 ;
13551 PyObject * obj0 = 0 ;
13552 PyObject * obj1 = 0 ;
13553 PyObject * obj2 = 0 ;
13554 PyObject * obj3 = 0 ;
13555 char * kwnames[] = {
13556 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13557 };
13558
13559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13561 if (!SWIG_IsOK(res1)) {
13562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13563 }
13564 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13565 ecode2 = SWIG_AsVal_int(obj1, &val2);
13566 if (!SWIG_IsOK(ecode2)) {
13567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13568 }
13569 arg2 = static_cast< wxFontEncoding >(val2);
13570 if (obj2) {
36ed4f51 13571 {
1bd55598
RD
13572 arg3 = wxString_in_helper(obj2);
13573 if (arg3 == NULL) SWIG_fail;
13574 temp3 = true;
36ed4f51 13575 }
1bd55598
RD
13576 }
13577 if (obj3) {
13578 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13579 if (!SWIG_IsOK(ecode4)) {
13580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13581 }
13582 arg4 = static_cast< bool >(val4);
13583 }
13584 {
13585 PyThreadState* __tstate = wxPyBeginAllowThreads();
13586 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13587 wxPyEndAllowThreads(__tstate);
13588 if (PyErr_Occurred()) SWIG_fail;
13589 }
13590 resultobj = result;
13591 {
13592 if (temp3)
13593 delete arg3;
13594 }
13595 return resultobj;
13596fail:
13597 {
13598 if (temp3)
13599 delete arg3;
13600 }
13601 return NULL;
13602}
13603
13604
13605SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13606 PyObject *resultobj = 0;
13607 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13608 wxFontEncoding arg2 ;
13609 wxString const &arg3_defvalue = wxPyEmptyString ;
13610 wxString *arg3 = (wxString *) &arg3_defvalue ;
13611 bool result;
13612 void *argp1 = 0 ;
13613 int res1 = 0 ;
13614 int val2 ;
13615 int ecode2 = 0 ;
13616 bool temp3 = false ;
13617 PyObject * obj0 = 0 ;
13618 PyObject * obj1 = 0 ;
13619 PyObject * obj2 = 0 ;
13620 char * kwnames[] = {
13621 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13622 };
13623
13624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13626 if (!SWIG_IsOK(res1)) {
13627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13628 }
13629 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13630 ecode2 = SWIG_AsVal_int(obj1, &val2);
13631 if (!SWIG_IsOK(ecode2)) {
13632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13633 }
13634 arg2 = static_cast< wxFontEncoding >(val2);
13635 if (obj2) {
36ed4f51 13636 {
1bd55598
RD
13637 arg3 = wxString_in_helper(obj2);
13638 if (arg3 == NULL) SWIG_fail;
13639 temp3 = true;
36ed4f51 13640 }
1bd55598
RD
13641 }
13642 {
13643 PyThreadState* __tstate = wxPyBeginAllowThreads();
13644 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13645 wxPyEndAllowThreads(__tstate);
13646 if (PyErr_Occurred()) SWIG_fail;
13647 }
13648 {
13649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13650 }
13651 {
13652 if (temp3)
13653 delete arg3;
13654 }
13655 return resultobj;
13656fail:
13657 {
13658 if (temp3)
13659 delete arg3;
13660 }
13661 return NULL;
13662}
13663
13664
13665SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13666 PyObject *resultobj = 0;
13667 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13668 wxWindow *arg2 = (wxWindow *) 0 ;
13669 void *argp1 = 0 ;
13670 int res1 = 0 ;
13671 void *argp2 = 0 ;
13672 int res2 = 0 ;
13673 PyObject * obj0 = 0 ;
13674 PyObject * obj1 = 0 ;
13675 char * kwnames[] = {
13676 (char *) "self",(char *) "parent", NULL
13677 };
13678
13679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13681 if (!SWIG_IsOK(res1)) {
13682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13683 }
13684 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13686 if (!SWIG_IsOK(res2)) {
13687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13688 }
13689 arg2 = reinterpret_cast< wxWindow * >(argp2);
13690 {
13691 PyThreadState* __tstate = wxPyBeginAllowThreads();
13692 (arg1)->SetDialogParent(arg2);
13693 wxPyEndAllowThreads(__tstate);
13694 if (PyErr_Occurred()) SWIG_fail;
13695 }
13696 resultobj = SWIG_Py_Void();
13697 return resultobj;
13698fail:
13699 return NULL;
13700}
13701
13702
13703SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13704 PyObject *resultobj = 0;
13705 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13706 wxString *arg2 = 0 ;
13707 void *argp1 = 0 ;
13708 int res1 = 0 ;
13709 bool temp2 = false ;
13710 PyObject * obj0 = 0 ;
13711 PyObject * obj1 = 0 ;
13712 char * kwnames[] = {
13713 (char *) "self",(char *) "title", NULL
13714 };
13715
13716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13718 if (!SWIG_IsOK(res1)) {
13719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13720 }
13721 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13722 {
13723 arg2 = wxString_in_helper(obj1);
13724 if (arg2 == NULL) SWIG_fail;
13725 temp2 = true;
13726 }
13727 {
13728 PyThreadState* __tstate = wxPyBeginAllowThreads();
13729 (arg1)->SetDialogTitle((wxString const &)*arg2);
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 resultobj = SWIG_Py_Void();
13734 {
13735 if (temp2)
13736 delete arg2;
13737 }
13738 return resultobj;
13739fail:
13740 {
13741 if (temp2)
13742 delete arg2;
13743 }
13744 return NULL;
13745}
13746
13747
13748SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13749 PyObject *obj;
13750 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13751 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13752 return SWIG_Py_Void();
13753}
13754
13755SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13756 return SWIG_Python_InitShadowInstance(args);
13757}
13758
13759SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13760 PyObject *resultobj = 0;
13761 int arg1 ;
13762 int arg2 ;
13763 int arg3 ;
13764 int arg4 ;
13765 bool arg5 = (bool) false ;
13766 wxString const &arg6_defvalue = wxPyEmptyString ;
13767 wxString *arg6 = (wxString *) &arg6_defvalue ;
13768 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13769 wxFont *result = 0 ;
13770 int val1 ;
13771 int ecode1 = 0 ;
13772 int val2 ;
13773 int ecode2 = 0 ;
13774 int val3 ;
13775 int ecode3 = 0 ;
13776 int val4 ;
13777 int ecode4 = 0 ;
13778 bool val5 ;
13779 int ecode5 = 0 ;
13780 bool temp6 = false ;
13781 int val7 ;
13782 int ecode7 = 0 ;
13783 PyObject * obj0 = 0 ;
13784 PyObject * obj1 = 0 ;
13785 PyObject * obj2 = 0 ;
13786 PyObject * obj3 = 0 ;
13787 PyObject * obj4 = 0 ;
13788 PyObject * obj5 = 0 ;
13789 PyObject * obj6 = 0 ;
13790 char * kwnames[] = {
13791 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13792 };
13793
13794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13795 ecode1 = SWIG_AsVal_int(obj0, &val1);
13796 if (!SWIG_IsOK(ecode1)) {
13797 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13798 }
13799 arg1 = static_cast< int >(val1);
13800 ecode2 = SWIG_AsVal_int(obj1, &val2);
13801 if (!SWIG_IsOK(ecode2)) {
13802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13803 }
13804 arg2 = static_cast< int >(val2);
13805 ecode3 = SWIG_AsVal_int(obj2, &val3);
13806 if (!SWIG_IsOK(ecode3)) {
13807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13808 }
13809 arg3 = static_cast< int >(val3);
13810 ecode4 = SWIG_AsVal_int(obj3, &val4);
13811 if (!SWIG_IsOK(ecode4)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13813 }
13814 arg4 = static_cast< int >(val4);
13815 if (obj4) {
13816 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13817 if (!SWIG_IsOK(ecode5)) {
13818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13819 }
13820 arg5 = static_cast< bool >(val5);
13821 }
13822 if (obj5) {
d55e5bfc 13823 {
1bd55598
RD
13824 arg6 = wxString_in_helper(obj5);
13825 if (arg6 == NULL) SWIG_fail;
13826 temp6 = true;
d55e5bfc 13827 }
1bd55598
RD
13828 }
13829 if (obj6) {
13830 ecode7 = SWIG_AsVal_int(obj6, &val7);
13831 if (!SWIG_IsOK(ecode7)) {
13832 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13833 }
13834 arg7 = static_cast< wxFontEncoding >(val7);
13835 }
13836 {
13837 if (!wxPyCheckForApp()) SWIG_fail;
13838 PyThreadState* __tstate = wxPyBeginAllowThreads();
13839 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13840 wxPyEndAllowThreads(__tstate);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13844 {
13845 if (temp6)
13846 delete arg6;
13847 }
13848 return resultobj;
13849fail:
13850 {
13851 if (temp6)
13852 delete arg6;
13853 }
13854 return NULL;
d55e5bfc
RD
13855}
13856
13857
1bd55598
RD
13858SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13859 PyObject *resultobj = 0;
13860 wxFont *arg1 = (wxFont *) 0 ;
13861 void *argp1 = 0 ;
13862 int res1 = 0 ;
13863 PyObject *swig_obj[1] ;
13864
13865 if (!args) SWIG_fail;
13866 swig_obj[0] = args;
13867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13868 if (!SWIG_IsOK(res1)) {
13869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13870 }
13871 arg1 = reinterpret_cast< wxFont * >(argp1);
13872 {
13873 PyThreadState* __tstate = wxPyBeginAllowThreads();
13874 delete arg1;
d55e5bfc 13875
1bd55598
RD
13876 wxPyEndAllowThreads(__tstate);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 resultobj = SWIG_Py_Void();
13880 return resultobj;
13881fail:
13882 return NULL;
13883}
13884
13885
13886SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj = 0;
13888 wxNativeFontInfo *arg1 = 0 ;
13889 wxFont *result = 0 ;
13890 void *argp1 = 0 ;
13891 int res1 = 0 ;
13892 PyObject * obj0 = 0 ;
13893 char * kwnames[] = {
13894 (char *) "info", NULL
13895 };
13896
13897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13898 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13899 if (!SWIG_IsOK(res1)) {
13900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13901 }
13902 if (!argp1) {
13903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13904 }
13905 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13906 {
13907 if (!wxPyCheckForApp()) SWIG_fail;
13908 PyThreadState* __tstate = wxPyBeginAllowThreads();
13909 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13910 wxPyEndAllowThreads(__tstate);
13911 if (PyErr_Occurred()) SWIG_fail;
13912 }
13913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13914 return resultobj;
13915fail:
13916 return NULL;
d55e5bfc
RD
13917}
13918
13919
1bd55598
RD
13920SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13921 PyObject *resultobj = 0;
13922 wxString *arg1 = 0 ;
13923 wxFont *result = 0 ;
13924 bool temp1 = false ;
13925 PyObject * obj0 = 0 ;
13926 char * kwnames[] = {
13927 (char *) "info", NULL
13928 };
13929
13930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13931 {
13932 arg1 = wxString_in_helper(obj0);
13933 if (arg1 == NULL) SWIG_fail;
13934 temp1 = true;
13935 }
13936 {
13937 if (!wxPyCheckForApp()) SWIG_fail;
13938 PyThreadState* __tstate = wxPyBeginAllowThreads();
13939 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13940 wxPyEndAllowThreads(__tstate);
13941 if (PyErr_Occurred()) SWIG_fail;
13942 }
13943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13944 {
13945 if (temp1)
13946 delete arg1;
13947 }
13948 return resultobj;
13949fail:
13950 {
13951 if (temp1)
13952 delete arg1;
13953 }
13954 return NULL;
13955}
13956
13957
13958SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13959 PyObject *resultobj = 0;
13960 int arg1 ;
13961 wxFontFamily arg2 ;
13962 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13963 wxString const &arg4_defvalue = wxPyEmptyString ;
13964 wxString *arg4 = (wxString *) &arg4_defvalue ;
13965 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13966 wxFont *result = 0 ;
13967 int val1 ;
13968 int ecode1 = 0 ;
13969 int val2 ;
13970 int ecode2 = 0 ;
13971 int val3 ;
13972 int ecode3 = 0 ;
13973 bool temp4 = false ;
13974 int val5 ;
13975 int ecode5 = 0 ;
13976 PyObject * obj0 = 0 ;
13977 PyObject * obj1 = 0 ;
13978 PyObject * obj2 = 0 ;
13979 PyObject * obj3 = 0 ;
13980 PyObject * obj4 = 0 ;
13981 char * kwnames[] = {
13982 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13983 };
13984
13985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13986 ecode1 = SWIG_AsVal_int(obj0, &val1);
13987 if (!SWIG_IsOK(ecode1)) {
13988 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13989 }
13990 arg1 = static_cast< int >(val1);
13991 ecode2 = SWIG_AsVal_int(obj1, &val2);
13992 if (!SWIG_IsOK(ecode2)) {
13993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13994 }
13995 arg2 = static_cast< wxFontFamily >(val2);
13996 if (obj2) {
13997 ecode3 = SWIG_AsVal_int(obj2, &val3);
13998 if (!SWIG_IsOK(ecode3)) {
13999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14000 }
14001 arg3 = static_cast< int >(val3);
14002 }
14003 if (obj3) {
36ed4f51 14004 {
1bd55598
RD
14005 arg4 = wxString_in_helper(obj3);
14006 if (arg4 == NULL) SWIG_fail;
14007 temp4 = true;
36ed4f51 14008 }
1bd55598
RD
14009 }
14010 if (obj4) {
14011 ecode5 = SWIG_AsVal_int(obj4, &val5);
14012 if (!SWIG_IsOK(ecode5)) {
14013 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14014 }
14015 arg5 = static_cast< wxFontEncoding >(val5);
14016 }
14017 {
14018 if (!wxPyCheckForApp()) SWIG_fail;
14019 PyThreadState* __tstate = wxPyBeginAllowThreads();
14020 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14021 wxPyEndAllowThreads(__tstate);
14022 if (PyErr_Occurred()) SWIG_fail;
14023 }
14024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14025 {
14026 if (temp4)
14027 delete arg4;
14028 }
14029 return resultobj;
14030fail:
14031 {
14032 if (temp4)
14033 delete arg4;
14034 }
14035 return NULL;
14036}
14037
14038
14039SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14040 PyObject *resultobj = 0;
14041 wxSize *arg1 = 0 ;
14042 int arg2 ;
14043 int arg3 ;
14044 int arg4 ;
14045 bool arg5 = (bool) false ;
14046 wxString const &arg6_defvalue = wxEmptyString ;
14047 wxString *arg6 = (wxString *) &arg6_defvalue ;
14048 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14049 wxFont *result = 0 ;
14050 wxSize temp1 ;
14051 int val2 ;
14052 int ecode2 = 0 ;
14053 int val3 ;
14054 int ecode3 = 0 ;
14055 int val4 ;
14056 int ecode4 = 0 ;
14057 bool val5 ;
14058 int ecode5 = 0 ;
14059 bool temp6 = false ;
14060 int val7 ;
14061 int ecode7 = 0 ;
14062 PyObject * obj0 = 0 ;
14063 PyObject * obj1 = 0 ;
14064 PyObject * obj2 = 0 ;
14065 PyObject * obj3 = 0 ;
14066 PyObject * obj4 = 0 ;
14067 PyObject * obj5 = 0 ;
14068 PyObject * obj6 = 0 ;
14069 char * kwnames[] = {
14070 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14071 };
14072
14073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14074 {
14075 arg1 = &temp1;
14076 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14077 }
14078 ecode2 = SWIG_AsVal_int(obj1, &val2);
14079 if (!SWIG_IsOK(ecode2)) {
14080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14081 }
14082 arg2 = static_cast< int >(val2);
14083 ecode3 = SWIG_AsVal_int(obj2, &val3);
14084 if (!SWIG_IsOK(ecode3)) {
14085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14086 }
14087 arg3 = static_cast< int >(val3);
14088 ecode4 = SWIG_AsVal_int(obj3, &val4);
14089 if (!SWIG_IsOK(ecode4)) {
14090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14091 }
14092 arg4 = static_cast< int >(val4);
14093 if (obj4) {
14094 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14095 if (!SWIG_IsOK(ecode5)) {
14096 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14097 }
14098 arg5 = static_cast< bool >(val5);
14099 }
14100 if (obj5) {
d55e5bfc 14101 {
1bd55598
RD
14102 arg6 = wxString_in_helper(obj5);
14103 if (arg6 == NULL) SWIG_fail;
14104 temp6 = true;
d55e5bfc 14105 }
1bd55598
RD
14106 }
14107 if (obj6) {
14108 ecode7 = SWIG_AsVal_int(obj6, &val7);
14109 if (!SWIG_IsOK(ecode7)) {
14110 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14111 }
14112 arg7 = static_cast< wxFontEncoding >(val7);
14113 }
14114 {
14115 if (!wxPyCheckForApp()) SWIG_fail;
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14118 wxPyEndAllowThreads(__tstate);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 }
14121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14122 {
14123 if (temp6)
14124 delete arg6;
14125 }
14126 return resultobj;
14127fail:
14128 {
14129 if (temp6)
14130 delete arg6;
14131 }
14132 return NULL;
14133}
14134
14135
14136SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14137 PyObject *resultobj = 0;
14138 wxSize *arg1 = 0 ;
14139 wxFontFamily arg2 ;
14140 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14141 wxString const &arg4_defvalue = wxEmptyString ;
14142 wxString *arg4 = (wxString *) &arg4_defvalue ;
14143 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14144 wxFont *result = 0 ;
14145 wxSize temp1 ;
14146 int val2 ;
14147 int ecode2 = 0 ;
14148 int val3 ;
14149 int ecode3 = 0 ;
14150 bool temp4 = false ;
14151 int val5 ;
14152 int ecode5 = 0 ;
14153 PyObject * obj0 = 0 ;
14154 PyObject * obj1 = 0 ;
14155 PyObject * obj2 = 0 ;
14156 PyObject * obj3 = 0 ;
14157 PyObject * obj4 = 0 ;
14158 char * kwnames[] = {
14159 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14160 };
14161
14162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14163 {
14164 arg1 = &temp1;
14165 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14166 }
14167 ecode2 = SWIG_AsVal_int(obj1, &val2);
14168 if (!SWIG_IsOK(ecode2)) {
14169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14170 }
14171 arg2 = static_cast< wxFontFamily >(val2);
14172 if (obj2) {
14173 ecode3 = SWIG_AsVal_int(obj2, &val3);
14174 if (!SWIG_IsOK(ecode3)) {
14175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14176 }
14177 arg3 = static_cast< int >(val3);
14178 }
14179 if (obj3) {
36ed4f51 14180 {
1bd55598
RD
14181 arg4 = wxString_in_helper(obj3);
14182 if (arg4 == NULL) SWIG_fail;
14183 temp4 = true;
36ed4f51 14184 }
1bd55598
RD
14185 }
14186 if (obj4) {
14187 ecode5 = SWIG_AsVal_int(obj4, &val5);
14188 if (!SWIG_IsOK(ecode5)) {
14189 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14190 }
14191 arg5 = static_cast< wxFontEncoding >(val5);
14192 }
14193 {
14194 if (!wxPyCheckForApp()) SWIG_fail;
14195 PyThreadState* __tstate = wxPyBeginAllowThreads();
14196 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14197 wxPyEndAllowThreads(__tstate);
14198 if (PyErr_Occurred()) SWIG_fail;
14199 }
14200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14201 {
14202 if (temp4)
14203 delete arg4;
14204 }
14205 return resultobj;
14206fail:
14207 {
14208 if (temp4)
14209 delete arg4;
14210 }
14211 return NULL;
d55e5bfc
RD
14212}
14213
14214
b39fe951 14215SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14216 PyObject *resultobj = 0;
14217 wxFont *arg1 = (wxFont *) 0 ;
14218 bool result;
14219 void *argp1 = 0 ;
14220 int res1 = 0 ;
14221 PyObject *swig_obj[1] ;
14222
14223 if (!args) SWIG_fail;
14224 swig_obj[0] = args;
14225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14226 if (!SWIG_IsOK(res1)) {
b39fe951 14227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14228 }
14229 arg1 = reinterpret_cast< wxFont * >(argp1);
14230 {
14231 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14232 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14233 wxPyEndAllowThreads(__tstate);
14234 if (PyErr_Occurred()) SWIG_fail;
14235 }
14236 {
14237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14238 }
14239 return resultobj;
14240fail:
14241 return NULL;
14242}
14243
14244
14245SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14246 PyObject *resultobj = 0;
14247 wxFont *arg1 = (wxFont *) 0 ;
14248 wxFont *arg2 = (wxFont *) 0 ;
14249 bool result;
14250 void *argp1 = 0 ;
14251 int res1 = 0 ;
14252 void *argp2 = 0 ;
14253 int res2 = 0 ;
14254 PyObject * obj0 = 0 ;
14255 PyObject * obj1 = 0 ;
14256 char * kwnames[] = {
14257 (char *) "self",(char *) "other", NULL
14258 };
14259
14260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14262 if (!SWIG_IsOK(res1)) {
14263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14264 }
14265 arg1 = reinterpret_cast< wxFont * >(argp1);
14266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14267 if (!SWIG_IsOK(res2)) {
14268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14269 }
14270 arg2 = reinterpret_cast< wxFont * >(argp2);
14271 {
14272 PyThreadState* __tstate = wxPyBeginAllowThreads();
14273 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14274 wxPyEndAllowThreads(__tstate);
14275 if (PyErr_Occurred()) SWIG_fail;
14276 }
14277 {
14278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14279 }
14280 return resultobj;
14281fail:
14282 return NULL;
14283}
14284
14285
14286SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14287 PyObject *resultobj = 0;
14288 wxFont *arg1 = (wxFont *) 0 ;
14289 wxFont *arg2 = (wxFont *) 0 ;
14290 bool result;
14291 void *argp1 = 0 ;
14292 int res1 = 0 ;
14293 void *argp2 = 0 ;
14294 int res2 = 0 ;
14295 PyObject * obj0 = 0 ;
14296 PyObject * obj1 = 0 ;
14297 char * kwnames[] = {
14298 (char *) "self",(char *) "other", NULL
14299 };
14300
14301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14303 if (!SWIG_IsOK(res1)) {
14304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14305 }
14306 arg1 = reinterpret_cast< wxFont * >(argp1);
14307 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14308 if (!SWIG_IsOK(res2)) {
14309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14310 }
14311 arg2 = reinterpret_cast< wxFont * >(argp2);
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 {
14319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14320 }
14321 return resultobj;
14322fail:
14323 return NULL;
d55e5bfc
RD
14324}
14325
14326
1bd55598
RD
14327SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14328 PyObject *resultobj = 0;
14329 wxFont *arg1 = (wxFont *) 0 ;
14330 int result;
14331 void *argp1 = 0 ;
14332 int res1 = 0 ;
14333 PyObject *swig_obj[1] ;
14334
14335 if (!args) SWIG_fail;
14336 swig_obj[0] = args;
14337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14338 if (!SWIG_IsOK(res1)) {
14339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14340 }
14341 arg1 = reinterpret_cast< wxFont * >(argp1);
14342 {
14343 PyThreadState* __tstate = wxPyBeginAllowThreads();
14344 result = (int)((wxFont const *)arg1)->GetPointSize();
14345 wxPyEndAllowThreads(__tstate);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 }
14348 resultobj = SWIG_From_int(static_cast< int >(result));
14349 return resultobj;
14350fail:
14351 return NULL;
d55e5bfc
RD
14352}
14353
14354
1bd55598
RD
14355SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14356 PyObject *resultobj = 0;
14357 wxFont *arg1 = (wxFont *) 0 ;
14358 wxSize result;
14359 void *argp1 = 0 ;
14360 int res1 = 0 ;
14361 PyObject *swig_obj[1] ;
14362
14363 if (!args) SWIG_fail;
14364 swig_obj[0] = args;
14365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14366 if (!SWIG_IsOK(res1)) {
14367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14368 }
14369 arg1 = reinterpret_cast< wxFont * >(argp1);
14370 {
14371 PyThreadState* __tstate = wxPyBeginAllowThreads();
14372 result = ((wxFont const *)arg1)->GetPixelSize();
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14377 return resultobj;
14378fail:
14379 return NULL;
d55e5bfc
RD
14380}
14381
14382
1bd55598
RD
14383SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14384 PyObject *resultobj = 0;
14385 wxFont *arg1 = (wxFont *) 0 ;
14386 bool result;
14387 void *argp1 = 0 ;
14388 int res1 = 0 ;
14389 PyObject *swig_obj[1] ;
14390
14391 if (!args) SWIG_fail;
14392 swig_obj[0] = args;
14393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14394 if (!SWIG_IsOK(res1)) {
14395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14396 }
14397 arg1 = reinterpret_cast< wxFont * >(argp1);
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
14400 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 {
14405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14406 }
14407 return resultobj;
14408fail:
14409 return NULL;
d55e5bfc
RD
14410}
14411
14412
1bd55598
RD
14413SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14414 PyObject *resultobj = 0;
14415 wxFont *arg1 = (wxFont *) 0 ;
14416 int result;
14417 void *argp1 = 0 ;
14418 int res1 = 0 ;
14419 PyObject *swig_obj[1] ;
14420
14421 if (!args) SWIG_fail;
14422 swig_obj[0] = args;
14423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14424 if (!SWIG_IsOK(res1)) {
14425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14426 }
14427 arg1 = reinterpret_cast< wxFont * >(argp1);
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 result = (int)((wxFont const *)arg1)->GetFamily();
14431 wxPyEndAllowThreads(__tstate);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 }
14434 resultobj = SWIG_From_int(static_cast< int >(result));
14435 return resultobj;
14436fail:
14437 return NULL;
d55e5bfc
RD
14438}
14439
14440
1bd55598
RD
14441SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14442 PyObject *resultobj = 0;
14443 wxFont *arg1 = (wxFont *) 0 ;
14444 int result;
14445 void *argp1 = 0 ;
14446 int res1 = 0 ;
14447 PyObject *swig_obj[1] ;
14448
14449 if (!args) SWIG_fail;
14450 swig_obj[0] = args;
14451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14452 if (!SWIG_IsOK(res1)) {
14453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14454 }
14455 arg1 = reinterpret_cast< wxFont * >(argp1);
14456 {
14457 PyThreadState* __tstate = wxPyBeginAllowThreads();
14458 result = (int)((wxFont const *)arg1)->GetStyle();
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 resultobj = SWIG_From_int(static_cast< int >(result));
14463 return resultobj;
14464fail:
14465 return NULL;
d55e5bfc
RD
14466}
14467
14468
1bd55598
RD
14469SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14470 PyObject *resultobj = 0;
14471 wxFont *arg1 = (wxFont *) 0 ;
14472 int result;
14473 void *argp1 = 0 ;
14474 int res1 = 0 ;
14475 PyObject *swig_obj[1] ;
14476
14477 if (!args) SWIG_fail;
14478 swig_obj[0] = args;
14479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14480 if (!SWIG_IsOK(res1)) {
14481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14482 }
14483 arg1 = reinterpret_cast< wxFont * >(argp1);
14484 {
14485 PyThreadState* __tstate = wxPyBeginAllowThreads();
14486 result = (int)((wxFont const *)arg1)->GetWeight();
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 resultobj = SWIG_From_int(static_cast< int >(result));
14491 return resultobj;
14492fail:
14493 return NULL;
d55e5bfc
RD
14494}
14495
14496
1bd55598
RD
14497SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14498 PyObject *resultobj = 0;
14499 wxFont *arg1 = (wxFont *) 0 ;
14500 bool result;
14501 void *argp1 = 0 ;
14502 int res1 = 0 ;
14503 PyObject *swig_obj[1] ;
14504
14505 if (!args) SWIG_fail;
14506 swig_obj[0] = args;
14507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14508 if (!SWIG_IsOK(res1)) {
14509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14510 }
14511 arg1 = reinterpret_cast< wxFont * >(argp1);
14512 {
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14515 wxPyEndAllowThreads(__tstate);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 }
14518 {
14519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14520 }
14521 return resultobj;
14522fail:
14523 return NULL;
d55e5bfc
RD
14524}
14525
14526
1bd55598
RD
14527SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14528 PyObject *resultobj = 0;
14529 wxFont *arg1 = (wxFont *) 0 ;
14530 wxString result;
14531 void *argp1 = 0 ;
14532 int res1 = 0 ;
14533 PyObject *swig_obj[1] ;
14534
14535 if (!args) SWIG_fail;
14536 swig_obj[0] = args;
14537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14538 if (!SWIG_IsOK(res1)) {
14539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14540 }
14541 arg1 = reinterpret_cast< wxFont * >(argp1);
14542 {
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = ((wxFont const *)arg1)->GetFaceName();
14545 wxPyEndAllowThreads(__tstate);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 {
14549#if wxUSE_UNICODE
14550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14551#else
14552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14553#endif
14554 }
14555 return resultobj;
14556fail:
14557 return NULL;
d55e5bfc
RD
14558}
14559
14560
1bd55598
RD
14561SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14562 PyObject *resultobj = 0;
14563 wxFont *arg1 = (wxFont *) 0 ;
14564 wxFontEncoding result;
14565 void *argp1 = 0 ;
14566 int res1 = 0 ;
14567 PyObject *swig_obj[1] ;
14568
14569 if (!args) SWIG_fail;
14570 swig_obj[0] = args;
14571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14572 if (!SWIG_IsOK(res1)) {
14573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14574 }
14575 arg1 = reinterpret_cast< wxFont * >(argp1);
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14579 wxPyEndAllowThreads(__tstate);
14580 if (PyErr_Occurred()) SWIG_fail;
14581 }
14582 resultobj = SWIG_From_int(static_cast< int >(result));
14583 return resultobj;
14584fail:
14585 return NULL;
d55e5bfc
RD
14586}
14587
14588
1bd55598
RD
14589SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14590 PyObject *resultobj = 0;
14591 wxFont *arg1 = (wxFont *) 0 ;
14592 wxNativeFontInfo *result = 0 ;
14593 void *argp1 = 0 ;
14594 int res1 = 0 ;
14595 PyObject *swig_obj[1] ;
14596
14597 if (!args) SWIG_fail;
14598 swig_obj[0] = args;
14599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14600 if (!SWIG_IsOK(res1)) {
14601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14602 }
14603 arg1 = reinterpret_cast< wxFont * >(argp1);
14604 {
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
14606 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14611 return resultobj;
14612fail:
14613 return NULL;
d55e5bfc
RD
14614}
14615
14616
1bd55598
RD
14617SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14618 PyObject *resultobj = 0;
14619 wxFont *arg1 = (wxFont *) 0 ;
14620 bool result;
14621 void *argp1 = 0 ;
14622 int res1 = 0 ;
14623 PyObject *swig_obj[1] ;
14624
14625 if (!args) SWIG_fail;
14626 swig_obj[0] = args;
14627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14628 if (!SWIG_IsOK(res1)) {
14629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14630 }
14631 arg1 = reinterpret_cast< wxFont * >(argp1);
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 {
14639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14640 }
14641 return resultobj;
14642fail:
14643 return NULL;
d55e5bfc
RD
14644}
14645
14646
1bd55598
RD
14647SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14648 PyObject *resultobj = 0;
14649 wxFont *arg1 = (wxFont *) 0 ;
14650 wxString result;
14651 void *argp1 = 0 ;
14652 int res1 = 0 ;
14653 PyObject *swig_obj[1] ;
14654
14655 if (!args) SWIG_fail;
14656 swig_obj[0] = args;
14657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14658 if (!SWIG_IsOK(res1)) {
14659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14660 }
14661 arg1 = reinterpret_cast< wxFont * >(argp1);
14662 {
14663 PyThreadState* __tstate = wxPyBeginAllowThreads();
14664 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14665 wxPyEndAllowThreads(__tstate);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 {
14669#if wxUSE_UNICODE
14670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14671#else
14672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14673#endif
14674 }
14675 return resultobj;
14676fail:
14677 return NULL;
d55e5bfc
RD
14678}
14679
14680
1bd55598
RD
14681SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14682 PyObject *resultobj = 0;
14683 wxFont *arg1 = (wxFont *) 0 ;
14684 wxString result;
14685 void *argp1 = 0 ;
14686 int res1 = 0 ;
14687 PyObject *swig_obj[1] ;
14688
14689 if (!args) SWIG_fail;
14690 swig_obj[0] = args;
14691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14692 if (!SWIG_IsOK(res1)) {
14693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14694 }
14695 arg1 = reinterpret_cast< wxFont * >(argp1);
14696 {
14697 PyThreadState* __tstate = wxPyBeginAllowThreads();
14698 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14699 wxPyEndAllowThreads(__tstate);
14700 if (PyErr_Occurred()) SWIG_fail;
14701 }
14702 {
14703#if wxUSE_UNICODE
14704 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14705#else
14706 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14707#endif
14708 }
14709 return resultobj;
14710fail:
14711 return NULL;
14712}
14713
14714
14715SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14716 PyObject *resultobj = 0;
14717 wxFont *arg1 = (wxFont *) 0 ;
14718 int arg2 ;
14719 void *argp1 = 0 ;
14720 int res1 = 0 ;
14721 int val2 ;
14722 int ecode2 = 0 ;
14723 PyObject * obj0 = 0 ;
14724 PyObject * obj1 = 0 ;
14725 char * kwnames[] = {
14726 (char *) "self",(char *) "pointSize", NULL
14727 };
14728
14729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14731 if (!SWIG_IsOK(res1)) {
14732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14733 }
14734 arg1 = reinterpret_cast< wxFont * >(argp1);
14735 ecode2 = SWIG_AsVal_int(obj1, &val2);
14736 if (!SWIG_IsOK(ecode2)) {
14737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14738 }
14739 arg2 = static_cast< int >(val2);
14740 {
14741 PyThreadState* __tstate = wxPyBeginAllowThreads();
14742 (arg1)->SetPointSize(arg2);
14743 wxPyEndAllowThreads(__tstate);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 }
14746 resultobj = SWIG_Py_Void();
14747 return resultobj;
14748fail:
14749 return NULL;
14750}
14751
14752
14753SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14754 PyObject *resultobj = 0;
14755 wxFont *arg1 = (wxFont *) 0 ;
14756 wxSize *arg2 = 0 ;
14757 void *argp1 = 0 ;
14758 int res1 = 0 ;
14759 wxSize temp2 ;
14760 PyObject * obj0 = 0 ;
14761 PyObject * obj1 = 0 ;
14762 char * kwnames[] = {
14763 (char *) "self",(char *) "pixelSize", NULL
14764 };
14765
14766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14770 }
14771 arg1 = reinterpret_cast< wxFont * >(argp1);
14772 {
14773 arg2 = &temp2;
14774 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14775 }
14776 {
14777 PyThreadState* __tstate = wxPyBeginAllowThreads();
14778 (arg1)->SetPixelSize((wxSize const &)*arg2);
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 resultobj = SWIG_Py_Void();
14783 return resultobj;
14784fail:
14785 return NULL;
14786}
14787
14788
14789SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj = 0;
14791 wxFont *arg1 = (wxFont *) 0 ;
14792 int arg2 ;
14793 void *argp1 = 0 ;
14794 int res1 = 0 ;
14795 int val2 ;
14796 int ecode2 = 0 ;
14797 PyObject * obj0 = 0 ;
14798 PyObject * obj1 = 0 ;
14799 char * kwnames[] = {
14800 (char *) "self",(char *) "family", NULL
14801 };
14802
14803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14805 if (!SWIG_IsOK(res1)) {
14806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14807 }
14808 arg1 = reinterpret_cast< wxFont * >(argp1);
14809 ecode2 = SWIG_AsVal_int(obj1, &val2);
14810 if (!SWIG_IsOK(ecode2)) {
14811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14812 }
14813 arg2 = static_cast< int >(val2);
14814 {
14815 PyThreadState* __tstate = wxPyBeginAllowThreads();
14816 (arg1)->SetFamily(arg2);
14817 wxPyEndAllowThreads(__tstate);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 resultobj = SWIG_Py_Void();
14821 return resultobj;
14822fail:
14823 return NULL;
14824}
14825
14826
14827SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14828 PyObject *resultobj = 0;
14829 wxFont *arg1 = (wxFont *) 0 ;
14830 int arg2 ;
14831 void *argp1 = 0 ;
14832 int res1 = 0 ;
14833 int val2 ;
14834 int ecode2 = 0 ;
14835 PyObject * obj0 = 0 ;
14836 PyObject * obj1 = 0 ;
14837 char * kwnames[] = {
14838 (char *) "self",(char *) "style", NULL
14839 };
14840
14841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14843 if (!SWIG_IsOK(res1)) {
14844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14845 }
14846 arg1 = reinterpret_cast< wxFont * >(argp1);
14847 ecode2 = SWIG_AsVal_int(obj1, &val2);
14848 if (!SWIG_IsOK(ecode2)) {
14849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14850 }
14851 arg2 = static_cast< int >(val2);
14852 {
14853 PyThreadState* __tstate = wxPyBeginAllowThreads();
14854 (arg1)->SetStyle(arg2);
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 resultobj = SWIG_Py_Void();
14859 return resultobj;
14860fail:
14861 return NULL;
14862}
14863
14864
14865SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj = 0;
14867 wxFont *arg1 = (wxFont *) 0 ;
14868 int arg2 ;
14869 void *argp1 = 0 ;
14870 int res1 = 0 ;
14871 int val2 ;
14872 int ecode2 = 0 ;
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 char * kwnames[] = {
14876 (char *) "self",(char *) "weight", NULL
14877 };
14878
14879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14881 if (!SWIG_IsOK(res1)) {
14882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14883 }
14884 arg1 = reinterpret_cast< wxFont * >(argp1);
14885 ecode2 = SWIG_AsVal_int(obj1, &val2);
14886 if (!SWIG_IsOK(ecode2)) {
14887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14888 }
14889 arg2 = static_cast< int >(val2);
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 (arg1)->SetWeight(arg2);
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 resultobj = SWIG_Py_Void();
14897 return resultobj;
14898fail:
14899 return NULL;
14900}
14901
14902
14903SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj = 0;
14905 wxFont *arg1 = (wxFont *) 0 ;
14906 wxString *arg2 = 0 ;
704eda0c 14907 bool result;
1bd55598
RD
14908 void *argp1 = 0 ;
14909 int res1 = 0 ;
14910 bool temp2 = false ;
14911 PyObject * obj0 = 0 ;
14912 PyObject * obj1 = 0 ;
14913 char * kwnames[] = {
14914 (char *) "self",(char *) "faceName", NULL
14915 };
14916
14917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14919 if (!SWIG_IsOK(res1)) {
14920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14921 }
14922 arg1 = reinterpret_cast< wxFont * >(argp1);
14923 {
14924 arg2 = wxString_in_helper(obj1);
14925 if (arg2 == NULL) SWIG_fail;
14926 temp2 = true;
14927 }
14928 {
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14930 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
704eda0c
RD
14934 {
14935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14936 }
1bd55598
RD
14937 {
14938 if (temp2)
14939 delete arg2;
14940 }
14941 return resultobj;
14942fail:
14943 {
14944 if (temp2)
14945 delete arg2;
14946 }
14947 return NULL;
14948}
14949
14950
14951SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14952 PyObject *resultobj = 0;
14953 wxFont *arg1 = (wxFont *) 0 ;
14954 bool arg2 ;
14955 void *argp1 = 0 ;
14956 int res1 = 0 ;
14957 bool val2 ;
14958 int ecode2 = 0 ;
14959 PyObject * obj0 = 0 ;
14960 PyObject * obj1 = 0 ;
14961 char * kwnames[] = {
14962 (char *) "self",(char *) "underlined", NULL
14963 };
14964
14965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14967 if (!SWIG_IsOK(res1)) {
14968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14969 }
14970 arg1 = reinterpret_cast< wxFont * >(argp1);
14971 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14972 if (!SWIG_IsOK(ecode2)) {
14973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14974 }
14975 arg2 = static_cast< bool >(val2);
14976 {
14977 PyThreadState* __tstate = wxPyBeginAllowThreads();
14978 (arg1)->SetUnderlined(arg2);
14979 wxPyEndAllowThreads(__tstate);
14980 if (PyErr_Occurred()) SWIG_fail;
14981 }
14982 resultobj = SWIG_Py_Void();
14983 return resultobj;
14984fail:
14985 return NULL;
14986}
14987
14988
14989SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14990 PyObject *resultobj = 0;
14991 wxFont *arg1 = (wxFont *) 0 ;
14992 wxFontEncoding arg2 ;
14993 void *argp1 = 0 ;
14994 int res1 = 0 ;
14995 int val2 ;
14996 int ecode2 = 0 ;
14997 PyObject * obj0 = 0 ;
14998 PyObject * obj1 = 0 ;
14999 char * kwnames[] = {
15000 (char *) "self",(char *) "encoding", NULL
15001 };
15002
15003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15005 if (!SWIG_IsOK(res1)) {
15006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15007 }
15008 arg1 = reinterpret_cast< wxFont * >(argp1);
15009 ecode2 = SWIG_AsVal_int(obj1, &val2);
15010 if (!SWIG_IsOK(ecode2)) {
15011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15012 }
15013 arg2 = static_cast< wxFontEncoding >(val2);
15014 {
15015 PyThreadState* __tstate = wxPyBeginAllowThreads();
15016 (arg1)->SetEncoding(arg2);
15017 wxPyEndAllowThreads(__tstate);
15018 if (PyErr_Occurred()) SWIG_fail;
15019 }
15020 resultobj = SWIG_Py_Void();
15021 return resultobj;
15022fail:
15023 return NULL;
15024}
15025
15026
15027SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15028 PyObject *resultobj = 0;
15029 wxFont *arg1 = (wxFont *) 0 ;
15030 wxNativeFontInfo *arg2 = 0 ;
15031 void *argp1 = 0 ;
15032 int res1 = 0 ;
15033 void *argp2 = 0 ;
15034 int res2 = 0 ;
15035 PyObject * obj0 = 0 ;
15036 PyObject * obj1 = 0 ;
15037 char * kwnames[] = {
15038 (char *) "self",(char *) "info", NULL
15039 };
15040
15041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15043 if (!SWIG_IsOK(res1)) {
15044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15045 }
15046 arg1 = reinterpret_cast< wxFont * >(argp1);
15047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15048 if (!SWIG_IsOK(res2)) {
15049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15050 }
15051 if (!argp2) {
15052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15053 }
15054 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15055 {
15056 PyThreadState* __tstate = wxPyBeginAllowThreads();
15057 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15058 wxPyEndAllowThreads(__tstate);
15059 if (PyErr_Occurred()) SWIG_fail;
15060 }
15061 resultobj = SWIG_Py_Void();
15062 return resultobj;
15063fail:
15064 return NULL;
15065}
15066
15067
15068SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15069 PyObject *resultobj = 0;
15070 wxFont *arg1 = (wxFont *) 0 ;
15071 wxString *arg2 = 0 ;
704eda0c 15072 bool result;
1bd55598
RD
15073 void *argp1 = 0 ;
15074 int res1 = 0 ;
15075 bool temp2 = false ;
15076 PyObject * obj0 = 0 ;
15077 PyObject * obj1 = 0 ;
15078 char * kwnames[] = {
15079 (char *) "self",(char *) "info", NULL
15080 };
15081
15082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15084 if (!SWIG_IsOK(res1)) {
15085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15086 }
15087 arg1 = reinterpret_cast< wxFont * >(argp1);
15088 {
15089 arg2 = wxString_in_helper(obj1);
15090 if (arg2 == NULL) SWIG_fail;
15091 temp2 = true;
15092 }
15093 {
15094 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15095 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15096 wxPyEndAllowThreads(__tstate);
15097 if (PyErr_Occurred()) SWIG_fail;
15098 }
704eda0c
RD
15099 {
15100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15101 }
1bd55598
RD
15102 {
15103 if (temp2)
15104 delete arg2;
15105 }
15106 return resultobj;
15107fail:
15108 {
15109 if (temp2)
15110 delete arg2;
15111 }
15112 return NULL;
d55e5bfc
RD
15113}
15114
15115
1bd55598
RD
15116SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15117 PyObject *resultobj = 0;
15118 wxFont *arg1 = (wxFont *) 0 ;
15119 wxString *arg2 = 0 ;
704eda0c 15120 bool result;
1bd55598
RD
15121 void *argp1 = 0 ;
15122 int res1 = 0 ;
15123 bool temp2 = false ;
15124 PyObject * obj0 = 0 ;
15125 PyObject * obj1 = 0 ;
15126 char * kwnames[] = {
15127 (char *) "self",(char *) "info", NULL
15128 };
15129
15130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15132 if (!SWIG_IsOK(res1)) {
15133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15134 }
15135 arg1 = reinterpret_cast< wxFont * >(argp1);
15136 {
15137 arg2 = wxString_in_helper(obj1);
15138 if (arg2 == NULL) SWIG_fail;
15139 temp2 = true;
15140 }
15141 {
15142 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15143 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15144 wxPyEndAllowThreads(__tstate);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
704eda0c
RD
15147 {
15148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15149 }
1bd55598
RD
15150 {
15151 if (temp2)
15152 delete arg2;
15153 }
15154 return resultobj;
15155fail:
15156 {
15157 if (temp2)
15158 delete arg2;
15159 }
15160 return NULL;
d55e5bfc
RD
15161}
15162
15163
1bd55598
RD
15164SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15165 PyObject *resultobj = 0;
15166 wxFont *arg1 = (wxFont *) 0 ;
15167 wxString result;
15168 void *argp1 = 0 ;
15169 int res1 = 0 ;
15170 PyObject *swig_obj[1] ;
15171
15172 if (!args) SWIG_fail;
15173 swig_obj[0] = args;
15174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15175 if (!SWIG_IsOK(res1)) {
15176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15177 }
15178 arg1 = reinterpret_cast< wxFont * >(argp1);
15179 {
15180 PyThreadState* __tstate = wxPyBeginAllowThreads();
15181 result = ((wxFont const *)arg1)->GetFamilyString();
15182 wxPyEndAllowThreads(__tstate);
15183 if (PyErr_Occurred()) SWIG_fail;
15184 }
15185 {
15186#if wxUSE_UNICODE
15187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15188#else
15189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15190#endif
15191 }
15192 return resultobj;
15193fail:
15194 return NULL;
d55e5bfc
RD
15195}
15196
15197
1bd55598
RD
15198SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15199 PyObject *resultobj = 0;
15200 wxFont *arg1 = (wxFont *) 0 ;
15201 wxString result;
15202 void *argp1 = 0 ;
15203 int res1 = 0 ;
15204 PyObject *swig_obj[1] ;
15205
15206 if (!args) SWIG_fail;
15207 swig_obj[0] = args;
15208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15209 if (!SWIG_IsOK(res1)) {
15210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15211 }
15212 arg1 = reinterpret_cast< wxFont * >(argp1);
15213 {
15214 PyThreadState* __tstate = wxPyBeginAllowThreads();
15215 result = ((wxFont const *)arg1)->GetStyleString();
15216 wxPyEndAllowThreads(__tstate);
15217 if (PyErr_Occurred()) SWIG_fail;
15218 }
15219 {
15220#if wxUSE_UNICODE
15221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15222#else
15223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15224#endif
15225 }
15226 return resultobj;
15227fail:
15228 return NULL;
d55e5bfc
RD
15229}
15230
15231
1bd55598
RD
15232SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15233 PyObject *resultobj = 0;
15234 wxFont *arg1 = (wxFont *) 0 ;
15235 wxString result;
15236 void *argp1 = 0 ;
15237 int res1 = 0 ;
15238 PyObject *swig_obj[1] ;
15239
15240 if (!args) SWIG_fail;
15241 swig_obj[0] = args;
15242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15243 if (!SWIG_IsOK(res1)) {
15244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15245 }
15246 arg1 = reinterpret_cast< wxFont * >(argp1);
15247 {
15248 PyThreadState* __tstate = wxPyBeginAllowThreads();
15249 result = ((wxFont const *)arg1)->GetWeightString();
15250 wxPyEndAllowThreads(__tstate);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 }
15253 {
15254#if wxUSE_UNICODE
15255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15256#else
15257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15258#endif
15259 }
15260 return resultobj;
15261fail:
15262 return NULL;
15263}
15264
15265
15266SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15267 PyObject *resultobj = 0;
15268 wxFont *arg1 = (wxFont *) 0 ;
15269 bool arg2 = (bool) true ;
15270 void *argp1 = 0 ;
15271 int res1 = 0 ;
15272 bool val2 ;
15273 int ecode2 = 0 ;
15274 PyObject * obj0 = 0 ;
15275 PyObject * obj1 = 0 ;
15276 char * kwnames[] = {
15277 (char *) "self",(char *) "no", NULL
15278 };
15279
15280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15282 if (!SWIG_IsOK(res1)) {
15283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15284 }
15285 arg1 = reinterpret_cast< wxFont * >(argp1);
15286 if (obj1) {
15287 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15288 if (!SWIG_IsOK(ecode2)) {
15289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15290 }
15291 arg2 = static_cast< bool >(val2);
15292 }
15293 {
15294 PyThreadState* __tstate = wxPyBeginAllowThreads();
15295 (arg1)->SetNoAntiAliasing(arg2);
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 resultobj = SWIG_Py_Void();
15300 return resultobj;
15301fail:
15302 return NULL;
d55e5bfc
RD
15303}
15304
15305
1bd55598
RD
15306SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15307 PyObject *resultobj = 0;
15308 wxFont *arg1 = (wxFont *) 0 ;
15309 bool result;
15310 void *argp1 = 0 ;
15311 int res1 = 0 ;
15312 PyObject *swig_obj[1] ;
15313
15314 if (!args) SWIG_fail;
15315 swig_obj[0] = args;
15316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15317 if (!SWIG_IsOK(res1)) {
15318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15319 }
15320 arg1 = reinterpret_cast< wxFont * >(argp1);
15321 {
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15324 wxPyEndAllowThreads(__tstate);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 {
15328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15329 }
15330 return resultobj;
15331fail:
15332 return NULL;
d55e5bfc
RD
15333}
15334
15335
1bd55598
RD
15336SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15337 PyObject *resultobj = 0;
15338 wxFontEncoding result;
15339
15340 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15341 {
15342 if (!wxPyCheckForApp()) SWIG_fail;
15343 PyThreadState* __tstate = wxPyBeginAllowThreads();
15344 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15345 wxPyEndAllowThreads(__tstate);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 resultobj = SWIG_From_int(static_cast< int >(result));
15349 return resultobj;
15350fail:
15351 return NULL;
d55e5bfc
RD
15352}
15353
15354
1bd55598
RD
15355SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj = 0;
15357 wxFontEncoding arg1 ;
15358 int val1 ;
15359 int ecode1 = 0 ;
15360 PyObject * obj0 = 0 ;
15361 char * kwnames[] = {
15362 (char *) "encoding", NULL
15363 };
15364
15365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15366 ecode1 = SWIG_AsVal_int(obj0, &val1);
15367 if (!SWIG_IsOK(ecode1)) {
15368 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15369 }
15370 arg1 = static_cast< wxFontEncoding >(val1);
15371 {
15372 if (!wxPyCheckForApp()) SWIG_fail;
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 wxFont::SetDefaultEncoding(arg1);
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 resultobj = SWIG_Py_Void();
15379 return resultobj;
15380fail:
15381 return NULL;
d55e5bfc
RD
15382}
15383
15384
1bd55598
RD
15385SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15386 PyObject *obj;
15387 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15388 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15389 return SWIG_Py_Void();
d55e5bfc 15390}
d55e5bfc 15391
1bd55598
RD
15392SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15393 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15394}
15395
1bd55598
RD
15396SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15397 PyObject *resultobj = 0;
15398 wxPyFontEnumerator *result = 0 ;
15399
15400 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15401 {
15402 if (!wxPyCheckForApp()) SWIG_fail;
15403 PyThreadState* __tstate = wxPyBeginAllowThreads();
15404 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15405 wxPyEndAllowThreads(__tstate);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 }
15408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15409 return resultobj;
15410fail:
15411 return NULL;
d55e5bfc
RD
15412}
15413
15414
1bd55598
RD
15415SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15416 PyObject *resultobj = 0;
15417 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15418 void *argp1 = 0 ;
15419 int res1 = 0 ;
15420 PyObject *swig_obj[1] ;
15421
15422 if (!args) SWIG_fail;
15423 swig_obj[0] = args;
15424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15425 if (!SWIG_IsOK(res1)) {
15426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15427 }
15428 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15429 {
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
15431 delete arg1;
d55e5bfc 15432
1bd55598
RD
15433 wxPyEndAllowThreads(__tstate);
15434 if (PyErr_Occurred()) SWIG_fail;
15435 }
15436 resultobj = SWIG_Py_Void();
15437 return resultobj;
15438fail:
15439 return NULL;
15440}
15441
15442
15443SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15444 PyObject *resultobj = 0;
15445 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15446 PyObject *arg2 = (PyObject *) 0 ;
15447 PyObject *arg3 = (PyObject *) 0 ;
15448 bool arg4 ;
15449 void *argp1 = 0 ;
15450 int res1 = 0 ;
15451 bool val4 ;
15452 int ecode4 = 0 ;
15453 PyObject * obj0 = 0 ;
15454 PyObject * obj1 = 0 ;
15455 PyObject * obj2 = 0 ;
15456 PyObject * obj3 = 0 ;
15457 char * kwnames[] = {
15458 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15459 };
15460
15461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15463 if (!SWIG_IsOK(res1)) {
15464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15465 }
15466 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15467 arg2 = obj1;
15468 arg3 = obj2;
15469 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15470 if (!SWIG_IsOK(ecode4)) {
15471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15472 }
15473 arg4 = static_cast< bool >(val4);
15474 {
15475 PyThreadState* __tstate = wxPyBeginAllowThreads();
15476 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15477 wxPyEndAllowThreads(__tstate);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 resultobj = SWIG_Py_Void();
15481 return resultobj;
15482fail:
15483 return NULL;
15484}
15485
15486
15487SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15488 PyObject *resultobj = 0;
15489 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15490 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15491 bool arg3 = (bool) false ;
15492 bool result;
15493 void *argp1 = 0 ;
15494 int res1 = 0 ;
15495 int val2 ;
15496 int ecode2 = 0 ;
15497 bool val3 ;
15498 int ecode3 = 0 ;
15499 PyObject * obj0 = 0 ;
15500 PyObject * obj1 = 0 ;
15501 PyObject * obj2 = 0 ;
15502 char * kwnames[] = {
15503 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15504 };
15505
15506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15508 if (!SWIG_IsOK(res1)) {
15509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15510 }
15511 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15512 if (obj1) {
15513 ecode2 = SWIG_AsVal_int(obj1, &val2);
15514 if (!SWIG_IsOK(ecode2)) {
15515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15516 }
15517 arg2 = static_cast< wxFontEncoding >(val2);
15518 }
15519 if (obj2) {
15520 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15521 if (!SWIG_IsOK(ecode3)) {
15522 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15523 }
15524 arg3 = static_cast< bool >(val3);
15525 }
15526 {
15527 PyThreadState* __tstate = wxPyBeginAllowThreads();
15528 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15529 wxPyEndAllowThreads(__tstate);
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 {
15533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15534 }
15535 return resultobj;
15536fail:
15537 return NULL;
15538}
15539
15540
15541SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj = 0;
15543 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15544 wxString const &arg2_defvalue = wxPyEmptyString ;
15545 wxString *arg2 = (wxString *) &arg2_defvalue ;
15546 bool result;
15547 void *argp1 = 0 ;
15548 int res1 = 0 ;
15549 bool temp2 = false ;
15550 PyObject * obj0 = 0 ;
15551 PyObject * obj1 = 0 ;
15552 char * kwnames[] = {
15553 (char *) "self",(char *) "facename", NULL
15554 };
15555
15556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15558 if (!SWIG_IsOK(res1)) {
15559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15560 }
15561 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15562 if (obj1) {
36ed4f51 15563 {
1bd55598
RD
15564 arg2 = wxString_in_helper(obj1);
15565 if (arg2 == NULL) SWIG_fail;
15566 temp2 = true;
36ed4f51 15567 }
1bd55598
RD
15568 }
15569 {
15570 PyThreadState* __tstate = wxPyBeginAllowThreads();
15571 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15572 wxPyEndAllowThreads(__tstate);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 {
15576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15577 }
15578 {
15579 if (temp2)
15580 delete arg2;
15581 }
15582 return resultobj;
15583fail:
15584 {
15585 if (temp2)
15586 delete arg2;
15587 }
15588 return NULL;
d55e5bfc
RD
15589}
15590
15591
1bd55598
RD
15592SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15593 PyObject *resultobj = 0;
1bd55598 15594 PyObject *result = 0 ;
1bd55598 15595
704eda0c 15596 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15597 {
15598 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15599 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15600 wxPyEndAllowThreads(__tstate);
15601 if (PyErr_Occurred()) SWIG_fail;
15602 }
15603 resultobj = result;
15604 return resultobj;
15605fail:
15606 return NULL;
d55e5bfc
RD
15607}
15608
15609
1bd55598
RD
15610SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15611 PyObject *resultobj = 0;
1bd55598 15612 PyObject *result = 0 ;
1bd55598 15613
704eda0c 15614 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15615 {
15616 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15617 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15618 wxPyEndAllowThreads(__tstate);
15619 if (PyErr_Occurred()) SWIG_fail;
15620 }
15621 resultobj = result;
15622 return resultobj;
15623fail:
15624 return NULL;
d55e5bfc
RD
15625}
15626
15627
704eda0c
RD
15628SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15629 PyObject *resultobj = 0;
15630 wxString *arg1 = 0 ;
15631 bool result;
15632 bool temp1 = false ;
15633 PyObject * obj0 = 0 ;
15634 char * kwnames[] = {
15635 (char *) "str", NULL
15636 };
15637
15638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15639 {
15640 arg1 = wxString_in_helper(obj0);
15641 if (arg1 == NULL) SWIG_fail;
15642 temp1 = true;
15643 }
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15647 wxPyEndAllowThreads(__tstate);
15648 if (PyErr_Occurred()) SWIG_fail;
15649 }
15650 {
15651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15652 }
15653 {
15654 if (temp1)
15655 delete arg1;
15656 }
15657 return resultobj;
15658fail:
15659 {
15660 if (temp1)
15661 delete arg1;
15662 }
15663 return NULL;
15664}
15665
15666
1bd55598
RD
15667SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15668 PyObject *obj;
15669 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15670 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15671 return SWIG_Py_Void();
d55e5bfc
RD
15672}
15673
1bd55598
RD
15674SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15675 return SWIG_Python_InitShadowInstance(args);
15676}
d55e5bfc 15677
1bd55598
RD
15678SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15679 PyObject *resultobj = 0;
15680 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15681 int arg2 ;
15682 void *argp1 = 0 ;
15683 int res1 = 0 ;
15684 int val2 ;
15685 int ecode2 = 0 ;
15686 PyObject *swig_obj[2] ;
15687
15688 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15690 if (!SWIG_IsOK(res1)) {
15691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15692 }
15693 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15694 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15695 if (!SWIG_IsOK(ecode2)) {
15696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15697 }
15698 arg2 = static_cast< int >(val2);
15699 if (arg1) (arg1)->Language = arg2;
15700
15701 resultobj = SWIG_Py_Void();
15702 return resultobj;
15703fail:
15704 return NULL;
d55e5bfc
RD
15705}
15706
15707
1bd55598
RD
15708SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15709 PyObject *resultobj = 0;
15710 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15711 int result;
15712 void *argp1 = 0 ;
15713 int res1 = 0 ;
15714 PyObject *swig_obj[1] ;
15715
15716 if (!args) SWIG_fail;
15717 swig_obj[0] = args;
15718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15719 if (!SWIG_IsOK(res1)) {
15720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15721 }
15722 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15723 result = (int) ((arg1)->Language);
15724 resultobj = SWIG_From_int(static_cast< int >(result));
15725 return resultobj;
15726fail:
15727 return NULL;
15728}
15729
15730
15731SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15732 PyObject *resultobj = 0;
15733 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15734 wxString *arg2 = (wxString *) 0 ;
15735 void *argp1 = 0 ;
15736 int res1 = 0 ;
15737 bool temp2 = false ;
15738 PyObject *swig_obj[2] ;
15739
15740 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15742 if (!SWIG_IsOK(res1)) {
15743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15744 }
15745 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15746 {
15747 arg2 = wxString_in_helper(swig_obj[1]);
15748 if (arg2 == NULL) SWIG_fail;
15749 temp2 = true;
15750 }
15751 if (arg1) (arg1)->CanonicalName = *arg2;
15752
15753 resultobj = SWIG_Py_Void();
15754 {
15755 if (temp2)
15756 delete arg2;
15757 }
15758 return resultobj;
15759fail:
15760 {
15761 if (temp2)
15762 delete arg2;
15763 }
15764 return NULL;
d55e5bfc
RD
15765}
15766
15767
1bd55598
RD
15768SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15769 PyObject *resultobj = 0;
15770 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15771 wxString *result = 0 ;
15772 void *argp1 = 0 ;
15773 int res1 = 0 ;
15774 PyObject *swig_obj[1] ;
15775
15776 if (!args) SWIG_fail;
15777 swig_obj[0] = args;
15778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15779 if (!SWIG_IsOK(res1)) {
15780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15781 }
15782 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15783 result = (wxString *)& ((arg1)->CanonicalName);
15784 {
15785#if wxUSE_UNICODE
15786 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15787#else
15788 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15789#endif
15790 }
15791 return resultobj;
15792fail:
15793 return NULL;
d55e5bfc
RD
15794}
15795
15796
1bd55598
RD
15797SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15798 PyObject *resultobj = 0;
15799 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15800 wxString *arg2 = (wxString *) 0 ;
15801 void *argp1 = 0 ;
15802 int res1 = 0 ;
15803 bool temp2 = false ;
15804 PyObject *swig_obj[2] ;
15805
15806 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15808 if (!SWIG_IsOK(res1)) {
15809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15810 }
15811 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15812 {
15813 arg2 = wxString_in_helper(swig_obj[1]);
15814 if (arg2 == NULL) SWIG_fail;
15815 temp2 = true;
15816 }
15817 if (arg1) (arg1)->Description = *arg2;
15818
15819 resultobj = SWIG_Py_Void();
15820 {
15821 if (temp2)
15822 delete arg2;
15823 }
15824 return resultobj;
15825fail:
15826 {
15827 if (temp2)
15828 delete arg2;
15829 }
15830 return NULL;
d55e5bfc
RD
15831}
15832
15833
1bd55598
RD
15834SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15835 PyObject *resultobj = 0;
15836 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15837 wxString *result = 0 ;
15838 void *argp1 = 0 ;
15839 int res1 = 0 ;
15840 PyObject *swig_obj[1] ;
15841
15842 if (!args) SWIG_fail;
15843 swig_obj[0] = args;
15844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15845 if (!SWIG_IsOK(res1)) {
15846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15847 }
15848 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15849 result = (wxString *)& ((arg1)->Description);
15850 {
15851#if wxUSE_UNICODE
15852 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15853#else
15854 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15855#endif
15856 }
15857 return resultobj;
15858fail:
15859 return NULL;
15860}
15861
15862
15863SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15864 PyObject *obj;
15865 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15866 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15867 return SWIG_Py_Void();
15868}
15869
15870SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15871 PyObject *resultobj = 0;
15872 int arg1 = (int) -1 ;
15873 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15874 wxLocale *result = 0 ;
15875 int val1 ;
15876 int ecode1 = 0 ;
15877 int val2 ;
15878 int ecode2 = 0 ;
15879 PyObject * obj0 = 0 ;
15880 PyObject * obj1 = 0 ;
15881 char * kwnames[] = {
15882 (char *) "language",(char *) "flags", NULL
15883 };
15884
15885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15886 if (obj0) {
15887 ecode1 = SWIG_AsVal_int(obj0, &val1);
15888 if (!SWIG_IsOK(ecode1)) {
15889 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15890 }
15891 arg1 = static_cast< int >(val1);
15892 }
15893 if (obj1) {
15894 ecode2 = SWIG_AsVal_int(obj1, &val2);
15895 if (!SWIG_IsOK(ecode2)) {
15896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15897 }
15898 arg2 = static_cast< int >(val2);
15899 }
15900 {
15901 PyThreadState* __tstate = wxPyBeginAllowThreads();
15902 result = (wxLocale *)new_wxLocale(arg1,arg2);
15903 wxPyEndAllowThreads(__tstate);
15904 if (PyErr_Occurred()) SWIG_fail;
15905 }
15906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15907 return resultobj;
15908fail:
15909 return NULL;
d55e5bfc
RD
15910}
15911
15912
1bd55598
RD
15913SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15914 PyObject *resultobj = 0;
15915 wxLocale *arg1 = (wxLocale *) 0 ;
15916 void *argp1 = 0 ;
15917 int res1 = 0 ;
15918 PyObject *swig_obj[1] ;
15919
15920 if (!args) SWIG_fail;
15921 swig_obj[0] = args;
15922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15923 if (!SWIG_IsOK(res1)) {
15924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15925 }
15926 arg1 = reinterpret_cast< wxLocale * >(argp1);
15927 {
15928 PyThreadState* __tstate = wxPyBeginAllowThreads();
15929 delete arg1;
d55e5bfc 15930
1bd55598
RD
15931 wxPyEndAllowThreads(__tstate);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
15934 resultobj = SWIG_Py_Void();
15935 return resultobj;
15936fail:
15937 return NULL;
15938}
15939
15940
15941SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15942 PyObject *resultobj = 0;
15943 wxLocale *arg1 = (wxLocale *) 0 ;
15944 wxString *arg2 = 0 ;
15945 wxString const &arg3_defvalue = wxPyEmptyString ;
15946 wxString *arg3 = (wxString *) &arg3_defvalue ;
15947 wxString const &arg4_defvalue = wxPyEmptyString ;
15948 wxString *arg4 = (wxString *) &arg4_defvalue ;
15949 bool arg5 = (bool) true ;
15950 bool arg6 = (bool) false ;
15951 bool result;
15952 void *argp1 = 0 ;
15953 int res1 = 0 ;
15954 bool temp2 = false ;
15955 bool temp3 = false ;
15956 bool temp4 = false ;
15957 bool val5 ;
15958 int ecode5 = 0 ;
15959 bool val6 ;
15960 int ecode6 = 0 ;
15961 PyObject * obj0 = 0 ;
15962 PyObject * obj1 = 0 ;
15963 PyObject * obj2 = 0 ;
15964 PyObject * obj3 = 0 ;
15965 PyObject * obj4 = 0 ;
15966 PyObject * obj5 = 0 ;
15967 char * kwnames[] = {
15968 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15969 };
15970
15971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15973 if (!SWIG_IsOK(res1)) {
15974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15975 }
15976 arg1 = reinterpret_cast< wxLocale * >(argp1);
15977 {
15978 arg2 = wxString_in_helper(obj1);
15979 if (arg2 == NULL) SWIG_fail;
15980 temp2 = true;
15981 }
15982 if (obj2) {
d55e5bfc 15983 {
1bd55598
RD
15984 arg3 = wxString_in_helper(obj2);
15985 if (arg3 == NULL) SWIG_fail;
15986 temp3 = true;
d55e5bfc 15987 }
1bd55598
RD
15988 }
15989 if (obj3) {
36ed4f51 15990 {
1bd55598
RD
15991 arg4 = wxString_in_helper(obj3);
15992 if (arg4 == NULL) SWIG_fail;
15993 temp4 = true;
36ed4f51 15994 }
1bd55598
RD
15995 }
15996 if (obj4) {
15997 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15998 if (!SWIG_IsOK(ecode5)) {
15999 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16000 }
16001 arg5 = static_cast< bool >(val5);
16002 }
16003 if (obj5) {
16004 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16005 if (!SWIG_IsOK(ecode6)) {
16006 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16007 }
16008 arg6 = static_cast< bool >(val6);
16009 }
16010 {
16011 PyThreadState* __tstate = wxPyBeginAllowThreads();
16012 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16013 wxPyEndAllowThreads(__tstate);
16014 if (PyErr_Occurred()) SWIG_fail;
16015 }
16016 {
16017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16018 }
16019 {
16020 if (temp2)
16021 delete arg2;
16022 }
16023 {
16024 if (temp3)
16025 delete arg3;
16026 }
16027 {
16028 if (temp4)
16029 delete arg4;
16030 }
16031 return resultobj;
16032fail:
16033 {
16034 if (temp2)
16035 delete arg2;
16036 }
16037 {
16038 if (temp3)
16039 delete arg3;
16040 }
16041 {
16042 if (temp4)
16043 delete arg4;
16044 }
16045 return NULL;
16046}
16047
16048
16049SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16050 PyObject *resultobj = 0;
16051 wxLocale *arg1 = (wxLocale *) 0 ;
16052 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16053 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16054 bool result;
16055 void *argp1 = 0 ;
16056 int res1 = 0 ;
16057 int val2 ;
16058 int ecode2 = 0 ;
16059 int val3 ;
16060 int ecode3 = 0 ;
16061 PyObject * obj0 = 0 ;
16062 PyObject * obj1 = 0 ;
16063 PyObject * obj2 = 0 ;
16064 char * kwnames[] = {
16065 (char *) "self",(char *) "language",(char *) "flags", NULL
16066 };
16067
16068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16070 if (!SWIG_IsOK(res1)) {
16071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16072 }
16073 arg1 = reinterpret_cast< wxLocale * >(argp1);
16074 if (obj1) {
16075 ecode2 = SWIG_AsVal_int(obj1, &val2);
16076 if (!SWIG_IsOK(ecode2)) {
16077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16078 }
16079 arg2 = static_cast< int >(val2);
16080 }
16081 if (obj2) {
16082 ecode3 = SWIG_AsVal_int(obj2, &val3);
16083 if (!SWIG_IsOK(ecode3)) {
16084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16085 }
16086 arg3 = static_cast< int >(val3);
16087 }
16088 {
16089 PyThreadState* __tstate = wxPyBeginAllowThreads();
16090 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16091 wxPyEndAllowThreads(__tstate);
16092 if (PyErr_Occurred()) SWIG_fail;
16093 }
16094 {
16095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16096 }
16097 return resultobj;
16098fail:
16099 return NULL;
d55e5bfc
RD
16100}
16101
16102
1bd55598
RD
16103SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16104 PyObject *resultobj = 0;
16105 int result;
16106
16107 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16108 {
16109 PyThreadState* __tstate = wxPyBeginAllowThreads();
16110 result = (int)wxLocale::GetSystemLanguage();
16111 wxPyEndAllowThreads(__tstate);
16112 if (PyErr_Occurred()) SWIG_fail;
16113 }
16114 resultobj = SWIG_From_int(static_cast< int >(result));
16115 return resultobj;
16116fail:
16117 return NULL;
d55e5bfc
RD
16118}
16119
16120
1bd55598
RD
16121SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16122 PyObject *resultobj = 0;
16123 wxFontEncoding result;
16124
16125 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16126 {
16127 PyThreadState* __tstate = wxPyBeginAllowThreads();
16128 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 resultobj = SWIG_From_int(static_cast< int >(result));
16133 return resultobj;
16134fail:
16135 return NULL;
d55e5bfc
RD
16136}
16137
16138
1bd55598
RD
16139SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16140 PyObject *resultobj = 0;
16141 wxString result;
16142
16143 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16144 {
16145 PyThreadState* __tstate = wxPyBeginAllowThreads();
16146 result = wxLocale::GetSystemEncodingName();
16147 wxPyEndAllowThreads(__tstate);
16148 if (PyErr_Occurred()) SWIG_fail;
16149 }
16150 {
16151#if wxUSE_UNICODE
16152 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16153#else
16154 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16155#endif
16156 }
16157 return resultobj;
16158fail:
16159 return NULL;
d55e5bfc
RD
16160}
16161
16162
1bd55598
RD
16163SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16164 PyObject *resultobj = 0;
16165 wxLocale *arg1 = (wxLocale *) 0 ;
16166 bool result;
16167 void *argp1 = 0 ;
16168 int res1 = 0 ;
16169 PyObject *swig_obj[1] ;
16170
16171 if (!args) SWIG_fail;
16172 swig_obj[0] = args;
16173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16174 if (!SWIG_IsOK(res1)) {
16175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16176 }
16177 arg1 = reinterpret_cast< wxLocale * >(argp1);
16178 {
16179 PyThreadState* __tstate = wxPyBeginAllowThreads();
16180 result = (bool)((wxLocale const *)arg1)->IsOk();
16181 wxPyEndAllowThreads(__tstate);
16182 if (PyErr_Occurred()) SWIG_fail;
16183 }
16184 {
16185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16186 }
16187 return resultobj;
16188fail:
16189 return NULL;
d55e5bfc
RD
16190}
16191
16192
1bd55598
RD
16193SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16194 PyObject *resultobj = 0;
16195 wxLocale *arg1 = (wxLocale *) 0 ;
16196 wxString result;
16197 void *argp1 = 0 ;
16198 int res1 = 0 ;
16199 PyObject *swig_obj[1] ;
16200
16201 if (!args) SWIG_fail;
16202 swig_obj[0] = args;
16203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16204 if (!SWIG_IsOK(res1)) {
16205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16206 }
16207 arg1 = reinterpret_cast< wxLocale * >(argp1);
16208 {
16209 PyThreadState* __tstate = wxPyBeginAllowThreads();
16210 result = ((wxLocale const *)arg1)->GetLocale();
16211 wxPyEndAllowThreads(__tstate);
16212 if (PyErr_Occurred()) SWIG_fail;
16213 }
16214 {
16215#if wxUSE_UNICODE
16216 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16217#else
16218 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16219#endif
16220 }
16221 return resultobj;
16222fail:
16223 return NULL;
d55e5bfc
RD
16224}
16225
16226
1bd55598
RD
16227SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16228 PyObject *resultobj = 0;
16229 wxLocale *arg1 = (wxLocale *) 0 ;
16230 int result;
16231 void *argp1 = 0 ;
16232 int res1 = 0 ;
16233 PyObject *swig_obj[1] ;
16234
16235 if (!args) SWIG_fail;
16236 swig_obj[0] = args;
16237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16238 if (!SWIG_IsOK(res1)) {
16239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16240 }
16241 arg1 = reinterpret_cast< wxLocale * >(argp1);
16242 {
16243 PyThreadState* __tstate = wxPyBeginAllowThreads();
16244 result = (int)((wxLocale const *)arg1)->GetLanguage();
16245 wxPyEndAllowThreads(__tstate);
16246 if (PyErr_Occurred()) SWIG_fail;
16247 }
16248 resultobj = SWIG_From_int(static_cast< int >(result));
16249 return resultobj;
16250fail:
16251 return NULL;
d55e5bfc
RD
16252}
16253
16254
1bd55598
RD
16255SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16256 PyObject *resultobj = 0;
16257 wxLocale *arg1 = (wxLocale *) 0 ;
16258 wxString result;
16259 void *argp1 = 0 ;
16260 int res1 = 0 ;
16261 PyObject *swig_obj[1] ;
16262
16263 if (!args) SWIG_fail;
16264 swig_obj[0] = args;
16265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16266 if (!SWIG_IsOK(res1)) {
16267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16268 }
16269 arg1 = reinterpret_cast< wxLocale * >(argp1);
16270 {
16271 PyThreadState* __tstate = wxPyBeginAllowThreads();
16272 result = ((wxLocale const *)arg1)->GetSysName();
16273 wxPyEndAllowThreads(__tstate);
16274 if (PyErr_Occurred()) SWIG_fail;
16275 }
16276 {
36ed4f51 16277#if wxUSE_UNICODE
1bd55598 16278 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16279#else
1bd55598 16280 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16281#endif
1bd55598
RD
16282 }
16283 return resultobj;
16284fail:
16285 return NULL;
d55e5bfc
RD
16286}
16287
16288
1bd55598
RD
16289SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16290 PyObject *resultobj = 0;
16291 wxLocale *arg1 = (wxLocale *) 0 ;
16292 wxString result;
16293 void *argp1 = 0 ;
16294 int res1 = 0 ;
16295 PyObject *swig_obj[1] ;
16296
16297 if (!args) SWIG_fail;
16298 swig_obj[0] = args;
16299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16300 if (!SWIG_IsOK(res1)) {
16301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16302 }
16303 arg1 = reinterpret_cast< wxLocale * >(argp1);
16304 {
16305 PyThreadState* __tstate = wxPyBeginAllowThreads();
16306 result = ((wxLocale const *)arg1)->GetCanonicalName();
16307 wxPyEndAllowThreads(__tstate);
16308 if (PyErr_Occurred()) SWIG_fail;
16309 }
16310 {
16311#if wxUSE_UNICODE
16312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16313#else
16314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16315#endif
16316 }
16317 return resultobj;
16318fail:
16319 return NULL;
d55e5bfc
RD
16320}
16321
16322
1bd55598
RD
16323SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16324 PyObject *resultobj = 0;
16325 wxString *arg1 = 0 ;
16326 bool temp1 = false ;
16327 PyObject * obj0 = 0 ;
16328 char * kwnames[] = {
16329 (char *) "prefix", NULL
16330 };
16331
16332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16333 {
16334 arg1 = wxString_in_helper(obj0);
16335 if (arg1 == NULL) SWIG_fail;
16336 temp1 = true;
16337 }
16338 {
16339 PyThreadState* __tstate = wxPyBeginAllowThreads();
16340 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16341 wxPyEndAllowThreads(__tstate);
16342 if (PyErr_Occurred()) SWIG_fail;
16343 }
16344 resultobj = SWIG_Py_Void();
16345 {
16346 if (temp1)
16347 delete arg1;
16348 }
16349 return resultobj;
16350fail:
16351 {
16352 if (temp1)
16353 delete arg1;
16354 }
16355 return NULL;
16356}
16357
16358
16359SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16360 PyObject *resultobj = 0;
16361 wxLocale *arg1 = (wxLocale *) 0 ;
16362 wxString *arg2 = 0 ;
16363 bool result;
16364 void *argp1 = 0 ;
16365 int res1 = 0 ;
16366 bool temp2 = false ;
16367 PyObject * obj0 = 0 ;
16368 PyObject * obj1 = 0 ;
16369 char * kwnames[] = {
16370 (char *) "self",(char *) "szDomain", NULL
16371 };
16372
16373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16375 if (!SWIG_IsOK(res1)) {
16376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16377 }
16378 arg1 = reinterpret_cast< wxLocale * >(argp1);
16379 {
16380 arg2 = wxString_in_helper(obj1);
16381 if (arg2 == NULL) SWIG_fail;
16382 temp2 = true;
16383 }
16384 {
16385 PyThreadState* __tstate = wxPyBeginAllowThreads();
16386 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16387 wxPyEndAllowThreads(__tstate);
16388 if (PyErr_Occurred()) SWIG_fail;
16389 }
16390 {
16391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16392 }
16393 {
16394 if (temp2)
16395 delete arg2;
16396 }
16397 return resultobj;
16398fail:
16399 {
16400 if (temp2)
16401 delete arg2;
16402 }
16403 return NULL;
16404}
16405
16406
33d6fd3b
RD
16407SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16408 PyObject *resultobj = 0;
16409 int arg1 ;
16410 bool result;
16411 int val1 ;
16412 int ecode1 = 0 ;
16413 PyObject * obj0 = 0 ;
16414 char * kwnames[] = {
16415 (char *) "lang", NULL
16416 };
16417
16418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16419 ecode1 = SWIG_AsVal_int(obj0, &val1);
16420 if (!SWIG_IsOK(ecode1)) {
16421 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16422 }
16423 arg1 = static_cast< int >(val1);
16424 {
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (bool)wxLocale::IsAvailable(arg1);
16427 wxPyEndAllowThreads(__tstate);
16428 if (PyErr_Occurred()) SWIG_fail;
16429 }
16430 {
16431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16432 }
16433 return resultobj;
16434fail:
16435 return NULL;
16436}
16437
16438
1bd55598
RD
16439SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16440 PyObject *resultobj = 0;
16441 wxLocale *arg1 = (wxLocale *) 0 ;
16442 wxString *arg2 = 0 ;
16443 bool result;
16444 void *argp1 = 0 ;
16445 int res1 = 0 ;
16446 bool temp2 = false ;
16447 PyObject * obj0 = 0 ;
16448 PyObject * obj1 = 0 ;
16449 char * kwnames[] = {
16450 (char *) "self",(char *) "szDomain", NULL
16451 };
16452
16453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16455 if (!SWIG_IsOK(res1)) {
16456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16457 }
16458 arg1 = reinterpret_cast< wxLocale * >(argp1);
16459 {
16460 arg2 = wxString_in_helper(obj1);
16461 if (arg2 == NULL) SWIG_fail;
16462 temp2 = true;
16463 }
16464 {
16465 PyThreadState* __tstate = wxPyBeginAllowThreads();
16466 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16467 wxPyEndAllowThreads(__tstate);
16468 if (PyErr_Occurred()) SWIG_fail;
16469 }
16470 {
16471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16472 }
16473 {
16474 if (temp2)
16475 delete arg2;
16476 }
16477 return resultobj;
16478fail:
16479 {
16480 if (temp2)
16481 delete arg2;
16482 }
16483 return NULL;
d55e5bfc
RD
16484}
16485
16486
1bd55598
RD
16487SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16488 PyObject *resultobj = 0;
16489 int arg1 ;
16490 wxLanguageInfo *result = 0 ;
16491 int val1 ;
16492 int ecode1 = 0 ;
16493 PyObject * obj0 = 0 ;
16494 char * kwnames[] = {
16495 (char *) "lang", NULL
16496 };
16497
16498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16499 ecode1 = SWIG_AsVal_int(obj0, &val1);
16500 if (!SWIG_IsOK(ecode1)) {
16501 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16502 }
16503 arg1 = static_cast< int >(val1);
16504 {
16505 PyThreadState* __tstate = wxPyBeginAllowThreads();
16506 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16507 wxPyEndAllowThreads(__tstate);
16508 if (PyErr_Occurred()) SWIG_fail;
16509 }
16510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16511 return resultobj;
16512fail:
16513 return NULL;
16514}
16515
16516
16517SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16518 PyObject *resultobj = 0;
16519 int arg1 ;
16520 wxString result;
16521 int val1 ;
16522 int ecode1 = 0 ;
16523 PyObject * obj0 = 0 ;
16524 char * kwnames[] = {
16525 (char *) "lang", NULL
16526 };
16527
16528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16529 ecode1 = SWIG_AsVal_int(obj0, &val1);
16530 if (!SWIG_IsOK(ecode1)) {
16531 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16532 }
16533 arg1 = static_cast< int >(val1);
16534 {
16535 PyThreadState* __tstate = wxPyBeginAllowThreads();
16536 result = wxLocale::GetLanguageName(arg1);
16537 wxPyEndAllowThreads(__tstate);
16538 if (PyErr_Occurred()) SWIG_fail;
16539 }
16540 {
16541#if wxUSE_UNICODE
16542 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16543#else
16544 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16545#endif
16546 }
16547 return resultobj;
16548fail:
16549 return NULL;
d55e5bfc
RD
16550}
16551
16552
1bd55598
RD
16553SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16554 PyObject *resultobj = 0;
16555 wxString *arg1 = 0 ;
16556 wxLanguageInfo *result = 0 ;
16557 bool temp1 = false ;
16558 PyObject * obj0 = 0 ;
16559 char * kwnames[] = {
16560 (char *) "locale", NULL
16561 };
16562
16563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16564 {
16565 arg1 = wxString_in_helper(obj0);
16566 if (arg1 == NULL) SWIG_fail;
16567 temp1 = true;
16568 }
16569 {
16570 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16571 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
16575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16576 {
16577 if (temp1)
16578 delete arg1;
16579 }
16580 return resultobj;
16581fail:
16582 {
16583 if (temp1)
16584 delete arg1;
16585 }
16586 return NULL;
16587}
16588
16589
16590SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16591 PyObject *resultobj = 0;
16592 wxLanguageInfo *arg1 = 0 ;
16593 void *argp1 = 0 ;
16594 int res1 = 0 ;
16595 PyObject * obj0 = 0 ;
16596 char * kwnames[] = {
16597 (char *) "info", NULL
16598 };
16599
16600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16601 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16602 if (!SWIG_IsOK(res1)) {
16603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16604 }
16605 if (!argp1) {
16606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16607 }
16608 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16609 {
16610 PyThreadState* __tstate = wxPyBeginAllowThreads();
16611 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 resultobj = SWIG_Py_Void();
16616 return resultobj;
16617fail:
16618 return NULL;
16619}
16620
16621
16622SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16623 PyObject *resultobj = 0;
16624 wxLocale *arg1 = (wxLocale *) 0 ;
16625 wxString *arg2 = 0 ;
16626 wxString const &arg3_defvalue = wxPyEmptyString ;
16627 wxString *arg3 = (wxString *) &arg3_defvalue ;
16628 wxString result;
16629 void *argp1 = 0 ;
16630 int res1 = 0 ;
16631 bool temp2 = false ;
16632 bool temp3 = false ;
16633 PyObject * obj0 = 0 ;
16634 PyObject * obj1 = 0 ;
16635 PyObject * obj2 = 0 ;
16636 char * kwnames[] = {
16637 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16638 };
16639
16640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16642 if (!SWIG_IsOK(res1)) {
16643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16644 }
16645 arg1 = reinterpret_cast< wxLocale * >(argp1);
16646 {
16647 arg2 = wxString_in_helper(obj1);
16648 if (arg2 == NULL) SWIG_fail;
16649 temp2 = true;
16650 }
16651 if (obj2) {
16652 {
16653 arg3 = wxString_in_helper(obj2);
16654 if (arg3 == NULL) SWIG_fail;
16655 temp3 = true;
16656 }
16657 }
16658 {
16659 PyThreadState* __tstate = wxPyBeginAllowThreads();
16660 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16661 wxPyEndAllowThreads(__tstate);
16662 if (PyErr_Occurred()) SWIG_fail;
16663 }
16664 {
16665#if wxUSE_UNICODE
16666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16667#else
16668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16669#endif
16670 }
16671 {
16672 if (temp2)
16673 delete arg2;
16674 }
16675 {
16676 if (temp3)
16677 delete arg3;
16678 }
16679 return resultobj;
16680fail:
16681 {
16682 if (temp2)
16683 delete arg2;
16684 }
16685 {
16686 if (temp3)
16687 delete arg3;
16688 }
16689 return NULL;
16690}
16691
16692
16693SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16694 PyObject *resultobj = 0;
16695 wxLocale *arg1 = (wxLocale *) 0 ;
16696 wxString *result = 0 ;
16697 void *argp1 = 0 ;
16698 int res1 = 0 ;
16699 PyObject *swig_obj[1] ;
16700
16701 if (!args) SWIG_fail;
16702 swig_obj[0] = args;
16703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16704 if (!SWIG_IsOK(res1)) {
16705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16706 }
16707 arg1 = reinterpret_cast< wxLocale * >(argp1);
16708 {
16709 PyThreadState* __tstate = wxPyBeginAllowThreads();
16710 {
16711 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16712 result = (wxString *) &_result_ref;
16713 }
16714 wxPyEndAllowThreads(__tstate);
16715 if (PyErr_Occurred()) SWIG_fail;
16716 }
16717 {
16718#if wxUSE_UNICODE
16719 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16720#else
16721 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16722#endif
16723 }
16724 return resultobj;
16725fail:
16726 return NULL;
16727}
16728
16729
16730SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16731 PyObject *obj;
16732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16733 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16734 return SWIG_Py_Void();
16735}
16736
16737SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16738 return SWIG_Python_InitShadowInstance(args);
16739}
16740
16741SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16742 PyObject *resultobj = 0;
16743 int arg1 = (int) -1 ;
16744 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16745 wxPyLocale *result = 0 ;
16746 int val1 ;
16747 int ecode1 = 0 ;
16748 int val2 ;
16749 int ecode2 = 0 ;
16750 PyObject * obj0 = 0 ;
16751 PyObject * obj1 = 0 ;
16752 char * kwnames[] = {
16753 (char *) "language",(char *) "flags", NULL
16754 };
16755
16756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16757 if (obj0) {
16758 ecode1 = SWIG_AsVal_int(obj0, &val1);
16759 if (!SWIG_IsOK(ecode1)) {
16760 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16761 }
16762 arg1 = static_cast< int >(val1);
16763 }
16764 if (obj1) {
16765 ecode2 = SWIG_AsVal_int(obj1, &val2);
16766 if (!SWIG_IsOK(ecode2)) {
16767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16768 }
16769 arg2 = static_cast< int >(val2);
16770 }
16771 {
16772 PyThreadState* __tstate = wxPyBeginAllowThreads();
16773 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16774 wxPyEndAllowThreads(__tstate);
16775 if (PyErr_Occurred()) SWIG_fail;
16776 }
16777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16778 return resultobj;
16779fail:
16780 return NULL;
16781}
16782
16783
16784SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16785 PyObject *resultobj = 0;
16786 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16787 void *argp1 = 0 ;
16788 int res1 = 0 ;
16789 PyObject *swig_obj[1] ;
16790
16791 if (!args) SWIG_fail;
16792 swig_obj[0] = args;
16793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16794 if (!SWIG_IsOK(res1)) {
16795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16796 }
16797 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16798 {
16799 PyThreadState* __tstate = wxPyBeginAllowThreads();
16800 delete arg1;
16801
1bd55598
RD
16802 wxPyEndAllowThreads(__tstate);
16803 if (PyErr_Occurred()) SWIG_fail;
16804 }
fc46b7f3 16805 resultobj = SWIG_Py_Void();
1bd55598
RD
16806 return resultobj;
16807fail:
1bd55598 16808 return NULL;
d55e5bfc
RD
16809}
16810
16811
fc46b7f3 16812SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16813 PyObject *resultobj = 0;
fc46b7f3
RD
16814 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16815 PyObject *arg2 = (PyObject *) 0 ;
16816 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16817 void *argp1 = 0 ;
16818 int res1 = 0 ;
16819 PyObject * obj0 = 0 ;
fc46b7f3
RD
16820 PyObject * obj1 = 0 ;
16821 PyObject * obj2 = 0 ;
1bd55598 16822 char * kwnames[] = {
fc46b7f3 16823 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16824 };
16825
fc46b7f3
RD
16826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16828 if (!SWIG_IsOK(res1)) {
fc46b7f3 16829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16830 }
fc46b7f3
RD
16831 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16832 arg2 = obj1;
16833 arg3 = obj2;
1bd55598
RD
16834 {
16835 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16836 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16837 wxPyEndAllowThreads(__tstate);
16838 if (PyErr_Occurred()) SWIG_fail;
16839 }
16840 resultobj = SWIG_Py_Void();
16841 return resultobj;
16842fail:
16843 return NULL;
16844}
16845
16846
fc46b7f3 16847SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16848 PyObject *resultobj = 0;
fc46b7f3
RD
16849 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16850 wxChar *arg2 = (wxChar *) 0 ;
16851 wxChar *arg3 = (wxChar *) NULL ;
16852 wxChar *result = 0 ;
1bd55598
RD
16853 void *argp1 = 0 ;
16854 int res1 = 0 ;
fc46b7f3
RD
16855 void *argp2 = 0 ;
16856 int res2 = 0 ;
16857 void *argp3 = 0 ;
16858 int res3 = 0 ;
1bd55598
RD
16859 PyObject * obj0 = 0 ;
16860 PyObject * obj1 = 0 ;
16861 PyObject * obj2 = 0 ;
16862 char * kwnames[] = {
16863 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16864 };
16865
fc46b7f3
RD
16866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16868 if (!SWIG_IsOK(res1)) {
fc46b7f3 16869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16870 }
fc46b7f3
RD
16871 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16872 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16873 if (!SWIG_IsOK(res2)) {
16874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16875 }
fc46b7f3 16876 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16877 if (obj2) {
fc46b7f3
RD
16878 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16879 if (!SWIG_IsOK(res3)) {
16880 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16881 }
fc46b7f3 16882 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16883 }
16884 {
16885 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16886 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16887 wxPyEndAllowThreads(__tstate);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 }
fc46b7f3 16890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16891 return resultobj;
16892fail:
1bd55598 16893 return NULL;
d55e5bfc
RD
16894}
16895
16896
fc46b7f3 16897SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16898 PyObject *resultobj = 0;
fc46b7f3
RD
16899 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16900 wxChar *arg2 = (wxChar *) 0 ;
16901 wxChar *arg3 = (wxChar *) 0 ;
16902 size_t arg4 ;
16903 wxChar *arg5 = (wxChar *) NULL ;
16904 wxChar *result = 0 ;
1bd55598
RD
16905 void *argp1 = 0 ;
16906 int res1 = 0 ;
fc46b7f3
RD
16907 void *argp2 = 0 ;
16908 int res2 = 0 ;
16909 void *argp3 = 0 ;
16910 int res3 = 0 ;
16911 size_t val4 ;
16912 int ecode4 = 0 ;
16913 void *argp5 = 0 ;
16914 int res5 = 0 ;
16915 PyObject * obj0 = 0 ;
16916 PyObject * obj1 = 0 ;
16917 PyObject * obj2 = 0 ;
16918 PyObject * obj3 = 0 ;
16919 PyObject * obj4 = 0 ;
16920 char * kwnames[] = {
16921 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16922 };
1bd55598 16923
fc46b7f3
RD
16924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16926 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16928 }
16929 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16930 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16931 if (!SWIG_IsOK(res2)) {
16932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16933 }
16934 arg2 = reinterpret_cast< wxChar * >(argp2);
16935 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16936 if (!SWIG_IsOK(res3)) {
16937 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16938 }
16939 arg3 = reinterpret_cast< wxChar * >(argp3);
16940 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16941 if (!SWIG_IsOK(ecode4)) {
16942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16943 }
16944 arg4 = static_cast< size_t >(val4);
16945 if (obj4) {
16946 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16947 if (!SWIG_IsOK(res5)) {
16948 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16949 }
16950 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16951 }
1bd55598
RD
16952 {
16953 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16954 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16955 wxPyEndAllowThreads(__tstate);
16956 if (PyErr_Occurred()) SWIG_fail;
16957 }
fc46b7f3 16958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16959 return resultobj;
16960fail:
16961 return NULL;
d55e5bfc
RD
16962}
16963
16964
fc46b7f3 16965SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16966 PyObject *obj;
16967 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16968 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16969 return SWIG_Py_Void();
d55e5bfc
RD
16970}
16971
fc46b7f3 16972SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16973 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16974}
16975
1bd55598
RD
16976SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16977 PyObject *resultobj = 0;
16978 wxLocale *result = 0 ;
16979
16980 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16981 {
16982 PyThreadState* __tstate = wxPyBeginAllowThreads();
16983 result = (wxLocale *)wxGetLocale();
16984 wxPyEndAllowThreads(__tstate);
16985 if (PyErr_Occurred()) SWIG_fail;
16986 }
16987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16988 return resultobj;
16989fail:
16990 return NULL;
d55e5bfc
RD
16991}
16992
16993
1bd55598
RD
16994SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16995 PyObject *resultobj = 0;
16996 wxString *arg1 = 0 ;
16997 wxString result;
16998 bool temp1 = false ;
16999
17000 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17001 {
17002 arg1 = wxString_in_helper(swig_obj[0]);
17003 if (arg1 == NULL) SWIG_fail;
17004 temp1 = true;
17005 }
17006 {
17007 PyThreadState* __tstate = wxPyBeginAllowThreads();
17008 result = wxGetTranslation((wxString const &)*arg1);
17009 wxPyEndAllowThreads(__tstate);
17010 if (PyErr_Occurred()) SWIG_fail;
17011 }
17012 {
36ed4f51 17013#if wxUSE_UNICODE
1bd55598 17014 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17015#else
1bd55598 17016 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17017#endif
1bd55598
RD
17018 }
17019 {
17020 if (temp1)
17021 delete arg1;
17022 }
17023 return resultobj;
17024fail:
17025 {
17026 if (temp1)
17027 delete arg1;
17028 }
17029 return NULL;
5e483524
RD
17030}
17031
17032
1bd55598 17033SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17034 PyObject *resultobj = 0;
17035 wxString *arg1 = 0 ;
17036 wxString *arg2 = 0 ;
17037 wxString result;
17038 bool temp1 = false ;
17039 bool temp2 = false ;
17040
17041 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17042 {
17043 arg1 = wxString_in_helper(swig_obj[0]);
17044 if (arg1 == NULL) SWIG_fail;
17045 temp1 = true;
17046 }
17047 {
17048 arg2 = wxString_in_helper(swig_obj[1]);
17049 if (arg2 == NULL) SWIG_fail;
17050 temp2 = true;
17051 }
17052 {
17053 PyThreadState* __tstate = wxPyBeginAllowThreads();
17054 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17055 wxPyEndAllowThreads(__tstate);
17056 if (PyErr_Occurred()) SWIG_fail;
17057 }
17058 {
17059#if wxUSE_UNICODE
17060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17061#else
17062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17063#endif
17064 }
17065 {
17066 if (temp1)
17067 delete arg1;
17068 }
17069 {
17070 if (temp2)
17071 delete arg2;
17072 }
17073 return resultobj;
17074fail:
17075 {
17076 if (temp1)
17077 delete arg1;
17078 }
17079 {
17080 if (temp2)
17081 delete arg2;
17082 }
17083 return NULL;
17084}
17085
17086
17087SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17088 PyObject *resultobj = 0;
17089 wxString *arg1 = 0 ;
17090 wxString *arg2 = 0 ;
17091 size_t arg3 ;
17092 wxString result;
17093 bool temp1 = false ;
17094 bool temp2 = false ;
17095 size_t val3 ;
17096 int ecode3 = 0 ;
17097
17098 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17099 {
17100 arg1 = wxString_in_helper(swig_obj[0]);
17101 if (arg1 == NULL) SWIG_fail;
17102 temp1 = true;
17103 }
17104 {
17105 arg2 = wxString_in_helper(swig_obj[1]);
17106 if (arg2 == NULL) SWIG_fail;
17107 temp2 = true;
17108 }
17109 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17110 if (!SWIG_IsOK(ecode3)) {
17111 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17112 }
17113 arg3 = static_cast< size_t >(val3);
17114 {
17115 PyThreadState* __tstate = wxPyBeginAllowThreads();
17116 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17117 wxPyEndAllowThreads(__tstate);
17118 if (PyErr_Occurred()) SWIG_fail;
17119 }
17120 {
36ed4f51 17121#if wxUSE_UNICODE
1bd55598 17122 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17123#else
1bd55598 17124 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17125#endif
1bd55598
RD
17126 }
17127 {
17128 if (temp1)
17129 delete arg1;
17130 }
17131 {
17132 if (temp2)
17133 delete arg2;
17134 }
17135 return resultobj;
17136fail:
17137 {
17138 if (temp1)
17139 delete arg1;
17140 }
17141 {
17142 if (temp2)
17143 delete arg2;
17144 }
17145 return NULL;
d55e5bfc
RD
17146}
17147
17148
fc46b7f3
RD
17149SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17150 PyObject *resultobj = 0;
17151 wxString *arg1 = 0 ;
17152 wxString *arg2 = 0 ;
17153 size_t arg3 ;
17154 wxString *arg4 = 0 ;
17155 wxString result;
17156 bool temp1 = false ;
17157 bool temp2 = false ;
17158 size_t val3 ;
17159 int ecode3 = 0 ;
17160 bool temp4 = false ;
17161
17162 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17163 {
17164 arg1 = wxString_in_helper(swig_obj[0]);
17165 if (arg1 == NULL) SWIG_fail;
17166 temp1 = true;
17167 }
17168 {
17169 arg2 = wxString_in_helper(swig_obj[1]);
17170 if (arg2 == NULL) SWIG_fail;
17171 temp2 = true;
17172 }
17173 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17174 if (!SWIG_IsOK(ecode3)) {
17175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17176 }
17177 arg3 = static_cast< size_t >(val3);
17178 {
17179 arg4 = wxString_in_helper(swig_obj[3]);
17180 if (arg4 == NULL) SWIG_fail;
17181 temp4 = true;
17182 }
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17186 wxPyEndAllowThreads(__tstate);
17187 if (PyErr_Occurred()) SWIG_fail;
17188 }
17189 {
17190#if wxUSE_UNICODE
17191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17192#else
17193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17194#endif
17195 }
17196 {
17197 if (temp1)
17198 delete arg1;
17199 }
17200 {
17201 if (temp2)
17202 delete arg2;
17203 }
17204 {
17205 if (temp4)
17206 delete arg4;
17207 }
17208 return resultobj;
17209fail:
17210 {
17211 if (temp1)
17212 delete arg1;
17213 }
17214 {
17215 if (temp2)
17216 delete arg2;
17217 }
17218 {
17219 if (temp4)
17220 delete arg4;
17221 }
17222 return NULL;
17223}
17224
17225
1bd55598
RD
17226SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17227 int argc;
fc46b7f3 17228 PyObject *argv[5];
1bd55598 17229
fc46b7f3 17230 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17231 --argc;
17232 if (argc == 1) {
17233 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17234 }
fc46b7f3 17235 if (argc == 2) {
1bd55598
RD
17236 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17237 }
fc46b7f3
RD
17238 if (argc == 3) {
17239 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17240 }
17241 if (argc == 4) {
17242 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17243 }
1bd55598
RD
17244
17245fail:
17246 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17247 return NULL;
d55e5bfc
RD
17248}
17249
17250
1bd55598
RD
17251SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17252 PyObject *resultobj = 0;
17253 wxEncodingConverter *result = 0 ;
17254
17255 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17256 {
17257 PyThreadState* __tstate = wxPyBeginAllowThreads();
17258 result = (wxEncodingConverter *)new wxEncodingConverter();
17259 wxPyEndAllowThreads(__tstate);
17260 if (PyErr_Occurred()) SWIG_fail;
17261 }
17262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17263 return resultobj;
17264fail:
17265 return NULL;
d55e5bfc
RD
17266}
17267
17268
1bd55598
RD
17269SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17270 PyObject *resultobj = 0;
17271 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17272 void *argp1 = 0 ;
17273 int res1 = 0 ;
17274 PyObject *swig_obj[1] ;
17275
17276 if (!args) SWIG_fail;
17277 swig_obj[0] = args;
17278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17279 if (!SWIG_IsOK(res1)) {
17280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17281 }
17282 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17283 {
17284 PyThreadState* __tstate = wxPyBeginAllowThreads();
17285 delete arg1;
d55e5bfc 17286
1bd55598
RD
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 resultobj = SWIG_Py_Void();
17291 return resultobj;
17292fail:
17293 return NULL;
17294}
17295
17296
17297SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17298 PyObject *resultobj = 0;
17299 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17300 wxFontEncoding arg2 ;
17301 wxFontEncoding arg3 ;
17302 int arg4 = (int) wxCONVERT_STRICT ;
17303 bool result;
17304 void *argp1 = 0 ;
17305 int res1 = 0 ;
17306 int val2 ;
17307 int ecode2 = 0 ;
17308 int val3 ;
17309 int ecode3 = 0 ;
17310 int val4 ;
17311 int ecode4 = 0 ;
17312 PyObject * obj0 = 0 ;
17313 PyObject * obj1 = 0 ;
17314 PyObject * obj2 = 0 ;
17315 PyObject * obj3 = 0 ;
17316 char * kwnames[] = {
17317 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17318 };
17319
17320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17322 if (!SWIG_IsOK(res1)) {
17323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17324 }
17325 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17326 ecode2 = SWIG_AsVal_int(obj1, &val2);
17327 if (!SWIG_IsOK(ecode2)) {
17328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17329 }
17330 arg2 = static_cast< wxFontEncoding >(val2);
17331 ecode3 = SWIG_AsVal_int(obj2, &val3);
17332 if (!SWIG_IsOK(ecode3)) {
17333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17334 }
17335 arg3 = static_cast< wxFontEncoding >(val3);
17336 if (obj3) {
17337 ecode4 = SWIG_AsVal_int(obj3, &val4);
17338 if (!SWIG_IsOK(ecode4)) {
17339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17340 }
17341 arg4 = static_cast< int >(val4);
17342 }
17343 {
17344 PyThreadState* __tstate = wxPyBeginAllowThreads();
17345 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17346 wxPyEndAllowThreads(__tstate);
17347 if (PyErr_Occurred()) SWIG_fail;
17348 }
17349 {
17350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17351 }
17352 return resultobj;
17353fail:
17354 return NULL;
17355}
17356
17357
17358SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17359 PyObject *resultobj = 0;
17360 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17361 wxString *arg2 = 0 ;
17362 wxString result;
17363 void *argp1 = 0 ;
17364 int res1 = 0 ;
17365 bool temp2 = false ;
17366 PyObject * obj0 = 0 ;
17367 PyObject * obj1 = 0 ;
17368 char * kwnames[] = {
17369 (char *) "self",(char *) "input", NULL
17370 };
17371
17372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17374 if (!SWIG_IsOK(res1)) {
17375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17376 }
17377 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17378 {
17379 arg2 = wxString_in_helper(obj1);
17380 if (arg2 == NULL) SWIG_fail;
17381 temp2 = true;
17382 }
17383 {
17384 PyThreadState* __tstate = wxPyBeginAllowThreads();
17385 result = (arg1)->Convert((wxString const &)*arg2);
17386 wxPyEndAllowThreads(__tstate);
17387 if (PyErr_Occurred()) SWIG_fail;
17388 }
17389 {
d55e5bfc 17390#if wxUSE_UNICODE
1bd55598 17391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17392#else
1bd55598 17393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17394#endif
1bd55598
RD
17395 }
17396 {
17397 if (temp2)
17398 delete arg2;
17399 }
17400 return resultobj;
17401fail:
17402 {
17403 if (temp2)
17404 delete arg2;
17405 }
17406 return NULL;
17407}
17408
17409
17410SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17411 PyObject *resultobj = 0;
17412 wxFontEncoding arg1 ;
17413 int arg2 = (int) wxPLATFORM_CURRENT ;
17414 wxFontEncodingArray result;
17415 int val1 ;
17416 int ecode1 = 0 ;
17417 int val2 ;
17418 int ecode2 = 0 ;
17419 PyObject * obj0 = 0 ;
17420 PyObject * obj1 = 0 ;
17421 char * kwnames[] = {
17422 (char *) "enc",(char *) "platform", NULL
17423 };
17424
17425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17426 ecode1 = SWIG_AsVal_int(obj0, &val1);
17427 if (!SWIG_IsOK(ecode1)) {
17428 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17429 }
17430 arg1 = static_cast< wxFontEncoding >(val1);
17431 if (obj1) {
17432 ecode2 = SWIG_AsVal_int(obj1, &val2);
17433 if (!SWIG_IsOK(ecode2)) {
17434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17435 }
17436 arg2 = static_cast< int >(val2);
17437 }
17438 {
17439 PyThreadState* __tstate = wxPyBeginAllowThreads();
17440 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17441 wxPyEndAllowThreads(__tstate);
17442 if (PyErr_Occurred()) SWIG_fail;
17443 }
17444 {
17445 resultobj = PyList_New(0);
17446 for (size_t i=0; i < (&result)->GetCount(); i++) {
17447 PyObject* number = PyInt_FromLong((&result)->Item(i));
17448 PyList_Append(resultobj, number);
17449 Py_DECREF(number);
d55e5bfc 17450 }
1bd55598
RD
17451 }
17452 return resultobj;
17453fail:
17454 return NULL;
d55e5bfc
RD
17455}
17456
17457
1bd55598
RD
17458SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17459 PyObject *resultobj = 0;
17460 wxFontEncoding arg1 ;
17461 wxFontEncodingArray result;
17462 int val1 ;
17463 int ecode1 = 0 ;
17464 PyObject * obj0 = 0 ;
17465 char * kwnames[] = {
17466 (char *) "enc", NULL
17467 };
17468
17469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17470 ecode1 = SWIG_AsVal_int(obj0, &val1);
17471 if (!SWIG_IsOK(ecode1)) {
17472 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17473 }
17474 arg1 = static_cast< wxFontEncoding >(val1);
17475 {
17476 PyThreadState* __tstate = wxPyBeginAllowThreads();
17477 result = wxEncodingConverter::GetAllEquivalents(arg1);
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 {
17482 resultobj = PyList_New(0);
17483 for (size_t i=0; i < (&result)->GetCount(); i++) {
17484 PyObject* number = PyInt_FromLong((&result)->Item(i));
17485 PyList_Append(resultobj, number);
17486 Py_DECREF(number);
d55e5bfc 17487 }
1bd55598
RD
17488 }
17489 return resultobj;
17490fail:
17491 return NULL;
17492}
17493
17494
17495SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17496 PyObject *resultobj = 0;
17497 wxFontEncoding arg1 ;
17498 wxFontEncoding arg2 ;
17499 bool result;
17500 int val1 ;
17501 int ecode1 = 0 ;
17502 int val2 ;
17503 int ecode2 = 0 ;
17504 PyObject * obj0 = 0 ;
17505 PyObject * obj1 = 0 ;
17506 char * kwnames[] = {
17507 (char *) "encIn",(char *) "encOut", NULL
17508 };
17509
17510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17511 ecode1 = SWIG_AsVal_int(obj0, &val1);
17512 if (!SWIG_IsOK(ecode1)) {
17513 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17514 }
17515 arg1 = static_cast< wxFontEncoding >(val1);
17516 ecode2 = SWIG_AsVal_int(obj1, &val2);
17517 if (!SWIG_IsOK(ecode2)) {
17518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17519 }
17520 arg2 = static_cast< wxFontEncoding >(val2);
17521 {
17522 PyThreadState* __tstate = wxPyBeginAllowThreads();
17523 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17524 wxPyEndAllowThreads(__tstate);
17525 if (PyErr_Occurred()) SWIG_fail;
17526 }
17527 {
17528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17529 }
17530 return resultobj;
17531fail:
17532 return NULL;
d55e5bfc
RD
17533}
17534
17535
1bd55598
RD
17536SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17537 PyObject *obj;
17538 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17539 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17540 return SWIG_Py_Void();
d55e5bfc
RD
17541}
17542
1bd55598
RD
17543SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17544 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17545}
17546
1bd55598
RD
17547SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17548 PyObject *resultobj = 0;
17549 wxDC *arg1 = (wxDC *) 0 ;
17550 void *argp1 = 0 ;
17551 int res1 = 0 ;
17552 PyObject *swig_obj[1] ;
17553
17554 if (!args) SWIG_fail;
17555 swig_obj[0] = args;
17556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17557 if (!SWIG_IsOK(res1)) {
17558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17559 }
17560 arg1 = reinterpret_cast< wxDC * >(argp1);
17561 {
17562 PyThreadState* __tstate = wxPyBeginAllowThreads();
17563 delete arg1;
d55e5bfc 17564
1bd55598
RD
17565 wxPyEndAllowThreads(__tstate);
17566 if (PyErr_Occurred()) SWIG_fail;
17567 }
17568 resultobj = SWIG_Py_Void();
17569 return resultobj;
17570fail:
17571 return NULL;
17572}
17573
17574
17575SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17576 PyObject *resultobj = 0;
17577 wxDC *arg1 = (wxDC *) 0 ;
17578 int arg2 ;
17579 int arg3 ;
17580 wxColour *arg4 = 0 ;
17581 int arg5 = (int) wxFLOOD_SURFACE ;
17582 bool result;
17583 void *argp1 = 0 ;
17584 int res1 = 0 ;
17585 int val2 ;
17586 int ecode2 = 0 ;
17587 int val3 ;
17588 int ecode3 = 0 ;
17589 wxColour temp4 ;
17590 int val5 ;
17591 int ecode5 = 0 ;
17592 PyObject * obj0 = 0 ;
17593 PyObject * obj1 = 0 ;
17594 PyObject * obj2 = 0 ;
17595 PyObject * obj3 = 0 ;
17596 PyObject * obj4 = 0 ;
17597 char * kwnames[] = {
17598 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17599 };
17600
17601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17603 if (!SWIG_IsOK(res1)) {
17604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17605 }
17606 arg1 = reinterpret_cast< wxDC * >(argp1);
17607 ecode2 = SWIG_AsVal_int(obj1, &val2);
17608 if (!SWIG_IsOK(ecode2)) {
17609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17610 }
17611 arg2 = static_cast< int >(val2);
17612 ecode3 = SWIG_AsVal_int(obj2, &val3);
17613 if (!SWIG_IsOK(ecode3)) {
17614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17615 }
17616 arg3 = static_cast< int >(val3);
17617 {
17618 arg4 = &temp4;
17619 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17620 }
17621 if (obj4) {
17622 ecode5 = SWIG_AsVal_int(obj4, &val5);
17623 if (!SWIG_IsOK(ecode5)) {
17624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17625 }
17626 arg5 = static_cast< int >(val5);
17627 }
17628 {
17629 PyThreadState* __tstate = wxPyBeginAllowThreads();
17630 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17631 wxPyEndAllowThreads(__tstate);
17632 if (PyErr_Occurred()) SWIG_fail;
17633 }
17634 {
17635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17636 }
17637 return resultobj;
17638fail:
17639 return NULL;
17640}
17641
17642
17643SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17644 PyObject *resultobj = 0;
17645 wxDC *arg1 = (wxDC *) 0 ;
17646 wxPoint *arg2 = 0 ;
17647 wxColour *arg3 = 0 ;
17648 int arg4 = (int) wxFLOOD_SURFACE ;
17649 bool result;
17650 void *argp1 = 0 ;
17651 int res1 = 0 ;
17652 wxPoint temp2 ;
17653 wxColour temp3 ;
17654 int val4 ;
17655 int ecode4 = 0 ;
17656 PyObject * obj0 = 0 ;
17657 PyObject * obj1 = 0 ;
17658 PyObject * obj2 = 0 ;
17659 PyObject * obj3 = 0 ;
17660 char * kwnames[] = {
17661 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17662 };
17663
17664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17666 if (!SWIG_IsOK(res1)) {
17667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17668 }
17669 arg1 = reinterpret_cast< wxDC * >(argp1);
17670 {
17671 arg2 = &temp2;
17672 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17673 }
17674 {
17675 arg3 = &temp3;
17676 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17677 }
17678 if (obj3) {
17679 ecode4 = SWIG_AsVal_int(obj3, &val4);
17680 if (!SWIG_IsOK(ecode4)) {
17681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17682 }
17683 arg4 = static_cast< int >(val4);
17684 }
17685 {
17686 PyThreadState* __tstate = wxPyBeginAllowThreads();
17687 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17688 wxPyEndAllowThreads(__tstate);
17689 if (PyErr_Occurred()) SWIG_fail;
17690 }
17691 {
17692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17693 }
17694 return resultobj;
17695fail:
17696 return NULL;
17697}
17698
17699
17700SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17701 PyObject *resultobj = 0;
17702 wxDC *arg1 = (wxDC *) 0 ;
17703 wxRect *arg2 = 0 ;
17704 wxColour *arg3 = 0 ;
17705 wxColour *arg4 = 0 ;
17706 wxPoint *arg5 = 0 ;
17707 void *argp1 = 0 ;
17708 int res1 = 0 ;
17709 wxRect temp2 ;
17710 wxColour temp3 ;
17711 wxColour temp4 ;
17712 wxPoint temp5 ;
17713 PyObject * obj0 = 0 ;
17714 PyObject * obj1 = 0 ;
17715 PyObject * obj2 = 0 ;
17716 PyObject * obj3 = 0 ;
17717 PyObject * obj4 = 0 ;
17718 char * kwnames[] = {
17719 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17720 };
17721
17722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17724 if (!SWIG_IsOK(res1)) {
17725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17726 }
17727 arg1 = reinterpret_cast< wxDC * >(argp1);
17728 {
17729 arg2 = &temp2;
17730 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17731 }
17732 {
17733 arg3 = &temp3;
17734 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17735 }
17736 {
17737 arg4 = &temp4;
17738 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17739 }
17740 {
17741 arg5 = &temp5;
17742 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17743 }
17744 {
17745 PyThreadState* __tstate = wxPyBeginAllowThreads();
17746 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17747 wxPyEndAllowThreads(__tstate);
17748 if (PyErr_Occurred()) SWIG_fail;
17749 }
17750 resultobj = SWIG_Py_Void();
17751 return resultobj;
17752fail:
17753 return NULL;
17754}
17755
17756
17757SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17758 PyObject *resultobj = 0;
17759 wxDC *arg1 = (wxDC *) 0 ;
17760 wxRect *arg2 = 0 ;
17761 wxColour *arg3 = 0 ;
17762 wxColour *arg4 = 0 ;
17763 wxDirection arg5 = (wxDirection) wxEAST ;
17764 void *argp1 = 0 ;
17765 int res1 = 0 ;
17766 wxRect temp2 ;
17767 wxColour temp3 ;
17768 wxColour temp4 ;
17769 int val5 ;
17770 int ecode5 = 0 ;
17771 PyObject * obj0 = 0 ;
17772 PyObject * obj1 = 0 ;
17773 PyObject * obj2 = 0 ;
17774 PyObject * obj3 = 0 ;
17775 PyObject * obj4 = 0 ;
17776 char * kwnames[] = {
17777 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17778 };
17779
17780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17782 if (!SWIG_IsOK(res1)) {
17783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17784 }
17785 arg1 = reinterpret_cast< wxDC * >(argp1);
17786 {
17787 arg2 = &temp2;
17788 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17789 }
17790 {
17791 arg3 = &temp3;
17792 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17793 }
17794 {
17795 arg4 = &temp4;
17796 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17797 }
17798 if (obj4) {
17799 ecode5 = SWIG_AsVal_int(obj4, &val5);
17800 if (!SWIG_IsOK(ecode5)) {
17801 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17802 }
17803 arg5 = static_cast< wxDirection >(val5);
17804 }
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17808 wxPyEndAllowThreads(__tstate);
17809 if (PyErr_Occurred()) SWIG_fail;
17810 }
17811 resultobj = SWIG_Py_Void();
17812 return resultobj;
17813fail:
17814 return NULL;
17815}
17816
17817
17818SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17819 PyObject *resultobj = 0;
17820 wxDC *arg1 = (wxDC *) 0 ;
17821 int arg2 ;
17822 int arg3 ;
17823 wxColour result;
17824 void *argp1 = 0 ;
17825 int res1 = 0 ;
17826 int val2 ;
17827 int ecode2 = 0 ;
17828 int val3 ;
17829 int ecode3 = 0 ;
17830 PyObject * obj0 = 0 ;
17831 PyObject * obj1 = 0 ;
17832 PyObject * obj2 = 0 ;
17833 char * kwnames[] = {
17834 (char *) "self",(char *) "x",(char *) "y", NULL
17835 };
17836
17837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17839 if (!SWIG_IsOK(res1)) {
17840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17841 }
17842 arg1 = reinterpret_cast< wxDC * >(argp1);
17843 ecode2 = SWIG_AsVal_int(obj1, &val2);
17844 if (!SWIG_IsOK(ecode2)) {
17845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17846 }
17847 arg2 = static_cast< int >(val2);
17848 ecode3 = SWIG_AsVal_int(obj2, &val3);
17849 if (!SWIG_IsOK(ecode3)) {
17850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17851 }
17852 arg3 = static_cast< int >(val3);
17853 {
17854 PyThreadState* __tstate = wxPyBeginAllowThreads();
17855 result = wxDC_GetPixel(arg1,arg2,arg3);
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17860 return resultobj;
17861fail:
17862 return NULL;
17863}
17864
17865
17866SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj = 0;
17868 wxDC *arg1 = (wxDC *) 0 ;
17869 wxPoint *arg2 = 0 ;
17870 wxColour result;
17871 void *argp1 = 0 ;
17872 int res1 = 0 ;
17873 wxPoint temp2 ;
17874 PyObject * obj0 = 0 ;
17875 PyObject * obj1 = 0 ;
17876 char * kwnames[] = {
17877 (char *) "self",(char *) "pt", NULL
17878 };
17879
17880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17882 if (!SWIG_IsOK(res1)) {
17883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17884 }
17885 arg1 = reinterpret_cast< wxDC * >(argp1);
17886 {
17887 arg2 = &temp2;
17888 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17889 }
17890 {
17891 PyThreadState* __tstate = wxPyBeginAllowThreads();
17892 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17897 return resultobj;
17898fail:
17899 return NULL;
17900}
17901
17902
17903SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17904 PyObject *resultobj = 0;
17905 wxDC *arg1 = (wxDC *) 0 ;
17906 int arg2 ;
17907 int arg3 ;
17908 int arg4 ;
17909 int arg5 ;
17910 void *argp1 = 0 ;
17911 int res1 = 0 ;
17912 int val2 ;
17913 int ecode2 = 0 ;
17914 int val3 ;
17915 int ecode3 = 0 ;
17916 int val4 ;
17917 int ecode4 = 0 ;
17918 int val5 ;
17919 int ecode5 = 0 ;
17920 PyObject * obj0 = 0 ;
17921 PyObject * obj1 = 0 ;
17922 PyObject * obj2 = 0 ;
17923 PyObject * obj3 = 0 ;
17924 PyObject * obj4 = 0 ;
17925 char * kwnames[] = {
17926 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17927 };
17928
17929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17931 if (!SWIG_IsOK(res1)) {
17932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17933 }
17934 arg1 = reinterpret_cast< wxDC * >(argp1);
17935 ecode2 = SWIG_AsVal_int(obj1, &val2);
17936 if (!SWIG_IsOK(ecode2)) {
17937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17938 }
17939 arg2 = static_cast< int >(val2);
17940 ecode3 = SWIG_AsVal_int(obj2, &val3);
17941 if (!SWIG_IsOK(ecode3)) {
17942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17943 }
17944 arg3 = static_cast< int >(val3);
17945 ecode4 = SWIG_AsVal_int(obj3, &val4);
17946 if (!SWIG_IsOK(ecode4)) {
17947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17948 }
17949 arg4 = static_cast< int >(val4);
17950 ecode5 = SWIG_AsVal_int(obj4, &val5);
17951 if (!SWIG_IsOK(ecode5)) {
17952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17953 }
17954 arg5 = static_cast< int >(val5);
17955 {
17956 PyThreadState* __tstate = wxPyBeginAllowThreads();
17957 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17958 wxPyEndAllowThreads(__tstate);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 }
17961 resultobj = SWIG_Py_Void();
17962 return resultobj;
17963fail:
17964 return NULL;
17965}
17966
17967
17968SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17969 PyObject *resultobj = 0;
17970 wxDC *arg1 = (wxDC *) 0 ;
17971 wxPoint *arg2 = 0 ;
17972 wxPoint *arg3 = 0 ;
17973 void *argp1 = 0 ;
17974 int res1 = 0 ;
17975 wxPoint temp2 ;
17976 wxPoint temp3 ;
17977 PyObject * obj0 = 0 ;
17978 PyObject * obj1 = 0 ;
17979 PyObject * obj2 = 0 ;
17980 char * kwnames[] = {
17981 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17982 };
17983
17984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17986 if (!SWIG_IsOK(res1)) {
17987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17988 }
17989 arg1 = reinterpret_cast< wxDC * >(argp1);
17990 {
17991 arg2 = &temp2;
17992 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17993 }
17994 {
17995 arg3 = &temp3;
17996 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17997 }
17998 {
17999 PyThreadState* __tstate = wxPyBeginAllowThreads();
18000 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18001 wxPyEndAllowThreads(__tstate);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 }
18004 resultobj = SWIG_Py_Void();
18005 return resultobj;
18006fail:
18007 return NULL;
18008}
18009
18010
18011SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj = 0;
18013 wxDC *arg1 = (wxDC *) 0 ;
18014 int arg2 ;
18015 int arg3 ;
18016 void *argp1 = 0 ;
18017 int res1 = 0 ;
18018 int val2 ;
18019 int ecode2 = 0 ;
18020 int val3 ;
18021 int ecode3 = 0 ;
18022 PyObject * obj0 = 0 ;
18023 PyObject * obj1 = 0 ;
18024 PyObject * obj2 = 0 ;
18025 char * kwnames[] = {
18026 (char *) "self",(char *) "x",(char *) "y", NULL
18027 };
18028
18029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18031 if (!SWIG_IsOK(res1)) {
18032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18033 }
18034 arg1 = reinterpret_cast< wxDC * >(argp1);
18035 ecode2 = SWIG_AsVal_int(obj1, &val2);
18036 if (!SWIG_IsOK(ecode2)) {
18037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18038 }
18039 arg2 = static_cast< int >(val2);
18040 ecode3 = SWIG_AsVal_int(obj2, &val3);
18041 if (!SWIG_IsOK(ecode3)) {
18042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18043 }
18044 arg3 = static_cast< int >(val3);
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 (arg1)->CrossHair(arg2,arg3);
18048 wxPyEndAllowThreads(__tstate);
18049 if (PyErr_Occurred()) SWIG_fail;
18050 }
18051 resultobj = SWIG_Py_Void();
18052 return resultobj;
18053fail:
18054 return NULL;
18055}
18056
18057
18058SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18059 PyObject *resultobj = 0;
18060 wxDC *arg1 = (wxDC *) 0 ;
18061 wxPoint *arg2 = 0 ;
18062 void *argp1 = 0 ;
18063 int res1 = 0 ;
18064 wxPoint temp2 ;
18065 PyObject * obj0 = 0 ;
18066 PyObject * obj1 = 0 ;
18067 char * kwnames[] = {
18068 (char *) "self",(char *) "pt", NULL
18069 };
18070
18071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18073 if (!SWIG_IsOK(res1)) {
18074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18075 }
18076 arg1 = reinterpret_cast< wxDC * >(argp1);
18077 {
18078 arg2 = &temp2;
18079 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18080 }
18081 {
18082 PyThreadState* __tstate = wxPyBeginAllowThreads();
18083 (arg1)->CrossHair((wxPoint const &)*arg2);
18084 wxPyEndAllowThreads(__tstate);
18085 if (PyErr_Occurred()) SWIG_fail;
18086 }
18087 resultobj = SWIG_Py_Void();
18088 return resultobj;
18089fail:
18090 return NULL;
18091}
18092
18093
18094SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18095 PyObject *resultobj = 0;
18096 wxDC *arg1 = (wxDC *) 0 ;
18097 int arg2 ;
18098 int arg3 ;
18099 int arg4 ;
18100 int arg5 ;
18101 int arg6 ;
18102 int arg7 ;
18103 void *argp1 = 0 ;
18104 int res1 = 0 ;
18105 int val2 ;
18106 int ecode2 = 0 ;
18107 int val3 ;
18108 int ecode3 = 0 ;
18109 int val4 ;
18110 int ecode4 = 0 ;
18111 int val5 ;
18112 int ecode5 = 0 ;
18113 int val6 ;
18114 int ecode6 = 0 ;
18115 int val7 ;
18116 int ecode7 = 0 ;
18117 PyObject * obj0 = 0 ;
18118 PyObject * obj1 = 0 ;
18119 PyObject * obj2 = 0 ;
18120 PyObject * obj3 = 0 ;
18121 PyObject * obj4 = 0 ;
18122 PyObject * obj5 = 0 ;
18123 PyObject * obj6 = 0 ;
18124 char * kwnames[] = {
18125 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18126 };
18127
18128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18130 if (!SWIG_IsOK(res1)) {
18131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18132 }
18133 arg1 = reinterpret_cast< wxDC * >(argp1);
18134 ecode2 = SWIG_AsVal_int(obj1, &val2);
18135 if (!SWIG_IsOK(ecode2)) {
18136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18137 }
18138 arg2 = static_cast< int >(val2);
18139 ecode3 = SWIG_AsVal_int(obj2, &val3);
18140 if (!SWIG_IsOK(ecode3)) {
18141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18142 }
18143 arg3 = static_cast< int >(val3);
18144 ecode4 = SWIG_AsVal_int(obj3, &val4);
18145 if (!SWIG_IsOK(ecode4)) {
18146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18147 }
18148 arg4 = static_cast< int >(val4);
18149 ecode5 = SWIG_AsVal_int(obj4, &val5);
18150 if (!SWIG_IsOK(ecode5)) {
18151 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18152 }
18153 arg5 = static_cast< int >(val5);
18154 ecode6 = SWIG_AsVal_int(obj5, &val6);
18155 if (!SWIG_IsOK(ecode6)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18157 }
18158 arg6 = static_cast< int >(val6);
18159 ecode7 = SWIG_AsVal_int(obj6, &val7);
18160 if (!SWIG_IsOK(ecode7)) {
18161 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18162 }
18163 arg7 = static_cast< int >(val7);
18164 {
18165 PyThreadState* __tstate = wxPyBeginAllowThreads();
18166 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18167 wxPyEndAllowThreads(__tstate);
18168 if (PyErr_Occurred()) SWIG_fail;
18169 }
18170 resultobj = SWIG_Py_Void();
18171 return resultobj;
18172fail:
18173 return NULL;
18174}
18175
18176
18177SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18178 PyObject *resultobj = 0;
18179 wxDC *arg1 = (wxDC *) 0 ;
18180 wxPoint *arg2 = 0 ;
18181 wxPoint *arg3 = 0 ;
18182 wxPoint *arg4 = 0 ;
18183 void *argp1 = 0 ;
18184 int res1 = 0 ;
18185 wxPoint temp2 ;
18186 wxPoint temp3 ;
18187 wxPoint temp4 ;
18188 PyObject * obj0 = 0 ;
18189 PyObject * obj1 = 0 ;
18190 PyObject * obj2 = 0 ;
18191 PyObject * obj3 = 0 ;
18192 char * kwnames[] = {
18193 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18194 };
18195
18196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18198 if (!SWIG_IsOK(res1)) {
18199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18200 }
18201 arg1 = reinterpret_cast< wxDC * >(argp1);
18202 {
18203 arg2 = &temp2;
18204 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18205 }
18206 {
18207 arg3 = &temp3;
18208 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18209 }
18210 {
18211 arg4 = &temp4;
18212 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18213 }
18214 {
18215 PyThreadState* __tstate = wxPyBeginAllowThreads();
18216 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18217 wxPyEndAllowThreads(__tstate);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 resultobj = SWIG_Py_Void();
18221 return resultobj;
18222fail:
18223 return NULL;
18224}
18225
18226
18227SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18228 PyObject *resultobj = 0;
18229 wxDC *arg1 = (wxDC *) 0 ;
18230 int arg2 ;
18231 int arg3 ;
18232 int arg4 ;
18233 int arg5 ;
18234 void *argp1 = 0 ;
18235 int res1 = 0 ;
18236 int val2 ;
18237 int ecode2 = 0 ;
18238 int val3 ;
18239 int ecode3 = 0 ;
18240 int val4 ;
18241 int ecode4 = 0 ;
18242 int val5 ;
18243 int ecode5 = 0 ;
18244 PyObject * obj0 = 0 ;
18245 PyObject * obj1 = 0 ;
18246 PyObject * obj2 = 0 ;
18247 PyObject * obj3 = 0 ;
18248 PyObject * obj4 = 0 ;
18249 char * kwnames[] = {
18250 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18251 };
18252
18253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18255 if (!SWIG_IsOK(res1)) {
18256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18257 }
18258 arg1 = reinterpret_cast< wxDC * >(argp1);
18259 ecode2 = SWIG_AsVal_int(obj1, &val2);
18260 if (!SWIG_IsOK(ecode2)) {
18261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18262 }
18263 arg2 = static_cast< int >(val2);
18264 ecode3 = SWIG_AsVal_int(obj2, &val3);
18265 if (!SWIG_IsOK(ecode3)) {
18266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18267 }
18268 arg3 = static_cast< int >(val3);
18269 ecode4 = SWIG_AsVal_int(obj3, &val4);
18270 if (!SWIG_IsOK(ecode4)) {
18271 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18272 }
18273 arg4 = static_cast< int >(val4);
18274 ecode5 = SWIG_AsVal_int(obj4, &val5);
18275 if (!SWIG_IsOK(ecode5)) {
18276 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18277 }
18278 arg5 = static_cast< int >(val5);
18279 {
18280 PyThreadState* __tstate = wxPyBeginAllowThreads();
18281 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18282 wxPyEndAllowThreads(__tstate);
18283 if (PyErr_Occurred()) SWIG_fail;
18284 }
18285 resultobj = SWIG_Py_Void();
18286 return resultobj;
18287fail:
18288 return NULL;
18289}
18290
18291
18292SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18293 PyObject *resultobj = 0;
18294 wxDC *arg1 = (wxDC *) 0 ;
18295 wxRect *arg2 = 0 ;
18296 void *argp1 = 0 ;
18297 int res1 = 0 ;
18298 wxRect temp2 ;
18299 PyObject * obj0 = 0 ;
18300 PyObject * obj1 = 0 ;
18301 char * kwnames[] = {
18302 (char *) "self",(char *) "rect", NULL
18303 };
18304
18305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18307 if (!SWIG_IsOK(res1)) {
18308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18309 }
18310 arg1 = reinterpret_cast< wxDC * >(argp1);
18311 {
18312 arg2 = &temp2;
18313 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18314 }
18315 {
18316 PyThreadState* __tstate = wxPyBeginAllowThreads();
18317 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18318 wxPyEndAllowThreads(__tstate);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 }
18321 resultobj = SWIG_Py_Void();
18322 return resultobj;
18323fail:
18324 return NULL;
18325}
18326
18327
18328SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18329 PyObject *resultobj = 0;
18330 wxDC *arg1 = (wxDC *) 0 ;
18331 int arg2 ;
18332 int arg3 ;
18333 int arg4 ;
18334 int arg5 ;
18335 double arg6 ;
18336 double arg7 ;
18337 void *argp1 = 0 ;
18338 int res1 = 0 ;
18339 int val2 ;
18340 int ecode2 = 0 ;
18341 int val3 ;
18342 int ecode3 = 0 ;
18343 int val4 ;
18344 int ecode4 = 0 ;
18345 int val5 ;
18346 int ecode5 = 0 ;
18347 double val6 ;
18348 int ecode6 = 0 ;
18349 double val7 ;
18350 int ecode7 = 0 ;
18351 PyObject * obj0 = 0 ;
18352 PyObject * obj1 = 0 ;
18353 PyObject * obj2 = 0 ;
18354 PyObject * obj3 = 0 ;
18355 PyObject * obj4 = 0 ;
18356 PyObject * obj5 = 0 ;
18357 PyObject * obj6 = 0 ;
18358 char * kwnames[] = {
18359 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18360 };
18361
18362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18364 if (!SWIG_IsOK(res1)) {
18365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18366 }
18367 arg1 = reinterpret_cast< wxDC * >(argp1);
18368 ecode2 = SWIG_AsVal_int(obj1, &val2);
18369 if (!SWIG_IsOK(ecode2)) {
18370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18371 }
18372 arg2 = static_cast< int >(val2);
18373 ecode3 = SWIG_AsVal_int(obj2, &val3);
18374 if (!SWIG_IsOK(ecode3)) {
18375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18376 }
18377 arg3 = static_cast< int >(val3);
18378 ecode4 = SWIG_AsVal_int(obj3, &val4);
18379 if (!SWIG_IsOK(ecode4)) {
18380 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18381 }
18382 arg4 = static_cast< int >(val4);
18383 ecode5 = SWIG_AsVal_int(obj4, &val5);
18384 if (!SWIG_IsOK(ecode5)) {
18385 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18386 }
18387 arg5 = static_cast< int >(val5);
18388 ecode6 = SWIG_AsVal_double(obj5, &val6);
18389 if (!SWIG_IsOK(ecode6)) {
18390 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18391 }
18392 arg6 = static_cast< double >(val6);
18393 ecode7 = SWIG_AsVal_double(obj6, &val7);
18394 if (!SWIG_IsOK(ecode7)) {
18395 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18396 }
18397 arg7 = static_cast< double >(val7);
18398 {
18399 PyThreadState* __tstate = wxPyBeginAllowThreads();
18400 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18401 wxPyEndAllowThreads(__tstate);
18402 if (PyErr_Occurred()) SWIG_fail;
18403 }
18404 resultobj = SWIG_Py_Void();
18405 return resultobj;
18406fail:
18407 return NULL;
18408}
18409
18410
18411SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18412 PyObject *resultobj = 0;
18413 wxDC *arg1 = (wxDC *) 0 ;
18414 wxPoint *arg2 = 0 ;
18415 wxSize *arg3 = 0 ;
18416 double arg4 ;
18417 double arg5 ;
18418 void *argp1 = 0 ;
18419 int res1 = 0 ;
18420 wxPoint temp2 ;
18421 wxSize temp3 ;
18422 double val4 ;
18423 int ecode4 = 0 ;
18424 double val5 ;
18425 int ecode5 = 0 ;
18426 PyObject * obj0 = 0 ;
18427 PyObject * obj1 = 0 ;
18428 PyObject * obj2 = 0 ;
18429 PyObject * obj3 = 0 ;
18430 PyObject * obj4 = 0 ;
18431 char * kwnames[] = {
18432 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18433 };
18434
18435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18437 if (!SWIG_IsOK(res1)) {
18438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18439 }
18440 arg1 = reinterpret_cast< wxDC * >(argp1);
18441 {
18442 arg2 = &temp2;
18443 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18444 }
18445 {
18446 arg3 = &temp3;
18447 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18448 }
18449 ecode4 = SWIG_AsVal_double(obj3, &val4);
18450 if (!SWIG_IsOK(ecode4)) {
18451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18452 }
18453 arg4 = static_cast< double >(val4);
18454 ecode5 = SWIG_AsVal_double(obj4, &val5);
18455 if (!SWIG_IsOK(ecode5)) {
18456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18457 }
18458 arg5 = static_cast< double >(val5);
18459 {
18460 PyThreadState* __tstate = wxPyBeginAllowThreads();
18461 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18462 wxPyEndAllowThreads(__tstate);
18463 if (PyErr_Occurred()) SWIG_fail;
18464 }
18465 resultobj = SWIG_Py_Void();
18466 return resultobj;
18467fail:
18468 return NULL;
18469}
18470
18471
18472SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18473 PyObject *resultobj = 0;
18474 wxDC *arg1 = (wxDC *) 0 ;
18475 int arg2 ;
18476 int arg3 ;
18477 void *argp1 = 0 ;
18478 int res1 = 0 ;
18479 int val2 ;
18480 int ecode2 = 0 ;
18481 int val3 ;
18482 int ecode3 = 0 ;
18483 PyObject * obj0 = 0 ;
18484 PyObject * obj1 = 0 ;
18485 PyObject * obj2 = 0 ;
18486 char * kwnames[] = {
18487 (char *) "self",(char *) "x",(char *) "y", NULL
18488 };
18489
18490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18492 if (!SWIG_IsOK(res1)) {
18493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18494 }
18495 arg1 = reinterpret_cast< wxDC * >(argp1);
18496 ecode2 = SWIG_AsVal_int(obj1, &val2);
18497 if (!SWIG_IsOK(ecode2)) {
18498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18499 }
18500 arg2 = static_cast< int >(val2);
18501 ecode3 = SWIG_AsVal_int(obj2, &val3);
18502 if (!SWIG_IsOK(ecode3)) {
18503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18504 }
18505 arg3 = static_cast< int >(val3);
18506 {
18507 PyThreadState* __tstate = wxPyBeginAllowThreads();
18508 (arg1)->DrawPoint(arg2,arg3);
18509 wxPyEndAllowThreads(__tstate);
18510 if (PyErr_Occurred()) SWIG_fail;
18511 }
18512 resultobj = SWIG_Py_Void();
18513 return resultobj;
18514fail:
18515 return NULL;
18516}
18517
18518
18519SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18520 PyObject *resultobj = 0;
18521 wxDC *arg1 = (wxDC *) 0 ;
18522 wxPoint *arg2 = 0 ;
18523 void *argp1 = 0 ;
18524 int res1 = 0 ;
18525 wxPoint temp2 ;
18526 PyObject * obj0 = 0 ;
18527 PyObject * obj1 = 0 ;
18528 char * kwnames[] = {
18529 (char *) "self",(char *) "pt", NULL
18530 };
18531
18532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18534 if (!SWIG_IsOK(res1)) {
18535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18536 }
18537 arg1 = reinterpret_cast< wxDC * >(argp1);
18538 {
18539 arg2 = &temp2;
18540 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18541 }
18542 {
18543 PyThreadState* __tstate = wxPyBeginAllowThreads();
18544 (arg1)->DrawPoint((wxPoint const &)*arg2);
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 resultobj = SWIG_Py_Void();
18549 return resultobj;
18550fail:
18551 return NULL;
18552}
18553
18554
18555SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18556 PyObject *resultobj = 0;
18557 wxDC *arg1 = (wxDC *) 0 ;
18558 int arg2 ;
18559 int arg3 ;
18560 int arg4 ;
18561 int arg5 ;
18562 void *argp1 = 0 ;
18563 int res1 = 0 ;
18564 int val2 ;
18565 int ecode2 = 0 ;
18566 int val3 ;
18567 int ecode3 = 0 ;
18568 int val4 ;
18569 int ecode4 = 0 ;
18570 int val5 ;
18571 int ecode5 = 0 ;
18572 PyObject * obj0 = 0 ;
18573 PyObject * obj1 = 0 ;
18574 PyObject * obj2 = 0 ;
18575 PyObject * obj3 = 0 ;
18576 PyObject * obj4 = 0 ;
18577 char * kwnames[] = {
18578 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18579 };
18580
18581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18583 if (!SWIG_IsOK(res1)) {
18584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18585 }
18586 arg1 = reinterpret_cast< wxDC * >(argp1);
18587 ecode2 = SWIG_AsVal_int(obj1, &val2);
18588 if (!SWIG_IsOK(ecode2)) {
18589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18590 }
18591 arg2 = static_cast< int >(val2);
18592 ecode3 = SWIG_AsVal_int(obj2, &val3);
18593 if (!SWIG_IsOK(ecode3)) {
18594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18595 }
18596 arg3 = static_cast< int >(val3);
18597 ecode4 = SWIG_AsVal_int(obj3, &val4);
18598 if (!SWIG_IsOK(ecode4)) {
18599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18600 }
18601 arg4 = static_cast< int >(val4);
18602 ecode5 = SWIG_AsVal_int(obj4, &val5);
18603 if (!SWIG_IsOK(ecode5)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18605 }
18606 arg5 = static_cast< int >(val5);
18607 {
18608 PyThreadState* __tstate = wxPyBeginAllowThreads();
18609 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18610 wxPyEndAllowThreads(__tstate);
18611 if (PyErr_Occurred()) SWIG_fail;
18612 }
18613 resultobj = SWIG_Py_Void();
18614 return resultobj;
18615fail:
18616 return NULL;
18617}
18618
18619
18620SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18621 PyObject *resultobj = 0;
18622 wxDC *arg1 = (wxDC *) 0 ;
18623 wxRect *arg2 = 0 ;
18624 void *argp1 = 0 ;
18625 int res1 = 0 ;
18626 wxRect temp2 ;
18627 PyObject * obj0 = 0 ;
18628 PyObject * obj1 = 0 ;
18629 char * kwnames[] = {
18630 (char *) "self",(char *) "rect", NULL
18631 };
18632
18633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18635 if (!SWIG_IsOK(res1)) {
18636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18637 }
18638 arg1 = reinterpret_cast< wxDC * >(argp1);
18639 {
18640 arg2 = &temp2;
18641 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18642 }
18643 {
18644 PyThreadState* __tstate = wxPyBeginAllowThreads();
18645 (arg1)->DrawRectangle((wxRect const &)*arg2);
18646 wxPyEndAllowThreads(__tstate);
18647 if (PyErr_Occurred()) SWIG_fail;
18648 }
18649 resultobj = SWIG_Py_Void();
18650 return resultobj;
18651fail:
18652 return NULL;
18653}
18654
18655
18656SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18657 PyObject *resultobj = 0;
18658 wxDC *arg1 = (wxDC *) 0 ;
18659 wxPoint *arg2 = 0 ;
18660 wxSize *arg3 = 0 ;
18661 void *argp1 = 0 ;
18662 int res1 = 0 ;
18663 wxPoint temp2 ;
18664 wxSize temp3 ;
18665 PyObject * obj0 = 0 ;
18666 PyObject * obj1 = 0 ;
18667 PyObject * obj2 = 0 ;
18668 char * kwnames[] = {
18669 (char *) "self",(char *) "pt",(char *) "sz", NULL
18670 };
18671
18672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18674 if (!SWIG_IsOK(res1)) {
18675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18676 }
18677 arg1 = reinterpret_cast< wxDC * >(argp1);
18678 {
18679 arg2 = &temp2;
18680 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18681 }
18682 {
18683 arg3 = &temp3;
18684 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18685 }
18686 {
18687 PyThreadState* __tstate = wxPyBeginAllowThreads();
18688 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18689 wxPyEndAllowThreads(__tstate);
18690 if (PyErr_Occurred()) SWIG_fail;
18691 }
18692 resultobj = SWIG_Py_Void();
18693 return resultobj;
18694fail:
18695 return NULL;
18696}
18697
18698
18699SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18700 PyObject *resultobj = 0;
18701 wxDC *arg1 = (wxDC *) 0 ;
18702 int arg2 ;
18703 int arg3 ;
18704 int arg4 ;
18705 int arg5 ;
18706 double arg6 ;
18707 void *argp1 = 0 ;
18708 int res1 = 0 ;
18709 int val2 ;
18710 int ecode2 = 0 ;
18711 int val3 ;
18712 int ecode3 = 0 ;
18713 int val4 ;
18714 int ecode4 = 0 ;
18715 int val5 ;
18716 int ecode5 = 0 ;
18717 double val6 ;
18718 int ecode6 = 0 ;
18719 PyObject * obj0 = 0 ;
18720 PyObject * obj1 = 0 ;
18721 PyObject * obj2 = 0 ;
18722 PyObject * obj3 = 0 ;
18723 PyObject * obj4 = 0 ;
18724 PyObject * obj5 = 0 ;
18725 char * kwnames[] = {
18726 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18727 };
18728
18729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18731 if (!SWIG_IsOK(res1)) {
18732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18733 }
18734 arg1 = reinterpret_cast< wxDC * >(argp1);
18735 ecode2 = SWIG_AsVal_int(obj1, &val2);
18736 if (!SWIG_IsOK(ecode2)) {
18737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18738 }
18739 arg2 = static_cast< int >(val2);
18740 ecode3 = SWIG_AsVal_int(obj2, &val3);
18741 if (!SWIG_IsOK(ecode3)) {
18742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18743 }
18744 arg3 = static_cast< int >(val3);
18745 ecode4 = SWIG_AsVal_int(obj3, &val4);
18746 if (!SWIG_IsOK(ecode4)) {
18747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18748 }
18749 arg4 = static_cast< int >(val4);
18750 ecode5 = SWIG_AsVal_int(obj4, &val5);
18751 if (!SWIG_IsOK(ecode5)) {
18752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18753 }
18754 arg5 = static_cast< int >(val5);
18755 ecode6 = SWIG_AsVal_double(obj5, &val6);
18756 if (!SWIG_IsOK(ecode6)) {
18757 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18758 }
18759 arg6 = static_cast< double >(val6);
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18763 wxPyEndAllowThreads(__tstate);
18764 if (PyErr_Occurred()) SWIG_fail;
18765 }
18766 resultobj = SWIG_Py_Void();
18767 return resultobj;
18768fail:
18769 return NULL;
18770}
18771
18772
18773SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18774 PyObject *resultobj = 0;
18775 wxDC *arg1 = (wxDC *) 0 ;
18776 wxRect *arg2 = 0 ;
18777 double arg3 ;
18778 void *argp1 = 0 ;
18779 int res1 = 0 ;
18780 wxRect temp2 ;
18781 double val3 ;
18782 int ecode3 = 0 ;
18783 PyObject * obj0 = 0 ;
18784 PyObject * obj1 = 0 ;
18785 PyObject * obj2 = 0 ;
18786 char * kwnames[] = {
18787 (char *) "self",(char *) "r",(char *) "radius", NULL
18788 };
18789
18790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18792 if (!SWIG_IsOK(res1)) {
18793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18794 }
18795 arg1 = reinterpret_cast< wxDC * >(argp1);
18796 {
18797 arg2 = &temp2;
18798 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18799 }
18800 ecode3 = SWIG_AsVal_double(obj2, &val3);
18801 if (!SWIG_IsOK(ecode3)) {
18802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18803 }
18804 arg3 = static_cast< double >(val3);
18805 {
18806 PyThreadState* __tstate = wxPyBeginAllowThreads();
18807 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18808 wxPyEndAllowThreads(__tstate);
18809 if (PyErr_Occurred()) SWIG_fail;
18810 }
18811 resultobj = SWIG_Py_Void();
18812 return resultobj;
18813fail:
18814 return NULL;
18815}
18816
18817
18818SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18819 PyObject *resultobj = 0;
18820 wxDC *arg1 = (wxDC *) 0 ;
18821 wxPoint *arg2 = 0 ;
18822 wxSize *arg3 = 0 ;
18823 double arg4 ;
18824 void *argp1 = 0 ;
18825 int res1 = 0 ;
18826 wxPoint temp2 ;
18827 wxSize temp3 ;
18828 double val4 ;
18829 int ecode4 = 0 ;
18830 PyObject * obj0 = 0 ;
18831 PyObject * obj1 = 0 ;
18832 PyObject * obj2 = 0 ;
18833 PyObject * obj3 = 0 ;
18834 char * kwnames[] = {
18835 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18836 };
18837
18838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18840 if (!SWIG_IsOK(res1)) {
18841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18842 }
18843 arg1 = reinterpret_cast< wxDC * >(argp1);
18844 {
18845 arg2 = &temp2;
18846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18847 }
18848 {
18849 arg3 = &temp3;
18850 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18851 }
18852 ecode4 = SWIG_AsVal_double(obj3, &val4);
18853 if (!SWIG_IsOK(ecode4)) {
18854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18855 }
18856 arg4 = static_cast< double >(val4);
18857 {
18858 PyThreadState* __tstate = wxPyBeginAllowThreads();
18859 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18860 wxPyEndAllowThreads(__tstate);
18861 if (PyErr_Occurred()) SWIG_fail;
18862 }
18863 resultobj = SWIG_Py_Void();
18864 return resultobj;
18865fail:
18866 return NULL;
18867}
18868
18869
18870SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18871 PyObject *resultobj = 0;
18872 wxDC *arg1 = (wxDC *) 0 ;
18873 int arg2 ;
18874 int arg3 ;
18875 int arg4 ;
18876 void *argp1 = 0 ;
18877 int res1 = 0 ;
18878 int val2 ;
18879 int ecode2 = 0 ;
18880 int val3 ;
18881 int ecode3 = 0 ;
18882 int val4 ;
18883 int ecode4 = 0 ;
18884 PyObject * obj0 = 0 ;
18885 PyObject * obj1 = 0 ;
18886 PyObject * obj2 = 0 ;
18887 PyObject * obj3 = 0 ;
18888 char * kwnames[] = {
18889 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18890 };
18891
18892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18894 if (!SWIG_IsOK(res1)) {
18895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18896 }
18897 arg1 = reinterpret_cast< wxDC * >(argp1);
18898 ecode2 = SWIG_AsVal_int(obj1, &val2);
18899 if (!SWIG_IsOK(ecode2)) {
18900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18901 }
18902 arg2 = static_cast< int >(val2);
18903 ecode3 = SWIG_AsVal_int(obj2, &val3);
18904 if (!SWIG_IsOK(ecode3)) {
18905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18906 }
18907 arg3 = static_cast< int >(val3);
18908 ecode4 = SWIG_AsVal_int(obj3, &val4);
18909 if (!SWIG_IsOK(ecode4)) {
18910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18911 }
18912 arg4 = static_cast< int >(val4);
18913 {
18914 PyThreadState* __tstate = wxPyBeginAllowThreads();
18915 (arg1)->DrawCircle(arg2,arg3,arg4);
18916 wxPyEndAllowThreads(__tstate);
18917 if (PyErr_Occurred()) SWIG_fail;
18918 }
18919 resultobj = SWIG_Py_Void();
18920 return resultobj;
18921fail:
18922 return NULL;
18923}
18924
18925
18926SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18927 PyObject *resultobj = 0;
18928 wxDC *arg1 = (wxDC *) 0 ;
18929 wxPoint *arg2 = 0 ;
18930 int arg3 ;
18931 void *argp1 = 0 ;
18932 int res1 = 0 ;
18933 wxPoint temp2 ;
18934 int val3 ;
18935 int ecode3 = 0 ;
18936 PyObject * obj0 = 0 ;
18937 PyObject * obj1 = 0 ;
18938 PyObject * obj2 = 0 ;
18939 char * kwnames[] = {
18940 (char *) "self",(char *) "pt",(char *) "radius", NULL
18941 };
18942
18943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18945 if (!SWIG_IsOK(res1)) {
18946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18947 }
18948 arg1 = reinterpret_cast< wxDC * >(argp1);
18949 {
18950 arg2 = &temp2;
18951 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18952 }
18953 ecode3 = SWIG_AsVal_int(obj2, &val3);
18954 if (!SWIG_IsOK(ecode3)) {
18955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18956 }
18957 arg3 = static_cast< int >(val3);
18958 {
18959 PyThreadState* __tstate = wxPyBeginAllowThreads();
18960 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18961 wxPyEndAllowThreads(__tstate);
18962 if (PyErr_Occurred()) SWIG_fail;
18963 }
18964 resultobj = SWIG_Py_Void();
18965 return resultobj;
18966fail:
18967 return NULL;
18968}
18969
18970
18971SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18972 PyObject *resultobj = 0;
18973 wxDC *arg1 = (wxDC *) 0 ;
18974 int arg2 ;
18975 int arg3 ;
18976 int arg4 ;
18977 int arg5 ;
18978 void *argp1 = 0 ;
18979 int res1 = 0 ;
18980 int val2 ;
18981 int ecode2 = 0 ;
18982 int val3 ;
18983 int ecode3 = 0 ;
18984 int val4 ;
18985 int ecode4 = 0 ;
18986 int val5 ;
18987 int ecode5 = 0 ;
18988 PyObject * obj0 = 0 ;
18989 PyObject * obj1 = 0 ;
18990 PyObject * obj2 = 0 ;
18991 PyObject * obj3 = 0 ;
18992 PyObject * obj4 = 0 ;
18993 char * kwnames[] = {
18994 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18995 };
18996
18997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18999 if (!SWIG_IsOK(res1)) {
19000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19001 }
19002 arg1 = reinterpret_cast< wxDC * >(argp1);
19003 ecode2 = SWIG_AsVal_int(obj1, &val2);
19004 if (!SWIG_IsOK(ecode2)) {
19005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19006 }
19007 arg2 = static_cast< int >(val2);
19008 ecode3 = SWIG_AsVal_int(obj2, &val3);
19009 if (!SWIG_IsOK(ecode3)) {
19010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19011 }
19012 arg3 = static_cast< int >(val3);
19013 ecode4 = SWIG_AsVal_int(obj3, &val4);
19014 if (!SWIG_IsOK(ecode4)) {
19015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19016 }
19017 arg4 = static_cast< int >(val4);
19018 ecode5 = SWIG_AsVal_int(obj4, &val5);
19019 if (!SWIG_IsOK(ecode5)) {
19020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19021 }
19022 arg5 = static_cast< int >(val5);
19023 {
19024 PyThreadState* __tstate = wxPyBeginAllowThreads();
19025 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19026 wxPyEndAllowThreads(__tstate);
19027 if (PyErr_Occurred()) SWIG_fail;
19028 }
19029 resultobj = SWIG_Py_Void();
19030 return resultobj;
19031fail:
19032 return NULL;
19033}
19034
19035
19036SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19037 PyObject *resultobj = 0;
19038 wxDC *arg1 = (wxDC *) 0 ;
19039 wxRect *arg2 = 0 ;
19040 void *argp1 = 0 ;
19041 int res1 = 0 ;
19042 wxRect temp2 ;
19043 PyObject * obj0 = 0 ;
19044 PyObject * obj1 = 0 ;
19045 char * kwnames[] = {
19046 (char *) "self",(char *) "rect", NULL
19047 };
19048
19049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19051 if (!SWIG_IsOK(res1)) {
19052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19053 }
19054 arg1 = reinterpret_cast< wxDC * >(argp1);
19055 {
19056 arg2 = &temp2;
19057 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19058 }
19059 {
19060 PyThreadState* __tstate = wxPyBeginAllowThreads();
19061 (arg1)->DrawEllipse((wxRect const &)*arg2);
19062 wxPyEndAllowThreads(__tstate);
19063 if (PyErr_Occurred()) SWIG_fail;
19064 }
19065 resultobj = SWIG_Py_Void();
19066 return resultobj;
19067fail:
19068 return NULL;
19069}
19070
19071
19072SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19073 PyObject *resultobj = 0;
19074 wxDC *arg1 = (wxDC *) 0 ;
19075 wxPoint *arg2 = 0 ;
19076 wxSize *arg3 = 0 ;
19077 void *argp1 = 0 ;
19078 int res1 = 0 ;
19079 wxPoint temp2 ;
19080 wxSize temp3 ;
19081 PyObject * obj0 = 0 ;
19082 PyObject * obj1 = 0 ;
19083 PyObject * obj2 = 0 ;
19084 char * kwnames[] = {
19085 (char *) "self",(char *) "pt",(char *) "sz", NULL
19086 };
19087
19088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19090 if (!SWIG_IsOK(res1)) {
19091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19092 }
19093 arg1 = reinterpret_cast< wxDC * >(argp1);
19094 {
19095 arg2 = &temp2;
19096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19097 }
19098 {
19099 arg3 = &temp3;
19100 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19101 }
19102 {
19103 PyThreadState* __tstate = wxPyBeginAllowThreads();
19104 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19105 wxPyEndAllowThreads(__tstate);
19106 if (PyErr_Occurred()) SWIG_fail;
19107 }
19108 resultobj = SWIG_Py_Void();
19109 return resultobj;
19110fail:
19111 return NULL;
19112}
19113
19114
19115SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19116 PyObject *resultobj = 0;
19117 wxDC *arg1 = (wxDC *) 0 ;
19118 wxIcon *arg2 = 0 ;
19119 int arg3 ;
19120 int arg4 ;
19121 void *argp1 = 0 ;
19122 int res1 = 0 ;
19123 void *argp2 = 0 ;
19124 int res2 = 0 ;
19125 int val3 ;
19126 int ecode3 = 0 ;
19127 int val4 ;
19128 int ecode4 = 0 ;
19129 PyObject * obj0 = 0 ;
19130 PyObject * obj1 = 0 ;
19131 PyObject * obj2 = 0 ;
19132 PyObject * obj3 = 0 ;
19133 char * kwnames[] = {
19134 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19135 };
19136
19137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19139 if (!SWIG_IsOK(res1)) {
19140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19141 }
19142 arg1 = reinterpret_cast< wxDC * >(argp1);
19143 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19144 if (!SWIG_IsOK(res2)) {
19145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19146 }
19147 if (!argp2) {
19148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19149 }
19150 arg2 = reinterpret_cast< wxIcon * >(argp2);
19151 ecode3 = SWIG_AsVal_int(obj2, &val3);
19152 if (!SWIG_IsOK(ecode3)) {
19153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19154 }
19155 arg3 = static_cast< int >(val3);
19156 ecode4 = SWIG_AsVal_int(obj3, &val4);
19157 if (!SWIG_IsOK(ecode4)) {
19158 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19159 }
19160 arg4 = static_cast< int >(val4);
19161 {
19162 PyThreadState* __tstate = wxPyBeginAllowThreads();
19163 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19164 wxPyEndAllowThreads(__tstate);
19165 if (PyErr_Occurred()) SWIG_fail;
19166 }
19167 resultobj = SWIG_Py_Void();
19168 return resultobj;
19169fail:
19170 return NULL;
19171}
19172
19173
19174SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19175 PyObject *resultobj = 0;
19176 wxDC *arg1 = (wxDC *) 0 ;
19177 wxIcon *arg2 = 0 ;
19178 wxPoint *arg3 = 0 ;
19179 void *argp1 = 0 ;
19180 int res1 = 0 ;
19181 void *argp2 = 0 ;
19182 int res2 = 0 ;
19183 wxPoint temp3 ;
19184 PyObject * obj0 = 0 ;
19185 PyObject * obj1 = 0 ;
19186 PyObject * obj2 = 0 ;
19187 char * kwnames[] = {
19188 (char *) "self",(char *) "icon",(char *) "pt", NULL
19189 };
19190
19191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19193 if (!SWIG_IsOK(res1)) {
19194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19195 }
19196 arg1 = reinterpret_cast< wxDC * >(argp1);
19197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19198 if (!SWIG_IsOK(res2)) {
19199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19200 }
19201 if (!argp2) {
19202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19203 }
19204 arg2 = reinterpret_cast< wxIcon * >(argp2);
19205 {
19206 arg3 = &temp3;
19207 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19208 }
19209 {
19210 PyThreadState* __tstate = wxPyBeginAllowThreads();
19211 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19212 wxPyEndAllowThreads(__tstate);
19213 if (PyErr_Occurred()) SWIG_fail;
19214 }
19215 resultobj = SWIG_Py_Void();
19216 return resultobj;
19217fail:
19218 return NULL;
19219}
19220
19221
19222SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19223 PyObject *resultobj = 0;
19224 wxDC *arg1 = (wxDC *) 0 ;
19225 wxBitmap *arg2 = 0 ;
19226 int arg3 ;
19227 int arg4 ;
19228 bool arg5 = (bool) false ;
19229 void *argp1 = 0 ;
19230 int res1 = 0 ;
19231 void *argp2 = 0 ;
19232 int res2 = 0 ;
19233 int val3 ;
19234 int ecode3 = 0 ;
19235 int val4 ;
19236 int ecode4 = 0 ;
19237 bool val5 ;
19238 int ecode5 = 0 ;
19239 PyObject * obj0 = 0 ;
19240 PyObject * obj1 = 0 ;
19241 PyObject * obj2 = 0 ;
19242 PyObject * obj3 = 0 ;
19243 PyObject * obj4 = 0 ;
19244 char * kwnames[] = {
19245 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19246 };
19247
19248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19250 if (!SWIG_IsOK(res1)) {
19251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19252 }
19253 arg1 = reinterpret_cast< wxDC * >(argp1);
19254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19255 if (!SWIG_IsOK(res2)) {
19256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19257 }
19258 if (!argp2) {
19259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19260 }
19261 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19262 ecode3 = SWIG_AsVal_int(obj2, &val3);
19263 if (!SWIG_IsOK(ecode3)) {
19264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19265 }
19266 arg3 = static_cast< int >(val3);
19267 ecode4 = SWIG_AsVal_int(obj3, &val4);
19268 if (!SWIG_IsOK(ecode4)) {
19269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19270 }
19271 arg4 = static_cast< int >(val4);
19272 if (obj4) {
19273 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19274 if (!SWIG_IsOK(ecode5)) {
19275 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19276 }
19277 arg5 = static_cast< bool >(val5);
19278 }
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19282 wxPyEndAllowThreads(__tstate);
19283 if (PyErr_Occurred()) SWIG_fail;
19284 }
19285 resultobj = SWIG_Py_Void();
19286 return resultobj;
19287fail:
19288 return NULL;
19289}
19290
19291
19292SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19293 PyObject *resultobj = 0;
19294 wxDC *arg1 = (wxDC *) 0 ;
19295 wxBitmap *arg2 = 0 ;
19296 wxPoint *arg3 = 0 ;
19297 bool arg4 = (bool) false ;
19298 void *argp1 = 0 ;
19299 int res1 = 0 ;
19300 void *argp2 = 0 ;
19301 int res2 = 0 ;
19302 wxPoint temp3 ;
19303 bool val4 ;
19304 int ecode4 = 0 ;
19305 PyObject * obj0 = 0 ;
19306 PyObject * obj1 = 0 ;
19307 PyObject * obj2 = 0 ;
19308 PyObject * obj3 = 0 ;
19309 char * kwnames[] = {
19310 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19311 };
19312
19313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19315 if (!SWIG_IsOK(res1)) {
19316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19317 }
19318 arg1 = reinterpret_cast< wxDC * >(argp1);
19319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19320 if (!SWIG_IsOK(res2)) {
19321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19322 }
19323 if (!argp2) {
19324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19325 }
19326 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19327 {
19328 arg3 = &temp3;
19329 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19330 }
19331 if (obj3) {
19332 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19333 if (!SWIG_IsOK(ecode4)) {
19334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19335 }
19336 arg4 = static_cast< bool >(val4);
19337 }
19338 {
19339 PyThreadState* __tstate = wxPyBeginAllowThreads();
19340 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19341 wxPyEndAllowThreads(__tstate);
19342 if (PyErr_Occurred()) SWIG_fail;
19343 }
19344 resultobj = SWIG_Py_Void();
19345 return resultobj;
19346fail:
19347 return NULL;
19348}
19349
19350
19351SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19352 PyObject *resultobj = 0;
19353 wxDC *arg1 = (wxDC *) 0 ;
19354 wxString *arg2 = 0 ;
19355 int arg3 ;
19356 int arg4 ;
19357 void *argp1 = 0 ;
19358 int res1 = 0 ;
19359 bool temp2 = false ;
19360 int val3 ;
19361 int ecode3 = 0 ;
19362 int val4 ;
19363 int ecode4 = 0 ;
19364 PyObject * obj0 = 0 ;
19365 PyObject * obj1 = 0 ;
19366 PyObject * obj2 = 0 ;
19367 PyObject * obj3 = 0 ;
19368 char * kwnames[] = {
19369 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19370 };
19371
19372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19374 if (!SWIG_IsOK(res1)) {
19375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19376 }
19377 arg1 = reinterpret_cast< wxDC * >(argp1);
19378 {
19379 arg2 = wxString_in_helper(obj1);
19380 if (arg2 == NULL) SWIG_fail;
19381 temp2 = true;
19382 }
19383 ecode3 = SWIG_AsVal_int(obj2, &val3);
19384 if (!SWIG_IsOK(ecode3)) {
19385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19386 }
19387 arg3 = static_cast< int >(val3);
19388 ecode4 = SWIG_AsVal_int(obj3, &val4);
19389 if (!SWIG_IsOK(ecode4)) {
19390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19391 }
19392 arg4 = static_cast< int >(val4);
19393 {
19394 PyThreadState* __tstate = wxPyBeginAllowThreads();
19395 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19396 wxPyEndAllowThreads(__tstate);
19397 if (PyErr_Occurred()) SWIG_fail;
19398 }
19399 resultobj = SWIG_Py_Void();
19400 {
19401 if (temp2)
19402 delete arg2;
19403 }
19404 return resultobj;
19405fail:
19406 {
19407 if (temp2)
19408 delete arg2;
19409 }
19410 return NULL;
19411}
19412
19413
19414SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19415 PyObject *resultobj = 0;
19416 wxDC *arg1 = (wxDC *) 0 ;
19417 wxString *arg2 = 0 ;
19418 wxPoint *arg3 = 0 ;
19419 void *argp1 = 0 ;
19420 int res1 = 0 ;
19421 bool temp2 = false ;
19422 wxPoint temp3 ;
19423 PyObject * obj0 = 0 ;
19424 PyObject * obj1 = 0 ;
19425 PyObject * obj2 = 0 ;
19426 char * kwnames[] = {
19427 (char *) "self",(char *) "text",(char *) "pt", NULL
19428 };
19429
19430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19432 if (!SWIG_IsOK(res1)) {
19433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19434 }
19435 arg1 = reinterpret_cast< wxDC * >(argp1);
19436 {
19437 arg2 = wxString_in_helper(obj1);
19438 if (arg2 == NULL) SWIG_fail;
19439 temp2 = true;
19440 }
19441 {
19442 arg3 = &temp3;
19443 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19444 }
19445 {
19446 PyThreadState* __tstate = wxPyBeginAllowThreads();
19447 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19448 wxPyEndAllowThreads(__tstate);
19449 if (PyErr_Occurred()) SWIG_fail;
19450 }
19451 resultobj = SWIG_Py_Void();
19452 {
19453 if (temp2)
19454 delete arg2;
19455 }
19456 return resultobj;
19457fail:
19458 {
19459 if (temp2)
19460 delete arg2;
19461 }
19462 return NULL;
19463}
19464
19465
19466SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19467 PyObject *resultobj = 0;
19468 wxDC *arg1 = (wxDC *) 0 ;
19469 wxString *arg2 = 0 ;
19470 int arg3 ;
19471 int arg4 ;
19472 double arg5 ;
19473 void *argp1 = 0 ;
19474 int res1 = 0 ;
19475 bool temp2 = false ;
19476 int val3 ;
19477 int ecode3 = 0 ;
19478 int val4 ;
19479 int ecode4 = 0 ;
19480 double val5 ;
19481 int ecode5 = 0 ;
19482 PyObject * obj0 = 0 ;
19483 PyObject * obj1 = 0 ;
19484 PyObject * obj2 = 0 ;
19485 PyObject * obj3 = 0 ;
19486 PyObject * obj4 = 0 ;
19487 char * kwnames[] = {
19488 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19489 };
19490
19491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19493 if (!SWIG_IsOK(res1)) {
19494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19495 }
19496 arg1 = reinterpret_cast< wxDC * >(argp1);
19497 {
19498 arg2 = wxString_in_helper(obj1);
19499 if (arg2 == NULL) SWIG_fail;
19500 temp2 = true;
19501 }
19502 ecode3 = SWIG_AsVal_int(obj2, &val3);
19503 if (!SWIG_IsOK(ecode3)) {
19504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19505 }
19506 arg3 = static_cast< int >(val3);
19507 ecode4 = SWIG_AsVal_int(obj3, &val4);
19508 if (!SWIG_IsOK(ecode4)) {
19509 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19510 }
19511 arg4 = static_cast< int >(val4);
19512 ecode5 = SWIG_AsVal_double(obj4, &val5);
19513 if (!SWIG_IsOK(ecode5)) {
19514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19515 }
19516 arg5 = static_cast< double >(val5);
19517 {
19518 PyThreadState* __tstate = wxPyBeginAllowThreads();
19519 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19520 wxPyEndAllowThreads(__tstate);
19521 if (PyErr_Occurred()) SWIG_fail;
19522 }
19523 resultobj = SWIG_Py_Void();
19524 {
19525 if (temp2)
19526 delete arg2;
19527 }
19528 return resultobj;
19529fail:
19530 {
19531 if (temp2)
19532 delete arg2;
19533 }
19534 return NULL;
19535}
19536
19537
19538SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19539 PyObject *resultobj = 0;
19540 wxDC *arg1 = (wxDC *) 0 ;
19541 wxString *arg2 = 0 ;
19542 wxPoint *arg3 = 0 ;
19543 double arg4 ;
19544 void *argp1 = 0 ;
19545 int res1 = 0 ;
19546 bool temp2 = false ;
19547 wxPoint temp3 ;
19548 double val4 ;
19549 int ecode4 = 0 ;
19550 PyObject * obj0 = 0 ;
19551 PyObject * obj1 = 0 ;
19552 PyObject * obj2 = 0 ;
19553 PyObject * obj3 = 0 ;
19554 char * kwnames[] = {
19555 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19556 };
19557
19558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19560 if (!SWIG_IsOK(res1)) {
19561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19562 }
19563 arg1 = reinterpret_cast< wxDC * >(argp1);
19564 {
19565 arg2 = wxString_in_helper(obj1);
19566 if (arg2 == NULL) SWIG_fail;
19567 temp2 = true;
19568 }
19569 {
19570 arg3 = &temp3;
19571 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19572 }
19573 ecode4 = SWIG_AsVal_double(obj3, &val4);
19574 if (!SWIG_IsOK(ecode4)) {
19575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19576 }
19577 arg4 = static_cast< double >(val4);
19578 {
19579 PyThreadState* __tstate = wxPyBeginAllowThreads();
19580 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19581 wxPyEndAllowThreads(__tstate);
19582 if (PyErr_Occurred()) SWIG_fail;
19583 }
19584 resultobj = SWIG_Py_Void();
19585 {
19586 if (temp2)
19587 delete arg2;
19588 }
19589 return resultobj;
19590fail:
19591 {
19592 if (temp2)
19593 delete arg2;
19594 }
19595 return NULL;
19596}
19597
19598
19599SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19600 PyObject *resultobj = 0;
19601 wxDC *arg1 = (wxDC *) 0 ;
19602 int arg2 ;
19603 int arg3 ;
19604 int arg4 ;
19605 int arg5 ;
19606 wxDC *arg6 = (wxDC *) 0 ;
19607 int arg7 ;
19608 int arg8 ;
19609 int arg9 = (int) wxCOPY ;
19610 bool arg10 = (bool) false ;
19611 int arg11 = (int) -1 ;
19612 int arg12 = (int) -1 ;
19613 bool result;
19614 void *argp1 = 0 ;
19615 int res1 = 0 ;
19616 int val2 ;
19617 int ecode2 = 0 ;
19618 int val3 ;
19619 int ecode3 = 0 ;
19620 int val4 ;
19621 int ecode4 = 0 ;
19622 int val5 ;
19623 int ecode5 = 0 ;
19624 void *argp6 = 0 ;
19625 int res6 = 0 ;
19626 int val7 ;
19627 int ecode7 = 0 ;
19628 int val8 ;
19629 int ecode8 = 0 ;
19630 int val9 ;
19631 int ecode9 = 0 ;
19632 bool val10 ;
19633 int ecode10 = 0 ;
19634 int val11 ;
19635 int ecode11 = 0 ;
19636 int val12 ;
19637 int ecode12 = 0 ;
19638 PyObject * obj0 = 0 ;
19639 PyObject * obj1 = 0 ;
19640 PyObject * obj2 = 0 ;
19641 PyObject * obj3 = 0 ;
19642 PyObject * obj4 = 0 ;
19643 PyObject * obj5 = 0 ;
19644 PyObject * obj6 = 0 ;
19645 PyObject * obj7 = 0 ;
19646 PyObject * obj8 = 0 ;
19647 PyObject * obj9 = 0 ;
19648 PyObject * obj10 = 0 ;
19649 PyObject * obj11 = 0 ;
19650 char * kwnames[] = {
19651 (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
19652 };
19653
19654 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;
19655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19656 if (!SWIG_IsOK(res1)) {
19657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19658 }
19659 arg1 = reinterpret_cast< wxDC * >(argp1);
19660 ecode2 = SWIG_AsVal_int(obj1, &val2);
19661 if (!SWIG_IsOK(ecode2)) {
19662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19663 }
19664 arg2 = static_cast< int >(val2);
19665 ecode3 = SWIG_AsVal_int(obj2, &val3);
19666 if (!SWIG_IsOK(ecode3)) {
19667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19668 }
19669 arg3 = static_cast< int >(val3);
19670 ecode4 = SWIG_AsVal_int(obj3, &val4);
19671 if (!SWIG_IsOK(ecode4)) {
19672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19673 }
19674 arg4 = static_cast< int >(val4);
19675 ecode5 = SWIG_AsVal_int(obj4, &val5);
19676 if (!SWIG_IsOK(ecode5)) {
19677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19678 }
19679 arg5 = static_cast< int >(val5);
19680 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19681 if (!SWIG_IsOK(res6)) {
19682 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19683 }
19684 arg6 = reinterpret_cast< wxDC * >(argp6);
19685 ecode7 = SWIG_AsVal_int(obj6, &val7);
19686 if (!SWIG_IsOK(ecode7)) {
19687 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19688 }
19689 arg7 = static_cast< int >(val7);
19690 ecode8 = SWIG_AsVal_int(obj7, &val8);
19691 if (!SWIG_IsOK(ecode8)) {
19692 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19693 }
19694 arg8 = static_cast< int >(val8);
19695 if (obj8) {
19696 ecode9 = SWIG_AsVal_int(obj8, &val9);
19697 if (!SWIG_IsOK(ecode9)) {
19698 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19699 }
19700 arg9 = static_cast< int >(val9);
19701 }
19702 if (obj9) {
19703 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19704 if (!SWIG_IsOK(ecode10)) {
19705 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19706 }
19707 arg10 = static_cast< bool >(val10);
19708 }
19709 if (obj10) {
19710 ecode11 = SWIG_AsVal_int(obj10, &val11);
19711 if (!SWIG_IsOK(ecode11)) {
19712 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19713 }
19714 arg11 = static_cast< int >(val11);
19715 }
19716 if (obj11) {
19717 ecode12 = SWIG_AsVal_int(obj11, &val12);
19718 if (!SWIG_IsOK(ecode12)) {
19719 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19720 }
19721 arg12 = static_cast< int >(val12);
19722 }
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19726 wxPyEndAllowThreads(__tstate);
19727 if (PyErr_Occurred()) SWIG_fail;
19728 }
19729 {
19730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19731 }
19732 return resultobj;
19733fail:
19734 return NULL;
19735}
19736
19737
19738SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19739 PyObject *resultobj = 0;
19740 wxDC *arg1 = (wxDC *) 0 ;
19741 wxPoint *arg2 = 0 ;
19742 wxSize *arg3 = 0 ;
19743 wxDC *arg4 = (wxDC *) 0 ;
19744 wxPoint *arg5 = 0 ;
19745 int arg6 = (int) wxCOPY ;
19746 bool arg7 = (bool) false ;
19747 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19748 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19749 bool result;
19750 void *argp1 = 0 ;
19751 int res1 = 0 ;
19752 wxPoint temp2 ;
19753 wxSize temp3 ;
19754 void *argp4 = 0 ;
19755 int res4 = 0 ;
19756 wxPoint temp5 ;
19757 int val6 ;
19758 int ecode6 = 0 ;
19759 bool val7 ;
19760 int ecode7 = 0 ;
19761 wxPoint temp8 ;
19762 PyObject * obj0 = 0 ;
19763 PyObject * obj1 = 0 ;
19764 PyObject * obj2 = 0 ;
19765 PyObject * obj3 = 0 ;
19766 PyObject * obj4 = 0 ;
19767 PyObject * obj5 = 0 ;
19768 PyObject * obj6 = 0 ;
19769 PyObject * obj7 = 0 ;
19770 char * kwnames[] = {
19771 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19772 };
19773
19774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) 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_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19778 }
19779 arg1 = reinterpret_cast< wxDC * >(argp1);
19780 {
19781 arg2 = &temp2;
19782 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19783 }
19784 {
19785 arg3 = &temp3;
19786 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19787 }
19788 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19789 if (!SWIG_IsOK(res4)) {
19790 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19791 }
19792 arg4 = reinterpret_cast< wxDC * >(argp4);
19793 {
19794 arg5 = &temp5;
19795 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19796 }
19797 if (obj5) {
19798 ecode6 = SWIG_AsVal_int(obj5, &val6);
19799 if (!SWIG_IsOK(ecode6)) {
19800 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19801 }
19802 arg6 = static_cast< int >(val6);
19803 }
19804 if (obj6) {
19805 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19806 if (!SWIG_IsOK(ecode7)) {
19807 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19808 }
19809 arg7 = static_cast< bool >(val7);
19810 }
19811 if (obj7) {
36ed4f51 19812 {
1bd55598
RD
19813 arg8 = &temp8;
19814 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19815 }
1bd55598
RD
19816 }
19817 {
19818 PyThreadState* __tstate = wxPyBeginAllowThreads();
19819 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19820 wxPyEndAllowThreads(__tstate);
19821 if (PyErr_Occurred()) SWIG_fail;
19822 }
19823 {
19824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19825 }
19826 return resultobj;
19827fail:
19828 return NULL;
19829}
19830
19831
8f514ab4
RD
19832SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19833 PyObject *resultobj = 0;
19834 wxDC *arg1 = (wxDC *) 0 ;
19835 wxRect *arg2 = (wxRect *) NULL ;
19836 SwigValueWrapper<wxBitmap > result;
19837 void *argp1 = 0 ;
19838 int res1 = 0 ;
19839 void *argp2 = 0 ;
19840 int res2 = 0 ;
19841 PyObject * obj0 = 0 ;
19842 PyObject * obj1 = 0 ;
19843 char * kwnames[] = {
19844 (char *) "self",(char *) "subrect", NULL
19845 };
19846
19847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19849 if (!SWIG_IsOK(res1)) {
19850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19851 }
19852 arg1 = reinterpret_cast< wxDC * >(argp1);
19853 if (obj1) {
19854 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19855 if (!SWIG_IsOK(res2)) {
19856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19857 }
19858 arg2 = reinterpret_cast< wxRect * >(argp2);
19859 }
19860 {
19861 PyThreadState* __tstate = wxPyBeginAllowThreads();
19862 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19863 wxPyEndAllowThreads(__tstate);
19864 if (PyErr_Occurred()) SWIG_fail;
19865 }
19866 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19867 return resultobj;
19868fail:
19869 return NULL;
19870}
19871
19872
1bd55598
RD
19873SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19874 PyObject *resultobj = 0;
19875 wxDC *arg1 = (wxDC *) 0 ;
19876 int arg2 ;
19877 int arg3 ;
19878 int arg4 ;
19879 int arg5 ;
19880 void *argp1 = 0 ;
19881 int res1 = 0 ;
19882 int val2 ;
19883 int ecode2 = 0 ;
19884 int val3 ;
19885 int ecode3 = 0 ;
19886 int val4 ;
19887 int ecode4 = 0 ;
19888 int val5 ;
19889 int ecode5 = 0 ;
19890 PyObject * obj0 = 0 ;
19891 PyObject * obj1 = 0 ;
19892 PyObject * obj2 = 0 ;
19893 PyObject * obj3 = 0 ;
19894 PyObject * obj4 = 0 ;
19895 char * kwnames[] = {
19896 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19897 };
19898
19899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19901 if (!SWIG_IsOK(res1)) {
19902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19903 }
19904 arg1 = reinterpret_cast< wxDC * >(argp1);
19905 ecode2 = SWIG_AsVal_int(obj1, &val2);
19906 if (!SWIG_IsOK(ecode2)) {
19907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19908 }
19909 arg2 = static_cast< int >(val2);
19910 ecode3 = SWIG_AsVal_int(obj2, &val3);
19911 if (!SWIG_IsOK(ecode3)) {
19912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19913 }
19914 arg3 = static_cast< int >(val3);
19915 ecode4 = SWIG_AsVal_int(obj3, &val4);
19916 if (!SWIG_IsOK(ecode4)) {
19917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19918 }
19919 arg4 = static_cast< int >(val4);
19920 ecode5 = SWIG_AsVal_int(obj4, &val5);
19921 if (!SWIG_IsOK(ecode5)) {
19922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19923 }
19924 arg5 = static_cast< int >(val5);
19925 {
19926 PyThreadState* __tstate = wxPyBeginAllowThreads();
19927 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19928 wxPyEndAllowThreads(__tstate);
19929 if (PyErr_Occurred()) SWIG_fail;
19930 }
19931 resultobj = SWIG_Py_Void();
19932 return resultobj;
19933fail:
19934 return NULL;
19935}
19936
19937
19938SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19939 PyObject *resultobj = 0;
19940 wxDC *arg1 = (wxDC *) 0 ;
19941 wxPoint *arg2 = 0 ;
19942 wxSize *arg3 = 0 ;
19943 void *argp1 = 0 ;
19944 int res1 = 0 ;
19945 wxPoint temp2 ;
19946 wxSize temp3 ;
19947 PyObject * obj0 = 0 ;
19948 PyObject * obj1 = 0 ;
19949 PyObject * obj2 = 0 ;
19950 char * kwnames[] = {
19951 (char *) "self",(char *) "pt",(char *) "sz", NULL
19952 };
19953
19954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19956 if (!SWIG_IsOK(res1)) {
19957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19958 }
19959 arg1 = reinterpret_cast< wxDC * >(argp1);
19960 {
19961 arg2 = &temp2;
19962 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19963 }
19964 {
19965 arg3 = &temp3;
19966 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19967 }
19968 {
19969 PyThreadState* __tstate = wxPyBeginAllowThreads();
19970 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19971 wxPyEndAllowThreads(__tstate);
19972 if (PyErr_Occurred()) SWIG_fail;
19973 }
19974 resultobj = SWIG_Py_Void();
19975 return resultobj;
19976fail:
19977 return NULL;
19978}
19979
19980
19981SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19982 PyObject *resultobj = 0;
19983 wxDC *arg1 = (wxDC *) 0 ;
19984 wxRegion *arg2 = 0 ;
19985 void *argp1 = 0 ;
19986 int res1 = 0 ;
19987 void *argp2 = 0 ;
19988 int res2 = 0 ;
19989 PyObject * obj0 = 0 ;
19990 PyObject * obj1 = 0 ;
19991 char * kwnames[] = {
19992 (char *) "self",(char *) "region", NULL
19993 };
19994
19995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19997 if (!SWIG_IsOK(res1)) {
19998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19999 }
20000 arg1 = reinterpret_cast< wxDC * >(argp1);
20001 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20002 if (!SWIG_IsOK(res2)) {
20003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20004 }
20005 if (!argp2) {
20006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20007 }
20008 arg2 = reinterpret_cast< wxRegion * >(argp2);
20009 {
20010 PyThreadState* __tstate = wxPyBeginAllowThreads();
20011 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20012 wxPyEndAllowThreads(__tstate);
20013 if (PyErr_Occurred()) SWIG_fail;
20014 }
20015 resultobj = SWIG_Py_Void();
20016 return resultobj;
20017fail:
20018 return NULL;
20019}
20020
20021
20022SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20023 PyObject *resultobj = 0;
20024 wxDC *arg1 = (wxDC *) 0 ;
20025 wxRect *arg2 = 0 ;
20026 void *argp1 = 0 ;
20027 int res1 = 0 ;
20028 wxRect temp2 ;
20029 PyObject * obj0 = 0 ;
20030 PyObject * obj1 = 0 ;
20031 char * kwnames[] = {
20032 (char *) "self",(char *) "rect", NULL
20033 };
20034
20035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20037 if (!SWIG_IsOK(res1)) {
20038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20039 }
20040 arg1 = reinterpret_cast< wxDC * >(argp1);
20041 {
20042 arg2 = &temp2;
20043 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20044 }
20045 {
20046 PyThreadState* __tstate = wxPyBeginAllowThreads();
20047 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20048 wxPyEndAllowThreads(__tstate);
20049 if (PyErr_Occurred()) SWIG_fail;
20050 }
20051 resultobj = SWIG_Py_Void();
20052 return resultobj;
20053fail:
20054 return NULL;
20055}
20056
20057
20058SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20059 PyObject *resultobj = 0;
20060 wxDC *arg1 = (wxDC *) 0 ;
20061 int arg2 ;
20062 wxPoint *arg3 = (wxPoint *) 0 ;
20063 int arg4 = (int) 0 ;
20064 int arg5 = (int) 0 ;
20065 void *argp1 = 0 ;
20066 int res1 = 0 ;
20067 int val4 ;
20068 int ecode4 = 0 ;
20069 int val5 ;
20070 int ecode5 = 0 ;
20071 PyObject * obj0 = 0 ;
20072 PyObject * obj1 = 0 ;
20073 PyObject * obj2 = 0 ;
20074 PyObject * obj3 = 0 ;
20075 char * kwnames[] = {
20076 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20077 };
20078
20079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20081 if (!SWIG_IsOK(res1)) {
20082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20083 }
20084 arg1 = reinterpret_cast< wxDC * >(argp1);
20085 {
20086 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20087 if (arg3 == NULL) SWIG_fail;
20088 }
20089 if (obj2) {
20090 ecode4 = SWIG_AsVal_int(obj2, &val4);
20091 if (!SWIG_IsOK(ecode4)) {
20092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20093 }
20094 arg4 = static_cast< int >(val4);
20095 }
20096 if (obj3) {
20097 ecode5 = SWIG_AsVal_int(obj3, &val5);
20098 if (!SWIG_IsOK(ecode5)) {
20099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20100 }
20101 arg5 = static_cast< int >(val5);
20102 }
20103 {
20104 PyThreadState* __tstate = wxPyBeginAllowThreads();
20105 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20106 wxPyEndAllowThreads(__tstate);
20107 if (PyErr_Occurred()) SWIG_fail;
20108 }
20109 resultobj = SWIG_Py_Void();
20110 {
20111 if (arg3) delete [] arg3;
20112 }
20113 return resultobj;
20114fail:
20115 {
20116 if (arg3) delete [] arg3;
20117 }
20118 return NULL;
20119}
20120
20121
20122SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20123 PyObject *resultobj = 0;
20124 wxDC *arg1 = (wxDC *) 0 ;
20125 int arg2 ;
20126 wxPoint *arg3 = (wxPoint *) 0 ;
20127 int arg4 = (int) 0 ;
20128 int arg5 = (int) 0 ;
20129 int arg6 = (int) wxODDEVEN_RULE ;
20130 void *argp1 = 0 ;
20131 int res1 = 0 ;
20132 int val4 ;
20133 int ecode4 = 0 ;
20134 int val5 ;
20135 int ecode5 = 0 ;
20136 int val6 ;
20137 int ecode6 = 0 ;
20138 PyObject * obj0 = 0 ;
20139 PyObject * obj1 = 0 ;
20140 PyObject * obj2 = 0 ;
20141 PyObject * obj3 = 0 ;
20142 PyObject * obj4 = 0 ;
20143 char * kwnames[] = {
20144 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20145 };
20146
20147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20149 if (!SWIG_IsOK(res1)) {
20150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20151 }
20152 arg1 = reinterpret_cast< wxDC * >(argp1);
20153 {
20154 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20155 if (arg3 == NULL) SWIG_fail;
20156 }
20157 if (obj2) {
20158 ecode4 = SWIG_AsVal_int(obj2, &val4);
20159 if (!SWIG_IsOK(ecode4)) {
20160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20161 }
20162 arg4 = static_cast< int >(val4);
20163 }
20164 if (obj3) {
20165 ecode5 = SWIG_AsVal_int(obj3, &val5);
20166 if (!SWIG_IsOK(ecode5)) {
20167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20168 }
20169 arg5 = static_cast< int >(val5);
20170 }
20171 if (obj4) {
20172 ecode6 = SWIG_AsVal_int(obj4, &val6);
20173 if (!SWIG_IsOK(ecode6)) {
20174 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20175 }
20176 arg6 = static_cast< int >(val6);
20177 }
20178 {
20179 PyThreadState* __tstate = wxPyBeginAllowThreads();
20180 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20181 wxPyEndAllowThreads(__tstate);
20182 if (PyErr_Occurred()) SWIG_fail;
20183 }
20184 resultobj = SWIG_Py_Void();
20185 {
20186 if (arg3) delete [] arg3;
20187 }
20188 return resultobj;
20189fail:
20190 {
20191 if (arg3) delete [] arg3;
20192 }
20193 return NULL;
20194}
20195
20196
20197SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20198 PyObject *resultobj = 0;
20199 wxDC *arg1 = (wxDC *) 0 ;
20200 wxString *arg2 = 0 ;
20201 wxRect *arg3 = 0 ;
20202 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20203 int arg5 = (int) -1 ;
20204 void *argp1 = 0 ;
20205 int res1 = 0 ;
20206 bool temp2 = false ;
20207 wxRect temp3 ;
20208 int val4 ;
20209 int ecode4 = 0 ;
20210 int val5 ;
20211 int ecode5 = 0 ;
20212 PyObject * obj0 = 0 ;
20213 PyObject * obj1 = 0 ;
20214 PyObject * obj2 = 0 ;
20215 PyObject * obj3 = 0 ;
20216 PyObject * obj4 = 0 ;
20217 char * kwnames[] = {
20218 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20219 };
20220
20221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20223 if (!SWIG_IsOK(res1)) {
20224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20225 }
20226 arg1 = reinterpret_cast< wxDC * >(argp1);
20227 {
20228 arg2 = wxString_in_helper(obj1);
20229 if (arg2 == NULL) SWIG_fail;
20230 temp2 = true;
20231 }
20232 {
20233 arg3 = &temp3;
20234 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20235 }
20236 if (obj3) {
20237 ecode4 = SWIG_AsVal_int(obj3, &val4);
20238 if (!SWIG_IsOK(ecode4)) {
20239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20240 }
20241 arg4 = static_cast< int >(val4);
20242 }
20243 if (obj4) {
20244 ecode5 = SWIG_AsVal_int(obj4, &val5);
20245 if (!SWIG_IsOK(ecode5)) {
20246 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20247 }
20248 arg5 = static_cast< int >(val5);
20249 }
20250 {
20251 PyThreadState* __tstate = wxPyBeginAllowThreads();
20252 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20253 wxPyEndAllowThreads(__tstate);
20254 if (PyErr_Occurred()) SWIG_fail;
20255 }
20256 resultobj = SWIG_Py_Void();
20257 {
20258 if (temp2)
20259 delete arg2;
20260 }
20261 return resultobj;
20262fail:
20263 {
20264 if (temp2)
20265 delete arg2;
20266 }
20267 return NULL;
20268}
20269
20270
20271SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20272 PyObject *resultobj = 0;
20273 wxDC *arg1 = (wxDC *) 0 ;
20274 wxString *arg2 = 0 ;
20275 wxBitmap *arg3 = 0 ;
20276 wxRect *arg4 = 0 ;
20277 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20278 int arg6 = (int) -1 ;
20279 wxRect result;
20280 void *argp1 = 0 ;
20281 int res1 = 0 ;
20282 bool temp2 = false ;
20283 void *argp3 = 0 ;
20284 int res3 = 0 ;
20285 wxRect temp4 ;
20286 int val5 ;
20287 int ecode5 = 0 ;
20288 int val6 ;
20289 int ecode6 = 0 ;
20290 PyObject * obj0 = 0 ;
20291 PyObject * obj1 = 0 ;
20292 PyObject * obj2 = 0 ;
20293 PyObject * obj3 = 0 ;
20294 PyObject * obj4 = 0 ;
20295 PyObject * obj5 = 0 ;
20296 char * kwnames[] = {
20297 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20298 };
20299
20300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20302 if (!SWIG_IsOK(res1)) {
20303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20304 }
20305 arg1 = reinterpret_cast< wxDC * >(argp1);
20306 {
20307 arg2 = wxString_in_helper(obj1);
20308 if (arg2 == NULL) SWIG_fail;
20309 temp2 = true;
20310 }
20311 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20312 if (!SWIG_IsOK(res3)) {
20313 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20314 }
20315 if (!argp3) {
20316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20317 }
20318 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20319 {
20320 arg4 = &temp4;
20321 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20322 }
20323 if (obj4) {
20324 ecode5 = SWIG_AsVal_int(obj4, &val5);
20325 if (!SWIG_IsOK(ecode5)) {
20326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20327 }
20328 arg5 = static_cast< int >(val5);
20329 }
20330 if (obj5) {
20331 ecode6 = SWIG_AsVal_int(obj5, &val6);
20332 if (!SWIG_IsOK(ecode6)) {
20333 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20334 }
20335 arg6 = static_cast< int >(val6);
20336 }
20337 {
20338 PyThreadState* __tstate = wxPyBeginAllowThreads();
20339 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20340 wxPyEndAllowThreads(__tstate);
20341 if (PyErr_Occurred()) SWIG_fail;
20342 }
20343 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20344 {
20345 if (temp2)
20346 delete arg2;
20347 }
20348 return resultobj;
20349fail:
20350 {
20351 if (temp2)
20352 delete arg2;
20353 }
20354 return NULL;
20355}
20356
20357
20358SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20359 PyObject *resultobj = 0;
20360 wxDC *arg1 = (wxDC *) 0 ;
20361 int arg2 ;
20362 wxPoint *arg3 = (wxPoint *) 0 ;
20363 void *argp1 = 0 ;
20364 int res1 = 0 ;
20365 PyObject * obj0 = 0 ;
20366 PyObject * obj1 = 0 ;
20367 char * kwnames[] = {
20368 (char *) "self",(char *) "points", NULL
20369 };
20370
20371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20373 if (!SWIG_IsOK(res1)) {
20374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20375 }
20376 arg1 = reinterpret_cast< wxDC * >(argp1);
20377 {
20378 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20379 if (arg3 == NULL) SWIG_fail;
20380 }
20381 {
20382 PyThreadState* __tstate = wxPyBeginAllowThreads();
20383 (arg1)->DrawSpline(arg2,arg3);
20384 wxPyEndAllowThreads(__tstate);
20385 if (PyErr_Occurred()) SWIG_fail;
20386 }
20387 resultobj = SWIG_Py_Void();
20388 {
20389 if (arg3) delete [] arg3;
20390 }
20391 return resultobj;
20392fail:
20393 {
20394 if (arg3) delete [] arg3;
20395 }
20396 return NULL;
20397}
20398
20399
20400SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20401 PyObject *resultobj = 0;
20402 wxDC *arg1 = (wxDC *) 0 ;
20403 void *argp1 = 0 ;
20404 int res1 = 0 ;
20405 PyObject *swig_obj[1] ;
20406
20407 if (!args) SWIG_fail;
20408 swig_obj[0] = args;
20409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20410 if (!SWIG_IsOK(res1)) {
20411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20412 }
20413 arg1 = reinterpret_cast< wxDC * >(argp1);
20414 {
20415 PyThreadState* __tstate = wxPyBeginAllowThreads();
20416 (arg1)->Clear();
20417 wxPyEndAllowThreads(__tstate);
20418 if (PyErr_Occurred()) SWIG_fail;
20419 }
20420 resultobj = SWIG_Py_Void();
20421 return resultobj;
20422fail:
20423 return NULL;
20424}
20425
20426
20427SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20428 PyObject *resultobj = 0;
20429 wxDC *arg1 = (wxDC *) 0 ;
20430 wxString *arg2 = 0 ;
20431 bool result;
20432 void *argp1 = 0 ;
20433 int res1 = 0 ;
20434 bool temp2 = false ;
20435 PyObject * obj0 = 0 ;
20436 PyObject * obj1 = 0 ;
20437 char * kwnames[] = {
20438 (char *) "self",(char *) "message", NULL
20439 };
20440
20441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20443 if (!SWIG_IsOK(res1)) {
20444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20445 }
20446 arg1 = reinterpret_cast< wxDC * >(argp1);
20447 {
20448 arg2 = wxString_in_helper(obj1);
20449 if (arg2 == NULL) SWIG_fail;
20450 temp2 = true;
20451 }
20452 {
20453 PyThreadState* __tstate = wxPyBeginAllowThreads();
20454 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20455 wxPyEndAllowThreads(__tstate);
20456 if (PyErr_Occurred()) SWIG_fail;
20457 }
20458 {
20459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20460 }
20461 {
20462 if (temp2)
20463 delete arg2;
20464 }
20465 return resultobj;
20466fail:
20467 {
20468 if (temp2)
20469 delete arg2;
20470 }
20471 return NULL;
20472}
20473
20474
20475SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20476 PyObject *resultobj = 0;
20477 wxDC *arg1 = (wxDC *) 0 ;
20478 void *argp1 = 0 ;
20479 int res1 = 0 ;
20480 PyObject *swig_obj[1] ;
20481
20482 if (!args) SWIG_fail;
20483 swig_obj[0] = args;
20484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20485 if (!SWIG_IsOK(res1)) {
20486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20487 }
20488 arg1 = reinterpret_cast< wxDC * >(argp1);
20489 {
20490 PyThreadState* __tstate = wxPyBeginAllowThreads();
20491 (arg1)->EndDoc();
20492 wxPyEndAllowThreads(__tstate);
20493 if (PyErr_Occurred()) SWIG_fail;
20494 }
20495 resultobj = SWIG_Py_Void();
20496 return resultobj;
20497fail:
20498 return NULL;
20499}
20500
20501
20502SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20503 PyObject *resultobj = 0;
20504 wxDC *arg1 = (wxDC *) 0 ;
20505 void *argp1 = 0 ;
20506 int res1 = 0 ;
20507 PyObject *swig_obj[1] ;
20508
20509 if (!args) SWIG_fail;
20510 swig_obj[0] = args;
20511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20512 if (!SWIG_IsOK(res1)) {
20513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20514 }
20515 arg1 = reinterpret_cast< wxDC * >(argp1);
20516 {
20517 PyThreadState* __tstate = wxPyBeginAllowThreads();
20518 (arg1)->StartPage();
20519 wxPyEndAllowThreads(__tstate);
20520 if (PyErr_Occurred()) SWIG_fail;
20521 }
20522 resultobj = SWIG_Py_Void();
20523 return resultobj;
20524fail:
20525 return NULL;
20526}
20527
20528
20529SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20530 PyObject *resultobj = 0;
20531 wxDC *arg1 = (wxDC *) 0 ;
20532 void *argp1 = 0 ;
20533 int res1 = 0 ;
20534 PyObject *swig_obj[1] ;
20535
20536 if (!args) SWIG_fail;
20537 swig_obj[0] = args;
20538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20539 if (!SWIG_IsOK(res1)) {
20540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20541 }
20542 arg1 = reinterpret_cast< wxDC * >(argp1);
20543 {
20544 PyThreadState* __tstate = wxPyBeginAllowThreads();
20545 (arg1)->EndPage();
20546 wxPyEndAllowThreads(__tstate);
20547 if (PyErr_Occurred()) SWIG_fail;
20548 }
20549 resultobj = SWIG_Py_Void();
20550 return resultobj;
20551fail:
20552 return NULL;
20553}
20554
20555
20556SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20557 PyObject *resultobj = 0;
20558 wxDC *arg1 = (wxDC *) 0 ;
20559 wxFont *arg2 = 0 ;
20560 void *argp1 = 0 ;
20561 int res1 = 0 ;
20562 void *argp2 = 0 ;
20563 int res2 = 0 ;
20564 PyObject * obj0 = 0 ;
20565 PyObject * obj1 = 0 ;
20566 char * kwnames[] = {
20567 (char *) "self",(char *) "font", NULL
20568 };
20569
20570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20572 if (!SWIG_IsOK(res1)) {
20573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20574 }
20575 arg1 = reinterpret_cast< wxDC * >(argp1);
20576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20577 if (!SWIG_IsOK(res2)) {
20578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20579 }
20580 if (!argp2) {
20581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20582 }
20583 arg2 = reinterpret_cast< wxFont * >(argp2);
20584 {
20585 PyThreadState* __tstate = wxPyBeginAllowThreads();
20586 (arg1)->SetFont((wxFont const &)*arg2);
20587 wxPyEndAllowThreads(__tstate);
20588 if (PyErr_Occurred()) SWIG_fail;
20589 }
20590 resultobj = SWIG_Py_Void();
20591 return resultobj;
20592fail:
20593 return NULL;
20594}
20595
20596
20597SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj = 0;
20599 wxDC *arg1 = (wxDC *) 0 ;
20600 wxPen *arg2 = 0 ;
20601 void *argp1 = 0 ;
20602 int res1 = 0 ;
20603 void *argp2 = 0 ;
20604 int res2 = 0 ;
20605 PyObject * obj0 = 0 ;
20606 PyObject * obj1 = 0 ;
20607 char * kwnames[] = {
20608 (char *) "self",(char *) "pen", NULL
20609 };
20610
20611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20613 if (!SWIG_IsOK(res1)) {
20614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20615 }
20616 arg1 = reinterpret_cast< wxDC * >(argp1);
20617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20618 if (!SWIG_IsOK(res2)) {
20619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20620 }
20621 if (!argp2) {
20622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20623 }
20624 arg2 = reinterpret_cast< wxPen * >(argp2);
20625 {
20626 PyThreadState* __tstate = wxPyBeginAllowThreads();
20627 (arg1)->SetPen((wxPen const &)*arg2);
20628 wxPyEndAllowThreads(__tstate);
20629 if (PyErr_Occurred()) SWIG_fail;
20630 }
20631 resultobj = SWIG_Py_Void();
20632 return resultobj;
20633fail:
20634 return NULL;
20635}
20636
20637
20638SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20639 PyObject *resultobj = 0;
20640 wxDC *arg1 = (wxDC *) 0 ;
20641 wxBrush *arg2 = 0 ;
20642 void *argp1 = 0 ;
20643 int res1 = 0 ;
20644 void *argp2 = 0 ;
20645 int res2 = 0 ;
20646 PyObject * obj0 = 0 ;
20647 PyObject * obj1 = 0 ;
20648 char * kwnames[] = {
20649 (char *) "self",(char *) "brush", NULL
20650 };
20651
20652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20654 if (!SWIG_IsOK(res1)) {
20655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20656 }
20657 arg1 = reinterpret_cast< wxDC * >(argp1);
20658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20659 if (!SWIG_IsOK(res2)) {
20660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20661 }
20662 if (!argp2) {
20663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20664 }
20665 arg2 = reinterpret_cast< wxBrush * >(argp2);
20666 {
20667 PyThreadState* __tstate = wxPyBeginAllowThreads();
20668 (arg1)->SetBrush((wxBrush const &)*arg2);
20669 wxPyEndAllowThreads(__tstate);
20670 if (PyErr_Occurred()) SWIG_fail;
20671 }
20672 resultobj = SWIG_Py_Void();
20673 return resultobj;
20674fail:
20675 return NULL;
20676}
20677
20678
20679SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20680 PyObject *resultobj = 0;
20681 wxDC *arg1 = (wxDC *) 0 ;
20682 wxBrush *arg2 = 0 ;
20683 void *argp1 = 0 ;
20684 int res1 = 0 ;
20685 void *argp2 = 0 ;
20686 int res2 = 0 ;
20687 PyObject * obj0 = 0 ;
20688 PyObject * obj1 = 0 ;
20689 char * kwnames[] = {
20690 (char *) "self",(char *) "brush", NULL
20691 };
20692
20693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20695 if (!SWIG_IsOK(res1)) {
20696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20697 }
20698 arg1 = reinterpret_cast< wxDC * >(argp1);
20699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20700 if (!SWIG_IsOK(res2)) {
20701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20702 }
20703 if (!argp2) {
20704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20705 }
20706 arg2 = reinterpret_cast< wxBrush * >(argp2);
20707 {
20708 PyThreadState* __tstate = wxPyBeginAllowThreads();
20709 (arg1)->SetBackground((wxBrush const &)*arg2);
20710 wxPyEndAllowThreads(__tstate);
20711 if (PyErr_Occurred()) SWIG_fail;
20712 }
20713 resultobj = SWIG_Py_Void();
20714 return resultobj;
20715fail:
20716 return NULL;
20717}
20718
20719
20720SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20721 PyObject *resultobj = 0;
20722 wxDC *arg1 = (wxDC *) 0 ;
20723 int arg2 ;
20724 void *argp1 = 0 ;
20725 int res1 = 0 ;
20726 int val2 ;
20727 int ecode2 = 0 ;
20728 PyObject * obj0 = 0 ;
20729 PyObject * obj1 = 0 ;
20730 char * kwnames[] = {
20731 (char *) "self",(char *) "mode", NULL
20732 };
20733
20734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20736 if (!SWIG_IsOK(res1)) {
20737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20738 }
20739 arg1 = reinterpret_cast< wxDC * >(argp1);
20740 ecode2 = SWIG_AsVal_int(obj1, &val2);
20741 if (!SWIG_IsOK(ecode2)) {
20742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20743 }
20744 arg2 = static_cast< int >(val2);
20745 {
20746 PyThreadState* __tstate = wxPyBeginAllowThreads();
20747 (arg1)->SetBackgroundMode(arg2);
20748 wxPyEndAllowThreads(__tstate);
20749 if (PyErr_Occurred()) SWIG_fail;
20750 }
20751 resultobj = SWIG_Py_Void();
20752 return resultobj;
20753fail:
20754 return NULL;
20755}
20756
20757
20758SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20759 PyObject *resultobj = 0;
20760 wxDC *arg1 = (wxDC *) 0 ;
20761 wxPalette *arg2 = 0 ;
20762 void *argp1 = 0 ;
20763 int res1 = 0 ;
20764 void *argp2 = 0 ;
20765 int res2 = 0 ;
20766 PyObject * obj0 = 0 ;
20767 PyObject * obj1 = 0 ;
20768 char * kwnames[] = {
20769 (char *) "self",(char *) "palette", NULL
20770 };
20771
20772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20774 if (!SWIG_IsOK(res1)) {
20775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20776 }
20777 arg1 = reinterpret_cast< wxDC * >(argp1);
20778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20779 if (!SWIG_IsOK(res2)) {
20780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20781 }
20782 if (!argp2) {
20783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20784 }
20785 arg2 = reinterpret_cast< wxPalette * >(argp2);
20786 {
20787 PyThreadState* __tstate = wxPyBeginAllowThreads();
20788 (arg1)->SetPalette((wxPalette const &)*arg2);
20789 wxPyEndAllowThreads(__tstate);
20790 if (PyErr_Occurred()) SWIG_fail;
20791 }
20792 resultobj = SWIG_Py_Void();
20793 return resultobj;
20794fail:
20795 return NULL;
20796}
20797
20798
20799SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20800 PyObject *resultobj = 0;
20801 wxDC *arg1 = (wxDC *) 0 ;
20802 void *argp1 = 0 ;
20803 int res1 = 0 ;
20804 PyObject *swig_obj[1] ;
20805
20806 if (!args) SWIG_fail;
20807 swig_obj[0] = args;
20808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20809 if (!SWIG_IsOK(res1)) {
20810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20811 }
20812 arg1 = reinterpret_cast< wxDC * >(argp1);
20813 {
20814 PyThreadState* __tstate = wxPyBeginAllowThreads();
20815 (arg1)->DestroyClippingRegion();
20816 wxPyEndAllowThreads(__tstate);
20817 if (PyErr_Occurred()) SWIG_fail;
20818 }
20819 resultobj = SWIG_Py_Void();
20820 return resultobj;
20821fail:
20822 return NULL;
20823}
20824
20825
20826SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20827 PyObject *resultobj = 0;
20828 wxDC *arg1 = (wxDC *) 0 ;
20829 int *arg2 = (int *) 0 ;
20830 int *arg3 = (int *) 0 ;
20831 int *arg4 = (int *) 0 ;
20832 int *arg5 = (int *) 0 ;
20833 void *argp1 = 0 ;
20834 int res1 = 0 ;
20835 int temp2 ;
20836 int res2 = SWIG_TMPOBJ ;
20837 int temp3 ;
20838 int res3 = SWIG_TMPOBJ ;
20839 int temp4 ;
20840 int res4 = SWIG_TMPOBJ ;
20841 int temp5 ;
20842 int res5 = SWIG_TMPOBJ ;
20843 PyObject *swig_obj[1] ;
20844
20845 arg2 = &temp2;
20846 arg3 = &temp3;
20847 arg4 = &temp4;
20848 arg5 = &temp5;
20849 if (!args) SWIG_fail;
20850 swig_obj[0] = args;
20851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20852 if (!SWIG_IsOK(res1)) {
20853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20854 }
20855 arg1 = reinterpret_cast< wxDC * >(argp1);
20856 {
20857 PyThreadState* __tstate = wxPyBeginAllowThreads();
20858 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20859 wxPyEndAllowThreads(__tstate);
20860 if (PyErr_Occurred()) SWIG_fail;
20861 }
20862 resultobj = SWIG_Py_Void();
20863 if (SWIG_IsTmpObj(res2)) {
20864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20865 } else {
20866 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20868 }
20869 if (SWIG_IsTmpObj(res3)) {
20870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20871 } else {
20872 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20874 }
20875 if (SWIG_IsTmpObj(res4)) {
20876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20877 } else {
20878 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20880 }
20881 if (SWIG_IsTmpObj(res5)) {
20882 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20883 } else {
20884 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20886 }
20887 return resultobj;
20888fail:
20889 return NULL;
20890}
20891
20892
20893SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20894 PyObject *resultobj = 0;
20895 wxDC *arg1 = (wxDC *) 0 ;
20896 wxRect result;
20897 void *argp1 = 0 ;
20898 int res1 = 0 ;
20899 PyObject *swig_obj[1] ;
20900
20901 if (!args) SWIG_fail;
20902 swig_obj[0] = args;
20903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20904 if (!SWIG_IsOK(res1)) {
20905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20906 }
20907 arg1 = reinterpret_cast< wxDC * >(argp1);
20908 {
20909 PyThreadState* __tstate = wxPyBeginAllowThreads();
20910 result = wxDC_GetClippingRect(arg1);
20911 wxPyEndAllowThreads(__tstate);
20912 if (PyErr_Occurred()) SWIG_fail;
20913 }
20914 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20915 return resultobj;
20916fail:
20917 return NULL;
20918}
20919
20920
20921SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20922 PyObject *resultobj = 0;
20923 wxDC *arg1 = (wxDC *) 0 ;
20924 int result;
20925 void *argp1 = 0 ;
20926 int res1 = 0 ;
20927 PyObject *swig_obj[1] ;
20928
20929 if (!args) SWIG_fail;
20930 swig_obj[0] = args;
20931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20932 if (!SWIG_IsOK(res1)) {
20933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20934 }
20935 arg1 = reinterpret_cast< wxDC * >(argp1);
20936 {
20937 PyThreadState* __tstate = wxPyBeginAllowThreads();
20938 result = (int)((wxDC const *)arg1)->GetCharHeight();
20939 wxPyEndAllowThreads(__tstate);
20940 if (PyErr_Occurred()) SWIG_fail;
20941 }
20942 resultobj = SWIG_From_int(static_cast< int >(result));
20943 return resultobj;
20944fail:
20945 return NULL;
20946}
20947
20948
20949SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20950 PyObject *resultobj = 0;
20951 wxDC *arg1 = (wxDC *) 0 ;
20952 int result;
20953 void *argp1 = 0 ;
20954 int res1 = 0 ;
20955 PyObject *swig_obj[1] ;
20956
20957 if (!args) SWIG_fail;
20958 swig_obj[0] = args;
20959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20960 if (!SWIG_IsOK(res1)) {
20961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20962 }
20963 arg1 = reinterpret_cast< wxDC * >(argp1);
20964 {
20965 PyThreadState* __tstate = wxPyBeginAllowThreads();
20966 result = (int)((wxDC const *)arg1)->GetCharWidth();
20967 wxPyEndAllowThreads(__tstate);
20968 if (PyErr_Occurred()) SWIG_fail;
20969 }
20970 resultobj = SWIG_From_int(static_cast< int >(result));
20971 return resultobj;
20972fail:
20973 return NULL;
20974}
20975
20976
20977SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20978 PyObject *resultobj = 0;
20979 wxDC *arg1 = (wxDC *) 0 ;
20980 wxString *arg2 = 0 ;
20981 int *arg3 = (int *) 0 ;
20982 int *arg4 = (int *) 0 ;
20983 void *argp1 = 0 ;
20984 int res1 = 0 ;
20985 bool temp2 = false ;
20986 int temp3 ;
20987 int res3 = SWIG_TMPOBJ ;
20988 int temp4 ;
20989 int res4 = SWIG_TMPOBJ ;
20990 PyObject * obj0 = 0 ;
20991 PyObject * obj1 = 0 ;
20992 char * kwnames[] = {
20993 (char *) "self",(char *) "string", NULL
20994 };
20995
20996 arg3 = &temp3;
20997 arg4 = &temp4;
20998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21000 if (!SWIG_IsOK(res1)) {
21001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21002 }
21003 arg1 = reinterpret_cast< wxDC * >(argp1);
21004 {
21005 arg2 = wxString_in_helper(obj1);
21006 if (arg2 == NULL) SWIG_fail;
21007 temp2 = true;
21008 }
21009 {
21010 PyThreadState* __tstate = wxPyBeginAllowThreads();
21011 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21012 wxPyEndAllowThreads(__tstate);
21013 if (PyErr_Occurred()) SWIG_fail;
21014 }
21015 resultobj = SWIG_Py_Void();
21016 if (SWIG_IsTmpObj(res3)) {
21017 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21018 } else {
21019 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21021 }
21022 if (SWIG_IsTmpObj(res4)) {
21023 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21024 } else {
21025 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21026 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21027 }
21028 {
21029 if (temp2)
21030 delete arg2;
21031 }
21032 return resultobj;
21033fail:
21034 {
21035 if (temp2)
21036 delete arg2;
21037 }
21038 return NULL;
21039}
21040
21041
21042SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21043 PyObject *resultobj = 0;
21044 wxDC *arg1 = (wxDC *) 0 ;
21045 wxString *arg2 = 0 ;
21046 int *arg3 = (int *) 0 ;
21047 int *arg4 = (int *) 0 ;
21048 int *arg5 = (int *) 0 ;
21049 int *arg6 = (int *) 0 ;
21050 wxFont *arg7 = (wxFont *) NULL ;
21051 void *argp1 = 0 ;
21052 int res1 = 0 ;
21053 bool temp2 = false ;
21054 int temp3 ;
21055 int res3 = SWIG_TMPOBJ ;
21056 int temp4 ;
21057 int res4 = SWIG_TMPOBJ ;
21058 int temp5 ;
21059 int res5 = SWIG_TMPOBJ ;
21060 int temp6 ;
21061 int res6 = SWIG_TMPOBJ ;
21062 void *argp7 = 0 ;
21063 int res7 = 0 ;
21064 PyObject * obj0 = 0 ;
21065 PyObject * obj1 = 0 ;
21066 PyObject * obj2 = 0 ;
21067 char * kwnames[] = {
21068 (char *) "self",(char *) "string",(char *) "font", NULL
21069 };
21070
21071 arg3 = &temp3;
21072 arg4 = &temp4;
21073 arg5 = &temp5;
21074 arg6 = &temp6;
21075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21077 if (!SWIG_IsOK(res1)) {
21078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21079 }
21080 arg1 = reinterpret_cast< wxDC * >(argp1);
21081 {
21082 arg2 = wxString_in_helper(obj1);
21083 if (arg2 == NULL) SWIG_fail;
21084 temp2 = true;
21085 }
21086 if (obj2) {
21087 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21088 if (!SWIG_IsOK(res7)) {
21089 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21090 }
1bd55598
RD
21091 arg7 = reinterpret_cast< wxFont * >(argp7);
21092 }
21093 {
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 resultobj = SWIG_Py_Void();
21100 if (SWIG_IsTmpObj(res3)) {
21101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21102 } else {
21103 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21104 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21105 }
21106 if (SWIG_IsTmpObj(res4)) {
21107 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21108 } else {
21109 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21111 }
21112 if (SWIG_IsTmpObj(res5)) {
21113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21114 } else {
21115 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21117 }
21118 if (SWIG_IsTmpObj(res6)) {
21119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21120 } else {
21121 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21123 }
21124 {
21125 if (temp2)
21126 delete arg2;
21127 }
21128 return resultobj;
21129fail:
21130 {
21131 if (temp2)
21132 delete arg2;
21133 }
21134 return NULL;
21135}
21136
21137
21138SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21139 PyObject *resultobj = 0;
21140 wxDC *arg1 = (wxDC *) 0 ;
21141 wxString *arg2 = 0 ;
21142 int *arg3 = (int *) 0 ;
21143 int *arg4 = (int *) 0 ;
21144 int *arg5 = (int *) 0 ;
21145 wxFont *arg6 = (wxFont *) NULL ;
21146 void *argp1 = 0 ;
21147 int res1 = 0 ;
21148 bool temp2 = false ;
21149 int temp3 ;
21150 int res3 = SWIG_TMPOBJ ;
21151 int temp4 ;
21152 int res4 = SWIG_TMPOBJ ;
21153 int temp5 ;
21154 int res5 = SWIG_TMPOBJ ;
21155 void *argp6 = 0 ;
21156 int res6 = 0 ;
21157 PyObject * obj0 = 0 ;
21158 PyObject * obj1 = 0 ;
21159 PyObject * obj2 = 0 ;
21160 char * kwnames[] = {
21161 (char *) "self",(char *) "text",(char *) "font", NULL
21162 };
21163
21164 arg3 = &temp3;
21165 arg4 = &temp4;
21166 arg5 = &temp5;
21167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21169 if (!SWIG_IsOK(res1)) {
21170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21171 }
21172 arg1 = reinterpret_cast< wxDC * >(argp1);
21173 {
21174 arg2 = wxString_in_helper(obj1);
21175 if (arg2 == NULL) SWIG_fail;
21176 temp2 = true;
21177 }
21178 if (obj2) {
21179 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21180 if (!SWIG_IsOK(res6)) {
21181 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21182 }
1bd55598
RD
21183 arg6 = reinterpret_cast< wxFont * >(argp6);
21184 }
21185 {
21186 PyThreadState* __tstate = wxPyBeginAllowThreads();
21187 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21188 wxPyEndAllowThreads(__tstate);
21189 if (PyErr_Occurred()) SWIG_fail;
21190 }
21191 resultobj = SWIG_Py_Void();
21192 if (SWIG_IsTmpObj(res3)) {
21193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21194 } else {
21195 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21197 }
21198 if (SWIG_IsTmpObj(res4)) {
21199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21200 } else {
21201 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21203 }
21204 if (SWIG_IsTmpObj(res5)) {
21205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21206 } else {
21207 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21209 }
21210 {
21211 if (temp2)
21212 delete arg2;
21213 }
21214 return resultobj;
21215fail:
21216 {
21217 if (temp2)
21218 delete arg2;
21219 }
21220 return NULL;
21221}
21222
21223
21224SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21225 PyObject *resultobj = 0;
21226 wxDC *arg1 = (wxDC *) 0 ;
21227 wxString *arg2 = 0 ;
21228 wxArrayInt result;
21229 void *argp1 = 0 ;
21230 int res1 = 0 ;
21231 bool temp2 = false ;
21232 PyObject * obj0 = 0 ;
21233 PyObject * obj1 = 0 ;
21234 char * kwnames[] = {
21235 (char *) "self",(char *) "text", NULL
21236 };
21237
21238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21240 if (!SWIG_IsOK(res1)) {
21241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21242 }
21243 arg1 = reinterpret_cast< wxDC * >(argp1);
21244 {
21245 arg2 = wxString_in_helper(obj1);
21246 if (arg2 == NULL) SWIG_fail;
21247 temp2 = true;
21248 }
21249 {
21250 PyThreadState* __tstate = wxPyBeginAllowThreads();
21251 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21252 wxPyEndAllowThreads(__tstate);
21253 if (PyErr_Occurred()) SWIG_fail;
21254 }
21255 {
b39fe951 21256 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21257 }
21258 {
21259 if (temp2)
21260 delete arg2;
21261 }
21262 return resultobj;
21263fail:
21264 {
21265 if (temp2)
21266 delete arg2;
21267 }
21268 return NULL;
21269}
21270
21271
21272SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21273 PyObject *resultobj = 0;
21274 wxDC *arg1 = (wxDC *) 0 ;
21275 wxSize result;
21276 void *argp1 = 0 ;
21277 int res1 = 0 ;
21278 PyObject *swig_obj[1] ;
21279
21280 if (!args) SWIG_fail;
21281 swig_obj[0] = args;
21282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21283 if (!SWIG_IsOK(res1)) {
21284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21285 }
21286 arg1 = reinterpret_cast< wxDC * >(argp1);
21287 {
21288 PyThreadState* __tstate = wxPyBeginAllowThreads();
21289 result = (arg1)->GetSize();
21290 wxPyEndAllowThreads(__tstate);
21291 if (PyErr_Occurred()) SWIG_fail;
21292 }
21293 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21294 return resultobj;
21295fail:
21296 return NULL;
21297}
21298
21299
21300SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21301 PyObject *resultobj = 0;
21302 wxDC *arg1 = (wxDC *) 0 ;
21303 int *arg2 = (int *) 0 ;
21304 int *arg3 = (int *) 0 ;
21305 void *argp1 = 0 ;
21306 int res1 = 0 ;
21307 int temp2 ;
21308 int res2 = SWIG_TMPOBJ ;
21309 int temp3 ;
21310 int res3 = SWIG_TMPOBJ ;
21311 PyObject *swig_obj[1] ;
21312
21313 arg2 = &temp2;
21314 arg3 = &temp3;
21315 if (!args) SWIG_fail;
21316 swig_obj[0] = args;
21317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21318 if (!SWIG_IsOK(res1)) {
21319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21320 }
21321 arg1 = reinterpret_cast< wxDC * >(argp1);
21322 {
21323 PyThreadState* __tstate = wxPyBeginAllowThreads();
21324 (arg1)->GetSize(arg2,arg3);
21325 wxPyEndAllowThreads(__tstate);
21326 if (PyErr_Occurred()) SWIG_fail;
21327 }
21328 resultobj = SWIG_Py_Void();
21329 if (SWIG_IsTmpObj(res2)) {
21330 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21331 } else {
21332 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21333 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21334 }
21335 if (SWIG_IsTmpObj(res3)) {
21336 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21337 } else {
21338 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21340 }
21341 return resultobj;
21342fail:
21343 return NULL;
21344}
21345
21346
21347SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21348 PyObject *resultobj = 0;
21349 wxDC *arg1 = (wxDC *) 0 ;
21350 wxSize result;
21351 void *argp1 = 0 ;
21352 int res1 = 0 ;
21353 PyObject *swig_obj[1] ;
21354
21355 if (!args) SWIG_fail;
21356 swig_obj[0] = args;
21357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21358 if (!SWIG_IsOK(res1)) {
21359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21360 }
21361 arg1 = reinterpret_cast< wxDC * >(argp1);
21362 {
21363 PyThreadState* __tstate = wxPyBeginAllowThreads();
21364 result = ((wxDC const *)arg1)->GetSizeMM();
21365 wxPyEndAllowThreads(__tstate);
21366 if (PyErr_Occurred()) SWIG_fail;
21367 }
21368 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21369 return resultobj;
21370fail:
21371 return NULL;
21372}
21373
21374
21375SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21376 PyObject *resultobj = 0;
21377 wxDC *arg1 = (wxDC *) 0 ;
21378 int *arg2 = (int *) 0 ;
21379 int *arg3 = (int *) 0 ;
21380 void *argp1 = 0 ;
21381 int res1 = 0 ;
21382 int temp2 ;
21383 int res2 = SWIG_TMPOBJ ;
21384 int temp3 ;
21385 int res3 = SWIG_TMPOBJ ;
21386 PyObject *swig_obj[1] ;
21387
21388 arg2 = &temp2;
21389 arg3 = &temp3;
21390 if (!args) SWIG_fail;
21391 swig_obj[0] = args;
21392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21393 if (!SWIG_IsOK(res1)) {
21394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21395 }
21396 arg1 = reinterpret_cast< wxDC * >(argp1);
21397 {
21398 PyThreadState* __tstate = wxPyBeginAllowThreads();
21399 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21400 wxPyEndAllowThreads(__tstate);
21401 if (PyErr_Occurred()) SWIG_fail;
21402 }
21403 resultobj = SWIG_Py_Void();
21404 if (SWIG_IsTmpObj(res2)) {
21405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21406 } else {
21407 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21409 }
21410 if (SWIG_IsTmpObj(res3)) {
21411 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21412 } else {
21413 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21415 }
21416 return resultobj;
21417fail:
21418 return NULL;
21419}
21420
21421
21422SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21423 PyObject *resultobj = 0;
21424 wxDC *arg1 = (wxDC *) 0 ;
21425 int arg2 ;
21426 int result;
21427 void *argp1 = 0 ;
21428 int res1 = 0 ;
21429 int val2 ;
21430 int ecode2 = 0 ;
21431 PyObject * obj0 = 0 ;
21432 PyObject * obj1 = 0 ;
21433 char * kwnames[] = {
21434 (char *) "self",(char *) "x", NULL
21435 };
21436
21437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21439 if (!SWIG_IsOK(res1)) {
21440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21441 }
21442 arg1 = reinterpret_cast< wxDC * >(argp1);
21443 ecode2 = SWIG_AsVal_int(obj1, &val2);
21444 if (!SWIG_IsOK(ecode2)) {
21445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21446 }
21447 arg2 = static_cast< int >(val2);
21448 {
21449 PyThreadState* __tstate = wxPyBeginAllowThreads();
21450 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21451 wxPyEndAllowThreads(__tstate);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 resultobj = SWIG_From_int(static_cast< int >(result));
21455 return resultobj;
21456fail:
21457 return NULL;
21458}
21459
21460
21461SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21462 PyObject *resultobj = 0;
21463 wxDC *arg1 = (wxDC *) 0 ;
21464 int arg2 ;
21465 int result;
21466 void *argp1 = 0 ;
21467 int res1 = 0 ;
21468 int val2 ;
21469 int ecode2 = 0 ;
21470 PyObject * obj0 = 0 ;
21471 PyObject * obj1 = 0 ;
21472 char * kwnames[] = {
21473 (char *) "self",(char *) "y", NULL
21474 };
21475
21476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21478 if (!SWIG_IsOK(res1)) {
21479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21480 }
21481 arg1 = reinterpret_cast< wxDC * >(argp1);
21482 ecode2 = SWIG_AsVal_int(obj1, &val2);
21483 if (!SWIG_IsOK(ecode2)) {
21484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21485 }
21486 arg2 = static_cast< int >(val2);
21487 {
21488 PyThreadState* __tstate = wxPyBeginAllowThreads();
21489 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21490 wxPyEndAllowThreads(__tstate);
21491 if (PyErr_Occurred()) SWIG_fail;
21492 }
21493 resultobj = SWIG_From_int(static_cast< int >(result));
21494 return resultobj;
21495fail:
21496 return NULL;
21497}
21498
21499
21500SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21501 PyObject *resultobj = 0;
21502 wxDC *arg1 = (wxDC *) 0 ;
21503 int arg2 ;
21504 int result;
21505 void *argp1 = 0 ;
21506 int res1 = 0 ;
21507 int val2 ;
21508 int ecode2 = 0 ;
21509 PyObject * obj0 = 0 ;
21510 PyObject * obj1 = 0 ;
21511 char * kwnames[] = {
21512 (char *) "self",(char *) "x", NULL
21513 };
21514
21515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21517 if (!SWIG_IsOK(res1)) {
21518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21519 }
21520 arg1 = reinterpret_cast< wxDC * >(argp1);
21521 ecode2 = SWIG_AsVal_int(obj1, &val2);
21522 if (!SWIG_IsOK(ecode2)) {
21523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21524 }
21525 arg2 = static_cast< int >(val2);
21526 {
21527 PyThreadState* __tstate = wxPyBeginAllowThreads();
21528 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21529 wxPyEndAllowThreads(__tstate);
21530 if (PyErr_Occurred()) SWIG_fail;
21531 }
21532 resultobj = SWIG_From_int(static_cast< int >(result));
21533 return resultobj;
21534fail:
21535 return NULL;
21536}
21537
21538
21539SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21540 PyObject *resultobj = 0;
21541 wxDC *arg1 = (wxDC *) 0 ;
21542 int arg2 ;
21543 int result;
21544 void *argp1 = 0 ;
21545 int res1 = 0 ;
21546 int val2 ;
21547 int ecode2 = 0 ;
21548 PyObject * obj0 = 0 ;
21549 PyObject * obj1 = 0 ;
21550 char * kwnames[] = {
21551 (char *) "self",(char *) "y", NULL
21552 };
21553
21554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21556 if (!SWIG_IsOK(res1)) {
21557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21558 }
21559 arg1 = reinterpret_cast< wxDC * >(argp1);
21560 ecode2 = SWIG_AsVal_int(obj1, &val2);
21561 if (!SWIG_IsOK(ecode2)) {
21562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21563 }
21564 arg2 = static_cast< int >(val2);
21565 {
21566 PyThreadState* __tstate = wxPyBeginAllowThreads();
21567 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21568 wxPyEndAllowThreads(__tstate);
21569 if (PyErr_Occurred()) SWIG_fail;
21570 }
21571 resultobj = SWIG_From_int(static_cast< int >(result));
21572 return resultobj;
21573fail:
21574 return NULL;
21575}
21576
21577
21578SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21579 PyObject *resultobj = 0;
21580 wxDC *arg1 = (wxDC *) 0 ;
21581 int arg2 ;
21582 int result;
21583 void *argp1 = 0 ;
21584 int res1 = 0 ;
21585 int val2 ;
21586 int ecode2 = 0 ;
21587 PyObject * obj0 = 0 ;
21588 PyObject * obj1 = 0 ;
21589 char * kwnames[] = {
21590 (char *) "self",(char *) "x", NULL
21591 };
21592
21593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21595 if (!SWIG_IsOK(res1)) {
21596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21597 }
21598 arg1 = reinterpret_cast< wxDC * >(argp1);
21599 ecode2 = SWIG_AsVal_int(obj1, &val2);
21600 if (!SWIG_IsOK(ecode2)) {
21601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21602 }
21603 arg2 = static_cast< int >(val2);
21604 {
21605 PyThreadState* __tstate = wxPyBeginAllowThreads();
21606 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21607 wxPyEndAllowThreads(__tstate);
21608 if (PyErr_Occurred()) SWIG_fail;
21609 }
21610 resultobj = SWIG_From_int(static_cast< int >(result));
21611 return resultobj;
21612fail:
21613 return NULL;
21614}
21615
21616
21617SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21618 PyObject *resultobj = 0;
21619 wxDC *arg1 = (wxDC *) 0 ;
21620 int arg2 ;
21621 int result;
21622 void *argp1 = 0 ;
21623 int res1 = 0 ;
21624 int val2 ;
21625 int ecode2 = 0 ;
21626 PyObject * obj0 = 0 ;
21627 PyObject * obj1 = 0 ;
21628 char * kwnames[] = {
21629 (char *) "self",(char *) "y", NULL
21630 };
21631
21632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21634 if (!SWIG_IsOK(res1)) {
21635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21636 }
21637 arg1 = reinterpret_cast< wxDC * >(argp1);
21638 ecode2 = SWIG_AsVal_int(obj1, &val2);
21639 if (!SWIG_IsOK(ecode2)) {
21640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21641 }
21642 arg2 = static_cast< int >(val2);
21643 {
21644 PyThreadState* __tstate = wxPyBeginAllowThreads();
21645 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21646 wxPyEndAllowThreads(__tstate);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 }
21649 resultobj = SWIG_From_int(static_cast< int >(result));
21650 return resultobj;
21651fail:
21652 return NULL;
21653}
21654
21655
21656SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21657 PyObject *resultobj = 0;
21658 wxDC *arg1 = (wxDC *) 0 ;
21659 int arg2 ;
21660 int result;
21661 void *argp1 = 0 ;
21662 int res1 = 0 ;
21663 int val2 ;
21664 int ecode2 = 0 ;
21665 PyObject * obj0 = 0 ;
21666 PyObject * obj1 = 0 ;
21667 char * kwnames[] = {
21668 (char *) "self",(char *) "x", NULL
21669 };
21670
21671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21673 if (!SWIG_IsOK(res1)) {
21674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21675 }
21676 arg1 = reinterpret_cast< wxDC * >(argp1);
21677 ecode2 = SWIG_AsVal_int(obj1, &val2);
21678 if (!SWIG_IsOK(ecode2)) {
21679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21680 }
21681 arg2 = static_cast< int >(val2);
21682 {
21683 PyThreadState* __tstate = wxPyBeginAllowThreads();
21684 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21685 wxPyEndAllowThreads(__tstate);
21686 if (PyErr_Occurred()) SWIG_fail;
21687 }
21688 resultobj = SWIG_From_int(static_cast< int >(result));
21689 return resultobj;
21690fail:
21691 return NULL;
21692}
21693
21694
21695SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21696 PyObject *resultobj = 0;
21697 wxDC *arg1 = (wxDC *) 0 ;
21698 int arg2 ;
21699 int result;
21700 void *argp1 = 0 ;
21701 int res1 = 0 ;
21702 int val2 ;
21703 int ecode2 = 0 ;
21704 PyObject * obj0 = 0 ;
21705 PyObject * obj1 = 0 ;
21706 char * kwnames[] = {
21707 (char *) "self",(char *) "y", NULL
21708 };
21709
21710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21712 if (!SWIG_IsOK(res1)) {
21713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21714 }
21715 arg1 = reinterpret_cast< wxDC * >(argp1);
21716 ecode2 = SWIG_AsVal_int(obj1, &val2);
21717 if (!SWIG_IsOK(ecode2)) {
21718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21719 }
21720 arg2 = static_cast< int >(val2);
21721 {
21722 PyThreadState* __tstate = wxPyBeginAllowThreads();
21723 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21724 wxPyEndAllowThreads(__tstate);
21725 if (PyErr_Occurred()) SWIG_fail;
21726 }
21727 resultobj = SWIG_From_int(static_cast< int >(result));
21728 return resultobj;
21729fail:
21730 return NULL;
21731}
21732
21733
21734SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21735 PyObject *resultobj = 0;
21736 wxDC *arg1 = (wxDC *) 0 ;
21737 bool result;
21738 void *argp1 = 0 ;
21739 int res1 = 0 ;
21740 PyObject *swig_obj[1] ;
21741
21742 if (!args) SWIG_fail;
21743 swig_obj[0] = args;
21744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21745 if (!SWIG_IsOK(res1)) {
21746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21747 }
21748 arg1 = reinterpret_cast< wxDC * >(argp1);
21749 {
21750 PyThreadState* __tstate = wxPyBeginAllowThreads();
21751 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21752 wxPyEndAllowThreads(__tstate);
21753 if (PyErr_Occurred()) SWIG_fail;
21754 }
21755 {
21756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21757 }
21758 return resultobj;
21759fail:
21760 return NULL;
21761}
21762
21763
21764SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21765 PyObject *resultobj = 0;
21766 wxDC *arg1 = (wxDC *) 0 ;
21767 bool result;
21768 void *argp1 = 0 ;
21769 int res1 = 0 ;
21770 PyObject *swig_obj[1] ;
21771
21772 if (!args) SWIG_fail;
21773 swig_obj[0] = args;
21774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21775 if (!SWIG_IsOK(res1)) {
21776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21777 }
21778 arg1 = reinterpret_cast< wxDC * >(argp1);
21779 {
21780 PyThreadState* __tstate = wxPyBeginAllowThreads();
21781 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21782 wxPyEndAllowThreads(__tstate);
21783 if (PyErr_Occurred()) SWIG_fail;
21784 }
21785 {
21786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21787 }
21788 return resultobj;
21789fail:
21790 return NULL;
21791}
21792
21793
21794SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21795 PyObject *resultobj = 0;
21796 wxDC *arg1 = (wxDC *) 0 ;
21797 int result;
21798 void *argp1 = 0 ;
21799 int res1 = 0 ;
21800 PyObject *swig_obj[1] ;
21801
21802 if (!args) SWIG_fail;
21803 swig_obj[0] = args;
21804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21805 if (!SWIG_IsOK(res1)) {
21806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21807 }
21808 arg1 = reinterpret_cast< wxDC * >(argp1);
21809 {
21810 PyThreadState* __tstate = wxPyBeginAllowThreads();
21811 result = (int)((wxDC const *)arg1)->GetDepth();
21812 wxPyEndAllowThreads(__tstate);
21813 if (PyErr_Occurred()) SWIG_fail;
21814 }
21815 resultobj = SWIG_From_int(static_cast< int >(result));
21816 return resultobj;
21817fail:
21818 return NULL;
21819}
21820
21821
21822SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21823 PyObject *resultobj = 0;
21824 wxDC *arg1 = (wxDC *) 0 ;
21825 wxSize result;
21826 void *argp1 = 0 ;
21827 int res1 = 0 ;
21828 PyObject *swig_obj[1] ;
21829
21830 if (!args) SWIG_fail;
21831 swig_obj[0] = args;
21832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21833 if (!SWIG_IsOK(res1)) {
21834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21835 }
21836 arg1 = reinterpret_cast< wxDC * >(argp1);
21837 {
21838 PyThreadState* __tstate = wxPyBeginAllowThreads();
21839 result = ((wxDC const *)arg1)->GetPPI();
21840 wxPyEndAllowThreads(__tstate);
21841 if (PyErr_Occurred()) SWIG_fail;
21842 }
21843 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21844 return resultobj;
21845fail:
21846 return NULL;
21847}
21848
21849
b39fe951 21850SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21851 PyObject *resultobj = 0;
21852 wxDC *arg1 = (wxDC *) 0 ;
21853 bool result;
21854 void *argp1 = 0 ;
21855 int res1 = 0 ;
21856 PyObject *swig_obj[1] ;
21857
21858 if (!args) SWIG_fail;
21859 swig_obj[0] = args;
21860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21861 if (!SWIG_IsOK(res1)) {
b39fe951 21862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21863 }
21864 arg1 = reinterpret_cast< wxDC * >(argp1);
21865 {
21866 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21867 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21868 wxPyEndAllowThreads(__tstate);
21869 if (PyErr_Occurred()) SWIG_fail;
21870 }
21871 {
21872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21873 }
21874 return resultobj;
21875fail:
21876 return NULL;
21877}
21878
21879
21880SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21881 PyObject *resultobj = 0;
21882 wxDC *arg1 = (wxDC *) 0 ;
21883 int result;
21884 void *argp1 = 0 ;
21885 int res1 = 0 ;
21886 PyObject *swig_obj[1] ;
21887
21888 if (!args) SWIG_fail;
21889 swig_obj[0] = args;
21890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21891 if (!SWIG_IsOK(res1)) {
21892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21893 }
21894 arg1 = reinterpret_cast< wxDC * >(argp1);
21895 {
21896 PyThreadState* __tstate = wxPyBeginAllowThreads();
21897 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21898 wxPyEndAllowThreads(__tstate);
21899 if (PyErr_Occurred()) SWIG_fail;
21900 }
21901 resultobj = SWIG_From_int(static_cast< int >(result));
21902 return resultobj;
21903fail:
21904 return NULL;
21905}
21906
21907
21908SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21909 PyObject *resultobj = 0;
21910 wxDC *arg1 = (wxDC *) 0 ;
21911 wxBrush *result = 0 ;
21912 void *argp1 = 0 ;
21913 int res1 = 0 ;
21914 PyObject *swig_obj[1] ;
21915
21916 if (!args) SWIG_fail;
21917 swig_obj[0] = args;
21918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21919 if (!SWIG_IsOK(res1)) {
21920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21921 }
21922 arg1 = reinterpret_cast< wxDC * >(argp1);
21923 {
21924 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21925 {
1bd55598
RD
21926 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21927 result = (wxBrush *) &_result_ref;
36ed4f51 21928 }
1bd55598
RD
21929 wxPyEndAllowThreads(__tstate);
21930 if (PyErr_Occurred()) SWIG_fail;
21931 }
21932 {
21933 wxBrush* resultptr = new wxBrush(*result);
21934 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21935 }
21936 return resultobj;
21937fail:
21938 return NULL;
21939}
21940
21941
21942SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21943 PyObject *resultobj = 0;
21944 wxDC *arg1 = (wxDC *) 0 ;
21945 wxBrush *result = 0 ;
21946 void *argp1 = 0 ;
21947 int res1 = 0 ;
21948 PyObject *swig_obj[1] ;
21949
21950 if (!args) SWIG_fail;
21951 swig_obj[0] = args;
21952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21953 if (!SWIG_IsOK(res1)) {
21954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21955 }
21956 arg1 = reinterpret_cast< wxDC * >(argp1);
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21959 {
1bd55598
RD
21960 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21961 result = (wxBrush *) &_result_ref;
36ed4f51 21962 }
1bd55598
RD
21963 wxPyEndAllowThreads(__tstate);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 {
21967 wxBrush* resultptr = new wxBrush(*result);
21968 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21969 }
21970 return resultobj;
21971fail:
21972 return NULL;
21973}
21974
21975
21976SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21977 PyObject *resultobj = 0;
21978 wxDC *arg1 = (wxDC *) 0 ;
21979 wxFont *result = 0 ;
21980 void *argp1 = 0 ;
21981 int res1 = 0 ;
21982 PyObject *swig_obj[1] ;
21983
21984 if (!args) SWIG_fail;
21985 swig_obj[0] = args;
21986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21987 if (!SWIG_IsOK(res1)) {
21988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21989 }
21990 arg1 = reinterpret_cast< wxDC * >(argp1);
21991 {
21992 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21993 {
1bd55598
RD
21994 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21995 result = (wxFont *) &_result_ref;
36ed4f51 21996 }
1bd55598
RD
21997 wxPyEndAllowThreads(__tstate);
21998 if (PyErr_Occurred()) SWIG_fail;
21999 }
22000 {
22001 wxFont* resultptr = new wxFont(*result);
22002 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22003 }
22004 return resultobj;
22005fail:
22006 return NULL;
22007}
22008
22009
22010SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22011 PyObject *resultobj = 0;
22012 wxDC *arg1 = (wxDC *) 0 ;
22013 wxPen *result = 0 ;
22014 void *argp1 = 0 ;
22015 int res1 = 0 ;
22016 PyObject *swig_obj[1] ;
22017
22018 if (!args) SWIG_fail;
22019 swig_obj[0] = args;
22020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22021 if (!SWIG_IsOK(res1)) {
22022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22023 }
22024 arg1 = reinterpret_cast< wxDC * >(argp1);
22025 {
22026 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22027 {
1bd55598
RD
22028 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22029 result = (wxPen *) &_result_ref;
36ed4f51 22030 }
1bd55598
RD
22031 wxPyEndAllowThreads(__tstate);
22032 if (PyErr_Occurred()) SWIG_fail;
22033 }
22034 {
22035 wxPen* resultptr = new wxPen(*result);
22036 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22037 }
22038 return resultobj;
22039fail:
22040 return NULL;
22041}
22042
22043
22044SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22045 PyObject *resultobj = 0;
22046 wxDC *arg1 = (wxDC *) 0 ;
22047 wxColour *result = 0 ;
22048 void *argp1 = 0 ;
22049 int res1 = 0 ;
22050 PyObject *swig_obj[1] ;
22051
22052 if (!args) SWIG_fail;
22053 swig_obj[0] = args;
22054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22055 if (!SWIG_IsOK(res1)) {
22056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22057 }
22058 arg1 = reinterpret_cast< wxDC * >(argp1);
22059 {
22060 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22061 {
1bd55598
RD
22062 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22063 result = (wxColour *) &_result_ref;
36ed4f51 22064 }
1bd55598
RD
22065 wxPyEndAllowThreads(__tstate);
22066 if (PyErr_Occurred()) SWIG_fail;
22067 }
22068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22069 return resultobj;
22070fail:
22071 return NULL;
22072}
22073
22074
22075SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22076 PyObject *resultobj = 0;
22077 wxDC *arg1 = (wxDC *) 0 ;
22078 wxColour *result = 0 ;
22079 void *argp1 = 0 ;
22080 int res1 = 0 ;
22081 PyObject *swig_obj[1] ;
22082
22083 if (!args) SWIG_fail;
22084 swig_obj[0] = args;
22085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22086 if (!SWIG_IsOK(res1)) {
22087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22088 }
22089 arg1 = reinterpret_cast< wxDC * >(argp1);
22090 {
22091 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22092 {
1bd55598
RD
22093 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22094 result = (wxColour *) &_result_ref;
36ed4f51 22095 }
1bd55598
RD
22096 wxPyEndAllowThreads(__tstate);
22097 if (PyErr_Occurred()) SWIG_fail;
22098 }
22099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22100 return resultobj;
22101fail:
22102 return NULL;
22103}
22104
22105
22106SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22107 PyObject *resultobj = 0;
22108 wxDC *arg1 = (wxDC *) 0 ;
22109 wxColour *arg2 = 0 ;
22110 void *argp1 = 0 ;
22111 int res1 = 0 ;
22112 wxColour temp2 ;
22113 PyObject * obj0 = 0 ;
22114 PyObject * obj1 = 0 ;
22115 char * kwnames[] = {
22116 (char *) "self",(char *) "colour", NULL
22117 };
22118
22119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22121 if (!SWIG_IsOK(res1)) {
22122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22123 }
22124 arg1 = reinterpret_cast< wxDC * >(argp1);
22125 {
22126 arg2 = &temp2;
22127 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22128 }
22129 {
22130 PyThreadState* __tstate = wxPyBeginAllowThreads();
22131 (arg1)->SetTextForeground((wxColour const &)*arg2);
22132 wxPyEndAllowThreads(__tstate);
22133 if (PyErr_Occurred()) SWIG_fail;
22134 }
22135 resultobj = SWIG_Py_Void();
22136 return resultobj;
22137fail:
22138 return NULL;
22139}
22140
22141
22142SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22143 PyObject *resultobj = 0;
22144 wxDC *arg1 = (wxDC *) 0 ;
22145 wxColour *arg2 = 0 ;
22146 void *argp1 = 0 ;
22147 int res1 = 0 ;
22148 wxColour temp2 ;
22149 PyObject * obj0 = 0 ;
22150 PyObject * obj1 = 0 ;
22151 char * kwnames[] = {
22152 (char *) "self",(char *) "colour", NULL
22153 };
22154
22155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22157 if (!SWIG_IsOK(res1)) {
22158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22159 }
22160 arg1 = reinterpret_cast< wxDC * >(argp1);
22161 {
22162 arg2 = &temp2;
22163 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22164 }
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 (arg1)->SetTextBackground((wxColour const &)*arg2);
22168 wxPyEndAllowThreads(__tstate);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 }
22171 resultobj = SWIG_Py_Void();
22172 return resultobj;
22173fail:
22174 return NULL;
22175}
22176
22177
22178SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22179 PyObject *resultobj = 0;
22180 wxDC *arg1 = (wxDC *) 0 ;
22181 int result;
22182 void *argp1 = 0 ;
22183 int res1 = 0 ;
22184 PyObject *swig_obj[1] ;
22185
22186 if (!args) SWIG_fail;
22187 swig_obj[0] = args;
22188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22189 if (!SWIG_IsOK(res1)) {
22190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22191 }
22192 arg1 = reinterpret_cast< wxDC * >(argp1);
22193 {
22194 PyThreadState* __tstate = wxPyBeginAllowThreads();
22195 result = (int)((wxDC const *)arg1)->GetMapMode();
22196 wxPyEndAllowThreads(__tstate);
22197 if (PyErr_Occurred()) SWIG_fail;
22198 }
22199 resultobj = SWIG_From_int(static_cast< int >(result));
22200 return resultobj;
22201fail:
22202 return NULL;
22203}
22204
22205
22206SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22207 PyObject *resultobj = 0;
22208 wxDC *arg1 = (wxDC *) 0 ;
22209 int arg2 ;
22210 void *argp1 = 0 ;
22211 int res1 = 0 ;
22212 int val2 ;
22213 int ecode2 = 0 ;
22214 PyObject * obj0 = 0 ;
22215 PyObject * obj1 = 0 ;
22216 char * kwnames[] = {
22217 (char *) "self",(char *) "mode", NULL
22218 };
22219
22220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22222 if (!SWIG_IsOK(res1)) {
22223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22224 }
22225 arg1 = reinterpret_cast< wxDC * >(argp1);
22226 ecode2 = SWIG_AsVal_int(obj1, &val2);
22227 if (!SWIG_IsOK(ecode2)) {
22228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22229 }
22230 arg2 = static_cast< int >(val2);
22231 {
22232 PyThreadState* __tstate = wxPyBeginAllowThreads();
22233 (arg1)->SetMapMode(arg2);
22234 wxPyEndAllowThreads(__tstate);
22235 if (PyErr_Occurred()) SWIG_fail;
22236 }
22237 resultobj = SWIG_Py_Void();
22238 return resultobj;
22239fail:
22240 return NULL;
22241}
22242
22243
22244SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22245 PyObject *resultobj = 0;
22246 wxDC *arg1 = (wxDC *) 0 ;
22247 double *arg2 = (double *) 0 ;
22248 double *arg3 = (double *) 0 ;
22249 void *argp1 = 0 ;
22250 int res1 = 0 ;
22251 double temp2 ;
22252 int res2 = SWIG_TMPOBJ ;
22253 double temp3 ;
22254 int res3 = SWIG_TMPOBJ ;
22255 PyObject *swig_obj[1] ;
22256
22257 arg2 = &temp2;
22258 arg3 = &temp3;
22259 if (!args) SWIG_fail;
22260 swig_obj[0] = args;
22261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22262 if (!SWIG_IsOK(res1)) {
22263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22264 }
22265 arg1 = reinterpret_cast< wxDC * >(argp1);
22266 {
22267 PyThreadState* __tstate = wxPyBeginAllowThreads();
22268 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22269 wxPyEndAllowThreads(__tstate);
22270 if (PyErr_Occurred()) SWIG_fail;
22271 }
22272 resultobj = SWIG_Py_Void();
22273 if (SWIG_IsTmpObj(res2)) {
22274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22275 } else {
22276 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22278 }
22279 if (SWIG_IsTmpObj(res3)) {
22280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22281 } else {
22282 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22284 }
22285 return resultobj;
22286fail:
22287 return NULL;
22288}
22289
22290
22291SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22292 PyObject *resultobj = 0;
22293 wxDC *arg1 = (wxDC *) 0 ;
22294 double arg2 ;
22295 double arg3 ;
22296 void *argp1 = 0 ;
22297 int res1 = 0 ;
22298 double val2 ;
22299 int ecode2 = 0 ;
22300 double val3 ;
22301 int ecode3 = 0 ;
22302 PyObject * obj0 = 0 ;
22303 PyObject * obj1 = 0 ;
22304 PyObject * obj2 = 0 ;
22305 char * kwnames[] = {
22306 (char *) "self",(char *) "x",(char *) "y", NULL
22307 };
22308
22309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22311 if (!SWIG_IsOK(res1)) {
22312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22313 }
22314 arg1 = reinterpret_cast< wxDC * >(argp1);
22315 ecode2 = SWIG_AsVal_double(obj1, &val2);
22316 if (!SWIG_IsOK(ecode2)) {
22317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22318 }
22319 arg2 = static_cast< double >(val2);
22320 ecode3 = SWIG_AsVal_double(obj2, &val3);
22321 if (!SWIG_IsOK(ecode3)) {
22322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22323 }
22324 arg3 = static_cast< double >(val3);
22325 {
22326 PyThreadState* __tstate = wxPyBeginAllowThreads();
22327 (arg1)->SetUserScale(arg2,arg3);
22328 wxPyEndAllowThreads(__tstate);
22329 if (PyErr_Occurred()) SWIG_fail;
22330 }
22331 resultobj = SWIG_Py_Void();
22332 return resultobj;
22333fail:
22334 return NULL;
22335}
22336
22337
22338SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22339 PyObject *resultobj = 0;
22340 wxDC *arg1 = (wxDC *) 0 ;
22341 double *arg2 = (double *) 0 ;
22342 double *arg3 = (double *) 0 ;
22343 void *argp1 = 0 ;
22344 int res1 = 0 ;
22345 double temp2 ;
22346 int res2 = SWIG_TMPOBJ ;
22347 double temp3 ;
22348 int res3 = SWIG_TMPOBJ ;
22349 PyObject *swig_obj[1] ;
22350
22351 arg2 = &temp2;
22352 arg3 = &temp3;
22353 if (!args) SWIG_fail;
22354 swig_obj[0] = args;
22355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22356 if (!SWIG_IsOK(res1)) {
22357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22358 }
22359 arg1 = reinterpret_cast< wxDC * >(argp1);
22360 {
22361 PyThreadState* __tstate = wxPyBeginAllowThreads();
22362 (arg1)->GetLogicalScale(arg2,arg3);
22363 wxPyEndAllowThreads(__tstate);
22364 if (PyErr_Occurred()) SWIG_fail;
22365 }
22366 resultobj = SWIG_Py_Void();
22367 if (SWIG_IsTmpObj(res2)) {
22368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22369 } else {
22370 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22372 }
22373 if (SWIG_IsTmpObj(res3)) {
22374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22375 } else {
22376 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22378 }
22379 return resultobj;
22380fail:
22381 return NULL;
22382}
22383
22384
22385SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22386 PyObject *resultobj = 0;
22387 wxDC *arg1 = (wxDC *) 0 ;
22388 double arg2 ;
22389 double arg3 ;
22390 void *argp1 = 0 ;
22391 int res1 = 0 ;
22392 double val2 ;
22393 int ecode2 = 0 ;
22394 double val3 ;
22395 int ecode3 = 0 ;
22396 PyObject * obj0 = 0 ;
22397 PyObject * obj1 = 0 ;
22398 PyObject * obj2 = 0 ;
22399 char * kwnames[] = {
22400 (char *) "self",(char *) "x",(char *) "y", NULL
22401 };
22402
22403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22405 if (!SWIG_IsOK(res1)) {
22406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22407 }
22408 arg1 = reinterpret_cast< wxDC * >(argp1);
22409 ecode2 = SWIG_AsVal_double(obj1, &val2);
22410 if (!SWIG_IsOK(ecode2)) {
22411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22412 }
22413 arg2 = static_cast< double >(val2);
22414 ecode3 = SWIG_AsVal_double(obj2, &val3);
22415 if (!SWIG_IsOK(ecode3)) {
22416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22417 }
22418 arg3 = static_cast< double >(val3);
22419 {
22420 PyThreadState* __tstate = wxPyBeginAllowThreads();
22421 (arg1)->SetLogicalScale(arg2,arg3);
22422 wxPyEndAllowThreads(__tstate);
22423 if (PyErr_Occurred()) SWIG_fail;
22424 }
22425 resultobj = SWIG_Py_Void();
22426 return resultobj;
22427fail:
22428 return NULL;
22429}
22430
22431
22432SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22433 PyObject *resultobj = 0;
22434 wxDC *arg1 = (wxDC *) 0 ;
22435 wxPoint result;
22436 void *argp1 = 0 ;
22437 int res1 = 0 ;
22438 PyObject *swig_obj[1] ;
22439
22440 if (!args) SWIG_fail;
22441 swig_obj[0] = args;
22442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22443 if (!SWIG_IsOK(res1)) {
22444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22445 }
22446 arg1 = reinterpret_cast< wxDC * >(argp1);
22447 {
22448 PyThreadState* __tstate = wxPyBeginAllowThreads();
22449 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22450 wxPyEndAllowThreads(__tstate);
22451 if (PyErr_Occurred()) SWIG_fail;
22452 }
22453 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22454 return resultobj;
22455fail:
22456 return NULL;
22457}
22458
22459
22460SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22461 PyObject *resultobj = 0;
22462 wxDC *arg1 = (wxDC *) 0 ;
22463 int *arg2 = (int *) 0 ;
22464 int *arg3 = (int *) 0 ;
22465 void *argp1 = 0 ;
22466 int res1 = 0 ;
22467 int temp2 ;
22468 int res2 = SWIG_TMPOBJ ;
22469 int temp3 ;
22470 int res3 = SWIG_TMPOBJ ;
22471 PyObject *swig_obj[1] ;
22472
22473 arg2 = &temp2;
22474 arg3 = &temp3;
22475 if (!args) SWIG_fail;
22476 swig_obj[0] = args;
22477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22478 if (!SWIG_IsOK(res1)) {
22479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22480 }
22481 arg1 = reinterpret_cast< wxDC * >(argp1);
22482 {
22483 PyThreadState* __tstate = wxPyBeginAllowThreads();
22484 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22485 wxPyEndAllowThreads(__tstate);
22486 if (PyErr_Occurred()) SWIG_fail;
22487 }
22488 resultobj = SWIG_Py_Void();
22489 if (SWIG_IsTmpObj(res2)) {
22490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22491 } else {
22492 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22494 }
22495 if (SWIG_IsTmpObj(res3)) {
22496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22497 } else {
22498 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22500 }
22501 return resultobj;
22502fail:
22503 return NULL;
22504}
22505
22506
22507SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22508 PyObject *resultobj = 0;
22509 wxDC *arg1 = (wxDC *) 0 ;
22510 int arg2 ;
22511 int arg3 ;
22512 void *argp1 = 0 ;
22513 int res1 = 0 ;
22514 int val2 ;
22515 int ecode2 = 0 ;
22516 int val3 ;
22517 int ecode3 = 0 ;
22518 PyObject * obj0 = 0 ;
22519 PyObject * obj1 = 0 ;
22520 PyObject * obj2 = 0 ;
22521 char * kwnames[] = {
22522 (char *) "self",(char *) "x",(char *) "y", NULL
22523 };
22524
22525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22527 if (!SWIG_IsOK(res1)) {
22528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22529 }
22530 arg1 = reinterpret_cast< wxDC * >(argp1);
22531 ecode2 = SWIG_AsVal_int(obj1, &val2);
22532 if (!SWIG_IsOK(ecode2)) {
22533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22534 }
22535 arg2 = static_cast< int >(val2);
22536 ecode3 = SWIG_AsVal_int(obj2, &val3);
22537 if (!SWIG_IsOK(ecode3)) {
22538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22539 }
22540 arg3 = static_cast< int >(val3);
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 (arg1)->SetLogicalOrigin(arg2,arg3);
22544 wxPyEndAllowThreads(__tstate);
22545 if (PyErr_Occurred()) SWIG_fail;
22546 }
22547 resultobj = SWIG_Py_Void();
22548 return resultobj;
22549fail:
22550 return NULL;
22551}
22552
22553
22554SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22555 PyObject *resultobj = 0;
22556 wxDC *arg1 = (wxDC *) 0 ;
22557 wxPoint *arg2 = 0 ;
22558 void *argp1 = 0 ;
22559 int res1 = 0 ;
22560 wxPoint temp2 ;
22561 PyObject * obj0 = 0 ;
22562 PyObject * obj1 = 0 ;
22563 char * kwnames[] = {
22564 (char *) "self",(char *) "point", NULL
22565 };
22566
22567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22569 if (!SWIG_IsOK(res1)) {
22570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22571 }
22572 arg1 = reinterpret_cast< wxDC * >(argp1);
22573 {
22574 arg2 = &temp2;
22575 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22576 }
22577 {
22578 PyThreadState* __tstate = wxPyBeginAllowThreads();
22579 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22580 wxPyEndAllowThreads(__tstate);
22581 if (PyErr_Occurred()) SWIG_fail;
22582 }
22583 resultobj = SWIG_Py_Void();
22584 return resultobj;
22585fail:
22586 return NULL;
22587}
22588
22589
22590SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22591 PyObject *resultobj = 0;
22592 wxDC *arg1 = (wxDC *) 0 ;
22593 wxPoint result;
22594 void *argp1 = 0 ;
22595 int res1 = 0 ;
22596 PyObject *swig_obj[1] ;
22597
22598 if (!args) SWIG_fail;
22599 swig_obj[0] = args;
22600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22601 if (!SWIG_IsOK(res1)) {
22602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22603 }
22604 arg1 = reinterpret_cast< wxDC * >(argp1);
22605 {
22606 PyThreadState* __tstate = wxPyBeginAllowThreads();
22607 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22608 wxPyEndAllowThreads(__tstate);
22609 if (PyErr_Occurred()) SWIG_fail;
22610 }
22611 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22612 return resultobj;
22613fail:
22614 return NULL;
22615}
22616
22617
22618SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22619 PyObject *resultobj = 0;
22620 wxDC *arg1 = (wxDC *) 0 ;
22621 int *arg2 = (int *) 0 ;
22622 int *arg3 = (int *) 0 ;
22623 void *argp1 = 0 ;
22624 int res1 = 0 ;
22625 int temp2 ;
22626 int res2 = SWIG_TMPOBJ ;
22627 int temp3 ;
22628 int res3 = SWIG_TMPOBJ ;
22629 PyObject *swig_obj[1] ;
22630
22631 arg2 = &temp2;
22632 arg3 = &temp3;
22633 if (!args) SWIG_fail;
22634 swig_obj[0] = args;
22635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22636 if (!SWIG_IsOK(res1)) {
22637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22638 }
22639 arg1 = reinterpret_cast< wxDC * >(argp1);
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22643 wxPyEndAllowThreads(__tstate);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 resultobj = SWIG_Py_Void();
22647 if (SWIG_IsTmpObj(res2)) {
22648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22649 } else {
22650 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22652 }
22653 if (SWIG_IsTmpObj(res3)) {
22654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22655 } else {
22656 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22658 }
22659 return resultobj;
22660fail:
22661 return NULL;
22662}
22663
22664
22665SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22666 PyObject *resultobj = 0;
22667 wxDC *arg1 = (wxDC *) 0 ;
22668 int arg2 ;
22669 int arg3 ;
22670 void *argp1 = 0 ;
22671 int res1 = 0 ;
22672 int val2 ;
22673 int ecode2 = 0 ;
22674 int val3 ;
22675 int ecode3 = 0 ;
22676 PyObject * obj0 = 0 ;
22677 PyObject * obj1 = 0 ;
22678 PyObject * obj2 = 0 ;
22679 char * kwnames[] = {
22680 (char *) "self",(char *) "x",(char *) "y", NULL
22681 };
22682
22683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22685 if (!SWIG_IsOK(res1)) {
22686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22687 }
22688 arg1 = reinterpret_cast< wxDC * >(argp1);
22689 ecode2 = SWIG_AsVal_int(obj1, &val2);
22690 if (!SWIG_IsOK(ecode2)) {
22691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22692 }
22693 arg2 = static_cast< int >(val2);
22694 ecode3 = SWIG_AsVal_int(obj2, &val3);
22695 if (!SWIG_IsOK(ecode3)) {
22696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22697 }
22698 arg3 = static_cast< int >(val3);
22699 {
22700 PyThreadState* __tstate = wxPyBeginAllowThreads();
22701 (arg1)->SetDeviceOrigin(arg2,arg3);
22702 wxPyEndAllowThreads(__tstate);
22703 if (PyErr_Occurred()) SWIG_fail;
22704 }
22705 resultobj = SWIG_Py_Void();
22706 return resultobj;
22707fail:
22708 return NULL;
22709}
22710
22711
22712SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22713 PyObject *resultobj = 0;
22714 wxDC *arg1 = (wxDC *) 0 ;
22715 wxPoint *arg2 = 0 ;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 wxPoint temp2 ;
22719 PyObject * obj0 = 0 ;
22720 PyObject * obj1 = 0 ;
22721 char * kwnames[] = {
22722 (char *) "self",(char *) "point", NULL
22723 };
22724
22725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22727 if (!SWIG_IsOK(res1)) {
22728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22729 }
22730 arg1 = reinterpret_cast< wxDC * >(argp1);
22731 {
22732 arg2 = &temp2;
22733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22734 }
22735 {
22736 PyThreadState* __tstate = wxPyBeginAllowThreads();
22737 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22738 wxPyEndAllowThreads(__tstate);
22739 if (PyErr_Occurred()) SWIG_fail;
22740 }
22741 resultobj = SWIG_Py_Void();
22742 return resultobj;
22743fail:
22744 return NULL;
22745}
22746
22747
22748SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22749 PyObject *resultobj = 0;
22750 wxDC *arg1 = (wxDC *) 0 ;
22751 bool arg2 ;
22752 bool arg3 ;
22753 void *argp1 = 0 ;
22754 int res1 = 0 ;
22755 bool val2 ;
22756 int ecode2 = 0 ;
22757 bool val3 ;
22758 int ecode3 = 0 ;
22759 PyObject * obj0 = 0 ;
22760 PyObject * obj1 = 0 ;
22761 PyObject * obj2 = 0 ;
22762 char * kwnames[] = {
22763 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22764 };
22765
22766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22768 if (!SWIG_IsOK(res1)) {
22769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22770 }
22771 arg1 = reinterpret_cast< wxDC * >(argp1);
22772 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22773 if (!SWIG_IsOK(ecode2)) {
22774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22775 }
22776 arg2 = static_cast< bool >(val2);
22777 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22778 if (!SWIG_IsOK(ecode3)) {
22779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22780 }
22781 arg3 = static_cast< bool >(val3);
22782 {
22783 PyThreadState* __tstate = wxPyBeginAllowThreads();
22784 (arg1)->SetAxisOrientation(arg2,arg3);
22785 wxPyEndAllowThreads(__tstate);
22786 if (PyErr_Occurred()) SWIG_fail;
22787 }
22788 resultobj = SWIG_Py_Void();
22789 return resultobj;
22790fail:
22791 return NULL;
22792}
22793
22794
22795SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22796 PyObject *resultobj = 0;
22797 wxDC *arg1 = (wxDC *) 0 ;
22798 int result;
22799 void *argp1 = 0 ;
22800 int res1 = 0 ;
22801 PyObject *swig_obj[1] ;
22802
22803 if (!args) SWIG_fail;
22804 swig_obj[0] = args;
22805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22806 if (!SWIG_IsOK(res1)) {
22807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22808 }
22809 arg1 = reinterpret_cast< wxDC * >(argp1);
22810 {
22811 PyThreadState* __tstate = wxPyBeginAllowThreads();
22812 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22813 wxPyEndAllowThreads(__tstate);
22814 if (PyErr_Occurred()) SWIG_fail;
22815 }
22816 resultobj = SWIG_From_int(static_cast< int >(result));
22817 return resultobj;
22818fail:
22819 return NULL;
22820}
22821
22822
22823SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22824 PyObject *resultobj = 0;
22825 wxDC *arg1 = (wxDC *) 0 ;
22826 int arg2 ;
22827 void *argp1 = 0 ;
22828 int res1 = 0 ;
22829 int val2 ;
22830 int ecode2 = 0 ;
22831 PyObject * obj0 = 0 ;
22832 PyObject * obj1 = 0 ;
22833 char * kwnames[] = {
22834 (char *) "self",(char *) "function", NULL
22835 };
22836
22837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22839 if (!SWIG_IsOK(res1)) {
22840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22841 }
22842 arg1 = reinterpret_cast< wxDC * >(argp1);
22843 ecode2 = SWIG_AsVal_int(obj1, &val2);
22844 if (!SWIG_IsOK(ecode2)) {
22845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22846 }
22847 arg2 = static_cast< int >(val2);
22848 {
22849 PyThreadState* __tstate = wxPyBeginAllowThreads();
22850 (arg1)->SetLogicalFunction(arg2);
22851 wxPyEndAllowThreads(__tstate);
22852 if (PyErr_Occurred()) SWIG_fail;
22853 }
22854 resultobj = SWIG_Py_Void();
22855 return resultobj;
22856fail:
22857 return NULL;
22858}
22859
22860
22861SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22862 PyObject *resultobj = 0;
22863 wxDC *arg1 = (wxDC *) 0 ;
22864 void *argp1 = 0 ;
22865 int res1 = 0 ;
22866 PyObject *swig_obj[1] ;
22867
22868 if (!args) SWIG_fail;
22869 swig_obj[0] = args;
22870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22871 if (!SWIG_IsOK(res1)) {
22872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22873 }
22874 arg1 = reinterpret_cast< wxDC * >(argp1);
22875 {
22876 PyThreadState* __tstate = wxPyBeginAllowThreads();
22877 (arg1)->ComputeScaleAndOrigin();
22878 wxPyEndAllowThreads(__tstate);
22879 if (PyErr_Occurred()) SWIG_fail;
22880 }
22881 resultobj = SWIG_Py_Void();
22882 return resultobj;
22883fail:
22884 return NULL;
22885}
22886
22887
22888SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22889 PyObject *resultobj = 0;
22890 wxDC *arg1 = (wxDC *) 0 ;
22891 int arg2 ;
22892 int arg3 ;
22893 void *argp1 = 0 ;
22894 int res1 = 0 ;
22895 int val2 ;
22896 int ecode2 = 0 ;
22897 int val3 ;
22898 int ecode3 = 0 ;
22899 PyObject * obj0 = 0 ;
22900 PyObject * obj1 = 0 ;
22901 PyObject * obj2 = 0 ;
22902 char * kwnames[] = {
22903 (char *) "self",(char *) "x",(char *) "y", NULL
22904 };
22905
22906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22908 if (!SWIG_IsOK(res1)) {
22909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22910 }
22911 arg1 = reinterpret_cast< wxDC * >(argp1);
22912 ecode2 = SWIG_AsVal_int(obj1, &val2);
22913 if (!SWIG_IsOK(ecode2)) {
22914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22915 }
22916 arg2 = static_cast< int >(val2);
22917 ecode3 = SWIG_AsVal_int(obj2, &val3);
22918 if (!SWIG_IsOK(ecode3)) {
22919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22920 }
22921 arg3 = static_cast< int >(val3);
22922 {
22923 PyThreadState* __tstate = wxPyBeginAllowThreads();
22924 (arg1)->CalcBoundingBox(arg2,arg3);
22925 wxPyEndAllowThreads(__tstate);
22926 if (PyErr_Occurred()) SWIG_fail;
22927 }
22928 resultobj = SWIG_Py_Void();
22929 return resultobj;
22930fail:
22931 return NULL;
22932}
22933
22934
22935SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22936 PyObject *resultobj = 0;
22937 wxDC *arg1 = (wxDC *) 0 ;
22938 wxPoint *arg2 = 0 ;
22939 void *argp1 = 0 ;
22940 int res1 = 0 ;
22941 wxPoint temp2 ;
22942 PyObject * obj0 = 0 ;
22943 PyObject * obj1 = 0 ;
22944 char * kwnames[] = {
22945 (char *) "self",(char *) "point", NULL
22946 };
22947
22948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22950 if (!SWIG_IsOK(res1)) {
22951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22952 }
22953 arg1 = reinterpret_cast< wxDC * >(argp1);
22954 {
22955 arg2 = &temp2;
22956 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22957 }
22958 {
22959 PyThreadState* __tstate = wxPyBeginAllowThreads();
22960 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22961 wxPyEndAllowThreads(__tstate);
22962 if (PyErr_Occurred()) SWIG_fail;
22963 }
22964 resultobj = SWIG_Py_Void();
22965 return resultobj;
22966fail:
22967 return NULL;
22968}
22969
22970
22971SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22972 PyObject *resultobj = 0;
22973 wxDC *arg1 = (wxDC *) 0 ;
22974 void *argp1 = 0 ;
22975 int res1 = 0 ;
22976 PyObject *swig_obj[1] ;
22977
22978 if (!args) SWIG_fail;
22979 swig_obj[0] = args;
22980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22981 if (!SWIG_IsOK(res1)) {
22982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22983 }
22984 arg1 = reinterpret_cast< wxDC * >(argp1);
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
22987 (arg1)->ResetBoundingBox();
22988 wxPyEndAllowThreads(__tstate);
22989 if (PyErr_Occurred()) SWIG_fail;
22990 }
22991 resultobj = SWIG_Py_Void();
22992 return resultobj;
22993fail:
22994 return NULL;
22995}
22996
22997
22998SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22999 PyObject *resultobj = 0;
23000 wxDC *arg1 = (wxDC *) 0 ;
23001 int result;
23002 void *argp1 = 0 ;
23003 int res1 = 0 ;
23004 PyObject *swig_obj[1] ;
23005
23006 if (!args) SWIG_fail;
23007 swig_obj[0] = args;
23008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23009 if (!SWIG_IsOK(res1)) {
23010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23011 }
23012 arg1 = reinterpret_cast< wxDC * >(argp1);
23013 {
23014 PyThreadState* __tstate = wxPyBeginAllowThreads();
23015 result = (int)((wxDC const *)arg1)->MinX();
23016 wxPyEndAllowThreads(__tstate);
23017 if (PyErr_Occurred()) SWIG_fail;
23018 }
23019 resultobj = SWIG_From_int(static_cast< int >(result));
23020 return resultobj;
23021fail:
23022 return NULL;
23023}
23024
23025
23026SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23027 PyObject *resultobj = 0;
23028 wxDC *arg1 = (wxDC *) 0 ;
23029 int result;
23030 void *argp1 = 0 ;
23031 int res1 = 0 ;
23032 PyObject *swig_obj[1] ;
23033
23034 if (!args) SWIG_fail;
23035 swig_obj[0] = args;
23036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23037 if (!SWIG_IsOK(res1)) {
23038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23039 }
23040 arg1 = reinterpret_cast< wxDC * >(argp1);
23041 {
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 result = (int)((wxDC const *)arg1)->MaxX();
23044 wxPyEndAllowThreads(__tstate);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
23047 resultobj = SWIG_From_int(static_cast< int >(result));
23048 return resultobj;
23049fail:
23050 return NULL;
23051}
23052
23053
23054SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23055 PyObject *resultobj = 0;
23056 wxDC *arg1 = (wxDC *) 0 ;
23057 int result;
23058 void *argp1 = 0 ;
23059 int res1 = 0 ;
23060 PyObject *swig_obj[1] ;
23061
23062 if (!args) SWIG_fail;
23063 swig_obj[0] = args;
23064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23065 if (!SWIG_IsOK(res1)) {
23066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23067 }
23068 arg1 = reinterpret_cast< wxDC * >(argp1);
23069 {
23070 PyThreadState* __tstate = wxPyBeginAllowThreads();
23071 result = (int)((wxDC const *)arg1)->MinY();
23072 wxPyEndAllowThreads(__tstate);
23073 if (PyErr_Occurred()) SWIG_fail;
23074 }
23075 resultobj = SWIG_From_int(static_cast< int >(result));
23076 return resultobj;
23077fail:
23078 return NULL;
23079}
23080
23081
23082SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23083 PyObject *resultobj = 0;
23084 wxDC *arg1 = (wxDC *) 0 ;
23085 int result;
23086 void *argp1 = 0 ;
23087 int res1 = 0 ;
23088 PyObject *swig_obj[1] ;
23089
23090 if (!args) SWIG_fail;
23091 swig_obj[0] = args;
23092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23093 if (!SWIG_IsOK(res1)) {
23094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23095 }
23096 arg1 = reinterpret_cast< wxDC * >(argp1);
23097 {
23098 PyThreadState* __tstate = wxPyBeginAllowThreads();
23099 result = (int)((wxDC const *)arg1)->MaxY();
23100 wxPyEndAllowThreads(__tstate);
23101 if (PyErr_Occurred()) SWIG_fail;
23102 }
23103 resultobj = SWIG_From_int(static_cast< int >(result));
23104 return resultobj;
23105fail:
23106 return NULL;
23107}
23108
23109
23110SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23111 PyObject *resultobj = 0;
23112 wxDC *arg1 = (wxDC *) 0 ;
23113 int *arg2 = (int *) 0 ;
23114 int *arg3 = (int *) 0 ;
23115 int *arg4 = (int *) 0 ;
23116 int *arg5 = (int *) 0 ;
23117 void *argp1 = 0 ;
23118 int res1 = 0 ;
23119 int temp2 ;
23120 int res2 = SWIG_TMPOBJ ;
23121 int temp3 ;
23122 int res3 = SWIG_TMPOBJ ;
23123 int temp4 ;
23124 int res4 = SWIG_TMPOBJ ;
23125 int temp5 ;
23126 int res5 = SWIG_TMPOBJ ;
23127 PyObject *swig_obj[1] ;
23128
23129 arg2 = &temp2;
23130 arg3 = &temp3;
23131 arg4 = &temp4;
23132 arg5 = &temp5;
23133 if (!args) SWIG_fail;
23134 swig_obj[0] = args;
23135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23136 if (!SWIG_IsOK(res1)) {
23137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23138 }
23139 arg1 = reinterpret_cast< wxDC * >(argp1);
23140 {
23141 PyThreadState* __tstate = wxPyBeginAllowThreads();
23142 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23143 wxPyEndAllowThreads(__tstate);
23144 if (PyErr_Occurred()) SWIG_fail;
23145 }
23146 resultobj = SWIG_Py_Void();
23147 if (SWIG_IsTmpObj(res2)) {
23148 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23149 } else {
23150 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23152 }
23153 if (SWIG_IsTmpObj(res3)) {
23154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23155 } else {
23156 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23158 }
23159 if (SWIG_IsTmpObj(res4)) {
23160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23161 } else {
23162 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23164 }
23165 if (SWIG_IsTmpObj(res5)) {
23166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23167 } else {
23168 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23170 }
23171 return resultobj;
23172fail:
23173 return NULL;
23174}
23175
23176
b39fe951
RD
23177SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23178 PyObject *resultobj = 0;
23179 wxDC *arg1 = (wxDC *) 0 ;
23180 wxLayoutDirection result;
23181 void *argp1 = 0 ;
23182 int res1 = 0 ;
23183 PyObject *swig_obj[1] ;
23184
23185 if (!args) SWIG_fail;
23186 swig_obj[0] = args;
23187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23188 if (!SWIG_IsOK(res1)) {
23189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23190 }
23191 arg1 = reinterpret_cast< wxDC * >(argp1);
23192 {
23193 PyThreadState* __tstate = wxPyBeginAllowThreads();
23194 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23195 wxPyEndAllowThreads(__tstate);
23196 if (PyErr_Occurred()) SWIG_fail;
23197 }
23198 resultobj = SWIG_From_int(static_cast< int >(result));
23199 return resultobj;
23200fail:
23201 return NULL;
23202}
23203
23204
23205SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23206 PyObject *resultobj = 0;
23207 wxDC *arg1 = (wxDC *) 0 ;
23208 wxLayoutDirection arg2 ;
23209 void *argp1 = 0 ;
23210 int res1 = 0 ;
23211 int val2 ;
23212 int ecode2 = 0 ;
23213 PyObject * obj0 = 0 ;
23214 PyObject * obj1 = 0 ;
23215 char * kwnames[] = {
23216 (char *) "self",(char *) "dir", NULL
23217 };
23218
23219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23221 if (!SWIG_IsOK(res1)) {
23222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23223 }
23224 arg1 = reinterpret_cast< wxDC * >(argp1);
23225 ecode2 = SWIG_AsVal_int(obj1, &val2);
23226 if (!SWIG_IsOK(ecode2)) {
23227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23228 }
23229 arg2 = static_cast< wxLayoutDirection >(val2);
23230 {
23231 PyThreadState* __tstate = wxPyBeginAllowThreads();
23232 (arg1)->SetLayoutDirection(arg2);
23233 wxPyEndAllowThreads(__tstate);
23234 if (PyErr_Occurred()) SWIG_fail;
23235 }
23236 resultobj = SWIG_Py_Void();
23237 return resultobj;
23238fail:
23239 return NULL;
23240}
23241
23242
1bd55598
RD
23243SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23244 PyObject *resultobj = 0;
23245 wxDC *arg1 = (wxDC *) 0 ;
23246 PyObject *arg2 = (PyObject *) 0 ;
23247 PyObject *arg3 = (PyObject *) 0 ;
23248 PyObject *arg4 = (PyObject *) 0 ;
23249 PyObject *result = 0 ;
23250 void *argp1 = 0 ;
23251 int res1 = 0 ;
23252 PyObject * obj0 = 0 ;
23253 PyObject * obj1 = 0 ;
23254 PyObject * obj2 = 0 ;
23255 PyObject * obj3 = 0 ;
23256 char * kwnames[] = {
23257 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23258 };
23259
23260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23262 if (!SWIG_IsOK(res1)) {
23263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23264 }
23265 arg1 = reinterpret_cast< wxDC * >(argp1);
23266 arg2 = obj1;
23267 arg3 = obj2;
23268 arg4 = obj3;
23269 {
23270 PyThreadState* __tstate = wxPyBeginAllowThreads();
23271 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23272 wxPyEndAllowThreads(__tstate);
23273 if (PyErr_Occurred()) SWIG_fail;
23274 }
23275 resultobj = result;
23276 return resultobj;
23277fail:
23278 return NULL;
23279}
23280
23281
23282SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23283 PyObject *resultobj = 0;
23284 wxDC *arg1 = (wxDC *) 0 ;
23285 PyObject *arg2 = (PyObject *) 0 ;
23286 PyObject *arg3 = (PyObject *) 0 ;
23287 PyObject *arg4 = (PyObject *) 0 ;
23288 PyObject *result = 0 ;
23289 void *argp1 = 0 ;
23290 int res1 = 0 ;
23291 PyObject * obj0 = 0 ;
23292 PyObject * obj1 = 0 ;
23293 PyObject * obj2 = 0 ;
23294 PyObject * obj3 = 0 ;
23295 char * kwnames[] = {
23296 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23297 };
23298
23299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23301 if (!SWIG_IsOK(res1)) {
23302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23303 }
23304 arg1 = reinterpret_cast< wxDC * >(argp1);
23305 arg2 = obj1;
23306 arg3 = obj2;
23307 arg4 = obj3;
23308 {
23309 PyThreadState* __tstate = wxPyBeginAllowThreads();
23310 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23311 wxPyEndAllowThreads(__tstate);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 resultobj = result;
23315 return resultobj;
23316fail:
23317 return NULL;
23318}
23319
23320
23321SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23322 PyObject *resultobj = 0;
23323 wxDC *arg1 = (wxDC *) 0 ;
23324 PyObject *arg2 = (PyObject *) 0 ;
23325 PyObject *arg3 = (PyObject *) 0 ;
23326 PyObject *arg4 = (PyObject *) 0 ;
23327 PyObject *result = 0 ;
23328 void *argp1 = 0 ;
23329 int res1 = 0 ;
23330 PyObject * obj0 = 0 ;
23331 PyObject * obj1 = 0 ;
23332 PyObject * obj2 = 0 ;
23333 PyObject * obj3 = 0 ;
23334 char * kwnames[] = {
23335 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23336 };
23337
23338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23340 if (!SWIG_IsOK(res1)) {
23341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23342 }
23343 arg1 = reinterpret_cast< wxDC * >(argp1);
23344 arg2 = obj1;
23345 arg3 = obj2;
23346 arg4 = obj3;
23347 {
23348 PyThreadState* __tstate = wxPyBeginAllowThreads();
23349 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23350 wxPyEndAllowThreads(__tstate);
23351 if (PyErr_Occurred()) SWIG_fail;
23352 }
23353 resultobj = result;
23354 return resultobj;
23355fail:
23356 return NULL;
23357}
23358
23359
23360SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23361 PyObject *resultobj = 0;
23362 wxDC *arg1 = (wxDC *) 0 ;
23363 PyObject *arg2 = (PyObject *) 0 ;
23364 PyObject *arg3 = (PyObject *) 0 ;
23365 PyObject *arg4 = (PyObject *) 0 ;
23366 PyObject *result = 0 ;
23367 void *argp1 = 0 ;
23368 int res1 = 0 ;
23369 PyObject * obj0 = 0 ;
23370 PyObject * obj1 = 0 ;
23371 PyObject * obj2 = 0 ;
23372 PyObject * obj3 = 0 ;
23373 char * kwnames[] = {
23374 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23375 };
23376
23377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23379 if (!SWIG_IsOK(res1)) {
23380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23381 }
23382 arg1 = reinterpret_cast< wxDC * >(argp1);
23383 arg2 = obj1;
23384 arg3 = obj2;
23385 arg4 = obj3;
23386 {
23387 PyThreadState* __tstate = wxPyBeginAllowThreads();
23388 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23389 wxPyEndAllowThreads(__tstate);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 }
23392 resultobj = result;
23393 return resultobj;
23394fail:
23395 return NULL;
23396}
23397
23398
23399SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23400 PyObject *resultobj = 0;
23401 wxDC *arg1 = (wxDC *) 0 ;
23402 PyObject *arg2 = (PyObject *) 0 ;
23403 PyObject *arg3 = (PyObject *) 0 ;
23404 PyObject *arg4 = (PyObject *) 0 ;
23405 PyObject *result = 0 ;
23406 void *argp1 = 0 ;
23407 int res1 = 0 ;
23408 PyObject * obj0 = 0 ;
23409 PyObject * obj1 = 0 ;
23410 PyObject * obj2 = 0 ;
23411 PyObject * obj3 = 0 ;
23412 char * kwnames[] = {
23413 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23414 };
23415
23416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23418 if (!SWIG_IsOK(res1)) {
23419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23420 }
23421 arg1 = reinterpret_cast< wxDC * >(argp1);
23422 arg2 = obj1;
23423 arg3 = obj2;
23424 arg4 = obj3;
23425 {
23426 PyThreadState* __tstate = wxPyBeginAllowThreads();
23427 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23428 wxPyEndAllowThreads(__tstate);
23429 if (PyErr_Occurred()) SWIG_fail;
23430 }
23431 resultobj = result;
23432 return resultobj;
23433fail:
23434 return NULL;
23435}
23436
23437
23438SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23439 PyObject *resultobj = 0;
23440 wxDC *arg1 = (wxDC *) 0 ;
23441 PyObject *arg2 = (PyObject *) 0 ;
23442 PyObject *arg3 = (PyObject *) 0 ;
23443 PyObject *arg4 = (PyObject *) 0 ;
23444 PyObject *arg5 = (PyObject *) 0 ;
23445 PyObject *result = 0 ;
23446 void *argp1 = 0 ;
23447 int res1 = 0 ;
23448 PyObject * obj0 = 0 ;
23449 PyObject * obj1 = 0 ;
23450 PyObject * obj2 = 0 ;
23451 PyObject * obj3 = 0 ;
23452 PyObject * obj4 = 0 ;
23453 char * kwnames[] = {
23454 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23455 };
23456
23457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23459 if (!SWIG_IsOK(res1)) {
23460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23461 }
23462 arg1 = reinterpret_cast< wxDC * >(argp1);
23463 arg2 = obj1;
23464 arg3 = obj2;
23465 arg4 = obj3;
23466 arg5 = obj4;
23467 {
23468 PyThreadState* __tstate = wxPyBeginAllowThreads();
23469 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23470 wxPyEndAllowThreads(__tstate);
23471 if (PyErr_Occurred()) SWIG_fail;
23472 }
23473 resultobj = result;
23474 return resultobj;
23475fail:
23476 return NULL;
23477}
23478
23479
23480SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23481 PyObject *obj;
23482 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23483 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23484 return SWIG_Py_Void();
23485}
23486
70d7cb34
RD
23487SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23488 PyObject *resultobj = 0;
23489 wxDC *arg1 = 0 ;
23490 wxColour *arg2 = 0 ;
23491 wxDCTextColourChanger *result = 0 ;
23492 void *argp1 = 0 ;
23493 int res1 = 0 ;
23494 wxColour temp2 ;
23495 PyObject * obj0 = 0 ;
23496 PyObject * obj1 = 0 ;
23497 char * kwnames[] = {
23498 (char *) "dc",(char *) "col", NULL
23499 };
23500
23501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23502 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23503 if (!SWIG_IsOK(res1)) {
23504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23505 }
23506 if (!argp1) {
23507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23508 }
23509 arg1 = reinterpret_cast< wxDC * >(argp1);
23510 {
23511 arg2 = &temp2;
23512 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23513 }
23514 {
23515 PyThreadState* __tstate = wxPyBeginAllowThreads();
23516 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23517 wxPyEndAllowThreads(__tstate);
23518 if (PyErr_Occurred()) SWIG_fail;
23519 }
23520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23521 return resultobj;
23522fail:
23523 return NULL;
23524}
23525
23526
23527SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23528 PyObject *resultobj = 0;
23529 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23530 void *argp1 = 0 ;
23531 int res1 = 0 ;
23532 PyObject *swig_obj[1] ;
23533
23534 if (!args) SWIG_fail;
23535 swig_obj[0] = args;
23536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23537 if (!SWIG_IsOK(res1)) {
23538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23539 }
23540 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23541 {
23542 PyThreadState* __tstate = wxPyBeginAllowThreads();
23543 delete arg1;
23544
23545 wxPyEndAllowThreads(__tstate);
23546 if (PyErr_Occurred()) SWIG_fail;
23547 }
23548 resultobj = SWIG_Py_Void();
23549 return resultobj;
23550fail:
23551 return NULL;
23552}
23553
23554
23555SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23556 PyObject *obj;
23557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23558 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23559 return SWIG_Py_Void();
23560}
23561
23562SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23563 return SWIG_Python_InitShadowInstance(args);
23564}
23565
23566SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23567 PyObject *resultobj = 0;
23568 wxDC *arg1 = 0 ;
23569 wxPen *arg2 = 0 ;
23570 wxDCPenChanger *result = 0 ;
23571 void *argp1 = 0 ;
23572 int res1 = 0 ;
23573 void *argp2 = 0 ;
23574 int res2 = 0 ;
23575 PyObject * obj0 = 0 ;
23576 PyObject * obj1 = 0 ;
23577 char * kwnames[] = {
23578 (char *) "dc",(char *) "pen", NULL
23579 };
23580
23581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23582 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23583 if (!SWIG_IsOK(res1)) {
23584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23585 }
23586 if (!argp1) {
23587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23588 }
23589 arg1 = reinterpret_cast< wxDC * >(argp1);
23590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23591 if (!SWIG_IsOK(res2)) {
23592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23593 }
23594 if (!argp2) {
23595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23596 }
23597 arg2 = reinterpret_cast< wxPen * >(argp2);
23598 {
23599 PyThreadState* __tstate = wxPyBeginAllowThreads();
23600 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23601 wxPyEndAllowThreads(__tstate);
23602 if (PyErr_Occurred()) SWIG_fail;
23603 }
23604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23605 return resultobj;
23606fail:
23607 return NULL;
23608}
23609
23610
23611SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23612 PyObject *resultobj = 0;
23613 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23614 void *argp1 = 0 ;
23615 int res1 = 0 ;
23616 PyObject *swig_obj[1] ;
23617
23618 if (!args) SWIG_fail;
23619 swig_obj[0] = args;
23620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23621 if (!SWIG_IsOK(res1)) {
23622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23623 }
23624 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23625 {
23626 PyThreadState* __tstate = wxPyBeginAllowThreads();
23627 delete arg1;
23628
23629 wxPyEndAllowThreads(__tstate);
23630 if (PyErr_Occurred()) SWIG_fail;
23631 }
23632 resultobj = SWIG_Py_Void();
23633 return resultobj;
23634fail:
23635 return NULL;
23636}
23637
23638
23639SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23640 PyObject *obj;
23641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23642 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23643 return SWIG_Py_Void();
23644}
23645
23646SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23647 return SWIG_Python_InitShadowInstance(args);
23648}
23649
23650SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23651 PyObject *resultobj = 0;
23652 wxDC *arg1 = 0 ;
23653 wxBrush *arg2 = 0 ;
23654 wxDCBrushChanger *result = 0 ;
23655 void *argp1 = 0 ;
23656 int res1 = 0 ;
23657 void *argp2 = 0 ;
23658 int res2 = 0 ;
23659 PyObject * obj0 = 0 ;
23660 PyObject * obj1 = 0 ;
23661 char * kwnames[] = {
23662 (char *) "dc",(char *) "brush", NULL
23663 };
23664
23665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23666 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23667 if (!SWIG_IsOK(res1)) {
23668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23669 }
23670 if (!argp1) {
23671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23672 }
23673 arg1 = reinterpret_cast< wxDC * >(argp1);
23674 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23675 if (!SWIG_IsOK(res2)) {
23676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23677 }
23678 if (!argp2) {
23679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23680 }
23681 arg2 = reinterpret_cast< wxBrush * >(argp2);
23682 {
23683 PyThreadState* __tstate = wxPyBeginAllowThreads();
23684 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23685 wxPyEndAllowThreads(__tstate);
23686 if (PyErr_Occurred()) SWIG_fail;
23687 }
23688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23689 return resultobj;
23690fail:
23691 return NULL;
23692}
23693
23694
23695SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23696 PyObject *resultobj = 0;
23697 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23698 void *argp1 = 0 ;
23699 int res1 = 0 ;
23700 PyObject *swig_obj[1] ;
23701
23702 if (!args) SWIG_fail;
23703 swig_obj[0] = args;
23704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23705 if (!SWIG_IsOK(res1)) {
23706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23707 }
23708 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23709 {
23710 PyThreadState* __tstate = wxPyBeginAllowThreads();
23711 delete arg1;
23712
23713 wxPyEndAllowThreads(__tstate);
23714 if (PyErr_Occurred()) SWIG_fail;
23715 }
23716 resultobj = SWIG_Py_Void();
23717 return resultobj;
23718fail:
23719 return NULL;
23720}
23721
23722
23723SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23724 PyObject *obj;
23725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23726 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23727 return SWIG_Py_Void();
23728}
23729
23730SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23731 return SWIG_Python_InitShadowInstance(args);
23732}
23733
23734SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23735 PyObject *resultobj = 0;
23736 wxDC *arg1 = 0 ;
23737 wxRegion *arg2 = 0 ;
23738 wxDCClipper *result = 0 ;
23739 void *argp1 = 0 ;
23740 int res1 = 0 ;
23741 void *argp2 = 0 ;
23742 int res2 = 0 ;
23743
23744 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23746 if (!SWIG_IsOK(res1)) {
23747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23748 }
23749 if (!argp1) {
23750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23751 }
23752 arg1 = reinterpret_cast< wxDC * >(argp1);
23753 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23754 if (!SWIG_IsOK(res2)) {
23755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23756 }
23757 if (!argp2) {
23758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23759 }
23760 arg2 = reinterpret_cast< wxRegion * >(argp2);
23761 {
23762 PyThreadState* __tstate = wxPyBeginAllowThreads();
23763 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23764 wxPyEndAllowThreads(__tstate);
23765 if (PyErr_Occurred()) SWIG_fail;
23766 }
23767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23768 return resultobj;
23769fail:
23770 return NULL;
23771}
23772
23773
23774SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23775 PyObject *resultobj = 0;
23776 wxDC *arg1 = 0 ;
23777 wxRect *arg2 = 0 ;
23778 wxDCClipper *result = 0 ;
23779 void *argp1 = 0 ;
23780 int res1 = 0 ;
23781 wxRect temp2 ;
23782
23783 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23785 if (!SWIG_IsOK(res1)) {
23786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23787 }
23788 if (!argp1) {
23789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23790 }
23791 arg1 = reinterpret_cast< wxDC * >(argp1);
23792 {
23793 arg2 = &temp2;
23794 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23795 }
23796 {
23797 PyThreadState* __tstate = wxPyBeginAllowThreads();
23798 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23799 wxPyEndAllowThreads(__tstate);
23800 if (PyErr_Occurred()) SWIG_fail;
23801 }
23802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23803 return resultobj;
23804fail:
23805 return NULL;
23806}
23807
23808
23809SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23810 PyObject *resultobj = 0;
23811 wxDC *arg1 = 0 ;
23812 int arg2 ;
23813 int arg3 ;
23814 int arg4 ;
23815 int arg5 ;
23816 wxDCClipper *result = 0 ;
23817 void *argp1 = 0 ;
23818 int res1 = 0 ;
23819 int val2 ;
23820 int ecode2 = 0 ;
23821 int val3 ;
23822 int ecode3 = 0 ;
23823 int val4 ;
23824 int ecode4 = 0 ;
23825 int val5 ;
23826 int ecode5 = 0 ;
23827
23828 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23830 if (!SWIG_IsOK(res1)) {
23831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23832 }
23833 if (!argp1) {
23834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23835 }
23836 arg1 = reinterpret_cast< wxDC * >(argp1);
23837 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23838 if (!SWIG_IsOK(ecode2)) {
23839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23840 }
23841 arg2 = static_cast< int >(val2);
23842 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23843 if (!SWIG_IsOK(ecode3)) {
23844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23845 }
23846 arg3 = static_cast< int >(val3);
23847 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23848 if (!SWIG_IsOK(ecode4)) {
23849 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23850 }
23851 arg4 = static_cast< int >(val4);
23852 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23853 if (!SWIG_IsOK(ecode5)) {
23854 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23855 }
23856 arg5 = static_cast< int >(val5);
23857 {
23858 PyThreadState* __tstate = wxPyBeginAllowThreads();
23859 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23860 wxPyEndAllowThreads(__tstate);
23861 if (PyErr_Occurred()) SWIG_fail;
23862 }
23863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23864 return resultobj;
23865fail:
23866 return NULL;
23867}
23868
23869
23870SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23871 int argc;
23872 PyObject *argv[6];
23873
23874 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23875 --argc;
23876 if (argc == 2) {
23877 int _v = 0;
23878 {
23879 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23880 _v = SWIG_CheckState(res);
23881 }
23882 if (!_v) goto check_1;
23883 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23884 }
23885check_1:
23886
23887 if (argc == 2) {
23888 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23889 }
23890 if (argc == 5) {
23891 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23892 }
23893
23894fail:
23895 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23896 return NULL;
23897}
23898
23899
23900SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23901 PyObject *resultobj = 0;
23902 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23903 void *argp1 = 0 ;
23904 int res1 = 0 ;
23905 PyObject *swig_obj[1] ;
23906
23907 if (!args) SWIG_fail;
23908 swig_obj[0] = args;
23909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23910 if (!SWIG_IsOK(res1)) {
23911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23912 }
23913 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23914 {
23915 PyThreadState* __tstate = wxPyBeginAllowThreads();
23916 delete arg1;
23917
23918 wxPyEndAllowThreads(__tstate);
23919 if (PyErr_Occurred()) SWIG_fail;
23920 }
23921 resultobj = SWIG_Py_Void();
23922 return resultobj;
23923fail:
23924 return NULL;
23925}
23926
23927
23928SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23929 PyObject *obj;
23930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23931 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23932 return SWIG_Py_Void();
23933}
23934
23935SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23936 return SWIG_Python_InitShadowInstance(args);
23937}
23938
24f6c4e8
RD
23939SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23940 PyObject *resultobj = 0;
23941 wxScreenDC *result = 0 ;
23942
23943 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23944 {
23945 if (!wxPyCheckForApp()) SWIG_fail;
23946 PyThreadState* __tstate = wxPyBeginAllowThreads();
23947 result = (wxScreenDC *)new wxScreenDC();
23948 wxPyEndAllowThreads(__tstate);
23949 if (PyErr_Occurred()) SWIG_fail;
23950 }
23951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23952 return resultobj;
23953fail:
23954 return NULL;
23955}
23956
23957
23958SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23959 PyObject *resultobj = 0;
23960 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23961 wxWindow *arg2 = (wxWindow *) 0 ;
23962 bool result;
23963 void *argp1 = 0 ;
23964 int res1 = 0 ;
23965 void *argp2 = 0 ;
23966 int res2 = 0 ;
23967 PyObject * obj0 = 0 ;
23968 PyObject * obj1 = 0 ;
23969 char * kwnames[] = {
23970 (char *) "self",(char *) "window", NULL
23971 };
23972
23973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23975 if (!SWIG_IsOK(res1)) {
23976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23977 }
23978 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23979 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23980 if (!SWIG_IsOK(res2)) {
23981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23982 }
23983 arg2 = reinterpret_cast< wxWindow * >(argp2);
23984 {
23985 PyThreadState* __tstate = wxPyBeginAllowThreads();
23986 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23987 wxPyEndAllowThreads(__tstate);
23988 if (PyErr_Occurred()) SWIG_fail;
23989 }
23990 {
23991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23992 }
23993 return resultobj;
23994fail:
23995 return NULL;
23996}
23997
23998
23999SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24000 PyObject *resultobj = 0;
24001 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24002 wxRect *arg2 = (wxRect *) NULL ;
24003 bool result;
24004 void *argp1 = 0 ;
24005 int res1 = 0 ;
24006 void *argp2 = 0 ;
24007 int res2 = 0 ;
24008 PyObject * obj0 = 0 ;
24009 PyObject * obj1 = 0 ;
24010 char * kwnames[] = {
24011 (char *) "self",(char *) "rect", NULL
24012 };
24013
24014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24016 if (!SWIG_IsOK(res1)) {
24017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24018 }
24019 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24020 if (obj1) {
24021 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24022 if (!SWIG_IsOK(res2)) {
24023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24024 }
24025 arg2 = reinterpret_cast< wxRect * >(argp2);
24026 }
24027 {
24028 PyThreadState* __tstate = wxPyBeginAllowThreads();
24029 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24030 wxPyEndAllowThreads(__tstate);
24031 if (PyErr_Occurred()) SWIG_fail;
24032 }
24033 {
24034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24035 }
24036 return resultobj;
24037fail:
24038 return NULL;
24039}
24040
24041
24042SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24043 PyObject *resultobj = 0;
24044 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24045 bool result;
24046 void *argp1 = 0 ;
24047 int res1 = 0 ;
24048 PyObject *swig_obj[1] ;
24049
24050 if (!args) SWIG_fail;
24051 swig_obj[0] = args;
24052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24053 if (!SWIG_IsOK(res1)) {
24054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24055 }
24056 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24057 {
24058 PyThreadState* __tstate = wxPyBeginAllowThreads();
24059 result = (bool)(arg1)->EndDrawingOnTop();
24060 wxPyEndAllowThreads(__tstate);
24061 if (PyErr_Occurred()) SWIG_fail;
24062 }
24063 {
24064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24065 }
24066 return resultobj;
24067fail:
24068 return NULL;
24069}
24070
24071
24072SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24073 PyObject *obj;
24074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24075 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24076 return SWIG_Py_Void();
24077}
24078
24079SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24080 return SWIG_Python_InitShadowInstance(args);
24081}
24082
24083SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24084 PyObject *resultobj = 0;
24085 wxWindow *arg1 = (wxWindow *) 0 ;
24086 wxWindowDC *result = 0 ;
24087 void *argp1 = 0 ;
24088 int res1 = 0 ;
24089 PyObject * obj0 = 0 ;
24090 char * kwnames[] = {
24091 (char *) "win", NULL
24092 };
24093
24094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24096 if (!SWIG_IsOK(res1)) {
24097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24098 }
24099 arg1 = reinterpret_cast< wxWindow * >(argp1);
24100 {
24101 if (!wxPyCheckForApp()) SWIG_fail;
24102 PyThreadState* __tstate = wxPyBeginAllowThreads();
24103 result = (wxWindowDC *)new wxWindowDC(arg1);
24104 wxPyEndAllowThreads(__tstate);
24105 if (PyErr_Occurred()) SWIG_fail;
24106 }
24107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24108 return resultobj;
24109fail:
24110 return NULL;
24111}
24112
24113
24114SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24115 PyObject *obj;
24116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24117 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24118 return SWIG_Py_Void();
24119}
24120
24121SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24122 return SWIG_Python_InitShadowInstance(args);
24123}
24124
24125SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24126 PyObject *resultobj = 0;
24127 wxWindow *arg1 = (wxWindow *) 0 ;
24128 wxClientDC *result = 0 ;
24129 void *argp1 = 0 ;
24130 int res1 = 0 ;
24131 PyObject * obj0 = 0 ;
24132 char * kwnames[] = {
24133 (char *) "win", NULL
24134 };
24135
24136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24138 if (!SWIG_IsOK(res1)) {
24139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24140 }
24141 arg1 = reinterpret_cast< wxWindow * >(argp1);
24142 {
24143 if (!wxPyCheckForApp()) SWIG_fail;
24144 PyThreadState* __tstate = wxPyBeginAllowThreads();
24145 result = (wxClientDC *)new wxClientDC(arg1);
24146 wxPyEndAllowThreads(__tstate);
24147 if (PyErr_Occurred()) SWIG_fail;
24148 }
24149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24150 return resultobj;
24151fail:
24152 return NULL;
24153}
24154
24155
24156SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24157 PyObject *obj;
24158 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24159 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24160 return SWIG_Py_Void();
24161}
24162
24163SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24164 return SWIG_Python_InitShadowInstance(args);
24165}
24166
24167SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24168 PyObject *resultobj = 0;
24169 wxWindow *arg1 = (wxWindow *) 0 ;
24170 wxPaintDC *result = 0 ;
24171 void *argp1 = 0 ;
24172 int res1 = 0 ;
24173 PyObject * obj0 = 0 ;
24174 char * kwnames[] = {
24175 (char *) "win", NULL
24176 };
24177
24178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24180 if (!SWIG_IsOK(res1)) {
24181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24182 }
24183 arg1 = reinterpret_cast< wxWindow * >(argp1);
24184 {
24185 if (!wxPyCheckForApp()) SWIG_fail;
24186 PyThreadState* __tstate = wxPyBeginAllowThreads();
24187 result = (wxPaintDC *)new wxPaintDC(arg1);
24188 wxPyEndAllowThreads(__tstate);
24189 if (PyErr_Occurred()) SWIG_fail;
24190 }
24191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24192 return resultobj;
24193fail:
24194 return NULL;
24195}
24196
24197
24198SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24199 PyObject *obj;
24200 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24201 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24202 return SWIG_Py_Void();
24203}
24204
24205SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24206 return SWIG_Python_InitShadowInstance(args);
24207}
24208
26c4d26f
RD
24209SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24210 PyObject *resultobj = 0;
24211 wxBitmap &arg1_defvalue = wxNullBitmap ;
24212 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24213 wxMemoryDC *result = 0 ;
24214 void *argp1 = 0 ;
24215 int res1 = 0 ;
24216 PyObject * obj0 = 0 ;
24217 char * kwnames[] = {
24218 (char *) "bitmap", NULL
24219 };
24220
24221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24222 if (obj0) {
24223 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24224 if (!SWIG_IsOK(res1)) {
24225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24226 }
24227 if (!argp1) {
24228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24229 }
24230 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24231 }
24232 {
24233 if (!wxPyCheckForApp()) SWIG_fail;
24234 PyThreadState* __tstate = wxPyBeginAllowThreads();
24235 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24236 wxPyEndAllowThreads(__tstate);
24237 if (PyErr_Occurred()) SWIG_fail;
24238 }
24239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24240 return resultobj;
24241fail:
24242 return NULL;
24243}
24244
24245
24246SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24247 PyObject *resultobj = 0;
24248 wxDC *arg1 = (wxDC *) 0 ;
24249 wxMemoryDC *result = 0 ;
24250 void *argp1 = 0 ;
24251 int res1 = 0 ;
24252 PyObject * obj0 = 0 ;
24253 char * kwnames[] = {
24254 (char *) "oldDC", NULL
24255 };
24256
24257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24259 if (!SWIG_IsOK(res1)) {
24260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24261 }
24262 arg1 = reinterpret_cast< wxDC * >(argp1);
24263 {
24264 if (!wxPyCheckForApp()) SWIG_fail;
24265 PyThreadState* __tstate = wxPyBeginAllowThreads();
24266 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24267 wxPyEndAllowThreads(__tstate);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 }
24270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24271 return resultobj;
24272fail:
24273 return NULL;
24274}
24275
24276
24277SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24278 PyObject *resultobj = 0;
24279 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24280 wxBitmap *arg2 = 0 ;
24281 void *argp1 = 0 ;
24282 int res1 = 0 ;
24283 void *argp2 = 0 ;
24284 int res2 = 0 ;
24285 PyObject * obj0 = 0 ;
24286 PyObject * obj1 = 0 ;
24287 char * kwnames[] = {
24288 (char *) "self",(char *) "bitmap", NULL
24289 };
24290
24291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24293 if (!SWIG_IsOK(res1)) {
24294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24295 }
24296 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24298 if (!SWIG_IsOK(res2)) {
24299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24300 }
24301 if (!argp2) {
24302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24303 }
24304 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24305 {
24306 PyThreadState* __tstate = wxPyBeginAllowThreads();
24307 (arg1)->SelectObject(*arg2);
24308 wxPyEndAllowThreads(__tstate);
24309 if (PyErr_Occurred()) SWIG_fail;
24310 }
24311 resultobj = SWIG_Py_Void();
24312 return resultobj;
24313fail:
24314 return NULL;
24315}
24316
24317
24318SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24319 PyObject *resultobj = 0;
24320 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24321 wxBitmap *arg2 = 0 ;
24322 void *argp1 = 0 ;
24323 int res1 = 0 ;
24324 void *argp2 = 0 ;
24325 int res2 = 0 ;
24326 PyObject * obj0 = 0 ;
24327 PyObject * obj1 = 0 ;
24328 char * kwnames[] = {
24329 (char *) "self",(char *) "bmp", NULL
24330 };
24331
24332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24334 if (!SWIG_IsOK(res1)) {
24335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24336 }
24337 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24339 if (!SWIG_IsOK(res2)) {
24340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24341 }
24342 if (!argp2) {
24343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24344 }
24345 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24346 {
24347 PyThreadState* __tstate = wxPyBeginAllowThreads();
24348 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24349 wxPyEndAllowThreads(__tstate);
24350 if (PyErr_Occurred()) SWIG_fail;
24351 }
24352 resultobj = SWIG_Py_Void();
24353 return resultobj;
24354fail:
24355 return NULL;
24356}
24357
24358
24359SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24360 PyObject *obj;
24361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24362 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24363 return SWIG_Py_Void();
24364}
24365
24366SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24367 return SWIG_Python_InitShadowInstance(args);
24368}
24369
1bd55598
RD
24370SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24371 PyObject *resultobj = 0;
24372 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24373 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24374 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24375 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24376 wxBufferedDC *result = 0 ;
24377 void *argp1 = 0 ;
24378 int res1 = 0 ;
24379 void *argp2 = 0 ;
24380 int res2 = 0 ;
24381 int val3 ;
24382 int ecode3 = 0 ;
24383
24384 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24386 if (!SWIG_IsOK(res1)) {
24387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24388 }
24389 arg1 = reinterpret_cast< wxDC * >(argp1);
24390 if (swig_obj[1]) {
b6df5cf9 24391 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24392 if (!SWIG_IsOK(res2)) {
b6df5cf9 24393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24394 }
1bd55598 24395 if (!argp2) {
b6df5cf9 24396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24397 }
1bd55598
RD
24398 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24399 }
24400 if (swig_obj[2]) {
24401 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24402 if (!SWIG_IsOK(ecode3)) {
24403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24404 }
24405 arg3 = static_cast< int >(val3);
24406 }
24407 {
24408 if (!wxPyCheckForApp()) SWIG_fail;
24409 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24410 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
1bd55598
RD
24411 wxPyEndAllowThreads(__tstate);
24412 if (PyErr_Occurred()) SWIG_fail;
24413 }
24414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24415 return resultobj;
24416fail:
24417 return NULL;
24418}
24419
24420
24421SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24422 PyObject *resultobj = 0;
24423 wxDC *arg1 = (wxDC *) 0 ;
24424 wxSize *arg2 = 0 ;
24425 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24426 wxBufferedDC *result = 0 ;
24427 void *argp1 = 0 ;
24428 int res1 = 0 ;
24429 wxSize temp2 ;
24430 int val3 ;
24431 int ecode3 = 0 ;
24432
24433 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24435 if (!SWIG_IsOK(res1)) {
24436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24437 }
24438 arg1 = reinterpret_cast< wxDC * >(argp1);
24439 {
24440 arg2 = &temp2;
24441 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24442 }
24443 if (swig_obj[2]) {
24444 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24445 if (!SWIG_IsOK(ecode3)) {
24446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24447 }
24448 arg3 = static_cast< int >(val3);
24449 }
24450 {
24451 if (!wxPyCheckForApp()) SWIG_fail;
24452 PyThreadState* __tstate = wxPyBeginAllowThreads();
24453 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24454 wxPyEndAllowThreads(__tstate);
24455 if (PyErr_Occurred()) SWIG_fail;
24456 }
24457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24458 return resultobj;
24459fail:
24460 return NULL;
24461}
24462
24463
24464SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24465 int argc;
8e99bda9 24466 PyObject *argv[4];
1bd55598 24467
8e99bda9 24468 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24469 --argc;
24470 if ((argc >= 1) && (argc <= 3)) {
24471 int _v = 0;
24472 if (argc > 1) {
24473 {
b6df5cf9
RD
24474 void *vptr = 0;
24475 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
1bd55598
RD
24476 _v = SWIG_CheckState(res);
24477 }
24478 if (!_v) goto check_1;
36ed4f51 24479 }
1bd55598
RD
24480 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24481 }
24482check_1:
24483
24484 if ((argc >= 2) && (argc <= 3)) {
24485 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24486 }
24487
24488fail:
24489 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24490 return NULL;
24491}
24492
24493
24494SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24495 PyObject *resultobj = 0;
24496 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24497 void *argp1 = 0 ;
24498 int res1 = 0 ;
24499 PyObject *swig_obj[1] ;
24500
24501 if (!args) SWIG_fail;
24502 swig_obj[0] = args;
24503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24504 if (!SWIG_IsOK(res1)) {
24505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24506 }
24507 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24508 {
24509 PyThreadState* __tstate = wxPyBeginAllowThreads();
24510 delete arg1;
24511
24512 wxPyEndAllowThreads(__tstate);
24513 if (PyErr_Occurred()) SWIG_fail;
24514 }
24515 resultobj = SWIG_Py_Void();
24516 return resultobj;
24517fail:
24518 return NULL;
24519}
24520
24521
24522SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24523 PyObject *resultobj = 0;
24524 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24525 void *argp1 = 0 ;
24526 int res1 = 0 ;
24527 PyObject *swig_obj[1] ;
24528
24529 if (!args) SWIG_fail;
24530 swig_obj[0] = args;
24531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24532 if (!SWIG_IsOK(res1)) {
24533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24534 }
24535 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24536 {
24537 PyThreadState* __tstate = wxPyBeginAllowThreads();
24538 (arg1)->UnMask();
24539 wxPyEndAllowThreads(__tstate);
24540 if (PyErr_Occurred()) SWIG_fail;
24541 }
24542 resultobj = SWIG_Py_Void();
24543 return resultobj;
24544fail:
24545 return NULL;
24546}
24547
24548
b6df5cf9
RD
24549SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24550 PyObject *resultobj = 0;
24551 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24552 int arg2 ;
24553 void *argp1 = 0 ;
24554 int res1 = 0 ;
24555 int val2 ;
24556 int ecode2 = 0 ;
24557 PyObject * obj0 = 0 ;
24558 PyObject * obj1 = 0 ;
24559 char * kwnames[] = {
24560 (char *) "self",(char *) "style", NULL
24561 };
24562
24563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24565 if (!SWIG_IsOK(res1)) {
24566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24567 }
24568 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24569 ecode2 = SWIG_AsVal_int(obj1, &val2);
24570 if (!SWIG_IsOK(ecode2)) {
24571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24572 }
24573 arg2 = static_cast< int >(val2);
24574 {
24575 PyThreadState* __tstate = wxPyBeginAllowThreads();
24576 (arg1)->SetStyle(arg2);
24577 wxPyEndAllowThreads(__tstate);
24578 if (PyErr_Occurred()) SWIG_fail;
24579 }
24580 resultobj = SWIG_Py_Void();
24581 return resultobj;
24582fail:
24583 return NULL;
24584}
24585
24586
24587SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24588 PyObject *resultobj = 0;
24589 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24590 int result;
24591 void *argp1 = 0 ;
24592 int res1 = 0 ;
24593 PyObject *swig_obj[1] ;
24594
24595 if (!args) SWIG_fail;
24596 swig_obj[0] = args;
24597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24598 if (!SWIG_IsOK(res1)) {
24599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24600 }
24601 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24602 {
24603 PyThreadState* __tstate = wxPyBeginAllowThreads();
24604 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24605 wxPyEndAllowThreads(__tstate);
24606 if (PyErr_Occurred()) SWIG_fail;
24607 }
24608 resultobj = SWIG_From_int(static_cast< int >(result));
24609 return resultobj;
24610fail:
24611 return NULL;
24612}
24613
24614
1bd55598
RD
24615SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24616 PyObject *obj;
24617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24618 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24619 return SWIG_Py_Void();
24620}
24621
24622SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24623 return SWIG_Python_InitShadowInstance(args);
24624}
24625
24626SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24627 PyObject *resultobj = 0;
24628 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24629 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24630 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24631 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24632 wxBufferedPaintDC *result = 0 ;
24633 void *argp1 = 0 ;
24634 int res1 = 0 ;
24635 void *argp2 = 0 ;
24636 int res2 = 0 ;
24637 int val3 ;
24638 int ecode3 = 0 ;
24639 PyObject * obj0 = 0 ;
24640 PyObject * obj1 = 0 ;
24641 PyObject * obj2 = 0 ;
24642 char * kwnames[] = {
24643 (char *) "window",(char *) "buffer",(char *) "style", NULL
24644 };
24645
24646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24648 if (!SWIG_IsOK(res1)) {
24649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24650 }
24651 arg1 = reinterpret_cast< wxWindow * >(argp1);
24652 if (obj1) {
b6df5cf9 24653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24654 if (!SWIG_IsOK(res2)) {
b6df5cf9 24655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24656 }
1bd55598 24657 if (!argp2) {
b6df5cf9 24658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24659 }
1bd55598
RD
24660 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24661 }
24662 if (obj2) {
24663 ecode3 = SWIG_AsVal_int(obj2, &val3);
24664 if (!SWIG_IsOK(ecode3)) {
24665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24666 }
24667 arg3 = static_cast< int >(val3);
24668 }
24669 {
24670 if (!wxPyCheckForApp()) SWIG_fail;
24671 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24672 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
1bd55598
RD
24673 wxPyEndAllowThreads(__tstate);
24674 if (PyErr_Occurred()) SWIG_fail;
24675 }
24676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24677 return resultobj;
24678fail:
24679 return NULL;
24680}
24681
24682
24683SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24684 PyObject *obj;
24685 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24686 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24687 return SWIG_Py_Void();
24688}
24689
24690SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24691 return SWIG_Python_InitShadowInstance(args);
24692}
24693
24f6c4e8 24694SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24695 PyObject *resultobj = 0;
24696 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24697 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24698 void *argp1 = 0 ;
24699 int res1 = 0 ;
24700 PyObject * obj0 = 0 ;
24701 char * kwnames[] = {
24702 (char *) "win", NULL
24703 };
24704
24f6c4e8 24705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24707 if (!SWIG_IsOK(res1)) {
24f6c4e8 24708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24709 }
24710 arg1 = reinterpret_cast< wxWindow * >(argp1);
24711 {
1bd55598 24712 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24713 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24714 wxPyEndAllowThreads(__tstate);
24715 if (PyErr_Occurred()) SWIG_fail;
24716 }
24f6c4e8 24717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24718 return resultobj;
24719fail:
24720 return NULL;
24721}
24722
24723
24f6c4e8 24724SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24725 PyObject *obj;
24726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24727 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24728 return SWIG_Py_Void();
24729}
24730
24f6c4e8 24731SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24732 return SWIG_Python_InitShadowInstance(args);
24733}
24734
8e99bda9
RD
24735SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24736 PyObject *resultobj = 0;
24737 wxWindow *arg1 = (wxWindow *) 0 ;
24738 wxDC *result = 0 ;
24739 void *argp1 = 0 ;
24740 int res1 = 0 ;
24741 PyObject * obj0 = 0 ;
24742 char * kwnames[] = {
24743 (char *) "window", NULL
24744 };
24745
24746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24748 if (!SWIG_IsOK(res1)) {
24749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24750 }
24751 arg1 = reinterpret_cast< wxWindow * >(argp1);
24752 {
24753 PyThreadState* __tstate = wxPyBeginAllowThreads();
24754 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24755 wxPyEndAllowThreads(__tstate);
24756 if (PyErr_Occurred()) SWIG_fail;
24757 }
24758 {
24759 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24760 }
24761 return resultobj;
24762fail:
24763 return NULL;
24764}
24765
24766
1bd55598
RD
24767SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24768 PyObject *resultobj = 0;
24769 wxDC *arg1 = 0 ;
24770 bool arg2 ;
24771 wxMirrorDC *result = 0 ;
24772 void *argp1 = 0 ;
24773 int res1 = 0 ;
24774 bool val2 ;
24775 int ecode2 = 0 ;
24776 PyObject * obj0 = 0 ;
24777 PyObject * obj1 = 0 ;
24778 char * kwnames[] = {
24779 (char *) "dc",(char *) "mirror", NULL
24780 };
24781
24782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24783 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24784 if (!SWIG_IsOK(res1)) {
24785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24786 }
24787 if (!argp1) {
24788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24789 }
24790 arg1 = reinterpret_cast< wxDC * >(argp1);
24791 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24792 if (!SWIG_IsOK(ecode2)) {
24793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24794 }
24795 arg2 = static_cast< bool >(val2);
24796 {
24797 if (!wxPyCheckForApp()) SWIG_fail;
24798 PyThreadState* __tstate = wxPyBeginAllowThreads();
24799 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24800 wxPyEndAllowThreads(__tstate);
24801 if (PyErr_Occurred()) SWIG_fail;
24802 }
24803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24804 return resultobj;
24805fail:
24806 return NULL;
24807}
24808
24809
24810SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24811 PyObject *obj;
24812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24813 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24814 return SWIG_Py_Void();
24815}
24816
24817SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24818 return SWIG_Python_InitShadowInstance(args);
24819}
24820
24821SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24822 PyObject *resultobj = 0;
24823 wxPrintData *arg1 = 0 ;
24824 wxPostScriptDC *result = 0 ;
24825 void *argp1 = 0 ;
24826 int res1 = 0 ;
24827 PyObject * obj0 = 0 ;
24828 char * kwnames[] = {
24829 (char *) "printData", NULL
24830 };
24831
24832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24833 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24834 if (!SWIG_IsOK(res1)) {
24835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24836 }
24837 if (!argp1) {
24838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24839 }
24840 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24841 {
24842 if (!wxPyCheckForApp()) SWIG_fail;
24843 PyThreadState* __tstate = wxPyBeginAllowThreads();
24844 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24845 wxPyEndAllowThreads(__tstate);
24846 if (PyErr_Occurred()) SWIG_fail;
24847 }
24848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24849 return resultobj;
24850fail:
24851 return NULL;
24852}
24853
24854
24855SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24856 PyObject *resultobj = 0;
24857 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24858 wxPrintData *result = 0 ;
24859 void *argp1 = 0 ;
24860 int res1 = 0 ;
24861 PyObject *swig_obj[1] ;
24862
24863 if (!args) SWIG_fail;
24864 swig_obj[0] = args;
24865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24866 if (!SWIG_IsOK(res1)) {
24867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24868 }
24869 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24870 {
24871 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24872 {
1bd55598
RD
24873 wxPrintData &_result_ref = (arg1)->GetPrintData();
24874 result = (wxPrintData *) &_result_ref;
e2950dbb 24875 }
1bd55598
RD
24876 wxPyEndAllowThreads(__tstate);
24877 if (PyErr_Occurred()) SWIG_fail;
24878 }
24879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24880 return resultobj;
24881fail:
24882 return NULL;
24883}
24884
24885
24886SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24887 PyObject *resultobj = 0;
24888 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24889 wxPrintData *arg2 = 0 ;
24890 void *argp1 = 0 ;
24891 int res1 = 0 ;
24892 void *argp2 = 0 ;
24893 int res2 = 0 ;
24894 PyObject * obj0 = 0 ;
24895 PyObject * obj1 = 0 ;
24896 char * kwnames[] = {
24897 (char *) "self",(char *) "data", NULL
24898 };
24899
24900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24902 if (!SWIG_IsOK(res1)) {
24903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24904 }
24905 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24906 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24907 if (!SWIG_IsOK(res2)) {
24908 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24909 }
24910 if (!argp2) {
24911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24912 }
24913 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24914 {
24915 PyThreadState* __tstate = wxPyBeginAllowThreads();
24916 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24917 wxPyEndAllowThreads(__tstate);
24918 if (PyErr_Occurred()) SWIG_fail;
24919 }
24920 resultobj = SWIG_Py_Void();
24921 return resultobj;
24922fail:
24923 return NULL;
24924}
24925
24926
24927SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24928 PyObject *resultobj = 0;
24929 int arg1 ;
24930 int val1 ;
24931 int ecode1 = 0 ;
24932 PyObject * obj0 = 0 ;
24933 char * kwnames[] = {
24934 (char *) "ppi", NULL
24935 };
24936
24937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24938 ecode1 = SWIG_AsVal_int(obj0, &val1);
24939 if (!SWIG_IsOK(ecode1)) {
24940 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24941 }
24942 arg1 = static_cast< int >(val1);
24943 {
24944 PyThreadState* __tstate = wxPyBeginAllowThreads();
24945 wxPostScriptDC::SetResolution(arg1);
24946 wxPyEndAllowThreads(__tstate);
24947 if (PyErr_Occurred()) SWIG_fail;
24948 }
24949 resultobj = SWIG_Py_Void();
24950 return resultobj;
24951fail:
24952 return NULL;
24953}
24954
24955
24956SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24957 PyObject *resultobj = 0;
24958 int result;
24959
24960 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24961 {
24962 PyThreadState* __tstate = wxPyBeginAllowThreads();
24963 result = (int)wxPostScriptDC::GetResolution();
24964 wxPyEndAllowThreads(__tstate);
24965 if (PyErr_Occurred()) SWIG_fail;
24966 }
24967 resultobj = SWIG_From_int(static_cast< int >(result));
24968 return resultobj;
24969fail:
24970 return NULL;
24971}
24972
24973
24974SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24975 PyObject *obj;
24976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24977 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24978 return SWIG_Py_Void();
24979}
24980
24981SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24982 return SWIG_Python_InitShadowInstance(args);
24983}
24984
24985SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24986 PyObject *resultobj = 0;
24987 wxString const &arg1_defvalue = wxPyEmptyString ;
24988 wxString *arg1 = (wxString *) &arg1_defvalue ;
24989 wxMetaFile *result = 0 ;
24990 bool temp1 = false ;
24991 PyObject * obj0 = 0 ;
24992 char * kwnames[] = {
24993 (char *) "filename", NULL
24994 };
24995
24996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24997 if (obj0) {
36ed4f51 24998 {
1bd55598
RD
24999 arg1 = wxString_in_helper(obj0);
25000 if (arg1 == NULL) SWIG_fail;
25001 temp1 = true;
36ed4f51 25002 }
1bd55598
RD
25003 }
25004 {
25005 if (!wxPyCheckForApp()) SWIG_fail;
25006 PyThreadState* __tstate = wxPyBeginAllowThreads();
25007 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25008 wxPyEndAllowThreads(__tstate);
25009 if (PyErr_Occurred()) SWIG_fail;
25010 }
25011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25012 {
25013 if (temp1)
25014 delete arg1;
25015 }
25016 return resultobj;
25017fail:
25018 {
25019 if (temp1)
25020 delete arg1;
25021 }
25022 return NULL;
25023}
25024
25025
25026SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25027 PyObject *resultobj = 0;
25028 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25029 void *argp1 = 0 ;
25030 int res1 = 0 ;
25031 PyObject *swig_obj[1] ;
25032
25033 if (!args) SWIG_fail;
25034 swig_obj[0] = args;
25035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25036 if (!SWIG_IsOK(res1)) {
25037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25038 }
25039 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25040 {
25041 PyThreadState* __tstate = wxPyBeginAllowThreads();
25042 delete arg1;
25043
25044 wxPyEndAllowThreads(__tstate);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 resultobj = SWIG_Py_Void();
25048 return resultobj;
25049fail:
25050 return NULL;
25051}
25052
25053
b39fe951 25054SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25055 PyObject *resultobj = 0;
25056 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25057 bool result;
25058 void *argp1 = 0 ;
25059 int res1 = 0 ;
25060 PyObject *swig_obj[1] ;
25061
25062 if (!args) SWIG_fail;
25063 swig_obj[0] = args;
25064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25065 if (!SWIG_IsOK(res1)) {
b39fe951 25066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
25067 }
25068 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25069 {
25070 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25071 result = (bool)(arg1)->IsOk();
1bd55598
RD
25072 wxPyEndAllowThreads(__tstate);
25073 if (PyErr_Occurred()) SWIG_fail;
25074 }
25075 {
25076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25077 }
25078 return resultobj;
25079fail:
25080 return NULL;
25081}
25082
25083
25084SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25085 PyObject *resultobj = 0;
25086 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25087 int arg2 = (int) 0 ;
25088 int arg3 = (int) 0 ;
25089 bool result;
25090 void *argp1 = 0 ;
25091 int res1 = 0 ;
25092 int val2 ;
25093 int ecode2 = 0 ;
25094 int val3 ;
25095 int ecode3 = 0 ;
25096 PyObject * obj0 = 0 ;
25097 PyObject * obj1 = 0 ;
25098 PyObject * obj2 = 0 ;
25099 char * kwnames[] = {
25100 (char *) "self",(char *) "width",(char *) "height", NULL
25101 };
25102
25103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25105 if (!SWIG_IsOK(res1)) {
25106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25107 }
25108 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25109 if (obj1) {
25110 ecode2 = SWIG_AsVal_int(obj1, &val2);
25111 if (!SWIG_IsOK(ecode2)) {
25112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25113 }
25114 arg2 = static_cast< int >(val2);
25115 }
25116 if (obj2) {
25117 ecode3 = SWIG_AsVal_int(obj2, &val3);
25118 if (!SWIG_IsOK(ecode3)) {
25119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25120 }
25121 arg3 = static_cast< int >(val3);
25122 }
25123 {
25124 PyThreadState* __tstate = wxPyBeginAllowThreads();
25125 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25126 wxPyEndAllowThreads(__tstate);
25127 if (PyErr_Occurred()) SWIG_fail;
25128 }
25129 {
25130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25131 }
25132 return resultobj;
25133fail:
25134 return NULL;
25135}
25136
25137
25138SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25139 PyObject *resultobj = 0;
25140 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25141 wxSize result;
25142 void *argp1 = 0 ;
25143 int res1 = 0 ;
25144 PyObject *swig_obj[1] ;
25145
25146 if (!args) SWIG_fail;
25147 swig_obj[0] = args;
25148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25149 if (!SWIG_IsOK(res1)) {
25150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25151 }
25152 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25153 {
25154 PyThreadState* __tstate = wxPyBeginAllowThreads();
25155 result = (arg1)->GetSize();
25156 wxPyEndAllowThreads(__tstate);
25157 if (PyErr_Occurred()) SWIG_fail;
25158 }
25159 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25160 return resultobj;
25161fail:
25162 return NULL;
25163}
25164
25165
25166SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25167 PyObject *resultobj = 0;
25168 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25169 int result;
25170 void *argp1 = 0 ;
25171 int res1 = 0 ;
25172 PyObject *swig_obj[1] ;
25173
25174 if (!args) SWIG_fail;
25175 swig_obj[0] = args;
25176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25177 if (!SWIG_IsOK(res1)) {
25178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25179 }
25180 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25181 {
25182 PyThreadState* __tstate = wxPyBeginAllowThreads();
25183 result = (int)(arg1)->GetWidth();
25184 wxPyEndAllowThreads(__tstate);
25185 if (PyErr_Occurred()) SWIG_fail;
25186 }
25187 resultobj = SWIG_From_int(static_cast< int >(result));
25188 return resultobj;
25189fail:
25190 return NULL;
25191}
25192
25193
25194SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25195 PyObject *resultobj = 0;
25196 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25197 int result;
25198 void *argp1 = 0 ;
25199 int res1 = 0 ;
25200 PyObject *swig_obj[1] ;
25201
25202 if (!args) SWIG_fail;
25203 swig_obj[0] = args;
25204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25205 if (!SWIG_IsOK(res1)) {
25206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25207 }
25208 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25209 {
25210 PyThreadState* __tstate = wxPyBeginAllowThreads();
25211 result = (int)(arg1)->GetHeight();
25212 wxPyEndAllowThreads(__tstate);
25213 if (PyErr_Occurred()) SWIG_fail;
25214 }
25215 resultobj = SWIG_From_int(static_cast< int >(result));
25216 return resultobj;
25217fail:
25218 return NULL;
25219}
25220
25221
25222SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25223 PyObject *obj;
25224 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25225 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25226 return SWIG_Py_Void();
25227}
25228
25229SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25230 return SWIG_Python_InitShadowInstance(args);
25231}
25232
25233SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25234 PyObject *resultobj = 0;
25235 wxString const &arg1_defvalue = wxPyEmptyString ;
25236 wxString *arg1 = (wxString *) &arg1_defvalue ;
25237 int arg2 = (int) 0 ;
25238 int arg3 = (int) 0 ;
25239 wxString const &arg4_defvalue = wxPyEmptyString ;
25240 wxString *arg4 = (wxString *) &arg4_defvalue ;
25241 wxMetaFileDC *result = 0 ;
25242 bool temp1 = false ;
25243 int val2 ;
25244 int ecode2 = 0 ;
25245 int val3 ;
25246 int ecode3 = 0 ;
25247 bool temp4 = false ;
25248 PyObject * obj0 = 0 ;
25249 PyObject * obj1 = 0 ;
25250 PyObject * obj2 = 0 ;
25251 PyObject * obj3 = 0 ;
25252 char * kwnames[] = {
25253 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25254 };
25255
25256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25257 if (obj0) {
36ed4f51 25258 {
1bd55598
RD
25259 arg1 = wxString_in_helper(obj0);
25260 if (arg1 == NULL) SWIG_fail;
25261 temp1 = true;
36ed4f51 25262 }
1bd55598
RD
25263 }
25264 if (obj1) {
25265 ecode2 = SWIG_AsVal_int(obj1, &val2);
25266 if (!SWIG_IsOK(ecode2)) {
25267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25268 }
25269 arg2 = static_cast< int >(val2);
25270 }
25271 if (obj2) {
25272 ecode3 = SWIG_AsVal_int(obj2, &val3);
25273 if (!SWIG_IsOK(ecode3)) {
25274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25275 }
25276 arg3 = static_cast< int >(val3);
25277 }
25278 if (obj3) {
36ed4f51 25279 {
1bd55598
RD
25280 arg4 = wxString_in_helper(obj3);
25281 if (arg4 == NULL) SWIG_fail;
25282 temp4 = true;
36ed4f51 25283 }
1bd55598
RD
25284 }
25285 {
25286 if (!wxPyCheckForApp()) SWIG_fail;
25287 PyThreadState* __tstate = wxPyBeginAllowThreads();
25288 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25289 wxPyEndAllowThreads(__tstate);
25290 if (PyErr_Occurred()) SWIG_fail;
25291 }
25292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25293 {
25294 if (temp1)
25295 delete arg1;
25296 }
25297 {
25298 if (temp4)
25299 delete arg4;
25300 }
25301 return resultobj;
25302fail:
25303 {
25304 if (temp1)
25305 delete arg1;
25306 }
25307 {
25308 if (temp4)
25309 delete arg4;
25310 }
25311 return NULL;
25312}
25313
25314
25315SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25316 PyObject *resultobj = 0;
25317 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25318 wxMetaFile *result = 0 ;
25319 void *argp1 = 0 ;
25320 int res1 = 0 ;
25321 PyObject *swig_obj[1] ;
25322
25323 if (!args) SWIG_fail;
25324 swig_obj[0] = args;
25325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25326 if (!SWIG_IsOK(res1)) {
25327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25328 }
25329 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25330 {
25331 PyThreadState* __tstate = wxPyBeginAllowThreads();
25332 result = (wxMetaFile *)(arg1)->Close();
25333 wxPyEndAllowThreads(__tstate);
25334 if (PyErr_Occurred()) SWIG_fail;
25335 }
25336 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25337 return resultobj;
25338fail:
25339 return NULL;
25340}
25341
25342
25343SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25344 PyObject *obj;
25345 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25346 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25347 return SWIG_Py_Void();
25348}
25349
25350SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25351 return SWIG_Python_InitShadowInstance(args);
25352}
25353
25354SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25355 PyObject *resultobj = 0;
25356 wxPrintData *arg1 = 0 ;
25357 wxPrinterDC *result = 0 ;
25358 void *argp1 = 0 ;
25359 int res1 = 0 ;
25360 PyObject * obj0 = 0 ;
25361 char * kwnames[] = {
25362 (char *) "printData", NULL
25363 };
25364
25365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25366 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25367 if (!SWIG_IsOK(res1)) {
25368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25369 }
25370 if (!argp1) {
25371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25372 }
25373 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25374 {
25375 if (!wxPyCheckForApp()) SWIG_fail;
25376 PyThreadState* __tstate = wxPyBeginAllowThreads();
25377 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25378 wxPyEndAllowThreads(__tstate);
25379 if (PyErr_Occurred()) SWIG_fail;
25380 }
25381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25382 return resultobj;
25383fail:
25384 return NULL;
25385}
25386
25387
25388SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25389 PyObject *obj;
25390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25391 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25392 return SWIG_Py_Void();
25393}
25394
25395SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25396 return SWIG_Python_InitShadowInstance(args);
25397}
25398
70d7cb34
RD
25399SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25400 PyObject *resultobj = 0;
25401 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25402 wxGraphicsObject *result = 0 ;
25403 void *argp1 = 0 ;
25404 int res1 = 0 ;
25405 PyObject * obj0 = 0 ;
25406 char * kwnames[] = {
25407 (char *) "renderer", NULL
25408 };
25409
25410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25411 if (obj0) {
25412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25413 if (!SWIG_IsOK(res1)) {
25414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25415 }
25416 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25417 }
25418 {
25419 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25420 if (PyErr_Occurred()) SWIG_fail;
25421 }
25422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25423 return resultobj;
25424fail:
25425 return NULL;
25426}
25427
25428
25429SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25430 PyObject *resultobj = 0;
25431 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25432 void *argp1 = 0 ;
25433 int res1 = 0 ;
25434 PyObject *swig_obj[1] ;
25435
25436 if (!args) SWIG_fail;
25437 swig_obj[0] = args;
25438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25439 if (!SWIG_IsOK(res1)) {
25440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25441 }
25442 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25443 {
25444 delete arg1;
25445
25446 if (PyErr_Occurred()) SWIG_fail;
25447 }
25448 resultobj = SWIG_Py_Void();
25449 return resultobj;
25450fail:
25451 return NULL;
25452}
25453
25454
25455SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25456 PyObject *resultobj = 0;
25457 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25458 bool result;
25459 void *argp1 = 0 ;
25460 int res1 = 0 ;
25461 PyObject *swig_obj[1] ;
25462
25463 if (!args) SWIG_fail;
25464 swig_obj[0] = args;
25465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25466 if (!SWIG_IsOK(res1)) {
25467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25468 }
25469 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25470 {
25471 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25472 if (PyErr_Occurred()) SWIG_fail;
25473 }
25474 {
25475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25476 }
25477 return resultobj;
25478fail:
25479 return NULL;
25480}
25481
25482
25483SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25484 PyObject *resultobj = 0;
25485 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25486 wxGraphicsRenderer *result = 0 ;
25487 void *argp1 = 0 ;
25488 int res1 = 0 ;
25489 PyObject *swig_obj[1] ;
25490
25491 if (!args) SWIG_fail;
25492 swig_obj[0] = args;
25493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25494 if (!SWIG_IsOK(res1)) {
25495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25496 }
25497 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25498 {
25499 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25500 if (PyErr_Occurred()) SWIG_fail;
25501 }
25502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25503 return resultobj;
25504fail:
25505 return NULL;
25506}
25507
25508
25509SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25510 PyObject *obj;
25511 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25512 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25513 return SWIG_Py_Void();
25514}
25515
25516SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25517 return SWIG_Python_InitShadowInstance(args);
25518}
25519
25520SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25521 PyObject *resultobj = 0;
25522 wxGraphicsPen *result = 0 ;
25523
25524 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25525 {
25526 result = (wxGraphicsPen *)new wxGraphicsPen();
25527 if (PyErr_Occurred()) SWIG_fail;
25528 }
25529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25530 return resultobj;
25531fail:
25532 return NULL;
25533}
25534
25535
25536SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25537 PyObject *resultobj = 0;
25538 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25539 void *argp1 = 0 ;
25540 int res1 = 0 ;
25541 PyObject *swig_obj[1] ;
25542
25543 if (!args) SWIG_fail;
25544 swig_obj[0] = args;
25545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25546 if (!SWIG_IsOK(res1)) {
25547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25548 }
25549 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25550 {
25551 delete arg1;
25552
25553 if (PyErr_Occurred()) SWIG_fail;
25554 }
25555 resultobj = SWIG_Py_Void();
25556 return resultobj;
25557fail:
25558 return NULL;
25559}
25560
25561
25562SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25563 PyObject *obj;
25564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25565 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25566 return SWIG_Py_Void();
25567}
25568
25569SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25570 return SWIG_Python_InitShadowInstance(args);
25571}
25572
25573SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25574 PyObject *resultobj = 0;
25575 wxGraphicsBrush *result = 0 ;
25576
25577 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25578 {
25579 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25580 if (PyErr_Occurred()) SWIG_fail;
25581 }
25582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25583 return resultobj;
25584fail:
25585 return NULL;
25586}
25587
25588
25589SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25590 PyObject *resultobj = 0;
25591 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25592 void *argp1 = 0 ;
25593 int res1 = 0 ;
25594 PyObject *swig_obj[1] ;
25595
25596 if (!args) SWIG_fail;
25597 swig_obj[0] = args;
25598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25599 if (!SWIG_IsOK(res1)) {
25600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25601 }
25602 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25603 {
25604 delete arg1;
25605
25606 if (PyErr_Occurred()) SWIG_fail;
25607 }
25608 resultobj = SWIG_Py_Void();
25609 return resultobj;
25610fail:
25611 return NULL;
25612}
25613
25614
25615SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25616 PyObject *obj;
25617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25618 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25619 return SWIG_Py_Void();
25620}
25621
25622SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25623 return SWIG_Python_InitShadowInstance(args);
25624}
25625
25626SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25627 PyObject *resultobj = 0;
25628 wxGraphicsFont *result = 0 ;
25629
25630 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25631 {
25632 result = (wxGraphicsFont *)new wxGraphicsFont();
25633 if (PyErr_Occurred()) SWIG_fail;
25634 }
25635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25636 return resultobj;
25637fail:
25638 return NULL;
25639}
25640
25641
25642SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25643 PyObject *resultobj = 0;
25644 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25645 void *argp1 = 0 ;
25646 int res1 = 0 ;
25647 PyObject *swig_obj[1] ;
25648
25649 if (!args) SWIG_fail;
25650 swig_obj[0] = args;
25651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25652 if (!SWIG_IsOK(res1)) {
25653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25654 }
25655 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25656 {
25657 delete arg1;
25658
25659 if (PyErr_Occurred()) SWIG_fail;
25660 }
25661 resultobj = SWIG_Py_Void();
25662 return resultobj;
25663fail:
25664 return NULL;
25665}
25666
25667
25668SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25669 PyObject *obj;
25670 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25671 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25672 return SWIG_Py_Void();
25673}
25674
25675SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25676 return SWIG_Python_InitShadowInstance(args);
25677}
25678
8f514ab4
RD
25679SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25680 PyObject *resultobj = 0;
25681 wxGraphicsMatrix *result = 0 ;
25682
25683 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25684 {
25685 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25686 if (PyErr_Occurred()) SWIG_fail;
25687 }
25688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25689 return resultobj;
25690fail:
25691 return NULL;
25692}
25693
25694
5c8c7dd3 25695SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25696 PyObject *resultobj = 0;
5c8c7dd3 25697 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25698 void *argp1 = 0 ;
25699 int res1 = 0 ;
25700 PyObject *swig_obj[1] ;
25701
25702 if (!args) SWIG_fail;
25703 swig_obj[0] = args;
5c8c7dd3 25704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 25705 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25707 }
5c8c7dd3 25708 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25709 {
1bd55598
RD
25710 delete arg1;
25711
1bd55598
RD
25712 if (PyErr_Occurred()) SWIG_fail;
25713 }
25714 resultobj = SWIG_Py_Void();
25715 return resultobj;
25716fail:
25717 return NULL;
25718}
25719
25720
5c8c7dd3 25721SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25722 PyObject *resultobj = 0;
5c8c7dd3
RD
25723 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25724 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25725 void *argp1 = 0 ;
25726 int res1 = 0 ;
5c8c7dd3
RD
25727 void *argp2 = 0 ;
25728 int res2 = 0 ;
25729 PyObject * obj0 = 0 ;
25730 PyObject * obj1 = 0 ;
25731 char * kwnames[] = {
25732 (char *) "self",(char *) "t", NULL
25733 };
70d7cb34 25734
5c8c7dd3
RD
25735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25737 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25739 }
5c8c7dd3
RD
25740 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25742 if (!SWIG_IsOK(res2)) {
25743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25744 }
25745 if (!argp2) {
25746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25747 }
25748 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25749 {
5c8c7dd3 25750 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25751 if (PyErr_Occurred()) SWIG_fail;
25752 }
5c8c7dd3 25753 resultobj = SWIG_Py_Void();
70d7cb34
RD
25754 return resultobj;
25755fail:
25756 return NULL;
25757}
25758
25759
5c8c7dd3 25760SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25761 PyObject *resultobj = 0;
5c8c7dd3
RD
25762 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25763 wxDouble arg2 = (wxDouble) 1.0 ;
25764 wxDouble arg3 = (wxDouble) 0.0 ;
25765 wxDouble arg4 = (wxDouble) 0.0 ;
25766 wxDouble arg5 = (wxDouble) 1.0 ;
25767 wxDouble arg6 = (wxDouble) 0.0 ;
25768 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25769 void *argp1 = 0 ;
25770 int res1 = 0 ;
5c8c7dd3
RD
25771 double val2 ;
25772 int ecode2 = 0 ;
25773 double val3 ;
25774 int ecode3 = 0 ;
25775 double val4 ;
25776 int ecode4 = 0 ;
25777 double val5 ;
25778 int ecode5 = 0 ;
25779 double val6 ;
25780 int ecode6 = 0 ;
25781 double val7 ;
25782 int ecode7 = 0 ;
25783 PyObject * obj0 = 0 ;
25784 PyObject * obj1 = 0 ;
25785 PyObject * obj2 = 0 ;
25786 PyObject * obj3 = 0 ;
25787 PyObject * obj4 = 0 ;
25788 PyObject * obj5 = 0 ;
25789 PyObject * obj6 = 0 ;
25790 char * kwnames[] = {
25791 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25792 };
70d7cb34 25793
5c8c7dd3
RD
25794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25796 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25798 }
5c8c7dd3
RD
25799 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25800 if (obj1) {
25801 ecode2 = SWIG_AsVal_double(obj1, &val2);
25802 if (!SWIG_IsOK(ecode2)) {
25803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25804 }
25805 arg2 = static_cast< wxDouble >(val2);
25806 }
25807 if (obj2) {
25808 ecode3 = SWIG_AsVal_double(obj2, &val3);
25809 if (!SWIG_IsOK(ecode3)) {
25810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25811 }
25812 arg3 = static_cast< wxDouble >(val3);
25813 }
25814 if (obj3) {
25815 ecode4 = SWIG_AsVal_double(obj3, &val4);
25816 if (!SWIG_IsOK(ecode4)) {
25817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25818 }
25819 arg4 = static_cast< wxDouble >(val4);
25820 }
25821 if (obj4) {
25822 ecode5 = SWIG_AsVal_double(obj4, &val5);
25823 if (!SWIG_IsOK(ecode5)) {
25824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25825 }
25826 arg5 = static_cast< wxDouble >(val5);
25827 }
25828 if (obj5) {
25829 ecode6 = SWIG_AsVal_double(obj5, &val6);
25830 if (!SWIG_IsOK(ecode6)) {
25831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25832 }
25833 arg6 = static_cast< wxDouble >(val6);
25834 }
25835 if (obj6) {
25836 ecode7 = SWIG_AsVal_double(obj6, &val7);
25837 if (!SWIG_IsOK(ecode7)) {
25838 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25839 }
25840 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25841 }
25842 {
5c8c7dd3 25843 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25844 if (PyErr_Occurred()) SWIG_fail;
25845 }
25846 resultobj = SWIG_Py_Void();
25847 return resultobj;
25848fail:
25849 return NULL;
25850}
25851
25852
5c8c7dd3 25853SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25854 PyObject *resultobj = 0;
5c8c7dd3 25855 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25856 void *argp1 = 0 ;
25857 int res1 = 0 ;
5c8c7dd3 25858 PyObject *swig_obj[1] ;
1bd55598 25859
5c8c7dd3
RD
25860 if (!args) SWIG_fail;
25861 swig_obj[0] = args;
25862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25863 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25865 }
5c8c7dd3 25866 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25867 {
5c8c7dd3 25868 (arg1)->Invert();
1bd55598
RD
25869 if (PyErr_Occurred()) SWIG_fail;
25870 }
72ef6efb 25871 resultobj = SWIG_Py_Void();
1bd55598
RD
25872 return resultobj;
25873fail:
25874 return NULL;
25875}
25876
25877
5c8c7dd3 25878SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25879 PyObject *resultobj = 0;
5c8c7dd3
RD
25880 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25881 wxGraphicsMatrix *arg2 = 0 ;
25882 bool result;
70d7cb34
RD
25883 void *argp1 = 0 ;
25884 int res1 = 0 ;
5c8c7dd3
RD
25885 void *argp2 = 0 ;
25886 int res2 = 0 ;
25887 PyObject * obj0 = 0 ;
25888 PyObject * obj1 = 0 ;
25889 char * kwnames[] = {
25890 (char *) "self",(char *) "t", NULL
25891 };
70d7cb34 25892
5c8c7dd3
RD
25893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25895 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25897 }
5c8c7dd3
RD
25898 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25899 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25900 if (!SWIG_IsOK(res2)) {
25901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25902 }
25903 if (!argp2) {
25904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25905 }
5c8c7dd3 25906 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25907 {
5c8c7dd3 25908 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25909 if (PyErr_Occurred()) SWIG_fail;
25910 }
5c8c7dd3
RD
25911 {
25912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25913 }
70d7cb34
RD
25914 return resultobj;
25915fail:
25916 return NULL;
25917}
25918
25919
5c8c7dd3
RD
25920SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25921 PyObject *resultobj = 0;
25922 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25923 bool result;
25924 void *argp1 = 0 ;
25925 int res1 = 0 ;
25926 PyObject *swig_obj[1] ;
70d7cb34 25927
5c8c7dd3
RD
25928 if (!args) SWIG_fail;
25929 swig_obj[0] = args;
25930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25931 if (!SWIG_IsOK(res1)) {
8f514ab4 25932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25933 }
5c8c7dd3
RD
25934 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25935 {
8f514ab4 25936 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 25937 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25938 }
5c8c7dd3
RD
25939 {
25940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25941 }
25942 return resultobj;
70d7cb34 25943fail:
70d7cb34
RD
25944 return NULL;
25945}
25946
25947
5c8c7dd3 25948SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25949 PyObject *resultobj = 0;
5c8c7dd3 25950 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25951 wxDouble arg2 ;
25952 wxDouble arg3 ;
1bd55598
RD
25953 void *argp1 = 0 ;
25954 int res1 = 0 ;
72ef6efb
RD
25955 double val2 ;
25956 int ecode2 = 0 ;
25957 double val3 ;
25958 int ecode3 = 0 ;
5c8c7dd3
RD
25959 PyObject * obj0 = 0 ;
25960 PyObject * obj1 = 0 ;
25961 PyObject * obj2 = 0 ;
25962 char * kwnames[] = {
25963 (char *) "self",(char *) "dx",(char *) "dy", NULL
25964 };
72ef6efb 25965
5c8c7dd3
RD
25966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25968 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25970 }
5c8c7dd3
RD
25971 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25972 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25973 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25975 }
25976 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25977 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25978 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25980 }
25981 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25982 {
5c8c7dd3 25983 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 resultobj = SWIG_Py_Void();
25987 return resultobj;
25988fail:
25989 return NULL;
25990}
25991
25992
5c8c7dd3 25993SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25994 PyObject *resultobj = 0;
5c8c7dd3
RD
25995 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25996 wxDouble arg2 ;
25997 wxDouble arg3 ;
70d7cb34
RD
25998 void *argp1 = 0 ;
25999 int res1 = 0 ;
5c8c7dd3
RD
26000 double val2 ;
26001 int ecode2 = 0 ;
26002 double val3 ;
26003 int ecode3 = 0 ;
26004 PyObject * obj0 = 0 ;
26005 PyObject * obj1 = 0 ;
26006 PyObject * obj2 = 0 ;
26007 char * kwnames[] = {
26008 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26009 };
70d7cb34 26010
5c8c7dd3
RD
26011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26013 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26015 }
5c8c7dd3
RD
26016 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26017 ecode2 = SWIG_AsVal_double(obj1, &val2);
26018 if (!SWIG_IsOK(ecode2)) {
26019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26020 }
26021 arg2 = static_cast< wxDouble >(val2);
26022 ecode3 = SWIG_AsVal_double(obj2, &val3);
26023 if (!SWIG_IsOK(ecode3)) {
26024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26025 }
26026 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26027 {
5c8c7dd3 26028 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26029 if (PyErr_Occurred()) SWIG_fail;
26030 }
26031 resultobj = SWIG_Py_Void();
26032 return resultobj;
26033fail:
26034 return NULL;
26035}
26036
26037
5c8c7dd3 26038SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26039 PyObject *resultobj = 0;
5c8c7dd3
RD
26040 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26041 wxDouble arg2 ;
70d7cb34
RD
26042 void *argp1 = 0 ;
26043 int res1 = 0 ;
5c8c7dd3
RD
26044 double val2 ;
26045 int ecode2 = 0 ;
70d7cb34
RD
26046 PyObject * obj0 = 0 ;
26047 PyObject * obj1 = 0 ;
26048 char * kwnames[] = {
5c8c7dd3 26049 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26050 };
26051
5c8c7dd3
RD
26052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26054 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26056 }
5c8c7dd3
RD
26057 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26058 ecode2 = SWIG_AsVal_double(obj1, &val2);
26059 if (!SWIG_IsOK(ecode2)) {
26060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26061 }
26062 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26063 {
5c8c7dd3 26064 (arg1)->Rotate(arg2);
70d7cb34
RD
26065 if (PyErr_Occurred()) SWIG_fail;
26066 }
26067 resultobj = SWIG_Py_Void();
26068 return resultobj;
26069fail:
26070 return NULL;
26071}
26072
26073
5c8c7dd3 26074SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26075 PyObject *resultobj = 0;
5c8c7dd3
RD
26076 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26077 wxDouble *arg2 = (wxDouble *) 0 ;
26078 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26079 void *argp1 = 0 ;
26080 int res1 = 0 ;
5c8c7dd3
RD
26081 wxDouble temp2 ;
26082 int res2 = 0 ;
26083 wxDouble temp3 ;
26084 int res3 = 0 ;
26085 PyObject * obj0 = 0 ;
26086 PyObject * obj1 = 0 ;
26087 PyObject * obj2 = 0 ;
26088 char * kwnames[] = {
26089 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26090 };
72ef6efb 26091
5c8c7dd3
RD
26092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26094 if (!SWIG_IsOK(res1)) {
8f514ab4 26095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26096 }
5c8c7dd3
RD
26097 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26098 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26099 double val;
26100 int ecode = SWIG_AsVal_double(obj1, &val);
26101 if (!SWIG_IsOK(ecode)) {
26102 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26103 }
26104 temp2 = static_cast< wxDouble >(val);
26105 arg2 = &temp2;
26106 res2 = SWIG_AddTmpMask(ecode);
26107 }
26108 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26109 double val;
26110 int ecode = SWIG_AsVal_double(obj2, &val);
26111 if (!SWIG_IsOK(ecode)) {
26112 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26113 }
26114 temp3 = static_cast< wxDouble >(val);
26115 arg3 = &temp3;
26116 res3 = SWIG_AddTmpMask(ecode);
26117 }
26118 {
8f514ab4 26119 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26123 if (SWIG_IsTmpObj(res2)) {
26124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26125 } else {
26126 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26128 }
26129 if (SWIG_IsTmpObj(res3)) {
26130 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26131 } else {
26132 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26134 }
72ef6efb
RD
26135 return resultobj;
26136fail:
26137 return NULL;
26138}
26139
26140
5c8c7dd3
RD
26141SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26142 PyObject *resultobj = 0;
26143 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26144 wxDouble *arg2 = (wxDouble *) 0 ;
26145 wxDouble *arg3 = (wxDouble *) 0 ;
26146 void *argp1 = 0 ;
26147 int res1 = 0 ;
26148 wxDouble temp2 ;
26149 int res2 = 0 ;
26150 wxDouble temp3 ;
26151 int res3 = 0 ;
26152 PyObject * obj0 = 0 ;
26153 PyObject * obj1 = 0 ;
26154 PyObject * obj2 = 0 ;
26155 char * kwnames[] = {
26156 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26157 };
26158
26159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26161 if (!SWIG_IsOK(res1)) {
8f514ab4 26162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26163 }
26164 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26165 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26166 double val;
26167 int ecode = SWIG_AsVal_double(obj1, &val);
26168 if (!SWIG_IsOK(ecode)) {
26169 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26170 }
26171 temp2 = static_cast< wxDouble >(val);
26172 arg2 = &temp2;
26173 res2 = SWIG_AddTmpMask(ecode);
26174 }
26175 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26176 double val;
26177 int ecode = SWIG_AsVal_double(obj2, &val);
26178 if (!SWIG_IsOK(ecode)) {
26179 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26180 }
26181 temp3 = static_cast< wxDouble >(val);
26182 arg3 = &temp3;
26183 res3 = SWIG_AddTmpMask(ecode);
26184 }
26185 {
8f514ab4 26186 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26187 if (PyErr_Occurred()) SWIG_fail;
26188 }
26189 resultobj = SWIG_Py_Void();
26190 if (SWIG_IsTmpObj(res2)) {
26191 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26192 } else {
26193 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26194 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26195 }
26196 if (SWIG_IsTmpObj(res3)) {
26197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26198 } else {
26199 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26200 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26201 }
26202 return resultobj;
26203fail:
26204 return NULL;
26205}
26206
26207
26208SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26209 PyObject *resultobj = 0;
26210 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26211 void *result = 0 ;
26212 void *argp1 = 0 ;
26213 int res1 = 0 ;
26214 PyObject *swig_obj[1] ;
26215
26216 if (!args) SWIG_fail;
26217 swig_obj[0] = args;
26218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26219 if (!SWIG_IsOK(res1)) {
26220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26221 }
26222 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26223 {
26224 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26225 if (PyErr_Occurred()) SWIG_fail;
26226 }
26227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26228 return resultobj;
26229fail:
26230 return NULL;
26231}
26232
26233
26234SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26235 PyObject *obj;
26236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26237 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26238 return SWIG_Py_Void();
26239}
26240
8f514ab4
RD
26241SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26242 return SWIG_Python_InitShadowInstance(args);
26243}
26244
26245SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26246 PyObject *resultobj = 0;
26247 wxGraphicsPath *result = 0 ;
26248
26249 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26250 {
26251 if (!wxPyCheckForApp()) SWIG_fail;
26252 PyThreadState* __tstate = wxPyBeginAllowThreads();
26253 result = (wxGraphicsPath *)new wxGraphicsPath();
26254 wxPyEndAllowThreads(__tstate);
26255 if (PyErr_Occurred()) SWIG_fail;
26256 }
26257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26258 return resultobj;
26259fail:
26260 return NULL;
26261}
26262
26263
5c8c7dd3 26264SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26265 PyObject *resultobj = 0;
26266 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26267 void *argp1 = 0 ;
26268 int res1 = 0 ;
26269 PyObject *swig_obj[1] ;
26270
26271 if (!args) SWIG_fail;
26272 swig_obj[0] = args;
5c8c7dd3 26273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26274 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26276 }
26277 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26278 {
5c8c7dd3
RD
26279 delete arg1;
26280
72ef6efb
RD
26281 if (PyErr_Occurred()) SWIG_fail;
26282 }
5c8c7dd3 26283 resultobj = SWIG_Py_Void();
70d7cb34
RD
26284 return resultobj;
26285fail:
26286 return NULL;
26287}
26288
26289
5c8c7dd3 26290SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26291 PyObject *resultobj = 0;
26292 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26293 wxDouble arg2 ;
26294 wxDouble arg3 ;
70d7cb34
RD
26295 void *argp1 = 0 ;
26296 int res1 = 0 ;
26297 double val2 ;
26298 int ecode2 = 0 ;
26299 double val3 ;
26300 int ecode3 = 0 ;
70d7cb34 26301
5c8c7dd3 26302 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26304 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26306 }
26307 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26308 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26309 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26311 }
26312 arg2 = static_cast< wxDouble >(val2);
26313 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26314 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26316 }
26317 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26318 {
5c8c7dd3 26319 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26320 if (PyErr_Occurred()) SWIG_fail;
26321 }
26322 resultobj = SWIG_Py_Void();
26323 return resultobj;
26324fail:
26325 return NULL;
26326}
26327
26328
5c8c7dd3 26329SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26330 PyObject *resultobj = 0;
26331 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26332 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26333 void *argp1 = 0 ;
26334 int res1 = 0 ;
26335 wxPoint2D temp2 ;
70d7cb34 26336
5c8c7dd3 26337 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26339 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26341 }
26342 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26343 {
26344 arg2 = &temp2;
26345 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26346 }
70d7cb34 26347 {
5c8c7dd3 26348 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26349 if (PyErr_Occurred()) SWIG_fail;
26350 }
26351 resultobj = SWIG_Py_Void();
26352 return resultobj;
26353fail:
26354 return NULL;
26355}
26356
26357
5c8c7dd3 26358SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26359 int argc;
5c8c7dd3 26360 PyObject *argv[4];
70d7cb34 26361
5c8c7dd3 26362 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26363 --argc;
5c8c7dd3
RD
26364 if (argc == 2) {
26365 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26366 }
5c8c7dd3
RD
26367 if (argc == 3) {
26368 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26369 }
26370
26371fail:
5c8c7dd3 26372 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26373 return NULL;
26374}
26375
26376
5c8c7dd3 26377SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26378 PyObject *resultobj = 0;
26379 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26380 wxDouble arg2 ;
26381 wxDouble arg3 ;
70d7cb34
RD
26382 void *argp1 = 0 ;
26383 int res1 = 0 ;
26384 double val2 ;
26385 int ecode2 = 0 ;
26386 double val3 ;
26387 int ecode3 = 0 ;
70d7cb34 26388
5c8c7dd3
RD
26389 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26391 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26393 }
26394 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26395 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26396 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26398 }
26399 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26400 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26401 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26403 }
26404 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26405 {
5c8c7dd3 26406 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 resultobj = SWIG_Py_Void();
26410 return resultobj;
26411fail:
26412 return NULL;
26413}
26414
26415
5c8c7dd3 26416SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26417 PyObject *resultobj = 0;
26418 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26419 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26420 void *argp1 = 0 ;
26421 int res1 = 0 ;
5c8c7dd3 26422 wxPoint2D temp2 ;
70d7cb34 26423
5c8c7dd3
RD
26424 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26426 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26428 }
26429 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26430 {
5c8c7dd3
RD
26431 arg2 = &temp2;
26432 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26433 }
26434 {
26435 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26436 if (PyErr_Occurred()) SWIG_fail;
26437 }
26438 resultobj = SWIG_Py_Void();
26439 return resultobj;
26440fail:
26441 return NULL;
26442}
26443
26444
5c8c7dd3
RD
26445SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26446 int argc;
26447 PyObject *argv[4];
70d7cb34 26448
5c8c7dd3
RD
26449 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26450 --argc;
26451 if (argc == 2) {
26452 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26453 }
5c8c7dd3
RD
26454 if (argc == 3) {
26455 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26456 }
5c8c7dd3 26457
70d7cb34 26458fail:
5c8c7dd3 26459 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26460 return NULL;
26461}
26462
26463
5c8c7dd3 26464SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26465 PyObject *resultobj = 0;
26466 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26467 wxDouble arg2 ;
26468 wxDouble arg3 ;
26469 wxDouble arg4 ;
26470 wxDouble arg5 ;
26471 wxDouble arg6 ;
5c8c7dd3 26472 wxDouble arg7 ;
70d7cb34
RD
26473 void *argp1 = 0 ;
26474 int res1 = 0 ;
26475 double val2 ;
26476 int ecode2 = 0 ;
26477 double val3 ;
26478 int ecode3 = 0 ;
26479 double val4 ;
26480 int ecode4 = 0 ;
26481 double val5 ;
26482 int ecode5 = 0 ;
26483 double val6 ;
26484 int ecode6 = 0 ;
5c8c7dd3
RD
26485 double val7 ;
26486 int ecode7 = 0 ;
70d7cb34 26487
5c8c7dd3
RD
26488 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26490 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26492 }
26493 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26494 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26495 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26497 }
26498 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26499 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26500 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26502 }
26503 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26504 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26505 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26506 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26507 }
26508 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26509 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26510 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26511 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26512 }
26513 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26514 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26515 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26516 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26517 }
26518 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26519 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26520 if (!SWIG_IsOK(ecode7)) {
26521 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26522 }
26523 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26524 {
5c8c7dd3 26525 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26526 if (PyErr_Occurred()) SWIG_fail;
26527 }
26528 resultobj = SWIG_Py_Void();
26529 return resultobj;
26530fail:
26531 return NULL;
26532}
26533
26534
5c8c7dd3 26535SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26536 PyObject *resultobj = 0;
26537 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26538 wxPoint2D *arg2 = 0 ;
26539 wxPoint2D *arg3 = 0 ;
26540 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26541 void *argp1 = 0 ;
26542 int res1 = 0 ;
5c8c7dd3
RD
26543 wxPoint2D temp2 ;
26544 wxPoint2D temp3 ;
26545 wxPoint2D temp4 ;
70d7cb34 26546
5c8c7dd3
RD
26547 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26549 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26551 }
26552 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26553 {
5c8c7dd3
RD
26554 arg2 = &temp2;
26555 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26556 }
5c8c7dd3
RD
26557 {
26558 arg3 = &temp3;
26559 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26560 }
70d7cb34 26561 {
5c8c7dd3
RD
26562 arg4 = &temp4;
26563 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26564 }
26565 {
26566 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26567 if (PyErr_Occurred()) SWIG_fail;
26568 }
26569 resultobj = SWIG_Py_Void();
26570 return resultobj;
26571fail:
26572 return NULL;
26573}
26574
26575
5c8c7dd3
RD
26576SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26577 int argc;
26578 PyObject *argv[8];
70d7cb34 26579
5c8c7dd3
RD
26580 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26581 --argc;
26582 if (argc == 4) {
26583 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26584 }
5c8c7dd3
RD
26585 if (argc == 7) {
26586 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26587 }
5c8c7dd3 26588
70d7cb34 26589fail:
5c8c7dd3 26590 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26591 return NULL;
26592}
26593
26594
5c8c7dd3 26595SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26596 PyObject *resultobj = 0;
26597 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26598 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26599 void *argp1 = 0 ;
26600 int res1 = 0 ;
5c8c7dd3
RD
26601 void *argp2 = 0 ;
26602 int res2 = 0 ;
70d7cb34
RD
26603 PyObject * obj0 = 0 ;
26604 PyObject * obj1 = 0 ;
26605 char * kwnames[] = {
5c8c7dd3 26606 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26607 };
26608
5c8c7dd3 26609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26611 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26613 }
26614 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26616 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26618 }
26619 if (!argp2) {
26620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26621 }
5c8c7dd3 26622 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26623 {
5c8c7dd3 26624 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26625 if (PyErr_Occurred()) SWIG_fail;
26626 }
26627 resultobj = SWIG_Py_Void();
26628 return resultobj;
26629fail:
26630 return NULL;
26631}
26632
26633
5c8c7dd3 26634SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26635 PyObject *resultobj = 0;
26636 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26637 void *argp1 = 0 ;
26638 int res1 = 0 ;
5c8c7dd3 26639 PyObject *swig_obj[1] ;
70d7cb34 26640
5c8c7dd3
RD
26641 if (!args) SWIG_fail;
26642 swig_obj[0] = args;
26643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26644 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26646 }
26647 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26648 {
5c8c7dd3 26649 (arg1)->CloseSubpath();
70d7cb34
RD
26650 if (PyErr_Occurred()) SWIG_fail;
26651 }
26652 resultobj = SWIG_Py_Void();
26653 return resultobj;
26654fail:
26655 return NULL;
26656}
26657
26658
5c8c7dd3 26659SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26660 PyObject *resultobj = 0;
26661 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26662 wxPoint2D result;
70d7cb34
RD
26663 void *argp1 = 0 ;
26664 int res1 = 0 ;
26665 PyObject *swig_obj[1] ;
26666
26667 if (!args) SWIG_fail;
26668 swig_obj[0] = args;
26669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26670 if (!SWIG_IsOK(res1)) {
8f514ab4 26671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26672 }
26673 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26674 {
8f514ab4 26675 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26676 if (PyErr_Occurred()) SWIG_fail;
26677 }
5c8c7dd3 26678 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26679 return resultobj;
26680fail:
26681 return NULL;
26682}
26683
26684
5c8c7dd3 26685SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26686 PyObject *resultobj = 0;
26687 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26688 wxDouble arg2 ;
26689 wxDouble arg3 ;
5c8c7dd3
RD
26690 wxDouble arg4 ;
26691 wxDouble arg5 ;
26692 wxDouble arg6 ;
26693 bool arg7 ;
70d7cb34
RD
26694 void *argp1 = 0 ;
26695 int res1 = 0 ;
26696 double val2 ;
26697 int ecode2 = 0 ;
26698 double val3 ;
26699 int ecode3 = 0 ;
5c8c7dd3 26700 double val4 ;
70d7cb34 26701 int ecode4 = 0 ;
5c8c7dd3
RD
26702 double val5 ;
26703 int ecode5 = 0 ;
26704 double val6 ;
26705 int ecode6 = 0 ;
26706 bool val7 ;
26707 int ecode7 = 0 ;
70d7cb34 26708
5c8c7dd3 26709 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26711 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26713 }
26714 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26715 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26716 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26718 }
26719 arg2 = static_cast< wxDouble >(val2);
26720 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26721 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26723 }
26724 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26725 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26726 if (!SWIG_IsOK(ecode4)) {
26727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26728 }
26729 arg4 = static_cast< wxDouble >(val4);
26730 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26731 if (!SWIG_IsOK(ecode5)) {
26732 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26733 }
26734 arg5 = static_cast< wxDouble >(val5);
26735 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26736 if (!SWIG_IsOK(ecode6)) {
26737 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26738 }
26739 arg6 = static_cast< wxDouble >(val6);
26740 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26741 if (!SWIG_IsOK(ecode7)) {
26742 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26743 }
26744 arg7 = static_cast< bool >(val7);
70d7cb34 26745 {
5c8c7dd3 26746 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26747 if (PyErr_Occurred()) SWIG_fail;
26748 }
5c8c7dd3 26749 resultobj = SWIG_Py_Void();
70d7cb34
RD
26750 return resultobj;
26751fail:
26752 return NULL;
26753}
26754
26755
5c8c7dd3 26756SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26757 PyObject *resultobj = 0;
26758 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26759 wxPoint2D *arg2 = 0 ;
26760 wxDouble arg3 ;
26761 wxDouble arg4 ;
26762 wxDouble arg5 ;
26763 bool arg6 ;
70d7cb34
RD
26764 void *argp1 = 0 ;
26765 int res1 = 0 ;
5c8c7dd3
RD
26766 wxPoint2D temp2 ;
26767 double val3 ;
70d7cb34 26768 int ecode3 = 0 ;
5c8c7dd3
RD
26769 double val4 ;
26770 int ecode4 = 0 ;
26771 double val5 ;
26772 int ecode5 = 0 ;
26773 bool val6 ;
26774 int ecode6 = 0 ;
70d7cb34 26775
5c8c7dd3 26776 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26778 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26780 }
26781 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26782 {
5c8c7dd3
RD
26783 arg2 = &temp2;
26784 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26785 }
5c8c7dd3
RD
26786 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26787 if (!SWIG_IsOK(ecode3)) {
26788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26789 }
26790 arg3 = static_cast< wxDouble >(val3);
26791 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26792 if (!SWIG_IsOK(ecode4)) {
26793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26794 }
26795 arg4 = static_cast< wxDouble >(val4);
26796 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26797 if (!SWIG_IsOK(ecode5)) {
26798 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26799 }
26800 arg5 = static_cast< wxDouble >(val5);
26801 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26802 if (!SWIG_IsOK(ecode6)) {
26803 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26804 }
26805 arg6 = static_cast< bool >(val6);
70d7cb34 26806 {
5c8c7dd3
RD
26807 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26808 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26809 }
5c8c7dd3 26810 resultobj = SWIG_Py_Void();
70d7cb34
RD
26811 return resultobj;
26812fail:
26813 return NULL;
26814}
26815
26816
5c8c7dd3 26817SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26818 int argc;
5c8c7dd3 26819 PyObject *argv[8];
70d7cb34 26820
5c8c7dd3 26821 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26822 --argc;
5c8c7dd3
RD
26823 if (argc == 6) {
26824 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26825 }
5c8c7dd3
RD
26826 if (argc == 7) {
26827 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26828 }
26829
26830fail:
5c8c7dd3 26831 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26832 return NULL;
26833}
26834
26835
5c8c7dd3 26836SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26837 PyObject *resultobj = 0;
5c8c7dd3
RD
26838 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26839 wxDouble arg2 ;
26840 wxDouble arg3 ;
26841 wxDouble arg4 ;
26842 wxDouble arg5 ;
70d7cb34
RD
26843 void *argp1 = 0 ;
26844 int res1 = 0 ;
5c8c7dd3
RD
26845 double val2 ;
26846 int ecode2 = 0 ;
26847 double val3 ;
26848 int ecode3 = 0 ;
26849 double val4 ;
26850 int ecode4 = 0 ;
26851 double val5 ;
26852 int ecode5 = 0 ;
26853 PyObject * obj0 = 0 ;
26854 PyObject * obj1 = 0 ;
26855 PyObject * obj2 = 0 ;
26856 PyObject * obj3 = 0 ;
26857 PyObject * obj4 = 0 ;
26858 char * kwnames[] = {
26859 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26860 };
70d7cb34 26861
5c8c7dd3
RD
26862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26864 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26866 }
5c8c7dd3
RD
26867 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26868 ecode2 = SWIG_AsVal_double(obj1, &val2);
26869 if (!SWIG_IsOK(ecode2)) {
26870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26871 }
26872 arg2 = static_cast< wxDouble >(val2);
26873 ecode3 = SWIG_AsVal_double(obj2, &val3);
26874 if (!SWIG_IsOK(ecode3)) {
26875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26876 }
26877 arg3 = static_cast< wxDouble >(val3);
26878 ecode4 = SWIG_AsVal_double(obj3, &val4);
26879 if (!SWIG_IsOK(ecode4)) {
26880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26881 }
26882 arg4 = static_cast< wxDouble >(val4);
26883 ecode5 = SWIG_AsVal_double(obj4, &val5);
26884 if (!SWIG_IsOK(ecode5)) {
26885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26886 }
26887 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26888 {
5c8c7dd3 26889 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26890 if (PyErr_Occurred()) SWIG_fail;
26891 }
26892 resultobj = SWIG_Py_Void();
26893 return resultobj;
26894fail:
26895 return NULL;
26896}
26897
26898
5c8c7dd3 26899SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26900 PyObject *resultobj = 0;
5c8c7dd3
RD
26901 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26902 wxDouble arg2 ;
26903 wxDouble arg3 ;
26904 wxDouble arg4 ;
26905 wxDouble arg5 ;
70d7cb34
RD
26906 void *argp1 = 0 ;
26907 int res1 = 0 ;
5c8c7dd3
RD
26908 double val2 ;
26909 int ecode2 = 0 ;
26910 double val3 ;
26911 int ecode3 = 0 ;
26912 double val4 ;
26913 int ecode4 = 0 ;
26914 double val5 ;
26915 int ecode5 = 0 ;
70d7cb34
RD
26916 PyObject * obj0 = 0 ;
26917 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26918 PyObject * obj2 = 0 ;
26919 PyObject * obj3 = 0 ;
26920 PyObject * obj4 = 0 ;
70d7cb34 26921 char * kwnames[] = {
5c8c7dd3 26922 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26923 };
26924
5c8c7dd3
RD
26925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26927 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26929 }
5c8c7dd3
RD
26930 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26931 ecode2 = SWIG_AsVal_double(obj1, &val2);
26932 if (!SWIG_IsOK(ecode2)) {
26933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26934 }
26935 arg2 = static_cast< wxDouble >(val2);
26936 ecode3 = SWIG_AsVal_double(obj2, &val3);
26937 if (!SWIG_IsOK(ecode3)) {
26938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26939 }
26940 arg3 = static_cast< wxDouble >(val3);
26941 ecode4 = SWIG_AsVal_double(obj3, &val4);
26942 if (!SWIG_IsOK(ecode4)) {
26943 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26944 }
26945 arg4 = static_cast< wxDouble >(val4);
26946 ecode5 = SWIG_AsVal_double(obj4, &val5);
26947 if (!SWIG_IsOK(ecode5)) {
26948 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26949 }
26950 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26951 {
5c8c7dd3 26952 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26953 if (PyErr_Occurred()) SWIG_fail;
26954 }
26955 resultobj = SWIG_Py_Void();
26956 return resultobj;
26957fail:
26958 return NULL;
26959}
26960
26961
5c8c7dd3 26962SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26963 PyObject *resultobj = 0;
5c8c7dd3
RD
26964 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26965 wxDouble arg2 ;
26966 wxDouble arg3 ;
26967 wxDouble arg4 ;
70d7cb34
RD
26968 void *argp1 = 0 ;
26969 int res1 = 0 ;
5c8c7dd3
RD
26970 double val2 ;
26971 int ecode2 = 0 ;
26972 double val3 ;
26973 int ecode3 = 0 ;
26974 double val4 ;
26975 int ecode4 = 0 ;
70d7cb34
RD
26976 PyObject * obj0 = 0 ;
26977 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26978 PyObject * obj2 = 0 ;
26979 PyObject * obj3 = 0 ;
70d7cb34 26980 char * kwnames[] = {
5c8c7dd3 26981 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26982 };
26983
5c8c7dd3
RD
26984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26986 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26988 }
5c8c7dd3
RD
26989 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26990 ecode2 = SWIG_AsVal_double(obj1, &val2);
26991 if (!SWIG_IsOK(ecode2)) {
26992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26993 }
26994 arg2 = static_cast< wxDouble >(val2);
26995 ecode3 = SWIG_AsVal_double(obj2, &val3);
26996 if (!SWIG_IsOK(ecode3)) {
26997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26998 }
26999 arg3 = static_cast< wxDouble >(val3);
27000 ecode4 = SWIG_AsVal_double(obj3, &val4);
27001 if (!SWIG_IsOK(ecode4)) {
27002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27003 }
27004 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27005 {
5c8c7dd3 27006 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27007 if (PyErr_Occurred()) SWIG_fail;
27008 }
27009 resultobj = SWIG_Py_Void();
27010 return resultobj;
27011fail:
27012 return NULL;
27013}
27014
27015
5c8c7dd3 27016SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27017 PyObject *resultobj = 0;
5c8c7dd3
RD
27018 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27019 wxDouble arg2 ;
27020 wxDouble arg3 ;
27021 wxDouble arg4 ;
27022 wxDouble arg5 ;
27023 wxDouble arg6 ;
70d7cb34
RD
27024 void *argp1 = 0 ;
27025 int res1 = 0 ;
27026 double val2 ;
27027 int ecode2 = 0 ;
27028 double val3 ;
27029 int ecode3 = 0 ;
27030 double val4 ;
27031 int ecode4 = 0 ;
27032 double val5 ;
27033 int ecode5 = 0 ;
27034 double val6 ;
27035 int ecode6 = 0 ;
70d7cb34
RD
27036 PyObject * obj0 = 0 ;
27037 PyObject * obj1 = 0 ;
27038 PyObject * obj2 = 0 ;
27039 PyObject * obj3 = 0 ;
27040 PyObject * obj4 = 0 ;
27041 PyObject * obj5 = 0 ;
70d7cb34 27042 char * kwnames[] = {
5c8c7dd3 27043 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27044 };
27045
5c8c7dd3
RD
27046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27048 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27050 }
5c8c7dd3
RD
27051 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27052 ecode2 = SWIG_AsVal_double(obj1, &val2);
27053 if (!SWIG_IsOK(ecode2)) {
27054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27055 }
27056 arg2 = static_cast< wxDouble >(val2);
27057 ecode3 = SWIG_AsVal_double(obj2, &val3);
27058 if (!SWIG_IsOK(ecode3)) {
27059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27060 }
27061 arg3 = static_cast< wxDouble >(val3);
27062 ecode4 = SWIG_AsVal_double(obj3, &val4);
27063 if (!SWIG_IsOK(ecode4)) {
27064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27065 }
27066 arg4 = static_cast< wxDouble >(val4);
27067 ecode5 = SWIG_AsVal_double(obj4, &val5);
27068 if (!SWIG_IsOK(ecode5)) {
27069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27070 }
27071 arg5 = static_cast< wxDouble >(val5);
27072 ecode6 = SWIG_AsVal_double(obj5, &val6);
27073 if (!SWIG_IsOK(ecode6)) {
27074 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27075 }
27076 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27077 {
5c8c7dd3 27078 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27079 if (PyErr_Occurred()) SWIG_fail;
27080 }
27081 resultobj = SWIG_Py_Void();
27082 return resultobj;
27083fail:
27084 return NULL;
27085}
27086
27087
5c8c7dd3 27088SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27089 PyObject *resultobj = 0;
5c8c7dd3
RD
27090 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27091 wxDouble arg2 ;
27092 wxDouble arg3 ;
27093 wxDouble arg4 ;
27094 wxDouble arg5 ;
70d7cb34
RD
27095 void *argp1 = 0 ;
27096 int res1 = 0 ;
5c8c7dd3
RD
27097 double val2 ;
27098 int ecode2 = 0 ;
27099 double val3 ;
27100 int ecode3 = 0 ;
27101 double val4 ;
27102 int ecode4 = 0 ;
27103 double val5 ;
27104 int ecode5 = 0 ;
27105 PyObject * obj0 = 0 ;
27106 PyObject * obj1 = 0 ;
27107 PyObject * obj2 = 0 ;
27108 PyObject * obj3 = 0 ;
27109 PyObject * obj4 = 0 ;
27110 char * kwnames[] = {
27111 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27112 };
70d7cb34 27113
5c8c7dd3
RD
27114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27116 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27118 }
5c8c7dd3
RD
27119 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27120 ecode2 = SWIG_AsVal_double(obj1, &val2);
27121 if (!SWIG_IsOK(ecode2)) {
27122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27123 }
27124 arg2 = static_cast< wxDouble >(val2);
27125 ecode3 = SWIG_AsVal_double(obj2, &val3);
27126 if (!SWIG_IsOK(ecode3)) {
27127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27128 }
27129 arg3 = static_cast< wxDouble >(val3);
27130 ecode4 = SWIG_AsVal_double(obj3, &val4);
27131 if (!SWIG_IsOK(ecode4)) {
27132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27133 }
27134 arg4 = static_cast< wxDouble >(val4);
27135 ecode5 = SWIG_AsVal_double(obj4, &val5);
27136 if (!SWIG_IsOK(ecode5)) {
27137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27138 }
27139 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27140 {
5c8c7dd3 27141 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27142 if (PyErr_Occurred()) SWIG_fail;
27143 }
27144 resultobj = SWIG_Py_Void();
27145 return resultobj;
27146fail:
27147 return NULL;
27148}
27149
27150
5c8c7dd3 27151SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27152 PyObject *resultobj = 0;
5c8c7dd3
RD
27153 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27154 wxDouble arg2 ;
27155 wxDouble arg3 ;
27156 wxDouble arg4 ;
27157 wxDouble arg5 ;
27158 wxDouble arg6 ;
70d7cb34
RD
27159 void *argp1 = 0 ;
27160 int res1 = 0 ;
5c8c7dd3
RD
27161 double val2 ;
27162 int ecode2 = 0 ;
27163 double val3 ;
27164 int ecode3 = 0 ;
27165 double val4 ;
27166 int ecode4 = 0 ;
27167 double val5 ;
27168 int ecode5 = 0 ;
27169 double val6 ;
27170 int ecode6 = 0 ;
70d7cb34
RD
27171 PyObject * obj0 = 0 ;
27172 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27173 PyObject * obj2 = 0 ;
27174 PyObject * obj3 = 0 ;
27175 PyObject * obj4 = 0 ;
27176 PyObject * obj5 = 0 ;
70d7cb34 27177 char * kwnames[] = {
5c8c7dd3 27178 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27179 };
27180
5c8c7dd3
RD
27181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27183 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27185 }
5c8c7dd3
RD
27186 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27187 ecode2 = SWIG_AsVal_double(obj1, &val2);
27188 if (!SWIG_IsOK(ecode2)) {
27189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27190 }
27191 arg2 = static_cast< wxDouble >(val2);
27192 ecode3 = SWIG_AsVal_double(obj2, &val3);
27193 if (!SWIG_IsOK(ecode3)) {
27194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27195 }
27196 arg3 = static_cast< wxDouble >(val3);
27197 ecode4 = SWIG_AsVal_double(obj3, &val4);
27198 if (!SWIG_IsOK(ecode4)) {
27199 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27200 }
27201 arg4 = static_cast< wxDouble >(val4);
27202 ecode5 = SWIG_AsVal_double(obj4, &val5);
27203 if (!SWIG_IsOK(ecode5)) {
27204 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27205 }
27206 arg5 = static_cast< wxDouble >(val5);
27207 ecode6 = SWIG_AsVal_double(obj5, &val6);
27208 if (!SWIG_IsOK(ecode6)) {
27209 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27210 }
27211 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27212 {
5c8c7dd3 27213 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27214 if (PyErr_Occurred()) SWIG_fail;
27215 }
5c8c7dd3 27216 resultobj = SWIG_Py_Void();
70d7cb34
RD
27217 return resultobj;
27218fail:
27219 return NULL;
27220}
27221
27222
5c8c7dd3 27223SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27224 PyObject *resultobj = 0;
5c8c7dd3
RD
27225 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27226 void *result = 0 ;
70d7cb34
RD
27227 void *argp1 = 0 ;
27228 int res1 = 0 ;
27229 PyObject *swig_obj[1] ;
27230
27231 if (!args) SWIG_fail;
27232 swig_obj[0] = args;
5c8c7dd3 27233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27234 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27236 }
5c8c7dd3 27237 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27238 {
5c8c7dd3 27239 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27240 if (PyErr_Occurred()) SWIG_fail;
27241 }
5c8c7dd3 27242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27243 return resultobj;
27244fail:
27245 return NULL;
27246}
27247
27248
5c8c7dd3 27249SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27250 PyObject *resultobj = 0;
5c8c7dd3
RD
27251 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27252 void *arg2 = (void *) 0 ;
70d7cb34
RD
27253 void *argp1 = 0 ;
27254 int res1 = 0 ;
5c8c7dd3 27255 int res2 ;
70d7cb34
RD
27256 PyObject * obj0 = 0 ;
27257 PyObject * obj1 = 0 ;
70d7cb34 27258 char * kwnames[] = {
5c8c7dd3 27259 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27260 };
27261
5c8c7dd3
RD
27262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27264 if (!SWIG_IsOK(res1)) {
8f514ab4 27265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27266 }
27267 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27268 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27269 if (!SWIG_IsOK(res2)) {
27270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27271 }
70d7cb34 27272 {
8f514ab4 27273 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27274 if (PyErr_Occurred()) SWIG_fail;
27275 }
27276 resultobj = SWIG_Py_Void();
27277 return resultobj;
27278fail:
27279 return NULL;
27280}
27281
27282
5c8c7dd3 27283SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27284 PyObject *resultobj = 0;
5c8c7dd3
RD
27285 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27286 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27287 void *argp1 = 0 ;
27288 int res1 = 0 ;
5c8c7dd3
RD
27289 void *argp2 = 0 ;
27290 int res2 = 0 ;
70d7cb34
RD
27291 PyObject * obj0 = 0 ;
27292 PyObject * obj1 = 0 ;
70d7cb34 27293 char * kwnames[] = {
5c8c7dd3 27294 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27295 };
27296
5c8c7dd3
RD
27297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27299 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27301 }
5c8c7dd3
RD
27302 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27303 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27304 if (!SWIG_IsOK(res2)) {
27305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27306 }
27307 if (!argp2) {
27308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27309 }
27310 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27311 {
5c8c7dd3 27312 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27313 if (PyErr_Occurred()) SWIG_fail;
27314 }
27315 resultobj = SWIG_Py_Void();
27316 return resultobj;
27317fail:
27318 return NULL;
27319}
27320
27321
5c8c7dd3 27322SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27323 PyObject *resultobj = 0;
5c8c7dd3
RD
27324 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27325 wxRect2DDouble result;
70d7cb34
RD
27326 void *argp1 = 0 ;
27327 int res1 = 0 ;
5c8c7dd3 27328 PyObject *swig_obj[1] ;
70d7cb34 27329
5c8c7dd3
RD
27330 if (!args) SWIG_fail;
27331 swig_obj[0] = args;
27332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27333 if (!SWIG_IsOK(res1)) {
8f514ab4 27334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27335 }
5c8c7dd3 27336 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27337 {
8f514ab4 27338 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27339 if (PyErr_Occurred()) SWIG_fail;
27340 }
5c8c7dd3 27341 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27342 return resultobj;
27343fail:
27344 return NULL;
27345}
27346
27347
5c8c7dd3 27348SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27349 PyObject *resultobj = 0;
5c8c7dd3
RD
27350 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27351 wxDouble arg2 ;
27352 wxDouble arg3 ;
8f514ab4 27353 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27354 bool result;
70d7cb34
RD
27355 void *argp1 = 0 ;
27356 int res1 = 0 ;
5c8c7dd3
RD
27357 double val2 ;
27358 int ecode2 = 0 ;
27359 double val3 ;
27360 int ecode3 = 0 ;
27361 int val4 ;
27362 int ecode4 = 0 ;
70d7cb34 27363
5c8c7dd3
RD
27364 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27366 if (!SWIG_IsOK(res1)) {
8f514ab4 27367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27368 }
5c8c7dd3
RD
27369 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27370 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27371 if (!SWIG_IsOK(ecode2)) {
27372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27373 }
27374 arg2 = static_cast< wxDouble >(val2);
27375 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27376 if (!SWIG_IsOK(ecode3)) {
27377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27378 }
27379 arg3 = static_cast< wxDouble >(val3);
27380 if (swig_obj[3]) {
27381 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27382 if (!SWIG_IsOK(ecode4)) {
27383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27384 }
27385 arg4 = static_cast< int >(val4);
70d7cb34
RD
27386 }
27387 {
8f514ab4 27388 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27389 if (PyErr_Occurred()) SWIG_fail;
27390 }
5c8c7dd3
RD
27391 {
27392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27393 }
27394 return resultobj;
27395fail:
27396 return NULL;
27397}
27398
27399
5c8c7dd3 27400SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27401 PyObject *resultobj = 0;
5c8c7dd3
RD
27402 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27403 wxPoint2DDouble *arg2 = 0 ;
8f514ab4 27404 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27405 bool result;
70d7cb34
RD
27406 void *argp1 = 0 ;
27407 int res1 = 0 ;
5c8c7dd3 27408 void *argp2 = 0 ;
70d7cb34 27409 int res2 = 0 ;
5c8c7dd3
RD
27410 int val3 ;
27411 int ecode3 = 0 ;
70d7cb34 27412
5c8c7dd3
RD
27413 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27415 if (!SWIG_IsOK(res1)) {
8f514ab4 27416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27417 }
5c8c7dd3
RD
27418 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27419 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27420 if (!SWIG_IsOK(res2)) {
27421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27422 }
5c8c7dd3
RD
27423 if (!argp2) {
27424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27425 }
27426 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27427 if (swig_obj[2]) {
27428 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27429 if (!SWIG_IsOK(ecode3)) {
27430 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27431 }
27432 arg3 = static_cast< int >(val3);
70d7cb34
RD
27433 }
27434 {
8f514ab4 27435 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27436 if (PyErr_Occurred()) SWIG_fail;
27437 }
5c8c7dd3
RD
27438 {
27439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27440 }
27441 return resultobj;
27442fail:
27443 return NULL;
27444}
27445
27446
5c8c7dd3
RD
27447SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27448 int argc;
27449 PyObject *argv[5];
70d7cb34 27450
5c8c7dd3
RD
27451 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27452 --argc;
27453 if ((argc >= 2) && (argc <= 3)) {
27454 int _v = 0;
27455 {
27456 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27457 _v = SWIG_CheckState(res);
27458 }
27459 if (!_v) goto check_1;
27460 if (argc > 2) {
27461 {
27462 {
27463 int res = SWIG_AsVal_int(argv[2], NULL);
27464 _v = SWIG_CheckState(res);
27465 }
27466 }
27467 if (!_v) goto check_1;
27468 }
27469 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27470 }
5c8c7dd3
RD
27471check_1:
27472
27473 if ((argc >= 3) && (argc <= 4)) {
27474 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27475 }
5c8c7dd3 27476
70d7cb34 27477fail:
5c8c7dd3 27478 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27479 return NULL;
27480}
27481
27482
5c8c7dd3 27483SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27484 PyObject *obj;
27485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27486 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27487 return SWIG_Py_Void();
27488}
27489
8f514ab4
RD
27490SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27491 return SWIG_Python_InitShadowInstance(args);
27492}
27493
5c8c7dd3
RD
27494SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27495 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27496 return 1;
27497}
27498
27499
27500SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27501 PyObject *pyobj = 0;
27502
27503 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27504 return pyobj;
27505}
27506
27507
27508SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27509 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27510 return 1;
27511}
27512
27513
27514SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27515 PyObject *pyobj = 0;
27516
27517 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27518 return pyobj;
27519}
27520
27521
27522SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27523 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27524 return 1;
27525}
27526
27527
27528SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27529 PyObject *pyobj = 0;
27530
27531 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27532 return pyobj;
27533}
27534
27535
27536SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27537 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27538 return 1;
27539}
27540
27541
27542SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27543 PyObject *pyobj = 0;
27544
27545 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27546 return pyobj;
27547}
27548
27549
27550SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27551 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27552 return 1;
27553}
27554
27555
27556SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27557 PyObject *pyobj = 0;
27558
27559 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27560 return pyobj;
27561}
27562
27563
70d7cb34
RD
27564SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27565 PyObject *resultobj = 0;
27566 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27567 void *argp1 = 0 ;
27568 int res1 = 0 ;
27569 PyObject *swig_obj[1] ;
27570
27571 if (!args) SWIG_fail;
27572 swig_obj[0] = args;
27573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27574 if (!SWIG_IsOK(res1)) {
27575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27576 }
27577 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27578 {
27579 delete arg1;
27580
27581 if (PyErr_Occurred()) SWIG_fail;
27582 }
27583 resultobj = SWIG_Py_Void();
27584 return resultobj;
27585fail:
27586 return NULL;
27587}
27588
27589
27590SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27591 PyObject *resultobj = 0;
27592 wxWindowDC *arg1 = 0 ;
27593 wxGraphicsContext *result = 0 ;
27594 void *argp1 = 0 ;
27595 int res1 = 0 ;
27596
27597 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27599 if (!SWIG_IsOK(res1)) {
27600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27601 }
27602 if (!argp1) {
27603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27604 }
27605 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27606 {
27607 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27608 if (PyErr_Occurred()) SWIG_fail;
27609 }
27610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27611 return resultobj;
27612fail:
27613 return NULL;
27614}
27615
27616
27617SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27618 PyObject *resultobj = 0;
27619 wxWindow *arg1 = (wxWindow *) 0 ;
27620 wxGraphicsContext *result = 0 ;
27621 void *argp1 = 0 ;
27622 int res1 = 0 ;
27623
27624 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27626 if (!SWIG_IsOK(res1)) {
27627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27628 }
27629 arg1 = reinterpret_cast< wxWindow * >(argp1);
27630 {
27631 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27632 if (PyErr_Occurred()) SWIG_fail;
27633 }
27634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27635 return resultobj;
27636fail:
27637 return NULL;
27638}
27639
27640
27641SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27642 int argc;
27643 PyObject *argv[2];
27644
27645 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27646 --argc;
27647 if (argc == 1) {
27648 int _v = 0;
27649 {
27650 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27651 _v = SWIG_CheckState(res);
27652 }
27653 if (!_v) goto check_1;
27654 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27655 }
27656check_1:
27657
27658 if (argc == 1) {
27659 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27660 }
27661
27662fail:
27663 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27664 return NULL;
27665}
27666
27667
f89238b9
RD
27668SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27669 PyObject *resultobj = 0;
27670 wxGraphicsContext *result = 0 ;
27671
27672 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27673 {
27674 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27675 if (PyErr_Occurred()) SWIG_fail;
27676 }
27677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27678 return resultobj;
27679fail:
27680 return NULL;
27681}
27682
27683
70d7cb34
RD
27684SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27685 PyObject *resultobj = 0;
27686 void *arg1 = (void *) 0 ;
27687 wxGraphicsContext *result = 0 ;
27688 int res1 ;
27689 PyObject * obj0 = 0 ;
27690 char * kwnames[] = {
27691 (char *) "context", NULL
27692 };
27693
27694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27695 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27696 if (!SWIG_IsOK(res1)) {
27697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27698 }
27699 {
27700 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27701 if (PyErr_Occurred()) SWIG_fail;
27702 }
27703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27704 return resultobj;
27705fail:
27706 return NULL;
27707}
27708
27709
27710SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27711 PyObject *resultobj = 0;
27712 void *arg1 = (void *) 0 ;
27713 wxGraphicsContext *result = 0 ;
27714 int res1 ;
27715 PyObject * obj0 = 0 ;
27716 char * kwnames[] = {
27717 (char *) "window", NULL
27718 };
27719
27720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27721 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27722 if (!SWIG_IsOK(res1)) {
27723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27724 }
27725 {
27726 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27727 if (PyErr_Occurred()) SWIG_fail;
27728 }
27729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27730 return resultobj;
27731fail:
27732 return NULL;
27733}
27734
27735
27736SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27737 PyObject *resultobj = 0;
27738 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27739 wxGraphicsPath result;
70d7cb34
RD
27740 void *argp1 = 0 ;
27741 int res1 = 0 ;
27742 PyObject *swig_obj[1] ;
27743
27744 if (!args) SWIG_fail;
27745 swig_obj[0] = args;
27746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27747 if (!SWIG_IsOK(res1)) {
27748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27749 }
27750 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27751 {
5c8c7dd3 27752 result = (arg1)->CreatePath();
70d7cb34
RD
27753 if (PyErr_Occurred()) SWIG_fail;
27754 }
5c8c7dd3 27755 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27756 return resultobj;
27757fail:
27758 return NULL;
27759}
27760
27761
70d7cb34 27762SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27763 PyObject *resultobj = 0;
70d7cb34
RD
27764 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27765 wxPen *arg2 = 0 ;
27766 wxGraphicsPen result;
72ef6efb
RD
27767 void *argp1 = 0 ;
27768 int res1 = 0 ;
70d7cb34
RD
27769 void *argp2 = 0 ;
27770 int res2 = 0 ;
72ef6efb
RD
27771 PyObject * obj0 = 0 ;
27772 PyObject * obj1 = 0 ;
72ef6efb 27773 char * kwnames[] = {
70d7cb34 27774 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27775 };
27776
70d7cb34
RD
27777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27779 if (!SWIG_IsOK(res1)) {
70d7cb34 27780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27781 }
70d7cb34
RD
27782 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27784 if (!SWIG_IsOK(res2)) {
27785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27786 }
27787 if (!argp2) {
27788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27789 }
27790 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27791 {
70d7cb34 27792 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27793 if (PyErr_Occurred()) SWIG_fail;
27794 }
70d7cb34 27795 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27796 return resultobj;
27797fail:
27798 return NULL;
27799}
27800
27801
70d7cb34 27802SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27803 PyObject *resultobj = 0;
70d7cb34
RD
27804 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27805 wxBrush *arg2 = 0 ;
27806 wxGraphicsBrush result;
72ef6efb
RD
27807 void *argp1 = 0 ;
27808 int res1 = 0 ;
70d7cb34
RD
27809 void *argp2 = 0 ;
27810 int res2 = 0 ;
72ef6efb
RD
27811 PyObject * obj0 = 0 ;
27812 PyObject * obj1 = 0 ;
72ef6efb 27813 char * kwnames[] = {
70d7cb34 27814 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27815 };
27816
70d7cb34
RD
27817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27819 if (!SWIG_IsOK(res1)) {
70d7cb34 27820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27821 }
70d7cb34
RD
27822 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27824 if (!SWIG_IsOK(res2)) {
27825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27826 }
27827 if (!argp2) {
27828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27829 }
27830 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27831 {
70d7cb34 27832 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27833 if (PyErr_Occurred()) SWIG_fail;
27834 }
70d7cb34 27835 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27836 return resultobj;
27837fail:
27838 return NULL;
27839}
27840
27841
70d7cb34 27842SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27843 PyObject *resultobj = 0;
70d7cb34 27844 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27845 wxDouble arg2 ;
27846 wxDouble arg3 ;
27847 wxDouble arg4 ;
27848 wxDouble arg5 ;
70d7cb34
RD
27849 wxColour *arg6 = 0 ;
27850 wxColour *arg7 = 0 ;
27851 wxGraphicsBrush result;
72ef6efb
RD
27852 void *argp1 = 0 ;
27853 int res1 = 0 ;
27854 double val2 ;
27855 int ecode2 = 0 ;
27856 double val3 ;
27857 int ecode3 = 0 ;
27858 double val4 ;
27859 int ecode4 = 0 ;
27860 double val5 ;
27861 int ecode5 = 0 ;
70d7cb34
RD
27862 wxColour temp6 ;
27863 wxColour temp7 ;
72ef6efb
RD
27864 PyObject * obj0 = 0 ;
27865 PyObject * obj1 = 0 ;
27866 PyObject * obj2 = 0 ;
27867 PyObject * obj3 = 0 ;
27868 PyObject * obj4 = 0 ;
70d7cb34
RD
27869 PyObject * obj5 = 0 ;
27870 PyObject * obj6 = 0 ;
72ef6efb 27871 char * kwnames[] = {
70d7cb34 27872 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27873 };
27874
70d7cb34
RD
27875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27877 if (!SWIG_IsOK(res1)) {
70d7cb34 27878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27879 }
70d7cb34 27880 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27881 ecode2 = SWIG_AsVal_double(obj1, &val2);
27882 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27884 }
27885 arg2 = static_cast< wxDouble >(val2);
27886 ecode3 = SWIG_AsVal_double(obj2, &val3);
27887 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27889 }
27890 arg3 = static_cast< wxDouble >(val3);
27891 ecode4 = SWIG_AsVal_double(obj3, &val4);
27892 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27894 }
27895 arg4 = static_cast< wxDouble >(val4);
27896 ecode5 = SWIG_AsVal_double(obj4, &val5);
27897 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27899 }
27900 arg5 = static_cast< wxDouble >(val5);
27901 {
70d7cb34
RD
27902 arg6 = &temp6;
27903 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27904 }
70d7cb34
RD
27905 {
27906 arg7 = &temp7;
27907 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27908 }
72ef6efb 27909 {
70d7cb34 27910 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27911 if (PyErr_Occurred()) SWIG_fail;
27912 }
70d7cb34 27913 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27914 return resultobj;
27915fail:
27916 return NULL;
27917}
27918
27919
70d7cb34 27920SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27921 PyObject *resultobj = 0;
70d7cb34 27922 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27923 wxDouble arg2 ;
27924 wxDouble arg3 ;
27925 wxDouble arg4 ;
27926 wxDouble arg5 ;
27927 wxDouble arg6 ;
70d7cb34
RD
27928 wxColour *arg7 = 0 ;
27929 wxColour *arg8 = 0 ;
27930 wxGraphicsBrush result;
72ef6efb
RD
27931 void *argp1 = 0 ;
27932 int res1 = 0 ;
27933 double val2 ;
27934 int ecode2 = 0 ;
27935 double val3 ;
27936 int ecode3 = 0 ;
27937 double val4 ;
27938 int ecode4 = 0 ;
27939 double val5 ;
27940 int ecode5 = 0 ;
27941 double val6 ;
27942 int ecode6 = 0 ;
70d7cb34
RD
27943 wxColour temp7 ;
27944 wxColour temp8 ;
72ef6efb
RD
27945 PyObject * obj0 = 0 ;
27946 PyObject * obj1 = 0 ;
27947 PyObject * obj2 = 0 ;
27948 PyObject * obj3 = 0 ;
27949 PyObject * obj4 = 0 ;
27950 PyObject * obj5 = 0 ;
70d7cb34
RD
27951 PyObject * obj6 = 0 ;
27952 PyObject * obj7 = 0 ;
72ef6efb 27953 char * kwnames[] = {
70d7cb34 27954 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27955 };
27956
70d7cb34
RD
27957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27959 if (!SWIG_IsOK(res1)) {
70d7cb34 27960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27961 }
70d7cb34 27962 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27963 ecode2 = SWIG_AsVal_double(obj1, &val2);
27964 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27966 }
27967 arg2 = static_cast< wxDouble >(val2);
27968 ecode3 = SWIG_AsVal_double(obj2, &val3);
27969 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27971 }
27972 arg3 = static_cast< wxDouble >(val3);
27973 ecode4 = SWIG_AsVal_double(obj3, &val4);
27974 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27975 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27976 }
27977 arg4 = static_cast< wxDouble >(val4);
27978 ecode5 = SWIG_AsVal_double(obj4, &val5);
27979 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27980 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27981 }
27982 arg5 = static_cast< wxDouble >(val5);
27983 ecode6 = SWIG_AsVal_double(obj5, &val6);
27984 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27985 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27986 }
27987 arg6 = static_cast< wxDouble >(val6);
27988 {
70d7cb34
RD
27989 arg7 = &temp7;
27990 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27991 }
27992 {
27993 arg8 = &temp8;
27994 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27995 }
27996 {
27997 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27998 if (PyErr_Occurred()) SWIG_fail;
27999 }
70d7cb34 28000 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28001 return resultobj;
28002fail:
28003 return NULL;
28004}
28005
28006
70d7cb34 28007SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28008 PyObject *resultobj = 0;
28009 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28010 wxFont *arg2 = 0 ;
28011 wxColour const &arg3_defvalue = *wxBLACK ;
28012 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28013 wxGraphicsFont result;
72ef6efb
RD
28014 void *argp1 = 0 ;
28015 int res1 = 0 ;
70d7cb34
RD
28016 void *argp2 = 0 ;
28017 int res2 = 0 ;
28018 wxColour temp3 ;
28019 PyObject * obj0 = 0 ;
28020 PyObject * obj1 = 0 ;
28021 PyObject * obj2 = 0 ;
28022 char * kwnames[] = {
28023 (char *) "self",(char *) "font",(char *) "col", NULL
28024 };
72ef6efb 28025
70d7cb34
RD
28026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28028 if (!SWIG_IsOK(res1)) {
70d7cb34 28029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28030 }
28031 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28032 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28033 if (!SWIG_IsOK(res2)) {
28034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28035 }
70d7cb34
RD
28036 if (!argp2) {
28037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28038 }
70d7cb34
RD
28039 arg2 = reinterpret_cast< wxFont * >(argp2);
28040 if (obj2) {
28041 {
28042 arg3 = &temp3;
28043 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28044 }
72ef6efb 28045 }
72ef6efb 28046 {
70d7cb34 28047 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28048 if (PyErr_Occurred()) SWIG_fail;
28049 }
70d7cb34 28050 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28051 return resultobj;
28052fail:
28053 return NULL;
28054}
28055
28056
70d7cb34 28057SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28058 PyObject *resultobj = 0;
70d7cb34
RD
28059 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28060 wxDouble arg2 = (wxDouble) 1.0 ;
28061 wxDouble arg3 = (wxDouble) 0.0 ;
28062 wxDouble arg4 = (wxDouble) 0.0 ;
28063 wxDouble arg5 = (wxDouble) 1.0 ;
28064 wxDouble arg6 = (wxDouble) 0.0 ;
28065 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28066 wxGraphicsMatrix result;
0a27f394
RD
28067 void *argp1 = 0 ;
28068 int res1 = 0 ;
70d7cb34
RD
28069 double val2 ;
28070 int ecode2 = 0 ;
28071 double val3 ;
28072 int ecode3 = 0 ;
28073 double val4 ;
28074 int ecode4 = 0 ;
28075 double val5 ;
28076 int ecode5 = 0 ;
28077 double val6 ;
28078 int ecode6 = 0 ;
28079 double val7 ;
28080 int ecode7 = 0 ;
28081 PyObject * obj0 = 0 ;
28082 PyObject * obj1 = 0 ;
28083 PyObject * obj2 = 0 ;
28084 PyObject * obj3 = 0 ;
28085 PyObject * obj4 = 0 ;
28086 PyObject * obj5 = 0 ;
28087 PyObject * obj6 = 0 ;
28088 char * kwnames[] = {
28089 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28090 };
0a27f394 28091
70d7cb34
RD
28092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28094 if (!SWIG_IsOK(res1)) {
70d7cb34 28095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28096 }
70d7cb34
RD
28097 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28098 if (obj1) {
28099 ecode2 = SWIG_AsVal_double(obj1, &val2);
28100 if (!SWIG_IsOK(ecode2)) {
28101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28102 }
28103 arg2 = static_cast< wxDouble >(val2);
0a27f394 28104 }
70d7cb34
RD
28105 if (obj2) {
28106 ecode3 = SWIG_AsVal_double(obj2, &val3);
28107 if (!SWIG_IsOK(ecode3)) {
28108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28109 }
28110 arg3 = static_cast< wxDouble >(val3);
0a27f394 28111 }
70d7cb34
RD
28112 if (obj3) {
28113 ecode4 = SWIG_AsVal_double(obj3, &val4);
28114 if (!SWIG_IsOK(ecode4)) {
28115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28116 }
28117 arg4 = static_cast< wxDouble >(val4);
0a27f394 28118 }
70d7cb34
RD
28119 if (obj4) {
28120 ecode5 = SWIG_AsVal_double(obj4, &val5);
28121 if (!SWIG_IsOK(ecode5)) {
28122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28123 }
28124 arg5 = static_cast< wxDouble >(val5);
0a27f394 28125 }
70d7cb34
RD
28126 if (obj5) {
28127 ecode6 = SWIG_AsVal_double(obj5, &val6);
28128 if (!SWIG_IsOK(ecode6)) {
28129 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28130 }
28131 arg6 = static_cast< wxDouble >(val6);
0a27f394 28132 }
70d7cb34
RD
28133 if (obj6) {
28134 ecode7 = SWIG_AsVal_double(obj6, &val7);
28135 if (!SWIG_IsOK(ecode7)) {
28136 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28137 }
28138 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28139 }
72ef6efb 28140 {
5c8c7dd3 28141 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28142 if (PyErr_Occurred()) SWIG_fail;
28143 }
5c8c7dd3 28144 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28145 return resultobj;
28146fail:
28147 return NULL;
28148}
28149
28150
28151SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28152 PyObject *resultobj = 0;
28153 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28154 void *argp1 = 0 ;
28155 int res1 = 0 ;
28156 PyObject *swig_obj[1] ;
28157
28158 if (!args) SWIG_fail;
28159 swig_obj[0] = args;
28160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28161 if (!SWIG_IsOK(res1)) {
28162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28163 }
28164 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28165 {
72ef6efb 28166 (arg1)->PushState();
72ef6efb
RD
28167 if (PyErr_Occurred()) SWIG_fail;
28168 }
28169 resultobj = SWIG_Py_Void();
28170 return resultobj;
28171fail:
28172 return NULL;
28173}
28174
28175
28176SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28177 PyObject *resultobj = 0;
28178 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28179 void *argp1 = 0 ;
28180 int res1 = 0 ;
28181 PyObject *swig_obj[1] ;
28182
28183 if (!args) SWIG_fail;
28184 swig_obj[0] = args;
28185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28186 if (!SWIG_IsOK(res1)) {
28187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28188 }
28189 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28190 {
72ef6efb 28191 (arg1)->PopState();
72ef6efb
RD
28192 if (PyErr_Occurred()) SWIG_fail;
28193 }
28194 resultobj = SWIG_Py_Void();
28195 return resultobj;
28196fail:
28197 return NULL;
28198}
28199
28200
0a27f394 28201SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28202 PyObject *resultobj = 0;
28203 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28204 wxRegion *arg2 = 0 ;
28205 void *argp1 = 0 ;
28206 int res1 = 0 ;
28207 void *argp2 = 0 ;
28208 int res2 = 0 ;
28209 PyObject * obj0 = 0 ;
28210 PyObject * obj1 = 0 ;
28211 char * kwnames[] = {
28212 (char *) "self",(char *) "region", NULL
28213 };
28214
0a27f394 28215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28217 if (!SWIG_IsOK(res1)) {
0a27f394 28218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28219 }
28220 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28221 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28222 if (!SWIG_IsOK(res2)) {
0a27f394 28223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28224 }
28225 if (!argp2) {
0a27f394 28226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28227 }
28228 arg2 = reinterpret_cast< wxRegion * >(argp2);
28229 {
72ef6efb 28230 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28231 if (PyErr_Occurred()) SWIG_fail;
28232 }
28233 resultobj = SWIG_Py_Void();
28234 return resultobj;
28235fail:
28236 return NULL;
28237}
28238
28239
0a27f394
RD
28240SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28241 PyObject *resultobj = 0;
28242 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28243 wxDouble arg2 ;
28244 wxDouble arg3 ;
28245 wxDouble arg4 ;
28246 wxDouble arg5 ;
28247 void *argp1 = 0 ;
28248 int res1 = 0 ;
28249 double val2 ;
28250 int ecode2 = 0 ;
28251 double val3 ;
28252 int ecode3 = 0 ;
28253 double val4 ;
28254 int ecode4 = 0 ;
28255 double val5 ;
28256 int ecode5 = 0 ;
28257 PyObject * obj0 = 0 ;
28258 PyObject * obj1 = 0 ;
28259 PyObject * obj2 = 0 ;
28260 PyObject * obj3 = 0 ;
28261 PyObject * obj4 = 0 ;
28262 char * kwnames[] = {
28263 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28264 };
28265
28266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28268 if (!SWIG_IsOK(res1)) {
28269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28270 }
28271 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28272 ecode2 = SWIG_AsVal_double(obj1, &val2);
28273 if (!SWIG_IsOK(ecode2)) {
28274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28275 }
28276 arg2 = static_cast< wxDouble >(val2);
28277 ecode3 = SWIG_AsVal_double(obj2, &val3);
28278 if (!SWIG_IsOK(ecode3)) {
28279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28280 }
28281 arg3 = static_cast< wxDouble >(val3);
28282 ecode4 = SWIG_AsVal_double(obj3, &val4);
28283 if (!SWIG_IsOK(ecode4)) {
28284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28285 }
28286 arg4 = static_cast< wxDouble >(val4);
28287 ecode5 = SWIG_AsVal_double(obj4, &val5);
28288 if (!SWIG_IsOK(ecode5)) {
28289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28290 }
28291 arg5 = static_cast< wxDouble >(val5);
28292 {
28293 (arg1)->Clip(arg2,arg3,arg4,arg5);
28294 if (PyErr_Occurred()) SWIG_fail;
28295 }
28296 resultobj = SWIG_Py_Void();
28297 return resultobj;
28298fail:
28299 return NULL;
28300}
28301
28302
28303SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28304 PyObject *resultobj = 0;
28305 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28306 void *argp1 = 0 ;
28307 int res1 = 0 ;
28308 PyObject *swig_obj[1] ;
28309
28310 if (!args) SWIG_fail;
28311 swig_obj[0] = args;
28312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28313 if (!SWIG_IsOK(res1)) {
28314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28315 }
28316 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28317 {
28318 (arg1)->ResetClip();
28319 if (PyErr_Occurred()) SWIG_fail;
28320 }
28321 resultobj = SWIG_Py_Void();
28322 return resultobj;
28323fail:
28324 return NULL;
28325}
28326
28327
28328SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28329 PyObject *resultobj = 0;
28330 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28331 void *result = 0 ;
28332 void *argp1 = 0 ;
28333 int res1 = 0 ;
28334 PyObject *swig_obj[1] ;
28335
28336 if (!args) SWIG_fail;
28337 swig_obj[0] = args;
28338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28339 if (!SWIG_IsOK(res1)) {
28340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28341 }
28342 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28343 {
28344 result = (void *)(arg1)->GetNativeContext();
28345 if (PyErr_Occurred()) SWIG_fail;
28346 }
28347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28348 return resultobj;
28349fail:
28350 return NULL;
28351}
28352
28353
72ef6efb
RD
28354SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28355 PyObject *resultobj = 0;
28356 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28357 wxDouble arg2 ;
28358 wxDouble arg3 ;
28359 void *argp1 = 0 ;
28360 int res1 = 0 ;
28361 double val2 ;
28362 int ecode2 = 0 ;
28363 double val3 ;
28364 int ecode3 = 0 ;
28365 PyObject * obj0 = 0 ;
28366 PyObject * obj1 = 0 ;
28367 PyObject * obj2 = 0 ;
28368 char * kwnames[] = {
28369 (char *) "self",(char *) "dx",(char *) "dy", NULL
28370 };
28371
28372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28374 if (!SWIG_IsOK(res1)) {
28375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28376 }
28377 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28378 ecode2 = SWIG_AsVal_double(obj1, &val2);
28379 if (!SWIG_IsOK(ecode2)) {
28380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28381 }
28382 arg2 = static_cast< wxDouble >(val2);
28383 ecode3 = SWIG_AsVal_double(obj2, &val3);
28384 if (!SWIG_IsOK(ecode3)) {
28385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28386 }
28387 arg3 = static_cast< wxDouble >(val3);
28388 {
72ef6efb 28389 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28390 if (PyErr_Occurred()) SWIG_fail;
28391 }
28392 resultobj = SWIG_Py_Void();
28393 return resultobj;
28394fail:
28395 return NULL;
28396}
28397
28398
28399SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28400 PyObject *resultobj = 0;
28401 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28402 wxDouble arg2 ;
28403 wxDouble arg3 ;
28404 void *argp1 = 0 ;
28405 int res1 = 0 ;
28406 double val2 ;
28407 int ecode2 = 0 ;
28408 double val3 ;
28409 int ecode3 = 0 ;
28410 PyObject * obj0 = 0 ;
28411 PyObject * obj1 = 0 ;
28412 PyObject * obj2 = 0 ;
28413 char * kwnames[] = {
28414 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28415 };
28416
28417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28419 if (!SWIG_IsOK(res1)) {
28420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28421 }
28422 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28423 ecode2 = SWIG_AsVal_double(obj1, &val2);
28424 if (!SWIG_IsOK(ecode2)) {
28425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28426 }
28427 arg2 = static_cast< wxDouble >(val2);
28428 ecode3 = SWIG_AsVal_double(obj2, &val3);
28429 if (!SWIG_IsOK(ecode3)) {
28430 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28431 }
28432 arg3 = static_cast< wxDouble >(val3);
28433 {
72ef6efb 28434 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28435 if (PyErr_Occurred()) SWIG_fail;
28436 }
28437 resultobj = SWIG_Py_Void();
28438 return resultobj;
28439fail:
28440 return NULL;
28441}
28442
28443
28444SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28445 PyObject *resultobj = 0;
28446 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28447 wxDouble arg2 ;
28448 void *argp1 = 0 ;
28449 int res1 = 0 ;
28450 double val2 ;
28451 int ecode2 = 0 ;
28452 PyObject * obj0 = 0 ;
28453 PyObject * obj1 = 0 ;
28454 char * kwnames[] = {
28455 (char *) "self",(char *) "angle", NULL
28456 };
28457
28458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28460 if (!SWIG_IsOK(res1)) {
28461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28462 }
28463 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28464 ecode2 = SWIG_AsVal_double(obj1, &val2);
28465 if (!SWIG_IsOK(ecode2)) {
28466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28467 }
28468 arg2 = static_cast< wxDouble >(val2);
28469 {
72ef6efb 28470 (arg1)->Rotate(arg2);
72ef6efb
RD
28471 if (PyErr_Occurred()) SWIG_fail;
28472 }
28473 resultobj = SWIG_Py_Void();
28474 return resultobj;
28475fail:
28476 return NULL;
28477}
28478
28479
5c8c7dd3
RD
28480SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28481 PyObject *resultobj = 0;
28482 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28483 wxGraphicsMatrix *arg2 = 0 ;
28484 void *argp1 = 0 ;
28485 int res1 = 0 ;
28486 void *argp2 = 0 ;
28487 int res2 = 0 ;
28488 PyObject * obj0 = 0 ;
28489 PyObject * obj1 = 0 ;
28490 char * kwnames[] = {
28491 (char *) "self",(char *) "matrix", NULL
28492 };
28493
28494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28496 if (!SWIG_IsOK(res1)) {
28497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28498 }
28499 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28501 if (!SWIG_IsOK(res2)) {
28502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28503 }
28504 if (!argp2) {
28505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28506 }
28507 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28508 {
28509 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28510 if (PyErr_Occurred()) SWIG_fail;
28511 }
28512 resultobj = SWIG_Py_Void();
28513 return resultobj;
28514fail:
28515 return NULL;
28516}
28517
28518
28519SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28520 PyObject *resultobj = 0;
28521 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28522 wxGraphicsMatrix *arg2 = 0 ;
28523 void *argp1 = 0 ;
28524 int res1 = 0 ;
28525 void *argp2 = 0 ;
28526 int res2 = 0 ;
28527 PyObject * obj0 = 0 ;
28528 PyObject * obj1 = 0 ;
28529 char * kwnames[] = {
28530 (char *) "self",(char *) "matrix", NULL
28531 };
28532
28533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28535 if (!SWIG_IsOK(res1)) {
28536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28537 }
28538 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28540 if (!SWIG_IsOK(res2)) {
28541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28542 }
28543 if (!argp2) {
28544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28545 }
28546 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28547 {
28548 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28549 if (PyErr_Occurred()) SWIG_fail;
28550 }
28551 resultobj = SWIG_Py_Void();
28552 return resultobj;
28553fail:
28554 return NULL;
28555}
28556
28557
28558SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28559 PyObject *resultobj = 0;
28560 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28561 wxGraphicsMatrix result;
28562 void *argp1 = 0 ;
28563 int res1 = 0 ;
28564 PyObject *swig_obj[1] ;
28565
28566 if (!args) SWIG_fail;
28567 swig_obj[0] = args;
28568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28569 if (!SWIG_IsOK(res1)) {
28570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28571 }
28572 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28573 {
28574 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28575 if (PyErr_Occurred()) SWIG_fail;
28576 }
28577 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28578 return resultobj;
28579fail:
28580 return NULL;
28581}
28582
28583
70d7cb34
RD
28584SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28585 PyObject *resultobj = 0;
28586 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28587 wxGraphicsPen *arg2 = 0 ;
28588 void *argp1 = 0 ;
28589 int res1 = 0 ;
28590 void *argp2 = 0 ;
28591 int res2 = 0 ;
28592
28593 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28595 if (!SWIG_IsOK(res1)) {
28596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28597 }
28598 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28599 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28600 if (!SWIG_IsOK(res2)) {
28601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28602 }
28603 if (!argp2) {
28604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28605 }
28606 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28607 {
28608 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28609 if (PyErr_Occurred()) SWIG_fail;
28610 }
28611 resultobj = SWIG_Py_Void();
28612 return resultobj;
28613fail:
28614 return NULL;
28615}
28616
28617
28618SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28619 PyObject *resultobj = 0;
28620 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28621 wxPen *arg2 = 0 ;
28622 void *argp1 = 0 ;
28623 int res1 = 0 ;
28624 void *argp2 = 0 ;
28625 int res2 = 0 ;
72ef6efb 28626
70d7cb34
RD
28627 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28629 if (!SWIG_IsOK(res1)) {
28630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28631 }
28632 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28633 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28634 if (!SWIG_IsOK(res2)) {
28635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28636 }
28637 if (!argp2) {
28638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28639 }
28640 arg2 = reinterpret_cast< wxPen * >(argp2);
28641 {
72ef6efb 28642 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28643 if (PyErr_Occurred()) SWIG_fail;
28644 }
28645 resultobj = SWIG_Py_Void();
28646 return resultobj;
28647fail:
28648 return NULL;
28649}
28650
28651
70d7cb34
RD
28652SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28653 int argc;
28654 PyObject *argv[3];
28655
28656 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28657 --argc;
28658 if (argc == 2) {
28659 int _v = 0;
28660 {
28661 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28662 _v = SWIG_CheckState(res);
28663 }
28664 if (!_v) goto check_1;
28665 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28666 }
28667check_1:
28668
28669 if (argc == 2) {
28670 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28671 }
28672
28673fail:
28674 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28675 return NULL;
28676}
28677
28678
28679SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28680 PyObject *resultobj = 0;
28681 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28682 wxGraphicsBrush *arg2 = 0 ;
28683 void *argp1 = 0 ;
28684 int res1 = 0 ;
28685 void *argp2 = 0 ;
28686 int res2 = 0 ;
28687
28688 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28690 if (!SWIG_IsOK(res1)) {
28691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28692 }
28693 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28694 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28695 if (!SWIG_IsOK(res2)) {
28696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28697 }
28698 if (!argp2) {
28699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28700 }
28701 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28702 {
28703 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28704 if (PyErr_Occurred()) SWIG_fail;
28705 }
28706 resultobj = SWIG_Py_Void();
28707 return resultobj;
28708fail:
28709 return NULL;
28710}
28711
28712
28713SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28714 PyObject *resultobj = 0;
28715 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28716 wxBrush *arg2 = 0 ;
28717 void *argp1 = 0 ;
28718 int res1 = 0 ;
28719 void *argp2 = 0 ;
28720 int res2 = 0 ;
72ef6efb 28721
70d7cb34
RD
28722 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28724 if (!SWIG_IsOK(res1)) {
28725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28726 }
28727 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28728 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28729 if (!SWIG_IsOK(res2)) {
28730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28731 }
28732 if (!argp2) {
28733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28734 }
28735 arg2 = reinterpret_cast< wxBrush * >(argp2);
28736 {
72ef6efb 28737 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28738 if (PyErr_Occurred()) SWIG_fail;
28739 }
28740 resultobj = SWIG_Py_Void();
28741 return resultobj;
28742fail:
28743 return NULL;
28744}
28745
28746
70d7cb34
RD
28747SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28748 int argc;
28749 PyObject *argv[3];
72ef6efb 28750
70d7cb34
RD
28751 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28752 --argc;
28753 if (argc == 2) {
28754 int _v = 0;
28755 {
28756 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28757 _v = SWIG_CheckState(res);
28758 }
28759 if (!_v) goto check_1;
28760 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28761 }
70d7cb34
RD
28762check_1:
28763
28764 if (argc == 2) {
28765 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28766 }
70d7cb34 28767
72ef6efb 28768fail:
70d7cb34 28769 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28770 return NULL;
28771}
28772
28773
70d7cb34 28774SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28775 PyObject *resultobj = 0;
28776 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28777 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28778 void *argp1 = 0 ;
28779 int res1 = 0 ;
70d7cb34
RD
28780 void *argp2 = 0 ;
28781 int res2 = 0 ;
72ef6efb 28782
70d7cb34
RD
28783 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28785 if (!SWIG_IsOK(res1)) {
70d7cb34 28786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28787 }
28788 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28789 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28790 if (!SWIG_IsOK(res2)) {
28791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28792 }
70d7cb34
RD
28793 if (!argp2) {
28794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28795 }
70d7cb34 28796 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28797 {
70d7cb34 28798 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28799 if (PyErr_Occurred()) SWIG_fail;
28800 }
28801 resultobj = SWIG_Py_Void();
28802 return resultobj;
28803fail:
28804 return NULL;
28805}
28806
28807
70d7cb34 28808SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28809 PyObject *resultobj = 0;
28810 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28811 wxFont *arg2 = 0 ;
70d7cb34
RD
28812 wxColour const &arg3_defvalue = *wxBLACK ;
28813 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28814 void *argp1 = 0 ;
28815 int res1 = 0 ;
28816 void *argp2 = 0 ;
28817 int res2 = 0 ;
70d7cb34 28818 wxColour temp3 ;
72ef6efb 28819
70d7cb34
RD
28820 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28822 if (!SWIG_IsOK(res1)) {
28823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28824 }
28825 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28826 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28827 if (!SWIG_IsOK(res2)) {
28828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28829 }
28830 if (!argp2) {
28831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28832 }
28833 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28834 if (swig_obj[2]) {
28835 {
28836 arg3 = &temp3;
28837 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28838 }
28839 }
72ef6efb 28840 {
70d7cb34 28841 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28842 if (PyErr_Occurred()) SWIG_fail;
28843 }
28844 resultobj = SWIG_Py_Void();
28845 return resultobj;
28846fail:
28847 return NULL;
28848}
28849
28850
70d7cb34
RD
28851SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28852 int argc;
28853 PyObject *argv[4];
72ef6efb 28854
70d7cb34
RD
28855 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28856 --argc;
28857 if (argc == 2) {
28858 int _v = 0;
28859 {
28860 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28861 _v = SWIG_CheckState(res);
28862 }
28863 if (!_v) goto check_1;
28864 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28865 }
70d7cb34
RD
28866check_1:
28867
28868 if ((argc >= 2) && (argc <= 3)) {
28869 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28870 }
70d7cb34 28871
72ef6efb 28872fail:
70d7cb34 28873 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28874 return NULL;
28875}
28876
28877
28878SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28879 PyObject *resultobj = 0;
28880 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28881 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28882 void *argp1 = 0 ;
28883 int res1 = 0 ;
28884 void *argp2 = 0 ;
28885 int res2 = 0 ;
28886 PyObject * obj0 = 0 ;
28887 PyObject * obj1 = 0 ;
28888 char * kwnames[] = {
28889 (char *) "self",(char *) "path", NULL
28890 };
28891
28892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28894 if (!SWIG_IsOK(res1)) {
28895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28896 }
28897 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28899 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28901 }
28902 if (!argp2) {
28903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28904 }
28905 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28906 {
5c8c7dd3 28907 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28908 if (PyErr_Occurred()) SWIG_fail;
28909 }
28910 resultobj = SWIG_Py_Void();
28911 return resultobj;
28912fail:
28913 return NULL;
28914}
28915
28916
28917SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28918 PyObject *resultobj = 0;
28919 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28920 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28921 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28922 void *argp1 = 0 ;
28923 int res1 = 0 ;
28924 void *argp2 = 0 ;
28925 int res2 = 0 ;
28926 int val3 ;
28927 int ecode3 = 0 ;
28928 PyObject * obj0 = 0 ;
28929 PyObject * obj1 = 0 ;
28930 PyObject * obj2 = 0 ;
28931 char * kwnames[] = {
28932 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28933 };
28934
28935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28937 if (!SWIG_IsOK(res1)) {
28938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28939 }
28940 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28942 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28944 }
28945 if (!argp2) {
28946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28947 }
28948 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28949 if (obj2) {
28950 ecode3 = SWIG_AsVal_int(obj2, &val3);
28951 if (!SWIG_IsOK(ecode3)) {
28952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28953 }
28954 arg3 = static_cast< int >(val3);
28955 }
28956 {
5c8c7dd3 28957 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28958 if (PyErr_Occurred()) SWIG_fail;
28959 }
28960 resultobj = SWIG_Py_Void();
28961 return resultobj;
28962fail:
28963 return NULL;
28964}
28965
28966
28967SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28968 PyObject *resultobj = 0;
28969 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28970 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28971 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28972 void *argp1 = 0 ;
28973 int res1 = 0 ;
28974 void *argp2 = 0 ;
28975 int res2 = 0 ;
28976 int val3 ;
28977 int ecode3 = 0 ;
28978 PyObject * obj0 = 0 ;
28979 PyObject * obj1 = 0 ;
28980 PyObject * obj2 = 0 ;
28981 char * kwnames[] = {
28982 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28983 };
28984
28985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28987 if (!SWIG_IsOK(res1)) {
28988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28989 }
28990 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28992 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28994 }
28995 if (!argp2) {
28996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28997 }
28998 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28999 if (obj2) {
29000 ecode3 = SWIG_AsVal_int(obj2, &val3);
29001 if (!SWIG_IsOK(ecode3)) {
29002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29003 }
29004 arg3 = static_cast< int >(val3);
29005 }
29006 {
5c8c7dd3 29007 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29008 if (PyErr_Occurred()) SWIG_fail;
29009 }
29010 resultobj = SWIG_Py_Void();
29011 return resultobj;
29012fail:
29013 return NULL;
29014}
29015
29016
b39fe951 29017SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29018 PyObject *resultobj = 0;
29019 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29020 wxString *arg2 = 0 ;
29021 wxDouble arg3 ;
29022 wxDouble arg4 ;
f89238b9
RD
29023 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29024 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
29025 void *argp1 = 0 ;
29026 int res1 = 0 ;
29027 bool temp2 = false ;
29028 double val3 ;
29029 int ecode3 = 0 ;
29030 double val4 ;
29031 int ecode4 = 0 ;
f89238b9
RD
29032 void *argp5 = 0 ;
29033 int res5 = 0 ;
b39fe951
RD
29034 PyObject * obj0 = 0 ;
29035 PyObject * obj1 = 0 ;
29036 PyObject * obj2 = 0 ;
29037 PyObject * obj3 = 0 ;
f89238b9 29038 PyObject * obj4 = 0 ;
b39fe951 29039 char * kwnames[] = {
f89238b9 29040 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 29041 };
72ef6efb 29042
f89238b9 29043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 29044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29045 if (!SWIG_IsOK(res1)) {
29046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29047 }
29048 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29049 {
b39fe951 29050 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29051 if (arg2 == NULL) SWIG_fail;
29052 temp2 = true;
29053 }
b39fe951 29054 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29055 if (!SWIG_IsOK(ecode3)) {
29056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29057 }
29058 arg3 = static_cast< wxDouble >(val3);
b39fe951 29059 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29060 if (!SWIG_IsOK(ecode4)) {
29061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29062 }
29063 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
29064 if (obj4) {
29065 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29066 if (!SWIG_IsOK(res5)) {
29067 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29068 }
29069 if (!argp5) {
29070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29071 }
29072 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29073 }
72ef6efb 29074 {
f89238b9 29075 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
29076 if (PyErr_Occurred()) SWIG_fail;
29077 }
29078 resultobj = SWIG_Py_Void();
29079 {
29080 if (temp2)
29081 delete arg2;
29082 }
29083 return resultobj;
29084fail:
29085 {
29086 if (temp2)
29087 delete arg2;
29088 }
29089 return NULL;
29090}
29091
29092
b39fe951 29093SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29094 PyObject *resultobj = 0;
29095 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29096 wxString *arg2 = 0 ;
29097 wxDouble arg3 ;
29098 wxDouble arg4 ;
29099 wxDouble arg5 ;
f89238b9
RD
29100 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29101 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
29102 void *argp1 = 0 ;
29103 int res1 = 0 ;
29104 bool temp2 = false ;
29105 double val3 ;
29106 int ecode3 = 0 ;
29107 double val4 ;
29108 int ecode4 = 0 ;
29109 double val5 ;
29110 int ecode5 = 0 ;
f89238b9
RD
29111 void *argp6 = 0 ;
29112 int res6 = 0 ;
b39fe951
RD
29113 PyObject * obj0 = 0 ;
29114 PyObject * obj1 = 0 ;
29115 PyObject * obj2 = 0 ;
29116 PyObject * obj3 = 0 ;
29117 PyObject * obj4 = 0 ;
f89238b9 29118 PyObject * obj5 = 0 ;
b39fe951 29119 char * kwnames[] = {
f89238b9 29120 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 29121 };
72ef6efb 29122
f89238b9 29123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 29124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29125 if (!SWIG_IsOK(res1)) {
b39fe951 29126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29127 }
29128 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29129 {
b39fe951 29130 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29131 if (arg2 == NULL) SWIG_fail;
29132 temp2 = true;
29133 }
b39fe951 29134 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29135 if (!SWIG_IsOK(ecode3)) {
b39fe951 29136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29137 }
29138 arg3 = static_cast< wxDouble >(val3);
b39fe951 29139 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29140 if (!SWIG_IsOK(ecode4)) {
b39fe951 29141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29142 }
29143 arg4 = static_cast< wxDouble >(val4);
b39fe951 29144 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29145 if (!SWIG_IsOK(ecode5)) {
b39fe951 29146 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29147 }
29148 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
29149 if (obj5) {
29150 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29151 if (!SWIG_IsOK(res6)) {
29152 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29153 }
29154 if (!argp6) {
29155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29156 }
29157 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29158 }
72ef6efb 29159 {
f89238b9 29160 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
29161 if (PyErr_Occurred()) SWIG_fail;
29162 }
29163 resultobj = SWIG_Py_Void();
29164 {
29165 if (temp2)
29166 delete arg2;
29167 }
29168 return resultobj;
29169fail:
29170 {
29171 if (temp2)
29172 delete arg2;
29173 }
29174 return NULL;
29175}
29176
29177
be68621e 29178SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29179 PyObject *resultobj = 0;
29180 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29181 wxString *arg2 = 0 ;
29182 wxDouble *arg3 = (wxDouble *) 0 ;
29183 wxDouble *arg4 = (wxDouble *) 0 ;
29184 wxDouble *arg5 = (wxDouble *) 0 ;
29185 wxDouble *arg6 = (wxDouble *) 0 ;
29186 void *argp1 = 0 ;
29187 int res1 = 0 ;
29188 bool temp2 = false ;
29189 wxDouble temp3 ;
29190 int res3 = SWIG_TMPOBJ ;
29191 wxDouble temp4 ;
29192 int res4 = SWIG_TMPOBJ ;
29193 wxDouble temp5 ;
29194 int res5 = SWIG_TMPOBJ ;
29195 wxDouble temp6 ;
29196 int res6 = SWIG_TMPOBJ ;
29197 PyObject * obj0 = 0 ;
29198 PyObject * obj1 = 0 ;
29199 char * kwnames[] = {
29200 (char *) "self",(char *) "text", NULL
29201 };
29202
29203 arg3 = &temp3;
29204 arg4 = &temp4;
29205 arg5 = &temp5;
29206 arg6 = &temp6;
be68621e 29207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29209 if (!SWIG_IsOK(res1)) {
be68621e 29210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29211 }
29212 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29213 {
29214 arg2 = wxString_in_helper(obj1);
29215 if (arg2 == NULL) SWIG_fail;
29216 temp2 = true;
29217 }
29218 {
72ef6efb 29219 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29220 if (PyErr_Occurred()) SWIG_fail;
29221 }
29222 resultobj = SWIG_Py_Void();
29223 if (SWIG_IsTmpObj(res3)) {
29224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29225 } else {
29226 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29228 }
29229 if (SWIG_IsTmpObj(res4)) {
29230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29231 } else {
29232 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29234 }
29235 if (SWIG_IsTmpObj(res5)) {
29236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29237 } else {
29238 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29240 }
29241 if (SWIG_IsTmpObj(res6)) {
29242 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29243 } else {
29244 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29245 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29246 }
29247 {
29248 if (temp2)
29249 delete arg2;
29250 }
29251 return resultobj;
29252fail:
29253 {
29254 if (temp2)
29255 delete arg2;
29256 }
29257 return NULL;
29258}
29259
29260
be68621e
RD
29261SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29262 PyObject *resultobj = 0;
29263 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29264 wxString *arg2 = 0 ;
29265 PyObject *result = 0 ;
29266 void *argp1 = 0 ;
29267 int res1 = 0 ;
29268 bool temp2 = false ;
29269 PyObject * obj0 = 0 ;
29270 PyObject * obj1 = 0 ;
29271 char * kwnames[] = {
29272 (char *) "self",(char *) "text", NULL
29273 };
29274
29275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29277 if (!SWIG_IsOK(res1)) {
29278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29279 }
29280 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29281 {
29282 arg2 = wxString_in_helper(obj1);
29283 if (arg2 == NULL) SWIG_fail;
29284 temp2 = true;
29285 }
29286 {
29287 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29288 if (PyErr_Occurred()) SWIG_fail;
29289 }
29290 resultobj = result;
29291 {
29292 if (temp2)
29293 delete arg2;
29294 }
29295 return resultobj;
29296fail:
29297 {
29298 if (temp2)
29299 delete arg2;
29300 }
29301 return NULL;
29302}
29303
29304
72ef6efb
RD
29305SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29306 PyObject *resultobj = 0;
29307 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29308 wxString *arg2 = 0 ;
b39fe951 29309 wxArrayDouble result;
72ef6efb
RD
29310 void *argp1 = 0 ;
29311 int res1 = 0 ;
29312 bool temp2 = false ;
72ef6efb
RD
29313 PyObject * obj0 = 0 ;
29314 PyObject * obj1 = 0 ;
72ef6efb 29315 char * kwnames[] = {
b39fe951 29316 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29317 };
29318
b39fe951 29319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29321 if (!SWIG_IsOK(res1)) {
b39fe951 29322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29323 }
29324 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29325 {
29326 arg2 = wxString_in_helper(obj1);
29327 if (arg2 == NULL) SWIG_fail;
29328 temp2 = true;
29329 }
72ef6efb 29330 {
b39fe951 29331 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29332 if (PyErr_Occurred()) SWIG_fail;
29333 }
b39fe951
RD
29334 {
29335 resultobj = wxArrayDouble2PyList_helper(result);
29336 }
72ef6efb
RD
29337 {
29338 if (temp2)
29339 delete arg2;
29340 }
29341 return resultobj;
29342fail:
29343 {
29344 if (temp2)
29345 delete arg2;
29346 }
29347 return NULL;
29348}
29349
29350
29351SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29352 PyObject *resultobj = 0;
29353 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29354 wxBitmap *arg2 = 0 ;
29355 wxDouble arg3 ;
29356 wxDouble arg4 ;
29357 wxDouble arg5 ;
29358 wxDouble arg6 ;
29359 void *argp1 = 0 ;
29360 int res1 = 0 ;
29361 void *argp2 = 0 ;
29362 int res2 = 0 ;
29363 double val3 ;
29364 int ecode3 = 0 ;
29365 double val4 ;
29366 int ecode4 = 0 ;
29367 double val5 ;
29368 int ecode5 = 0 ;
29369 double val6 ;
29370 int ecode6 = 0 ;
29371 PyObject * obj0 = 0 ;
29372 PyObject * obj1 = 0 ;
29373 PyObject * obj2 = 0 ;
29374 PyObject * obj3 = 0 ;
29375 PyObject * obj4 = 0 ;
29376 PyObject * obj5 = 0 ;
29377 char * kwnames[] = {
29378 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29379 };
29380
29381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29383 if (!SWIG_IsOK(res1)) {
29384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29385 }
29386 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29387 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29388 if (!SWIG_IsOK(res2)) {
29389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29390 }
29391 if (!argp2) {
29392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29393 }
29394 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29395 ecode3 = SWIG_AsVal_double(obj2, &val3);
29396 if (!SWIG_IsOK(ecode3)) {
29397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29398 }
29399 arg3 = static_cast< wxDouble >(val3);
29400 ecode4 = SWIG_AsVal_double(obj3, &val4);
29401 if (!SWIG_IsOK(ecode4)) {
29402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29403 }
29404 arg4 = static_cast< wxDouble >(val4);
29405 ecode5 = SWIG_AsVal_double(obj4, &val5);
29406 if (!SWIG_IsOK(ecode5)) {
29407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29408 }
29409 arg5 = static_cast< wxDouble >(val5);
29410 ecode6 = SWIG_AsVal_double(obj5, &val6);
29411 if (!SWIG_IsOK(ecode6)) {
29412 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29413 }
29414 arg6 = static_cast< wxDouble >(val6);
29415 {
72ef6efb 29416 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29417 if (PyErr_Occurred()) SWIG_fail;
29418 }
29419 resultobj = SWIG_Py_Void();
29420 return resultobj;
29421fail:
29422 return NULL;
29423}
29424
29425
29426SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29427 PyObject *resultobj = 0;
29428 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29429 wxIcon *arg2 = 0 ;
29430 wxDouble arg3 ;
29431 wxDouble arg4 ;
29432 wxDouble arg5 ;
29433 wxDouble arg6 ;
29434 void *argp1 = 0 ;
29435 int res1 = 0 ;
29436 void *argp2 = 0 ;
29437 int res2 = 0 ;
29438 double val3 ;
29439 int ecode3 = 0 ;
29440 double val4 ;
29441 int ecode4 = 0 ;
29442 double val5 ;
29443 int ecode5 = 0 ;
70d7cb34
RD
29444 double val6 ;
29445 int ecode6 = 0 ;
29446 PyObject * obj0 = 0 ;
29447 PyObject * obj1 = 0 ;
29448 PyObject * obj2 = 0 ;
29449 PyObject * obj3 = 0 ;
29450 PyObject * obj4 = 0 ;
29451 PyObject * obj5 = 0 ;
29452 char * kwnames[] = {
29453 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29454 };
29455
29456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29458 if (!SWIG_IsOK(res1)) {
29459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29460 }
29461 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29462 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29463 if (!SWIG_IsOK(res2)) {
29464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29465 }
29466 if (!argp2) {
29467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29468 }
29469 arg2 = reinterpret_cast< wxIcon * >(argp2);
29470 ecode3 = SWIG_AsVal_double(obj2, &val3);
29471 if (!SWIG_IsOK(ecode3)) {
29472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29473 }
29474 arg3 = static_cast< wxDouble >(val3);
29475 ecode4 = SWIG_AsVal_double(obj3, &val4);
29476 if (!SWIG_IsOK(ecode4)) {
29477 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29478 }
29479 arg4 = static_cast< wxDouble >(val4);
29480 ecode5 = SWIG_AsVal_double(obj4, &val5);
29481 if (!SWIG_IsOK(ecode5)) {
29482 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29483 }
29484 arg5 = static_cast< wxDouble >(val5);
29485 ecode6 = SWIG_AsVal_double(obj5, &val6);
29486 if (!SWIG_IsOK(ecode6)) {
29487 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29488 }
29489 arg6 = static_cast< wxDouble >(val6);
29490 {
29491 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29492 if (PyErr_Occurred()) SWIG_fail;
29493 }
29494 resultobj = SWIG_Py_Void();
29495 return resultobj;
29496fail:
29497 return NULL;
29498}
29499
29500
29501SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29502 PyObject *resultobj = 0;
29503 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29504 wxDouble arg2 ;
29505 wxDouble arg3 ;
29506 wxDouble arg4 ;
29507 wxDouble arg5 ;
29508 void *argp1 = 0 ;
29509 int res1 = 0 ;
29510 double val2 ;
29511 int ecode2 = 0 ;
29512 double val3 ;
29513 int ecode3 = 0 ;
29514 double val4 ;
29515 int ecode4 = 0 ;
29516 double val5 ;
29517 int ecode5 = 0 ;
29518 PyObject * obj0 = 0 ;
29519 PyObject * obj1 = 0 ;
29520 PyObject * obj2 = 0 ;
29521 PyObject * obj3 = 0 ;
29522 PyObject * obj4 = 0 ;
29523 char * kwnames[] = {
29524 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29525 };
29526
29527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29529 if (!SWIG_IsOK(res1)) {
29530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29531 }
29532 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29533 ecode2 = SWIG_AsVal_double(obj1, &val2);
29534 if (!SWIG_IsOK(ecode2)) {
29535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29536 }
29537 arg2 = static_cast< wxDouble >(val2);
29538 ecode3 = SWIG_AsVal_double(obj2, &val3);
29539 if (!SWIG_IsOK(ecode3)) {
29540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29541 }
29542 arg3 = static_cast< wxDouble >(val3);
29543 ecode4 = SWIG_AsVal_double(obj3, &val4);
29544 if (!SWIG_IsOK(ecode4)) {
29545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29546 }
29547 arg4 = static_cast< wxDouble >(val4);
29548 ecode5 = SWIG_AsVal_double(obj4, &val5);
29549 if (!SWIG_IsOK(ecode5)) {
29550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29551 }
29552 arg5 = static_cast< wxDouble >(val5);
29553 {
29554 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29555 if (PyErr_Occurred()) SWIG_fail;
29556 }
29557 resultobj = SWIG_Py_Void();
29558 return resultobj;
29559fail:
29560 return NULL;
29561}
29562
29563
29564SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29565 PyObject *resultobj = 0;
29566 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29567 size_t arg2 ;
29568 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29569 void *argp1 = 0 ;
29570 int res1 = 0 ;
29571 PyObject * obj0 = 0 ;
29572 PyObject * obj1 = 0 ;
29573 char * kwnames[] = {
29574 (char *) "self",(char *) "points", NULL
29575 };
29576
29577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29579 if (!SWIG_IsOK(res1)) {
29580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29581 }
29582 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29583 {
29584 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29585 if (arg3 == NULL) SWIG_fail;
29586 }
29587 {
29588 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29589 if (PyErr_Occurred()) SWIG_fail;
29590 }
29591 resultobj = SWIG_Py_Void();
29592 {
29593 if (arg3) delete [] arg3;
29594 }
29595 return resultobj;
29596fail:
29597 {
29598 if (arg3) delete [] arg3;
29599 }
29600 return NULL;
29601}
29602
29603
29604SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29605 PyObject *resultobj = 0;
29606 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29607 PyObject *arg2 = (PyObject *) 0 ;
29608 PyObject *arg3 = (PyObject *) 0 ;
29609 void *argp1 = 0 ;
29610 int res1 = 0 ;
29611 PyObject * obj0 = 0 ;
29612 PyObject * obj1 = 0 ;
29613 PyObject * obj2 = 0 ;
29614 char * kwnames[] = {
29615 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29616 };
29617
29618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29620 if (!SWIG_IsOK(res1)) {
29621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29622 }
29623 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29624 arg2 = obj1;
29625 arg3 = obj2;
29626 {
29627 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29628 if (PyErr_Occurred()) SWIG_fail;
29629 }
29630 resultobj = SWIG_Py_Void();
29631 return resultobj;
29632fail:
29633 return NULL;
29634}
29635
29636
29637SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29638 PyObject *resultobj = 0;
29639 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29640 size_t arg2 ;
29641 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 29642 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29643 void *argp1 = 0 ;
29644 int res1 = 0 ;
29645 int val4 ;
29646 int ecode4 = 0 ;
29647 PyObject * obj0 = 0 ;
29648 PyObject * obj1 = 0 ;
29649 PyObject * obj2 = 0 ;
29650 char * kwnames[] = {
29651 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29652 };
29653
29654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29656 if (!SWIG_IsOK(res1)) {
29657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29658 }
29659 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29660 {
29661 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29662 if (arg3 == NULL) SWIG_fail;
29663 }
29664 if (obj2) {
29665 ecode4 = SWIG_AsVal_int(obj2, &val4);
29666 if (!SWIG_IsOK(ecode4)) {
29667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29668 }
29669 arg4 = static_cast< int >(val4);
29670 }
29671 {
29672 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29673 if (PyErr_Occurred()) SWIG_fail;
29674 }
29675 resultobj = SWIG_Py_Void();
29676 {
29677 if (arg3) delete [] arg3;
29678 }
29679 return resultobj;
29680fail:
29681 {
29682 if (arg3) delete [] arg3;
29683 }
29684 return NULL;
29685}
29686
29687
29688SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29689 PyObject *resultobj = 0;
29690 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29691 wxDouble arg2 ;
29692 wxDouble arg3 ;
29693 wxDouble arg4 ;
29694 wxDouble arg5 ;
29695 void *argp1 = 0 ;
29696 int res1 = 0 ;
29697 double val2 ;
29698 int ecode2 = 0 ;
29699 double val3 ;
29700 int ecode3 = 0 ;
29701 double val4 ;
29702 int ecode4 = 0 ;
29703 double val5 ;
29704 int ecode5 = 0 ;
29705 PyObject * obj0 = 0 ;
29706 PyObject * obj1 = 0 ;
29707 PyObject * obj2 = 0 ;
29708 PyObject * obj3 = 0 ;
29709 PyObject * obj4 = 0 ;
29710 char * kwnames[] = {
29711 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29712 };
29713
29714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29716 if (!SWIG_IsOK(res1)) {
29717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29718 }
29719 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29720 ecode2 = SWIG_AsVal_double(obj1, &val2);
29721 if (!SWIG_IsOK(ecode2)) {
29722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29723 }
29724 arg2 = static_cast< wxDouble >(val2);
29725 ecode3 = SWIG_AsVal_double(obj2, &val3);
29726 if (!SWIG_IsOK(ecode3)) {
29727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29728 }
29729 arg3 = static_cast< wxDouble >(val3);
29730 ecode4 = SWIG_AsVal_double(obj3, &val4);
29731 if (!SWIG_IsOK(ecode4)) {
29732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29733 }
29734 arg4 = static_cast< wxDouble >(val4);
29735 ecode5 = SWIG_AsVal_double(obj4, &val5);
29736 if (!SWIG_IsOK(ecode5)) {
29737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29738 }
29739 arg5 = static_cast< wxDouble >(val5);
29740 {
29741 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29742 if (PyErr_Occurred()) SWIG_fail;
29743 }
29744 resultobj = SWIG_Py_Void();
29745 return resultobj;
29746fail:
29747 return NULL;
29748}
29749
29750
29751SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29752 PyObject *resultobj = 0;
29753 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29754 wxDouble arg2 ;
29755 wxDouble arg3 ;
29756 wxDouble arg4 ;
29757 wxDouble arg5 ;
29758 void *argp1 = 0 ;
29759 int res1 = 0 ;
29760 double val2 ;
29761 int ecode2 = 0 ;
29762 double val3 ;
29763 int ecode3 = 0 ;
29764 double val4 ;
29765 int ecode4 = 0 ;
29766 double val5 ;
29767 int ecode5 = 0 ;
72ef6efb
RD
29768 PyObject * obj0 = 0 ;
29769 PyObject * obj1 = 0 ;
29770 PyObject * obj2 = 0 ;
29771 PyObject * obj3 = 0 ;
29772 PyObject * obj4 = 0 ;
72ef6efb 29773 char * kwnames[] = {
70d7cb34 29774 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29775 };
29776
70d7cb34 29777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29779 if (!SWIG_IsOK(res1)) {
70d7cb34 29780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29781 }
29782 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29783 ecode2 = SWIG_AsVal_double(obj1, &val2);
29784 if (!SWIG_IsOK(ecode2)) {
29785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29786 }
29787 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29788 ecode3 = SWIG_AsVal_double(obj2, &val3);
29789 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29791 }
29792 arg3 = static_cast< wxDouble >(val3);
29793 ecode4 = SWIG_AsVal_double(obj3, &val4);
29794 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29796 }
29797 arg4 = static_cast< wxDouble >(val4);
29798 ecode5 = SWIG_AsVal_double(obj4, &val5);
29799 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29801 }
29802 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29803 {
70d7cb34 29804 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29805 if (PyErr_Occurred()) SWIG_fail;
29806 }
29807 resultobj = SWIG_Py_Void();
29808 return resultobj;
29809fail:
29810 return NULL;
29811}
29812
29813
70d7cb34 29814SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29815 PyObject *resultobj = 0;
29816 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29817 wxDouble arg2 ;
29818 wxDouble arg3 ;
29819 wxDouble arg4 ;
29820 wxDouble arg5 ;
70d7cb34 29821 wxDouble arg6 ;
72ef6efb
RD
29822 void *argp1 = 0 ;
29823 int res1 = 0 ;
29824 double val2 ;
29825 int ecode2 = 0 ;
29826 double val3 ;
29827 int ecode3 = 0 ;
29828 double val4 ;
29829 int ecode4 = 0 ;
29830 double val5 ;
29831 int ecode5 = 0 ;
70d7cb34
RD
29832 double val6 ;
29833 int ecode6 = 0 ;
72ef6efb
RD
29834 PyObject * obj0 = 0 ;
29835 PyObject * obj1 = 0 ;
29836 PyObject * obj2 = 0 ;
29837 PyObject * obj3 = 0 ;
29838 PyObject * obj4 = 0 ;
70d7cb34 29839 PyObject * obj5 = 0 ;
72ef6efb 29840 char * kwnames[] = {
70d7cb34 29841 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29842 };
29843
70d7cb34 29844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29846 if (!SWIG_IsOK(res1)) {
70d7cb34 29847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29848 }
29849 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29850 ecode2 = SWIG_AsVal_double(obj1, &val2);
29851 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29853 }
29854 arg2 = static_cast< wxDouble >(val2);
29855 ecode3 = SWIG_AsVal_double(obj2, &val3);
29856 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29858 }
29859 arg3 = static_cast< wxDouble >(val3);
29860 ecode4 = SWIG_AsVal_double(obj3, &val4);
29861 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29862 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29863 }
29864 arg4 = static_cast< wxDouble >(val4);
29865 ecode5 = SWIG_AsVal_double(obj4, &val5);
29866 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29867 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29868 }
29869 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29870 ecode6 = SWIG_AsVal_double(obj5, &val6);
29871 if (!SWIG_IsOK(ecode6)) {
29872 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29873 }
29874 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29875 {
70d7cb34 29876 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29877 if (PyErr_Occurred()) SWIG_fail;
29878 }
29879 resultobj = SWIG_Py_Void();
29880 return resultobj;
29881fail:
29882 return NULL;
29883}
29884
29885
70d7cb34 29886SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29887 PyObject *resultobj = 0;
29888 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29889 bool result;
72ef6efb
RD
29890 void *argp1 = 0 ;
29891 int res1 = 0 ;
70d7cb34 29892 PyObject *swig_obj[1] ;
72ef6efb 29893
70d7cb34
RD
29894 if (!args) SWIG_fail;
29895 swig_obj[0] = args;
29896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29897 if (!SWIG_IsOK(res1)) {
70d7cb34 29898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29899 }
29900 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29901 {
70d7cb34
RD
29902 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29903 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29904 }
72ef6efb 29905 {
70d7cb34
RD
29906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29907 }
29908 return resultobj;
29909fail:
29910 return NULL;
29911}
29912
29913
29914SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29915 PyObject *obj;
29916 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29917 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29918 return SWIG_Py_Void();
29919}
29920
29921SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29922 PyObject *resultobj = 0;
29923 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29924 void *argp1 = 0 ;
29925 int res1 = 0 ;
29926 PyObject *swig_obj[1] ;
29927
29928 if (!args) SWIG_fail;
29929 swig_obj[0] = args;
29930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29931 if (!SWIG_IsOK(res1)) {
29932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29933 }
29934 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29935 {
29936 delete arg1;
29937
72ef6efb
RD
29938 if (PyErr_Occurred()) SWIG_fail;
29939 }
29940 resultobj = SWIG_Py_Void();
70d7cb34
RD
29941 return resultobj;
29942fail:
29943 return NULL;
29944}
29945
29946
29947SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29948 PyObject *resultobj = 0;
29949 wxGraphicsRenderer *result = 0 ;
29950
29951 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29952 {
70d7cb34
RD
29953 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29954 if (PyErr_Occurred()) SWIG_fail;
29955 }
29956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29957 return resultobj;
29958fail:
29959 return NULL;
29960}
29961
29962
29963SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29964 PyObject *resultobj = 0;
29965 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29966 wxWindowDC *arg2 = 0 ;
29967 wxGraphicsContext *result = 0 ;
29968 void *argp1 = 0 ;
29969 int res1 = 0 ;
29970 void *argp2 = 0 ;
29971 int res2 = 0 ;
29972
29973 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29975 if (!SWIG_IsOK(res1)) {
29976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29977 }
29978 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29979 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29980 if (!SWIG_IsOK(res2)) {
29981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29982 }
29983 if (!argp2) {
29984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29985 }
29986 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29987 {
29988 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29989 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29990 }
70d7cb34 29991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29992 return resultobj;
29993fail:
70d7cb34
RD
29994 return NULL;
29995}
29996
29997
29998SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29999 PyObject *resultobj = 0;
30000 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30001 wxWindow *arg2 = (wxWindow *) 0 ;
30002 wxGraphicsContext *result = 0 ;
30003 void *argp1 = 0 ;
30004 int res1 = 0 ;
30005 void *argp2 = 0 ;
30006 int res2 = 0 ;
30007
30008 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30010 if (!SWIG_IsOK(res1)) {
30011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30012 }
30013 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30014 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30015 if (!SWIG_IsOK(res2)) {
30016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30017 }
30018 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30019 {
70d7cb34
RD
30020 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30021 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30022 }
70d7cb34
RD
30023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30024 return resultobj;
30025fail:
72ef6efb
RD
30026 return NULL;
30027}
30028
30029
70d7cb34
RD
30030SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30031 int argc;
30032 PyObject *argv[3];
30033
30034 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30035 --argc;
30036 if (argc == 2) {
30037 int _v = 0;
30038 {
30039 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30040 _v = SWIG_CheckState(res);
30041 }
30042 if (!_v) goto check_1;
30043 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30044 }
30045check_1:
30046
30047 if (argc == 2) {
30048 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30049 }
30050
30051fail:
30052 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30053 return NULL;
30054}
30055
30056
f89238b9
RD
30057SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30058 PyObject *resultobj = 0;
30059 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30060 wxGraphicsContext *result = 0 ;
30061 void *argp1 = 0 ;
30062 int res1 = 0 ;
30063 PyObject *swig_obj[1] ;
30064
30065 if (!args) SWIG_fail;
30066 swig_obj[0] = args;
30067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30068 if (!SWIG_IsOK(res1)) {
30069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30070 }
30071 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30072 {
30073 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30074 if (PyErr_Occurred()) SWIG_fail;
30075 }
30076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30077 return resultobj;
30078fail:
30079 return NULL;
30080}
30081
30082
70d7cb34 30083SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30084 PyObject *resultobj = 0;
70d7cb34
RD
30085 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30086 void *arg2 = (void *) 0 ;
30087 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30088 void *argp1 = 0 ;
30089 int res1 = 0 ;
70d7cb34 30090 int res2 ;
b39fe951
RD
30091 PyObject * obj0 = 0 ;
30092 PyObject * obj1 = 0 ;
b39fe951 30093 char * kwnames[] = {
70d7cb34 30094 (char *) "self",(char *) "context", NULL
b39fe951 30095 };
72ef6efb 30096
70d7cb34
RD
30097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30099 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30101 }
30102 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30103 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30104 if (!SWIG_IsOK(res2)) {
30105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30106 }
72ef6efb 30107 {
70d7cb34 30108 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30109 if (PyErr_Occurred()) SWIG_fail;
30110 }
70d7cb34 30111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30112 return resultobj;
30113fail:
30114 return NULL;
30115}
30116
30117
70d7cb34 30118SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30119 PyObject *resultobj = 0;
70d7cb34
RD
30120 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30121 void *arg2 = (void *) 0 ;
30122 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30123 void *argp1 = 0 ;
30124 int res1 = 0 ;
70d7cb34 30125 int res2 ;
72ef6efb
RD
30126 PyObject * obj0 = 0 ;
30127 PyObject * obj1 = 0 ;
72ef6efb 30128 char * kwnames[] = {
70d7cb34 30129 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30130 };
30131
70d7cb34
RD
30132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30134 if (!SWIG_IsOK(res1)) {
70d7cb34 30135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30136 }
70d7cb34
RD
30137 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30138 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30139 if (!SWIG_IsOK(res2)) {
30140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30141 }
30142 {
70d7cb34 30143 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30144 if (PyErr_Occurred()) SWIG_fail;
30145 }
70d7cb34 30146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30147 return resultobj;
30148fail:
70d7cb34
RD
30149 return NULL;
30150}
30151
30152
30153SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30154 PyObject *resultobj = 0;
30155 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30156 wxGraphicsPath result;
70d7cb34
RD
30157 void *argp1 = 0 ;
30158 int res1 = 0 ;
30159 PyObject *swig_obj[1] ;
30160
30161 if (!args) SWIG_fail;
30162 swig_obj[0] = args;
30163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30164 if (!SWIG_IsOK(res1)) {
30165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30166 }
30167 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30168 {
5c8c7dd3 30169 result = (arg1)->CreatePath();
70d7cb34 30170 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30171 }
5c8c7dd3 30172 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30173 return resultobj;
30174fail:
72ef6efb
RD
30175 return NULL;
30176}
30177
30178
70d7cb34 30179SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30180 PyObject *resultobj = 0;
70d7cb34
RD
30181 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30182 wxDouble arg2 = (wxDouble) 1.0 ;
30183 wxDouble arg3 = (wxDouble) 0.0 ;
30184 wxDouble arg4 = (wxDouble) 0.0 ;
30185 wxDouble arg5 = (wxDouble) 1.0 ;
30186 wxDouble arg6 = (wxDouble) 0.0 ;
30187 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30188 wxGraphicsMatrix result;
72ef6efb
RD
30189 void *argp1 = 0 ;
30190 int res1 = 0 ;
30191 double val2 ;
30192 int ecode2 = 0 ;
30193 double val3 ;
30194 int ecode3 = 0 ;
30195 double val4 ;
30196 int ecode4 = 0 ;
30197 double val5 ;
30198 int ecode5 = 0 ;
70d7cb34
RD
30199 double val6 ;
30200 int ecode6 = 0 ;
30201 double val7 ;
30202 int ecode7 = 0 ;
72ef6efb
RD
30203 PyObject * obj0 = 0 ;
30204 PyObject * obj1 = 0 ;
30205 PyObject * obj2 = 0 ;
30206 PyObject * obj3 = 0 ;
30207 PyObject * obj4 = 0 ;
70d7cb34
RD
30208 PyObject * obj5 = 0 ;
30209 PyObject * obj6 = 0 ;
72ef6efb 30210 char * kwnames[] = {
70d7cb34 30211 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30212 };
30213
70d7cb34
RD
30214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30216 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30218 }
30219 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30220 if (obj1) {
30221 ecode2 = SWIG_AsVal_double(obj1, &val2);
30222 if (!SWIG_IsOK(ecode2)) {
30223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30224 }
30225 arg2 = static_cast< wxDouble >(val2);
30226 }
30227 if (obj2) {
30228 ecode3 = SWIG_AsVal_double(obj2, &val3);
30229 if (!SWIG_IsOK(ecode3)) {
30230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30231 }
30232 arg3 = static_cast< wxDouble >(val3);
30233 }
30234 if (obj3) {
30235 ecode4 = SWIG_AsVal_double(obj3, &val4);
30236 if (!SWIG_IsOK(ecode4)) {
30237 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30238 }
30239 arg4 = static_cast< wxDouble >(val4);
30240 }
30241 if (obj4) {
30242 ecode5 = SWIG_AsVal_double(obj4, &val5);
30243 if (!SWIG_IsOK(ecode5)) {
30244 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30245 }
30246 arg5 = static_cast< wxDouble >(val5);
30247 }
30248 if (obj5) {
30249 ecode6 = SWIG_AsVal_double(obj5, &val6);
30250 if (!SWIG_IsOK(ecode6)) {
30251 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30252 }
30253 arg6 = static_cast< wxDouble >(val6);
30254 }
30255 if (obj6) {
30256 ecode7 = SWIG_AsVal_double(obj6, &val7);
30257 if (!SWIG_IsOK(ecode7)) {
30258 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30259 }
30260 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30261 }
72ef6efb 30262 {
5c8c7dd3 30263 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30264 if (PyErr_Occurred()) SWIG_fail;
30265 }
5c8c7dd3 30266 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30267 return resultobj;
30268fail:
30269 return NULL;
30270}
30271
30272
70d7cb34 30273SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30274 PyObject *resultobj = 0;
70d7cb34
RD
30275 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30276 wxPen *arg2 = 0 ;
30277 wxGraphicsPen result;
30278 void *argp1 = 0 ;
30279 int res1 = 0 ;
30280 void *argp2 = 0 ;
30281 int res2 = 0 ;
30282 PyObject * obj0 = 0 ;
30283 PyObject * obj1 = 0 ;
30284 char * kwnames[] = {
30285 (char *) "self",(char *) "pen", NULL
30286 };
30287
30288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30290 if (!SWIG_IsOK(res1)) {
30291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30292 }
30293 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30295 if (!SWIG_IsOK(res2)) {
30296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30297 }
30298 if (!argp2) {
30299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30300 }
30301 arg2 = reinterpret_cast< wxPen * >(argp2);
30302 {
30303 result = (arg1)->CreatePen((wxPen const &)*arg2);
30304 if (PyErr_Occurred()) SWIG_fail;
30305 }
30306 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30307 return resultobj;
30308fail:
30309 return NULL;
30310}
30311
30312
30313SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30314 PyObject *resultobj = 0;
30315 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30316 wxBrush *arg2 = 0 ;
30317 wxGraphicsBrush result;
30318 void *argp1 = 0 ;
30319 int res1 = 0 ;
30320 void *argp2 = 0 ;
30321 int res2 = 0 ;
30322 PyObject * obj0 = 0 ;
30323 PyObject * obj1 = 0 ;
30324 char * kwnames[] = {
30325 (char *) "self",(char *) "brush", NULL
30326 };
30327
30328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30330 if (!SWIG_IsOK(res1)) {
30331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30332 }
30333 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30335 if (!SWIG_IsOK(res2)) {
30336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30337 }
30338 if (!argp2) {
30339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30340 }
30341 arg2 = reinterpret_cast< wxBrush * >(argp2);
30342 {
30343 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30347 return resultobj;
30348fail:
30349 return NULL;
30350}
30351
30352
30353SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30354 PyObject *resultobj = 0;
30355 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30356 wxDouble arg2 ;
30357 wxDouble arg3 ;
30358 wxDouble arg4 ;
30359 wxDouble arg5 ;
70d7cb34
RD
30360 wxColour *arg6 = 0 ;
30361 wxColour *arg7 = 0 ;
30362 wxGraphicsBrush result;
72ef6efb
RD
30363 void *argp1 = 0 ;
30364 int res1 = 0 ;
30365 double val2 ;
30366 int ecode2 = 0 ;
30367 double val3 ;
30368 int ecode3 = 0 ;
30369 double val4 ;
30370 int ecode4 = 0 ;
30371 double val5 ;
30372 int ecode5 = 0 ;
70d7cb34
RD
30373 wxColour temp6 ;
30374 wxColour temp7 ;
72ef6efb
RD
30375 PyObject * obj0 = 0 ;
30376 PyObject * obj1 = 0 ;
30377 PyObject * obj2 = 0 ;
30378 PyObject * obj3 = 0 ;
30379 PyObject * obj4 = 0 ;
70d7cb34
RD
30380 PyObject * obj5 = 0 ;
30381 PyObject * obj6 = 0 ;
72ef6efb 30382 char * kwnames[] = {
70d7cb34 30383 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30384 };
30385
70d7cb34
RD
30386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30388 if (!SWIG_IsOK(res1)) {
70d7cb34 30389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30390 }
70d7cb34 30391 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30392 ecode2 = SWIG_AsVal_double(obj1, &val2);
30393 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30395 }
30396 arg2 = static_cast< wxDouble >(val2);
30397 ecode3 = SWIG_AsVal_double(obj2, &val3);
30398 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30400 }
30401 arg3 = static_cast< wxDouble >(val3);
30402 ecode4 = SWIG_AsVal_double(obj3, &val4);
30403 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30405 }
30406 arg4 = static_cast< wxDouble >(val4);
30407 ecode5 = SWIG_AsVal_double(obj4, &val5);
30408 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30410 }
30411 arg5 = static_cast< wxDouble >(val5);
30412 {
70d7cb34
RD
30413 arg6 = &temp6;
30414 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30415 }
30416 {
30417 arg7 = &temp7;
30418 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30419 }
30420 {
30421 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30422 if (PyErr_Occurred()) SWIG_fail;
30423 }
70d7cb34 30424 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30425 return resultobj;
30426fail:
30427 return NULL;
30428}
30429
30430
70d7cb34 30431SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30432 PyObject *resultobj = 0;
70d7cb34 30433 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30434 wxDouble arg2 ;
30435 wxDouble arg3 ;
30436 wxDouble arg4 ;
30437 wxDouble arg5 ;
30438 wxDouble arg6 ;
70d7cb34
RD
30439 wxColour *arg7 = 0 ;
30440 wxColour *arg8 = 0 ;
30441 wxGraphicsBrush result;
72ef6efb
RD
30442 void *argp1 = 0 ;
30443 int res1 = 0 ;
30444 double val2 ;
30445 int ecode2 = 0 ;
30446 double val3 ;
30447 int ecode3 = 0 ;
30448 double val4 ;
30449 int ecode4 = 0 ;
30450 double val5 ;
30451 int ecode5 = 0 ;
30452 double val6 ;
30453 int ecode6 = 0 ;
70d7cb34
RD
30454 wxColour temp7 ;
30455 wxColour temp8 ;
72ef6efb
RD
30456 PyObject * obj0 = 0 ;
30457 PyObject * obj1 = 0 ;
30458 PyObject * obj2 = 0 ;
30459 PyObject * obj3 = 0 ;
30460 PyObject * obj4 = 0 ;
30461 PyObject * obj5 = 0 ;
70d7cb34
RD
30462 PyObject * obj6 = 0 ;
30463 PyObject * obj7 = 0 ;
72ef6efb 30464 char * kwnames[] = {
70d7cb34 30465 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30466 };
30467
70d7cb34
RD
30468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30470 if (!SWIG_IsOK(res1)) {
70d7cb34 30471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30472 }
70d7cb34 30473 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30474 ecode2 = SWIG_AsVal_double(obj1, &val2);
30475 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30477 }
30478 arg2 = static_cast< wxDouble >(val2);
30479 ecode3 = SWIG_AsVal_double(obj2, &val3);
30480 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30482 }
30483 arg3 = static_cast< wxDouble >(val3);
30484 ecode4 = SWIG_AsVal_double(obj3, &val4);
30485 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30486 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30487 }
30488 arg4 = static_cast< wxDouble >(val4);
30489 ecode5 = SWIG_AsVal_double(obj4, &val5);
30490 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30491 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30492 }
30493 arg5 = static_cast< wxDouble >(val5);
30494 ecode6 = SWIG_AsVal_double(obj5, &val6);
30495 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30496 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30497 }
30498 arg6 = static_cast< wxDouble >(val6);
30499 {
70d7cb34
RD
30500 arg7 = &temp7;
30501 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30502 }
30503 {
30504 arg8 = &temp8;
30505 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30506 }
30507 {
30508 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30509 if (PyErr_Occurred()) SWIG_fail;
30510 }
70d7cb34 30511 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30512 return resultobj;
30513fail:
30514 return NULL;
30515}
30516
30517
70d7cb34
RD
30518SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30519 PyObject *resultobj = 0;
30520 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30521 wxFont *arg2 = 0 ;
30522 wxColour const &arg3_defvalue = *wxBLACK ;
30523 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30524 wxGraphicsFont result;
30525 void *argp1 = 0 ;
30526 int res1 = 0 ;
30527 void *argp2 = 0 ;
30528 int res2 = 0 ;
30529 wxColour temp3 ;
30530 PyObject * obj0 = 0 ;
30531 PyObject * obj1 = 0 ;
30532 PyObject * obj2 = 0 ;
30533 char * kwnames[] = {
30534 (char *) "self",(char *) "font",(char *) "col", NULL
30535 };
30536
30537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30539 if (!SWIG_IsOK(res1)) {
30540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30541 }
30542 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30544 if (!SWIG_IsOK(res2)) {
30545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30546 }
30547 if (!argp2) {
30548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30549 }
30550 arg2 = reinterpret_cast< wxFont * >(argp2);
30551 if (obj2) {
30552 {
30553 arg3 = &temp3;
30554 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30555 }
30556 }
30557 {
30558 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30559 if (PyErr_Occurred()) SWIG_fail;
30560 }
30561 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30562 return resultobj;
30563fail:
30564 return NULL;
30565}
30566
30567
30568SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30569 PyObject *obj;
30570 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30571 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30572 return SWIG_Py_Void();
30573}
30574
48a0c021 30575SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
30576 PyObject *resultobj = 0;
30577 wxWindowDC *arg1 = 0 ;
30578 wxGCDC *result = 0 ;
30579 void *argp1 = 0 ;
30580 int res1 = 0 ;
72ef6efb 30581
48a0c021
RD
30582 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
30584 if (!SWIG_IsOK(res1)) {
30585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30586 }
30587 if (!argp1) {
30588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30589 }
30590 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30591 {
30592 if (!wxPyCheckForApp()) SWIG_fail;
30593 PyThreadState* __tstate = wxPyBeginAllowThreads();
30594 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30595 wxPyEndAllowThreads(__tstate);
30596 if (PyErr_Occurred()) SWIG_fail;
30597 }
30598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30599 return resultobj;
30600fail:
30601 return NULL;
30602}
30603
30604
48a0c021
RD
30605SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30606 PyObject *resultobj = 0;
30607 wxWindow *arg1 = (wxWindow *) 0 ;
30608 wxGCDC *result = 0 ;
30609 void *argp1 = 0 ;
30610 int res1 = 0 ;
30611
30612 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30614 if (!SWIG_IsOK(res1)) {
30615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30616 }
30617 arg1 = reinterpret_cast< wxWindow * >(argp1);
30618 {
30619 if (!wxPyCheckForApp()) SWIG_fail;
30620 PyThreadState* __tstate = wxPyBeginAllowThreads();
30621 result = (wxGCDC *)new wxGCDC(arg1);
30622 wxPyEndAllowThreads(__tstate);
30623 if (PyErr_Occurred()) SWIG_fail;
30624 }
30625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30626 return resultobj;
30627fail:
30628 return NULL;
30629}
30630
30631
30632SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30633 int argc;
30634 PyObject *argv[2];
30635
30636 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30637 --argc;
30638 if (argc == 1) {
30639 int _v = 0;
30640 {
30641 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30642 _v = SWIG_CheckState(res);
30643 }
30644 if (!_v) goto check_1;
30645 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30646 }
30647check_1:
30648
30649 if (argc == 1) {
30650 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30651 }
30652
30653fail:
30654 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30655 return NULL;
30656}
30657
30658
72ef6efb
RD
30659SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30660 PyObject *resultobj = 0;
30661 wxGCDC *arg1 = (wxGCDC *) 0 ;
30662 void *argp1 = 0 ;
30663 int res1 = 0 ;
30664 PyObject *swig_obj[1] ;
30665
30666 if (!args) SWIG_fail;
30667 swig_obj[0] = args;
30668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30669 if (!SWIG_IsOK(res1)) {
30670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30671 }
30672 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30673 {
72ef6efb
RD
30674 delete arg1;
30675
72ef6efb
RD
30676 if (PyErr_Occurred()) SWIG_fail;
30677 }
30678 resultobj = SWIG_Py_Void();
30679 return resultobj;
30680fail:
30681 return NULL;
30682}
30683
30684
0a27f394 30685SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30686 PyObject *resultobj = 0;
30687 wxGCDC *arg1 = (wxGCDC *) 0 ;
30688 wxGraphicsContext *result = 0 ;
30689 void *argp1 = 0 ;
30690 int res1 = 0 ;
30691 PyObject *swig_obj[1] ;
30692
30693 if (!args) SWIG_fail;
30694 swig_obj[0] = args;
30695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30696 if (!SWIG_IsOK(res1)) {
0a27f394 30697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30698 }
30699 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30700 {
0a27f394 30701 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30702 if (PyErr_Occurred()) SWIG_fail;
30703 }
30704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30705 return resultobj;
30706fail:
30707 return NULL;
30708}
30709
30710
0a27f394
RD
30711SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30712 PyObject *resultobj = 0;
30713 wxGCDC *arg1 = (wxGCDC *) 0 ;
30714 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30715 void *argp1 = 0 ;
30716 int res1 = 0 ;
30717 void *argp2 = 0 ;
30718 int res2 = 0 ;
30719 PyObject * obj0 = 0 ;
30720 PyObject * obj1 = 0 ;
30721 char * kwnames[] = {
30722 (char *) "self",(char *) "ctx", NULL
30723 };
30724
30725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30727 if (!SWIG_IsOK(res1)) {
30728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30729 }
30730 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30731 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30732 if (!SWIG_IsOK(res2)) {
30733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30734 }
30735 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30736 {
30737 (arg1)->SetGraphicsContext(arg2);
30738 if (PyErr_Occurred()) SWIG_fail;
30739 }
30740 resultobj = SWIG_Py_Void();
30741 return resultobj;
30742fail:
30743 return NULL;
30744}
30745
30746
72ef6efb
RD
30747SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30748 PyObject *obj;
30749 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30750 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30751 return SWIG_Py_Void();
30752}
30753
30754SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30755 return SWIG_Python_InitShadowInstance(args);
30756}
30757
b39fe951
RD
30758SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30759 PyObject *resultobj = 0;
30760 wxOverlay *result = 0 ;
30761
30762 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30763 {
30764 PyThreadState* __tstate = wxPyBeginAllowThreads();
30765 result = (wxOverlay *)new wxOverlay();
30766 wxPyEndAllowThreads(__tstate);
30767 if (PyErr_Occurred()) SWIG_fail;
30768 }
30769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30770 return resultobj;
30771fail:
30772 return NULL;
30773}
30774
30775
30776SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30777 PyObject *resultobj = 0;
30778 wxOverlay *arg1 = (wxOverlay *) 0 ;
30779 void *argp1 = 0 ;
30780 int res1 = 0 ;
30781 PyObject *swig_obj[1] ;
30782
30783 if (!args) SWIG_fail;
30784 swig_obj[0] = args;
30785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30786 if (!SWIG_IsOK(res1)) {
30787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30788 }
30789 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30790 {
30791 PyThreadState* __tstate = wxPyBeginAllowThreads();
30792 delete arg1;
30793
30794 wxPyEndAllowThreads(__tstate);
30795 if (PyErr_Occurred()) SWIG_fail;
30796 }
30797 resultobj = SWIG_Py_Void();
30798 return resultobj;
30799fail:
30800 return NULL;
30801}
30802
30803
30804SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30805 PyObject *resultobj = 0;
30806 wxOverlay *arg1 = (wxOverlay *) 0 ;
30807 void *argp1 = 0 ;
30808 int res1 = 0 ;
30809 PyObject *swig_obj[1] ;
30810
30811 if (!args) SWIG_fail;
30812 swig_obj[0] = args;
30813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30814 if (!SWIG_IsOK(res1)) {
30815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30816 }
30817 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30818 {
30819 PyThreadState* __tstate = wxPyBeginAllowThreads();
30820 (arg1)->Reset();
30821 wxPyEndAllowThreads(__tstate);
30822 if (PyErr_Occurred()) SWIG_fail;
30823 }
30824 resultobj = SWIG_Py_Void();
30825 return resultobj;
30826fail:
30827 return NULL;
30828}
30829
30830
30831SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30832 PyObject *obj;
30833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30834 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30835 return SWIG_Py_Void();
30836}
30837
30838SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30839 return SWIG_Python_InitShadowInstance(args);
30840}
30841
30842SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30843 PyObject *resultobj = 0;
30844 wxOverlay *arg1 = 0 ;
30845 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30846 int arg3 ;
30847 int arg4 ;
30848 int arg5 ;
30849 int arg6 ;
30850 wxDCOverlay *result = 0 ;
30851 void *argp1 = 0 ;
30852 int res1 = 0 ;
30853 void *argp2 = 0 ;
30854 int res2 = 0 ;
30855 int val3 ;
30856 int ecode3 = 0 ;
30857 int val4 ;
30858 int ecode4 = 0 ;
30859 int val5 ;
30860 int ecode5 = 0 ;
30861 int val6 ;
30862 int ecode6 = 0 ;
30863
30864 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30866 if (!SWIG_IsOK(res1)) {
30867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30868 }
30869 if (!argp1) {
30870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30871 }
30872 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30873 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30874 if (!SWIG_IsOK(res2)) {
30875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30876 }
30877 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30878 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30879 if (!SWIG_IsOK(ecode3)) {
30880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30881 }
30882 arg3 = static_cast< int >(val3);
30883 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30884 if (!SWIG_IsOK(ecode4)) {
30885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30886 }
30887 arg4 = static_cast< int >(val4);
30888 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30889 if (!SWIG_IsOK(ecode5)) {
30890 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30891 }
30892 arg5 = static_cast< int >(val5);
30893 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30894 if (!SWIG_IsOK(ecode6)) {
30895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30896 }
30897 arg6 = static_cast< int >(val6);
30898 {
30899 PyThreadState* __tstate = wxPyBeginAllowThreads();
30900 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30901 wxPyEndAllowThreads(__tstate);
30902 if (PyErr_Occurred()) SWIG_fail;
30903 }
30904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30905 return resultobj;
30906fail:
30907 return NULL;
30908}
30909
30910
30911SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30912 PyObject *resultobj = 0;
30913 wxOverlay *arg1 = 0 ;
30914 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30915 wxDCOverlay *result = 0 ;
30916 void *argp1 = 0 ;
30917 int res1 = 0 ;
30918 void *argp2 = 0 ;
30919 int res2 = 0 ;
30920
30921 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30923 if (!SWIG_IsOK(res1)) {
30924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30925 }
30926 if (!argp1) {
30927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30928 }
30929 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30930 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30931 if (!SWIG_IsOK(res2)) {
30932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30933 }
30934 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30935 {
30936 PyThreadState* __tstate = wxPyBeginAllowThreads();
30937 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30938 wxPyEndAllowThreads(__tstate);
30939 if (PyErr_Occurred()) SWIG_fail;
30940 }
30941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30942 return resultobj;
30943fail:
30944 return NULL;
30945}
30946
30947
30948SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30949 int argc;
30950 PyObject *argv[7];
30951
30952 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30953 --argc;
30954 if (argc == 2) {
30955 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30956 }
30957 if (argc == 6) {
30958 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30959 }
30960
30961fail:
30962 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30963 return NULL;
30964}
30965
30966
30967SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30968 PyObject *resultobj = 0;
30969 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30970 void *argp1 = 0 ;
30971 int res1 = 0 ;
30972 PyObject *swig_obj[1] ;
30973
30974 if (!args) SWIG_fail;
30975 swig_obj[0] = args;
30976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30977 if (!SWIG_IsOK(res1)) {
30978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30979 }
30980 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30981 {
30982 PyThreadState* __tstate = wxPyBeginAllowThreads();
30983 delete arg1;
30984
30985 wxPyEndAllowThreads(__tstate);
30986 if (PyErr_Occurred()) SWIG_fail;
30987 }
30988 resultobj = SWIG_Py_Void();
30989 return resultobj;
30990fail:
30991 return NULL;
30992}
30993
30994
30995SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30996 PyObject *resultobj = 0;
30997 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30998 void *argp1 = 0 ;
30999 int res1 = 0 ;
31000 PyObject *swig_obj[1] ;
31001
31002 if (!args) SWIG_fail;
31003 swig_obj[0] = args;
31004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31005 if (!SWIG_IsOK(res1)) {
31006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31007 }
31008 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31009 {
31010 PyThreadState* __tstate = wxPyBeginAllowThreads();
31011 (arg1)->Clear();
31012 wxPyEndAllowThreads(__tstate);
31013 if (PyErr_Occurred()) SWIG_fail;
31014 }
31015 resultobj = SWIG_Py_Void();
31016 return resultobj;
31017fail:
31018 return NULL;
31019}
31020
31021
31022SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31023 PyObject *obj;
31024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31025 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31026 return SWIG_Py_Void();
31027}
31028
31029SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31030 return SWIG_Python_InitShadowInstance(args);
31031}
31032
72ef6efb
RD
31033SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31034 PyObject *resultobj = 0;
31035 int arg1 ;
31036 int arg2 ;
31037 int arg3 = (int) true ;
31038 int arg4 = (int) 1 ;
31039 wxImageList *result = 0 ;
31040 int val1 ;
31041 int ecode1 = 0 ;
31042 int val2 ;
31043 int ecode2 = 0 ;
31044 int val3 ;
31045 int ecode3 = 0 ;
31046 int val4 ;
31047 int ecode4 = 0 ;
31048 PyObject * obj0 = 0 ;
31049 PyObject * obj1 = 0 ;
31050 PyObject * obj2 = 0 ;
31051 PyObject * obj3 = 0 ;
31052 char * kwnames[] = {
31053 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31054 };
31055
31056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31057 ecode1 = SWIG_AsVal_int(obj0, &val1);
31058 if (!SWIG_IsOK(ecode1)) {
31059 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31060 }
31061 arg1 = static_cast< int >(val1);
31062 ecode2 = SWIG_AsVal_int(obj1, &val2);
31063 if (!SWIG_IsOK(ecode2)) {
31064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31065 }
31066 arg2 = static_cast< int >(val2);
31067 if (obj2) {
31068 ecode3 = SWIG_AsVal_int(obj2, &val3);
31069 if (!SWIG_IsOK(ecode3)) {
31070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31071 }
31072 arg3 = static_cast< int >(val3);
31073 }
31074 if (obj3) {
31075 ecode4 = SWIG_AsVal_int(obj3, &val4);
31076 if (!SWIG_IsOK(ecode4)) {
31077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31078 }
31079 arg4 = static_cast< int >(val4);
31080 }
31081 {
31082 if (!wxPyCheckForApp()) SWIG_fail;
31083 PyThreadState* __tstate = wxPyBeginAllowThreads();
31084 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31085 wxPyEndAllowThreads(__tstate);
31086 if (PyErr_Occurred()) SWIG_fail;
31087 }
e02c0a13 31088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31089 return resultobj;
31090fail:
31091 return NULL;
31092}
31093
31094
31095SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31096 PyObject *resultobj = 0;
31097 wxImageList *arg1 = (wxImageList *) 0 ;
31098 void *argp1 = 0 ;
31099 int res1 = 0 ;
31100 PyObject *swig_obj[1] ;
31101
31102 if (!args) SWIG_fail;
31103 swig_obj[0] = args;
31104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31105 if (!SWIG_IsOK(res1)) {
31106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31107 }
31108 arg1 = reinterpret_cast< wxImageList * >(argp1);
31109 {
31110 PyThreadState* __tstate = wxPyBeginAllowThreads();
31111 delete arg1;
31112
31113 wxPyEndAllowThreads(__tstate);
31114 if (PyErr_Occurred()) SWIG_fail;
31115 }
31116 resultobj = SWIG_Py_Void();
31117 return resultobj;
31118fail:
31119 return NULL;
31120}
31121
31122
31123SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31124 PyObject *resultobj = 0;
31125 wxImageList *arg1 = (wxImageList *) 0 ;
31126 wxBitmap *arg2 = 0 ;
31127 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31128 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31129 int result;
31130 void *argp1 = 0 ;
31131 int res1 = 0 ;
31132 void *argp2 = 0 ;
31133 int res2 = 0 ;
31134 void *argp3 = 0 ;
31135 int res3 = 0 ;
31136 PyObject * obj0 = 0 ;
31137 PyObject * obj1 = 0 ;
31138 PyObject * obj2 = 0 ;
31139 char * kwnames[] = {
31140 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31141 };
31142
31143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31145 if (!SWIG_IsOK(res1)) {
31146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31147 }
31148 arg1 = reinterpret_cast< wxImageList * >(argp1);
31149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31150 if (!SWIG_IsOK(res2)) {
31151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31152 }
31153 if (!argp2) {
31154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31155 }
31156 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31157 if (obj2) {
31158 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31159 if (!SWIG_IsOK(res3)) {
31160 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31161 }
31162 if (!argp3) {
31163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31164 }
31165 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31166 }
31167 {
31168 PyThreadState* __tstate = wxPyBeginAllowThreads();
31169 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31170 wxPyEndAllowThreads(__tstate);
31171 if (PyErr_Occurred()) SWIG_fail;
31172 }
31173 resultobj = SWIG_From_int(static_cast< int >(result));
31174 return resultobj;
31175fail:
31176 return NULL;
31177}
31178
31179
31180SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31181 PyObject *resultobj = 0;
31182 wxImageList *arg1 = (wxImageList *) 0 ;
31183 wxBitmap *arg2 = 0 ;
31184 wxColour *arg3 = 0 ;
31185 int result;
31186 void *argp1 = 0 ;
31187 int res1 = 0 ;
31188 void *argp2 = 0 ;
31189 int res2 = 0 ;
31190 wxColour temp3 ;
31191 PyObject * obj0 = 0 ;
31192 PyObject * obj1 = 0 ;
31193 PyObject * obj2 = 0 ;
31194 char * kwnames[] = {
31195 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31196 };
31197
31198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31200 if (!SWIG_IsOK(res1)) {
31201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31202 }
31203 arg1 = reinterpret_cast< wxImageList * >(argp1);
31204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31205 if (!SWIG_IsOK(res2)) {
31206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31207 }
31208 if (!argp2) {
31209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31210 }
31211 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31212 {
31213 arg3 = &temp3;
31214 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31215 }
31216 {
31217 PyThreadState* __tstate = wxPyBeginAllowThreads();
31218 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31219 wxPyEndAllowThreads(__tstate);
31220 if (PyErr_Occurred()) SWIG_fail;
31221 }
31222 resultobj = SWIG_From_int(static_cast< int >(result));
31223 return resultobj;
31224fail:
31225 return NULL;
31226}
31227
31228
31229SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31230 PyObject *resultobj = 0;
31231 wxImageList *arg1 = (wxImageList *) 0 ;
31232 wxIcon *arg2 = 0 ;
31233 int result;
31234 void *argp1 = 0 ;
31235 int res1 = 0 ;
31236 void *argp2 = 0 ;
31237 int res2 = 0 ;
31238 PyObject * obj0 = 0 ;
31239 PyObject * obj1 = 0 ;
31240 char * kwnames[] = {
31241 (char *) "self",(char *) "icon", NULL
31242 };
31243
31244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31246 if (!SWIG_IsOK(res1)) {
31247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31248 }
1bd55598
RD
31249 arg1 = reinterpret_cast< wxImageList * >(argp1);
31250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31251 if (!SWIG_IsOK(res2)) {
31252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31253 }
31254 if (!argp2) {
31255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31256 }
31257 arg2 = reinterpret_cast< wxIcon * >(argp2);
31258 {
31259 PyThreadState* __tstate = wxPyBeginAllowThreads();
31260 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31261 wxPyEndAllowThreads(__tstate);
31262 if (PyErr_Occurred()) SWIG_fail;
31263 }
31264 resultobj = SWIG_From_int(static_cast< int >(result));
31265 return resultobj;
31266fail:
31267 return NULL;
31268}
31269
31270
31271SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31272 PyObject *resultobj = 0;
31273 wxImageList *arg1 = (wxImageList *) 0 ;
31274 int arg2 ;
31275 SwigValueWrapper<wxBitmap > result;
31276 void *argp1 = 0 ;
31277 int res1 = 0 ;
31278 int val2 ;
31279 int ecode2 = 0 ;
31280 PyObject * obj0 = 0 ;
31281 PyObject * obj1 = 0 ;
31282 char * kwnames[] = {
31283 (char *) "self",(char *) "index", NULL
31284 };
31285
31286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31288 if (!SWIG_IsOK(res1)) {
31289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31290 }
31291 arg1 = reinterpret_cast< wxImageList * >(argp1);
31292 ecode2 = SWIG_AsVal_int(obj1, &val2);
31293 if (!SWIG_IsOK(ecode2)) {
31294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31295 }
31296 arg2 = static_cast< int >(val2);
31297 {
31298 PyThreadState* __tstate = wxPyBeginAllowThreads();
31299 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31300 wxPyEndAllowThreads(__tstate);
31301 if (PyErr_Occurred()) SWIG_fail;
31302 }
31303 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31304 return resultobj;
31305fail:
31306 return NULL;
31307}
31308
31309
31310SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31311 PyObject *resultobj = 0;
31312 wxImageList *arg1 = (wxImageList *) 0 ;
31313 int arg2 ;
31314 wxIcon result;
31315 void *argp1 = 0 ;
31316 int res1 = 0 ;
31317 int val2 ;
31318 int ecode2 = 0 ;
31319 PyObject * obj0 = 0 ;
31320 PyObject * obj1 = 0 ;
31321 char * kwnames[] = {
31322 (char *) "self",(char *) "index", NULL
31323 };
31324
31325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31327 if (!SWIG_IsOK(res1)) {
31328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31329 }
31330 arg1 = reinterpret_cast< wxImageList * >(argp1);
31331 ecode2 = SWIG_AsVal_int(obj1, &val2);
31332 if (!SWIG_IsOK(ecode2)) {
31333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31334 }
31335 arg2 = static_cast< int >(val2);
31336 {
31337 PyThreadState* __tstate = wxPyBeginAllowThreads();
31338 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31339 wxPyEndAllowThreads(__tstate);
31340 if (PyErr_Occurred()) SWIG_fail;
31341 }
31342 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31343 return resultobj;
31344fail:
31345 return NULL;
31346}
31347
31348
31349SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31350 PyObject *resultobj = 0;
31351 wxImageList *arg1 = (wxImageList *) 0 ;
31352 int arg2 ;
31353 wxBitmap *arg3 = 0 ;
2131d850
RD
31354 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31355 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31356 bool result;
31357 void *argp1 = 0 ;
31358 int res1 = 0 ;
31359 int val2 ;
31360 int ecode2 = 0 ;
31361 void *argp3 = 0 ;
31362 int res3 = 0 ;
2131d850
RD
31363 void *argp4 = 0 ;
31364 int res4 = 0 ;
1bd55598
RD
31365 PyObject * obj0 = 0 ;
31366 PyObject * obj1 = 0 ;
31367 PyObject * obj2 = 0 ;
2131d850 31368 PyObject * obj3 = 0 ;
1bd55598 31369 char * kwnames[] = {
2131d850 31370 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31371 };
31372
2131d850 31373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31375 if (!SWIG_IsOK(res1)) {
31376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31377 }
31378 arg1 = reinterpret_cast< wxImageList * >(argp1);
31379 ecode2 = SWIG_AsVal_int(obj1, &val2);
31380 if (!SWIG_IsOK(ecode2)) {
31381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31382 }
31383 arg2 = static_cast< int >(val2);
31384 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31385 if (!SWIG_IsOK(res3)) {
31386 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31387 }
31388 if (!argp3) {
31389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31390 }
31391 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
31392 if (obj3) {
31393 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31394 if (!SWIG_IsOK(res4)) {
31395 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31396 }
31397 if (!argp4) {
31398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31399 }
31400 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31401 }
1bd55598
RD
31402 {
31403 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 31404 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
31405 wxPyEndAllowThreads(__tstate);
31406 if (PyErr_Occurred()) SWIG_fail;
31407 }
31408 {
31409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31410 }
31411 return resultobj;
31412fail:
31413 return NULL;
31414}
31415
31416
31417SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31418 PyObject *resultobj = 0;
31419 wxImageList *arg1 = (wxImageList *) 0 ;
31420 int arg2 ;
31421 wxDC *arg3 = 0 ;
31422 int arg4 ;
31423 int arg5 ;
31424 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31425 bool arg7 = (bool) (bool)false ;
31426 bool result;
31427 void *argp1 = 0 ;
31428 int res1 = 0 ;
31429 int val2 ;
31430 int ecode2 = 0 ;
31431 void *argp3 = 0 ;
31432 int res3 = 0 ;
31433 int val4 ;
31434 int ecode4 = 0 ;
31435 int val5 ;
31436 int ecode5 = 0 ;
31437 int val6 ;
31438 int ecode6 = 0 ;
31439 bool val7 ;
31440 int ecode7 = 0 ;
31441 PyObject * obj0 = 0 ;
31442 PyObject * obj1 = 0 ;
31443 PyObject * obj2 = 0 ;
31444 PyObject * obj3 = 0 ;
31445 PyObject * obj4 = 0 ;
31446 PyObject * obj5 = 0 ;
31447 PyObject * obj6 = 0 ;
31448 char * kwnames[] = {
31449 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31450 };
31451
31452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31454 if (!SWIG_IsOK(res1)) {
31455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31456 }
31457 arg1 = reinterpret_cast< wxImageList * >(argp1);
31458 ecode2 = SWIG_AsVal_int(obj1, &val2);
31459 if (!SWIG_IsOK(ecode2)) {
31460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31461 }
31462 arg2 = static_cast< int >(val2);
31463 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31464 if (!SWIG_IsOK(res3)) {
31465 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31466 }
31467 if (!argp3) {
31468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31469 }
31470 arg3 = reinterpret_cast< wxDC * >(argp3);
31471 ecode4 = SWIG_AsVal_int(obj3, &val4);
31472 if (!SWIG_IsOK(ecode4)) {
31473 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31474 }
31475 arg4 = static_cast< int >(val4);
31476 ecode5 = SWIG_AsVal_int(obj4, &val5);
31477 if (!SWIG_IsOK(ecode5)) {
31478 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31479 }
31480 arg5 = static_cast< int >(val5);
31481 if (obj5) {
31482 ecode6 = SWIG_AsVal_int(obj5, &val6);
31483 if (!SWIG_IsOK(ecode6)) {
31484 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31485 }
31486 arg6 = static_cast< int >(val6);
31487 }
31488 if (obj6) {
31489 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31490 if (!SWIG_IsOK(ecode7)) {
31491 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31492 }
31493 arg7 = static_cast< bool >(val7);
31494 }
31495 {
31496 PyThreadState* __tstate = wxPyBeginAllowThreads();
31497 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31498 wxPyEndAllowThreads(__tstate);
31499 if (PyErr_Occurred()) SWIG_fail;
31500 }
31501 {
31502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31503 }
31504 return resultobj;
31505fail:
31506 return NULL;
31507}
31508
31509
31510SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31511 PyObject *resultobj = 0;
31512 wxImageList *arg1 = (wxImageList *) 0 ;
31513 int result;
31514 void *argp1 = 0 ;
31515 int res1 = 0 ;
31516 PyObject *swig_obj[1] ;
31517
31518 if (!args) SWIG_fail;
31519 swig_obj[0] = args;
31520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31521 if (!SWIG_IsOK(res1)) {
31522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31523 }
31524 arg1 = reinterpret_cast< wxImageList * >(argp1);
31525 {
31526 PyThreadState* __tstate = wxPyBeginAllowThreads();
31527 result = (int)(arg1)->GetImageCount();
31528 wxPyEndAllowThreads(__tstate);
31529 if (PyErr_Occurred()) SWIG_fail;
31530 }
31531 resultobj = SWIG_From_int(static_cast< int >(result));
31532 return resultobj;
31533fail:
31534 return NULL;
31535}
31536
31537
31538SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31539 PyObject *resultobj = 0;
31540 wxImageList *arg1 = (wxImageList *) 0 ;
31541 int arg2 ;
31542 bool result;
31543 void *argp1 = 0 ;
31544 int res1 = 0 ;
31545 int val2 ;
31546 int ecode2 = 0 ;
31547 PyObject * obj0 = 0 ;
31548 PyObject * obj1 = 0 ;
31549 char * kwnames[] = {
31550 (char *) "self",(char *) "index", NULL
31551 };
31552
31553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31555 if (!SWIG_IsOK(res1)) {
31556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31557 }
31558 arg1 = reinterpret_cast< wxImageList * >(argp1);
31559 ecode2 = SWIG_AsVal_int(obj1, &val2);
31560 if (!SWIG_IsOK(ecode2)) {
31561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31562 }
31563 arg2 = static_cast< int >(val2);
31564 {
31565 PyThreadState* __tstate = wxPyBeginAllowThreads();
31566 result = (bool)(arg1)->Remove(arg2);
31567 wxPyEndAllowThreads(__tstate);
31568 if (PyErr_Occurred()) SWIG_fail;
31569 }
31570 {
31571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31572 }
31573 return resultobj;
31574fail:
31575 return NULL;
31576}
31577
31578
31579SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31580 PyObject *resultobj = 0;
31581 wxImageList *arg1 = (wxImageList *) 0 ;
31582 bool result;
31583 void *argp1 = 0 ;
31584 int res1 = 0 ;
31585 PyObject *swig_obj[1] ;
31586
31587 if (!args) SWIG_fail;
31588 swig_obj[0] = args;
31589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31590 if (!SWIG_IsOK(res1)) {
31591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31592 }
31593 arg1 = reinterpret_cast< wxImageList * >(argp1);
31594 {
31595 PyThreadState* __tstate = wxPyBeginAllowThreads();
31596 result = (bool)(arg1)->RemoveAll();
31597 wxPyEndAllowThreads(__tstate);
31598 if (PyErr_Occurred()) SWIG_fail;
31599 }
31600 {
31601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31602 }
31603 return resultobj;
31604fail:
31605 return NULL;
31606}
31607
31608
31609SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31610 PyObject *resultobj = 0;
31611 wxImageList *arg1 = (wxImageList *) 0 ;
31612 int arg2 ;
31613 int *arg3 = 0 ;
31614 int *arg4 = 0 ;
31615 void *argp1 = 0 ;
31616 int res1 = 0 ;
31617 int val2 ;
31618 int ecode2 = 0 ;
31619 int temp3 ;
31620 int res3 = SWIG_TMPOBJ ;
31621 int temp4 ;
31622 int res4 = SWIG_TMPOBJ ;
31623 PyObject * obj0 = 0 ;
31624 PyObject * obj1 = 0 ;
31625 char * kwnames[] = {
31626 (char *) "self",(char *) "index", NULL
31627 };
31628
31629 arg3 = &temp3;
31630 arg4 = &temp4;
31631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31633 if (!SWIG_IsOK(res1)) {
31634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31635 }
31636 arg1 = reinterpret_cast< wxImageList * >(argp1);
31637 ecode2 = SWIG_AsVal_int(obj1, &val2);
31638 if (!SWIG_IsOK(ecode2)) {
31639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31640 }
31641 arg2 = static_cast< int >(val2);
31642 {
31643 PyThreadState* __tstate = wxPyBeginAllowThreads();
31644 (arg1)->GetSize(arg2,*arg3,*arg4);
31645 wxPyEndAllowThreads(__tstate);
31646 if (PyErr_Occurred()) SWIG_fail;
31647 }
31648 resultobj = SWIG_Py_Void();
31649 if (SWIG_IsTmpObj(res3)) {
31650 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31651 } else {
31652 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31653 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31654 }
31655 if (SWIG_IsTmpObj(res4)) {
31656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31657 } else {
31658 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31659 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31660 }
31661 return resultobj;
31662fail:
31663 return NULL;
31664}
31665
31666
31667SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31668 PyObject *obj;
31669 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31670 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31671 return SWIG_Py_Void();
31672}
31673
31674SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31675 return SWIG_Python_InitShadowInstance(args);
31676}
31677
da91cb0f
RD
31678SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31679 PyObject *resultobj = 0;
31680 wxStockGDI *result = 0 ;
1bd55598 31681
da91cb0f
RD
31682 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31683 {
31684 PyThreadState* __tstate = wxPyBeginAllowThreads();
31685 result = (wxStockGDI *)new wxStockGDI();
31686 wxPyEndAllowThreads(__tstate);
31687 if (PyErr_Occurred()) SWIG_fail;
31688 }
31689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31690 return resultobj;
31691fail:
31692 return NULL;
1bd55598
RD
31693}
31694
31695
da91cb0f
RD
31696SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31697 PyObject *resultobj = 0;
31698 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31699 void *argp1 = 0 ;
31700 int res1 = 0 ;
31701 PyObject *swig_obj[1] ;
1bd55598 31702
da91cb0f
RD
31703 if (!args) SWIG_fail;
31704 swig_obj[0] = args;
31705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31706 if (!SWIG_IsOK(res1)) {
31707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31708 }
31709 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31710 {
31711 PyThreadState* __tstate = wxPyBeginAllowThreads();
31712 delete arg1;
31713
31714 wxPyEndAllowThreads(__tstate);
31715 if (PyErr_Occurred()) SWIG_fail;
31716 }
31717 resultobj = SWIG_Py_Void();
31718 return resultobj;
31719fail:
31720 return NULL;
1bd55598
RD
31721}
31722
31723
da91cb0f
RD
31724SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31725 PyObject *resultobj = 0;
1bd55598 31726
da91cb0f
RD
31727 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31728 {
31729 PyThreadState* __tstate = wxPyBeginAllowThreads();
31730 wxStockGDI::DeleteAll();
31731 wxPyEndAllowThreads(__tstate);
31732 if (PyErr_Occurred()) SWIG_fail;
31733 }
31734 resultobj = SWIG_Py_Void();
31735 return resultobj;
31736fail:
31737 return NULL;
1bd55598
RD
31738}
31739
31740
da91cb0f
RD
31741SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31742 PyObject *resultobj = 0;
31743 wxStockGDI *result = 0 ;
1bd55598 31744
da91cb0f
RD
31745 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31746 {
31747 PyThreadState* __tstate = wxPyBeginAllowThreads();
31748 {
31749 wxStockGDI &_result_ref = wxStockGDI::instance();
31750 result = (wxStockGDI *) &_result_ref;
31751 }
31752 wxPyEndAllowThreads(__tstate);
31753 if (PyErr_Occurred()) SWIG_fail;
31754 }
31755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31756 return resultobj;
31757fail:
31758 return NULL;
1bd55598
RD
31759}
31760
31761
da91cb0f
RD
31762SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31763 PyObject *resultobj = 0;
31764 wxStockGDI::Item arg1 ;
31765 wxBrush *result = 0 ;
31766 int val1 ;
31767 int ecode1 = 0 ;
31768 PyObject * obj0 = 0 ;
31769 char * kwnames[] = {
31770 (char *) "item", NULL
31771 };
31772
31773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31774 ecode1 = SWIG_AsVal_int(obj0, &val1);
31775 if (!SWIG_IsOK(ecode1)) {
31776 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31777 }
31778 arg1 = static_cast< wxStockGDI::Item >(val1);
31779 {
31780 PyThreadState* __tstate = wxPyBeginAllowThreads();
31781 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31782 wxPyEndAllowThreads(__tstate);
31783 if (PyErr_Occurred()) SWIG_fail;
31784 }
31785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31786 return resultobj;
31787fail:
31788 return NULL;
1bd55598
RD
31789}
31790
31791
da91cb0f
RD
31792SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31793 PyObject *resultobj = 0;
31794 wxStockGDI::Item arg1 ;
31795 wxColour *result = 0 ;
31796 int val1 ;
31797 int ecode1 = 0 ;
31798 PyObject * obj0 = 0 ;
31799 char * kwnames[] = {
31800 (char *) "item", NULL
31801 };
1bd55598 31802
da91cb0f
RD
31803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31804 ecode1 = SWIG_AsVal_int(obj0, &val1);
31805 if (!SWIG_IsOK(ecode1)) {
31806 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31807 }
31808 arg1 = static_cast< wxStockGDI::Item >(val1);
31809 {
31810 PyThreadState* __tstate = wxPyBeginAllowThreads();
31811 result = (wxColour *)wxStockGDI::GetColour(arg1);
31812 wxPyEndAllowThreads(__tstate);
31813 if (PyErr_Occurred()) SWIG_fail;
31814 }
31815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31816 return resultobj;
31817fail:
31818 return NULL;
1bd55598
RD
31819}
31820
31821
da91cb0f
RD
31822SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31823 PyObject *resultobj = 0;
31824 wxStockGDI::Item arg1 ;
31825 wxCursor *result = 0 ;
31826 int val1 ;
31827 int ecode1 = 0 ;
31828 PyObject * obj0 = 0 ;
31829 char * kwnames[] = {
31830 (char *) "item", NULL
31831 };
31832
31833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31834 ecode1 = SWIG_AsVal_int(obj0, &val1);
31835 if (!SWIG_IsOK(ecode1)) {
31836 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31837 }
31838 arg1 = static_cast< wxStockGDI::Item >(val1);
31839 {
31840 PyThreadState* __tstate = wxPyBeginAllowThreads();
31841 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31842 wxPyEndAllowThreads(__tstate);
31843 if (PyErr_Occurred()) SWIG_fail;
31844 }
31845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31846 return resultobj;
31847fail:
31848 return NULL;
1bd55598
RD
31849}
31850
31851
da91cb0f
RD
31852SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31853 PyObject *resultobj = 0;
31854 wxStockGDI::Item arg1 ;
31855 wxPen *result = 0 ;
31856 int val1 ;
31857 int ecode1 = 0 ;
31858 PyObject * obj0 = 0 ;
31859 char * kwnames[] = {
31860 (char *) "item", NULL
31861 };
31862
31863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31864 ecode1 = SWIG_AsVal_int(obj0, &val1);
31865 if (!SWIG_IsOK(ecode1)) {
31866 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31867 }
31868 arg1 = static_cast< wxStockGDI::Item >(val1);
31869 {
31870 PyThreadState* __tstate = wxPyBeginAllowThreads();
31871 result = (wxPen *)wxStockGDI::GetPen(arg1);
31872 wxPyEndAllowThreads(__tstate);
31873 if (PyErr_Occurred()) SWIG_fail;
31874 }
31875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31876 return resultobj;
31877fail:
31878 return NULL;
1bd55598
RD
31879}
31880
31881
da91cb0f
RD
31882SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31883 PyObject *resultobj = 0;
31884 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31885 wxStockGDI::Item arg2 ;
31886 wxFont *result = 0 ;
31887 void *argp1 = 0 ;
31888 int res1 = 0 ;
31889 int val2 ;
31890 int ecode2 = 0 ;
31891 PyObject * obj0 = 0 ;
31892 PyObject * obj1 = 0 ;
31893 char * kwnames[] = {
31894 (char *) "self",(char *) "item", NULL
31895 };
1bd55598 31896
da91cb0f
RD
31897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31899 if (!SWIG_IsOK(res1)) {
31900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31901 }
31902 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31903 ecode2 = SWIG_AsVal_int(obj1, &val2);
31904 if (!SWIG_IsOK(ecode2)) {
31905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31906 }
31907 arg2 = static_cast< wxStockGDI::Item >(val2);
31908 {
31909 PyThreadState* __tstate = wxPyBeginAllowThreads();
31910 result = (wxFont *)(arg1)->GetFont(arg2);
31911 wxPyEndAllowThreads(__tstate);
31912 if (PyErr_Occurred()) SWIG_fail;
31913 }
31914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31915 return resultobj;
31916fail:
31917 return NULL;
1bd55598
RD
31918}
31919
31920
da91cb0f
RD
31921SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31922 PyObject *obj;
31923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31924 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31925 return SWIG_Py_Void();
1bd55598
RD
31926}
31927
da91cb0f
RD
31928SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31929 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
31930}
31931
1bd55598
RD
31932SWIGINTERN int NullBitmap_set(PyObject *) {
31933 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31934 return 1;
31935}
31936
31937
31938SWIGINTERN PyObject *NullBitmap_get(void) {
31939 PyObject *pyobj = 0;
31940
31941 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31942 return pyobj;
31943}
31944
31945
31946SWIGINTERN int NullIcon_set(PyObject *) {
31947 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31948 return 1;
31949}
31950
31951
31952SWIGINTERN PyObject *NullIcon_get(void) {
31953 PyObject *pyobj = 0;
31954
31955 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31956 return pyobj;
31957}
31958
31959
31960SWIGINTERN int NullCursor_set(PyObject *) {
31961 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31962 return 1;
31963}
31964
31965
31966SWIGINTERN PyObject *NullCursor_get(void) {
31967 PyObject *pyobj = 0;
31968
31969 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31970 return pyobj;
31971}
31972
31973
31974SWIGINTERN int NullPen_set(PyObject *) {
31975 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31976 return 1;
31977}
31978
31979
31980SWIGINTERN PyObject *NullPen_get(void) {
31981 PyObject *pyobj = 0;
31982
31983 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31984 return pyobj;
31985}
31986
31987
31988SWIGINTERN int NullBrush_set(PyObject *) {
31989 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31990 return 1;
31991}
31992
31993
31994SWIGINTERN PyObject *NullBrush_get(void) {
31995 PyObject *pyobj = 0;
31996
31997 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31998 return pyobj;
31999}
32000
32001
32002SWIGINTERN int NullPalette_set(PyObject *) {
32003 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32004 return 1;
32005}
32006
32007
32008SWIGINTERN PyObject *NullPalette_get(void) {
32009 PyObject *pyobj = 0;
32010
32011 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32012 return pyobj;
32013}
32014
32015
32016SWIGINTERN int NullFont_set(PyObject *) {
32017 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32018 return 1;
32019}
32020
32021
32022SWIGINTERN PyObject *NullFont_get(void) {
32023 PyObject *pyobj = 0;
32024
32025 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32026 return pyobj;
32027}
32028
32029
32030SWIGINTERN int NullColour_set(PyObject *) {
32031 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32032 return 1;
32033}
32034
32035
32036SWIGINTERN PyObject *NullColour_get(void) {
32037 PyObject *pyobj = 0;
32038
32039 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32040 return pyobj;
32041}
32042
32043
da91cb0f 32044SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32045 PyObject *resultobj = 0;
da91cb0f
RD
32046 wxGDIObjListBase *result = 0 ;
32047
32048 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32049 {
32050 PyThreadState* __tstate = wxPyBeginAllowThreads();
32051 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32052 wxPyEndAllowThreads(__tstate);
32053 if (PyErr_Occurred()) SWIG_fail;
32054 }
32055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32056 return resultobj;
32057fail:
32058 return NULL;
32059}
32060
32061
32062SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32063 PyObject *resultobj = 0;
32064 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
32065 void *argp1 = 0 ;
32066 int res1 = 0 ;
da91cb0f 32067 PyObject *swig_obj[1] ;
1bd55598 32068
da91cb0f
RD
32069 if (!args) SWIG_fail;
32070 swig_obj[0] = args;
32071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 32072 if (!SWIG_IsOK(res1)) {
da91cb0f 32073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 32074 }
da91cb0f 32075 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
32076 {
32077 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
32078 delete arg1;
32079
1bd55598
RD
32080 wxPyEndAllowThreads(__tstate);
32081 if (PyErr_Occurred()) SWIG_fail;
32082 }
32083 resultobj = SWIG_Py_Void();
32084 return resultobj;
32085fail:
32086 return NULL;
32087}
32088
32089
da91cb0f
RD
32090SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32091 PyObject *obj;
32092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32093 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32094 return SWIG_Py_Void();
32095}
32096
32097SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32098 return SWIG_Python_InitShadowInstance(args);
32099}
32100
1bd55598
RD
32101SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32102 PyObject *resultobj = 0;
32103 wxPenList *arg1 = (wxPenList *) 0 ;
32104 wxColour *arg2 = 0 ;
32105 int arg3 ;
32106 int arg4 ;
32107 wxPen *result = 0 ;
32108 void *argp1 = 0 ;
32109 int res1 = 0 ;
32110 wxColour temp2 ;
32111 int val3 ;
32112 int ecode3 = 0 ;
32113 int val4 ;
32114 int ecode4 = 0 ;
32115 PyObject * obj0 = 0 ;
32116 PyObject * obj1 = 0 ;
32117 PyObject * obj2 = 0 ;
32118 PyObject * obj3 = 0 ;
32119 char * kwnames[] = {
32120 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32121 };
32122
32123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32125 if (!SWIG_IsOK(res1)) {
32126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32127 }
32128 arg1 = reinterpret_cast< wxPenList * >(argp1);
32129 {
32130 arg2 = &temp2;
32131 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32132 }
32133 ecode3 = SWIG_AsVal_int(obj2, &val3);
32134 if (!SWIG_IsOK(ecode3)) {
32135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32136 }
32137 arg3 = static_cast< int >(val3);
32138 ecode4 = SWIG_AsVal_int(obj3, &val4);
32139 if (!SWIG_IsOK(ecode4)) {
32140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32141 }
32142 arg4 = static_cast< int >(val4);
32143 {
32144 PyThreadState* __tstate = wxPyBeginAllowThreads();
32145 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32146 wxPyEndAllowThreads(__tstate);
32147 if (PyErr_Occurred()) SWIG_fail;
32148 }
32149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32150 return resultobj;
32151fail:
32152 return NULL;
32153}
32154
32155
da91cb0f 32156SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32157 PyObject *resultobj = 0;
32158 wxPenList *arg1 = (wxPenList *) 0 ;
32159 wxPen *arg2 = (wxPen *) 0 ;
32160 void *argp1 = 0 ;
32161 int res1 = 0 ;
32162 void *argp2 = 0 ;
32163 int res2 = 0 ;
32164 PyObject * obj0 = 0 ;
32165 PyObject * obj1 = 0 ;
32166 char * kwnames[] = {
32167 (char *) "self",(char *) "pen", NULL
32168 };
32169
da91cb0f 32170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
32171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32172 if (!SWIG_IsOK(res1)) {
da91cb0f 32173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32174 }
32175 arg1 = reinterpret_cast< wxPenList * >(argp1);
32176 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32177 if (!SWIG_IsOK(res2)) {
da91cb0f 32178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
32179 }
32180 arg2 = reinterpret_cast< wxPen * >(argp2);
32181 {
32182 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32183 (arg1)->AddPen(arg2);
1bd55598
RD
32184 wxPyEndAllowThreads(__tstate);
32185 if (PyErr_Occurred()) SWIG_fail;
32186 }
32187 resultobj = SWIG_Py_Void();
32188 return resultobj;
32189fail:
32190 return NULL;
32191}
32192
32193
da91cb0f 32194SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32195 PyObject *resultobj = 0;
32196 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 32197 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
32198 void *argp1 = 0 ;
32199 int res1 = 0 ;
da91cb0f
RD
32200 void *argp2 = 0 ;
32201 int res2 = 0 ;
32202 PyObject * obj0 = 0 ;
32203 PyObject * obj1 = 0 ;
32204 char * kwnames[] = {
32205 (char *) "self",(char *) "pen", NULL
32206 };
1bd55598 32207
da91cb0f
RD
32208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 32210 if (!SWIG_IsOK(res1)) {
da91cb0f 32211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32212 }
32213 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
32214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32215 if (!SWIG_IsOK(res2)) {
32216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32217 }
32218 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
32219 {
32220 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32221 (arg1)->RemovePen(arg2);
1bd55598
RD
32222 wxPyEndAllowThreads(__tstate);
32223 if (PyErr_Occurred()) SWIG_fail;
32224 }
da91cb0f 32225 resultobj = SWIG_Py_Void();
1bd55598
RD
32226 return resultobj;
32227fail:
32228 return NULL;
32229}
32230
32231
32232SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32233 PyObject *obj;
32234 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32235 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32236 return SWIG_Py_Void();
32237}
32238
da91cb0f
RD
32239SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32240 PyObject *resultobj = 0;
32241 wxBrushList *arg1 = (wxBrushList *) 0 ;
32242 wxColour *arg2 = 0 ;
32243 int arg3 = (int) wxSOLID ;
32244 wxBrush *result = 0 ;
32245 void *argp1 = 0 ;
32246 int res1 = 0 ;
32247 wxColour temp2 ;
32248 int val3 ;
32249 int ecode3 = 0 ;
32250 PyObject * obj0 = 0 ;
32251 PyObject * obj1 = 0 ;
32252 PyObject * obj2 = 0 ;
32253 char * kwnames[] = {
32254 (char *) "self",(char *) "colour",(char *) "style", NULL
32255 };
32256
32257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32259 if (!SWIG_IsOK(res1)) {
32260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32261 }
32262 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32263 {
32264 arg2 = &temp2;
32265 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32266 }
32267 if (obj2) {
32268 ecode3 = SWIG_AsVal_int(obj2, &val3);
32269 if (!SWIG_IsOK(ecode3)) {
32270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32271 }
32272 arg3 = static_cast< int >(val3);
32273 }
32274 {
32275 PyThreadState* __tstate = wxPyBeginAllowThreads();
32276 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32277 wxPyEndAllowThreads(__tstate);
32278 if (PyErr_Occurred()) SWIG_fail;
32279 }
32280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32281 return resultobj;
32282fail:
32283 return NULL;
32284}
32285
32286
1bd55598
RD
32287SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32288 PyObject *resultobj = 0;
32289 wxBrushList *arg1 = (wxBrushList *) 0 ;
32290 wxBrush *arg2 = (wxBrush *) 0 ;
32291 void *argp1 = 0 ;
32292 int res1 = 0 ;
32293 void *argp2 = 0 ;
32294 int res2 = 0 ;
32295 PyObject * obj0 = 0 ;
32296 PyObject * obj1 = 0 ;
32297 char * kwnames[] = {
32298 (char *) "self",(char *) "brush", NULL
32299 };
32300
32301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32303 if (!SWIG_IsOK(res1)) {
32304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32305 }
32306 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32307 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32308 if (!SWIG_IsOK(res2)) {
32309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32310 }
32311 arg2 = reinterpret_cast< wxBrush * >(argp2);
32312 {
32313 PyThreadState* __tstate = wxPyBeginAllowThreads();
32314 (arg1)->AddBrush(arg2);
32315 wxPyEndAllowThreads(__tstate);
32316 if (PyErr_Occurred()) SWIG_fail;
32317 }
32318 resultobj = SWIG_Py_Void();
32319 return resultobj;
32320fail:
32321 return NULL;
32322}
32323
32324
da91cb0f 32325SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32326 PyObject *resultobj = 0;
32327 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 32328 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
32329 void *argp1 = 0 ;
32330 int res1 = 0 ;
da91cb0f
RD
32331 void *argp2 = 0 ;
32332 int res2 = 0 ;
32333 PyObject * obj0 = 0 ;
32334 PyObject * obj1 = 0 ;
32335 char * kwnames[] = {
32336 (char *) "self",(char *) "brush", NULL
32337 };
32338
32339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32341 if (!SWIG_IsOK(res1)) {
32342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32343 }
32344 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32345 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32346 if (!SWIG_IsOK(res2)) {
32347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32348 }
32349 arg2 = reinterpret_cast< wxBrush * >(argp2);
32350 {
32351 PyThreadState* __tstate = wxPyBeginAllowThreads();
32352 (arg1)->RemoveBrush(arg2);
32353 wxPyEndAllowThreads(__tstate);
32354 if (PyErr_Occurred()) SWIG_fail;
32355 }
32356 resultobj = SWIG_Py_Void();
32357 return resultobj;
32358fail:
32359 return NULL;
32360}
32361
32362
32363SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32364 PyObject *obj;
32365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32366 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32367 return SWIG_Py_Void();
32368}
32369
32370SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32371 PyObject *resultobj = 0;
32372 wxFontList *arg1 = (wxFontList *) 0 ;
32373 int arg2 ;
32374 int arg3 ;
32375 int arg4 ;
32376 int arg5 ;
32377 bool arg6 = (bool) false ;
32378 wxString const &arg7_defvalue = wxPyEmptyString ;
32379 wxString *arg7 = (wxString *) &arg7_defvalue ;
32380 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32381 wxFont *result = 0 ;
32382 void *argp1 = 0 ;
32383 int res1 = 0 ;
32384 int val2 ;
32385 int ecode2 = 0 ;
1bd55598
RD
32386 int val3 ;
32387 int ecode3 = 0 ;
da91cb0f
RD
32388 int val4 ;
32389 int ecode4 = 0 ;
32390 int val5 ;
32391 int ecode5 = 0 ;
32392 bool val6 ;
32393 int ecode6 = 0 ;
32394 bool temp7 = false ;
32395 int val8 ;
32396 int ecode8 = 0 ;
1bd55598
RD
32397 PyObject * obj0 = 0 ;
32398 PyObject * obj1 = 0 ;
32399 PyObject * obj2 = 0 ;
da91cb0f
RD
32400 PyObject * obj3 = 0 ;
32401 PyObject * obj4 = 0 ;
32402 PyObject * obj5 = 0 ;
32403 PyObject * obj6 = 0 ;
32404 PyObject * obj7 = 0 ;
1bd55598 32405 char * kwnames[] = {
da91cb0f 32406 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32407 };
32408
da91cb0f
RD
32409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32411 if (!SWIG_IsOK(res1)) {
da91cb0f 32412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32413 }
da91cb0f
RD
32414 arg1 = reinterpret_cast< wxFontList * >(argp1);
32415 ecode2 = SWIG_AsVal_int(obj1, &val2);
32416 if (!SWIG_IsOK(ecode2)) {
32417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32418 }
32419 arg2 = static_cast< int >(val2);
32420 ecode3 = SWIG_AsVal_int(obj2, &val3);
32421 if (!SWIG_IsOK(ecode3)) {
32422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32423 }
32424 arg3 = static_cast< int >(val3);
32425 ecode4 = SWIG_AsVal_int(obj3, &val4);
32426 if (!SWIG_IsOK(ecode4)) {
32427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32428 }
32429 arg4 = static_cast< int >(val4);
32430 ecode5 = SWIG_AsVal_int(obj4, &val5);
32431 if (!SWIG_IsOK(ecode5)) {
32432 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32433 }
32434 arg5 = static_cast< int >(val5);
32435 if (obj5) {
32436 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32437 if (!SWIG_IsOK(ecode6)) {
32438 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32439 }
32440 arg6 = static_cast< bool >(val6);
1bd55598 32441 }
da91cb0f
RD
32442 if (obj6) {
32443 {
32444 arg7 = wxString_in_helper(obj6);
32445 if (arg7 == NULL) SWIG_fail;
32446 temp7 = true;
32447 }
32448 }
32449 if (obj7) {
32450 ecode8 = SWIG_AsVal_int(obj7, &val8);
32451 if (!SWIG_IsOK(ecode8)) {
32452 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32453 }
da91cb0f 32454 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32455 }
32456 {
32457 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32458 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32459 wxPyEndAllowThreads(__tstate);
32460 if (PyErr_Occurred()) SWIG_fail;
32461 }
da91cb0f
RD
32462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32463 {
32464 if (temp7)
32465 delete arg7;
32466 }
1bd55598
RD
32467 return resultobj;
32468fail:
da91cb0f
RD
32469 {
32470 if (temp7)
32471 delete arg7;
32472 }
1bd55598
RD
32473 return NULL;
32474}
32475
32476
da91cb0f 32477SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32478 PyObject *resultobj = 0;
da91cb0f
RD
32479 wxFontList *arg1 = (wxFontList *) 0 ;
32480 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32481 void *argp1 = 0 ;
32482 int res1 = 0 ;
32483 void *argp2 = 0 ;
32484 int res2 = 0 ;
32485 PyObject * obj0 = 0 ;
32486 PyObject * obj1 = 0 ;
32487 char * kwnames[] = {
da91cb0f 32488 (char *) "self",(char *) "font", NULL
1bd55598
RD
32489 };
32490
da91cb0f
RD
32491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32493 if (!SWIG_IsOK(res1)) {
da91cb0f 32494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32495 }
da91cb0f
RD
32496 arg1 = reinterpret_cast< wxFontList * >(argp1);
32497 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 32498 if (!SWIG_IsOK(res2)) {
da91cb0f 32499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 32500 }
da91cb0f 32501 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32502 {
32503 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32504 (arg1)->AddFont(arg2);
1bd55598
RD
32505 wxPyEndAllowThreads(__tstate);
32506 if (PyErr_Occurred()) SWIG_fail;
32507 }
32508 resultobj = SWIG_Py_Void();
32509 return resultobj;
32510fail:
32511 return NULL;
32512}
32513
32514
da91cb0f 32515SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32516 PyObject *resultobj = 0;
da91cb0f
RD
32517 wxFontList *arg1 = (wxFontList *) 0 ;
32518 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32519 void *argp1 = 0 ;
32520 int res1 = 0 ;
da91cb0f
RD
32521 void *argp2 = 0 ;
32522 int res2 = 0 ;
32523 PyObject * obj0 = 0 ;
32524 PyObject * obj1 = 0 ;
32525 char * kwnames[] = {
32526 (char *) "self",(char *) "font", NULL
32527 };
1bd55598 32528
da91cb0f
RD
32529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32531 if (!SWIG_IsOK(res1)) {
da91cb0f 32532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32533 }
da91cb0f
RD
32534 arg1 = reinterpret_cast< wxFontList * >(argp1);
32535 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32536 if (!SWIG_IsOK(res2)) {
32537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32538 }
32539 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32540 {
32541 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32542 (arg1)->RemoveFont(arg2);
1bd55598
RD
32543 wxPyEndAllowThreads(__tstate);
32544 if (PyErr_Occurred()) SWIG_fail;
32545 }
da91cb0f 32546 resultobj = SWIG_Py_Void();
1bd55598
RD
32547 return resultobj;
32548fail:
32549 return NULL;
32550}
32551
32552
da91cb0f 32553SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32554 PyObject *obj;
32555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32556 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32557 return SWIG_Py_Void();
32558}
32559
32560SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32561 PyObject *resultobj = 0;
32562 wxColourDatabase *result = 0 ;
32563
32564 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32565 {
32566 if (!wxPyCheckForApp()) SWIG_fail;
32567 PyThreadState* __tstate = wxPyBeginAllowThreads();
32568 result = (wxColourDatabase *)new wxColourDatabase();
32569 wxPyEndAllowThreads(__tstate);
32570 if (PyErr_Occurred()) SWIG_fail;
32571 }
32572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32573 return resultobj;
32574fail:
32575 return NULL;
32576}
32577
32578
32579SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32580 PyObject *resultobj = 0;
32581 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32582 void *argp1 = 0 ;
32583 int res1 = 0 ;
32584 PyObject *swig_obj[1] ;
32585
32586 if (!args) SWIG_fail;
32587 swig_obj[0] = args;
32588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32589 if (!SWIG_IsOK(res1)) {
32590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32591 }
32592 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32593 {
32594 PyThreadState* __tstate = wxPyBeginAllowThreads();
32595 delete arg1;
32596
32597 wxPyEndAllowThreads(__tstate);
32598 if (PyErr_Occurred()) SWIG_fail;
32599 }
32600 resultobj = SWIG_Py_Void();
32601 return resultobj;
32602fail:
32603 return NULL;
32604}
32605
32606
32607SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32608 PyObject *resultobj = 0;
32609 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32610 wxString *arg2 = 0 ;
32611 wxColour result;
32612 void *argp1 = 0 ;
32613 int res1 = 0 ;
32614 bool temp2 = false ;
32615 PyObject * obj0 = 0 ;
32616 PyObject * obj1 = 0 ;
32617 char * kwnames[] = {
32618 (char *) "self",(char *) "name", NULL
32619 };
32620
32621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32623 if (!SWIG_IsOK(res1)) {
32624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32625 }
32626 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32627 {
32628 arg2 = wxString_in_helper(obj1);
32629 if (arg2 == NULL) SWIG_fail;
32630 temp2 = true;
32631 }
32632 {
32633 PyThreadState* __tstate = wxPyBeginAllowThreads();
32634 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32635 wxPyEndAllowThreads(__tstate);
32636 if (PyErr_Occurred()) SWIG_fail;
32637 }
32638 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32639 {
32640 if (temp2)
32641 delete arg2;
32642 }
32643 return resultobj;
32644fail:
32645 {
32646 if (temp2)
32647 delete arg2;
32648 }
32649 return NULL;
32650}
32651
32652
32653SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32654 PyObject *resultobj = 0;
32655 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32656 wxColour *arg2 = 0 ;
32657 wxString result;
32658 void *argp1 = 0 ;
32659 int res1 = 0 ;
32660 wxColour temp2 ;
32661 PyObject * obj0 = 0 ;
32662 PyObject * obj1 = 0 ;
32663 char * kwnames[] = {
32664 (char *) "self",(char *) "colour", NULL
32665 };
32666
32667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32669 if (!SWIG_IsOK(res1)) {
32670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32671 }
32672 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32673 {
32674 arg2 = &temp2;
32675 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32676 }
32677 {
32678 PyThreadState* __tstate = wxPyBeginAllowThreads();
32679 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32680 wxPyEndAllowThreads(__tstate);
32681 if (PyErr_Occurred()) SWIG_fail;
32682 }
32683 {
32684#if wxUSE_UNICODE
32685 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32686#else
32687 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32688#endif
32689 }
32690 return resultobj;
32691fail:
32692 return NULL;
32693}
32694
32695
32696SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32697 PyObject *resultobj = 0;
32698 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32699 wxString *arg2 = 0 ;
32700 wxColour *arg3 = 0 ;
32701 void *argp1 = 0 ;
32702 int res1 = 0 ;
32703 bool temp2 = false ;
32704 wxColour temp3 ;
32705 PyObject * obj0 = 0 ;
32706 PyObject * obj1 = 0 ;
32707 PyObject * obj2 = 0 ;
32708 char * kwnames[] = {
32709 (char *) "self",(char *) "name",(char *) "colour", NULL
32710 };
32711
32712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32714 if (!SWIG_IsOK(res1)) {
32715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32716 }
32717 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32718 {
32719 arg2 = wxString_in_helper(obj1);
32720 if (arg2 == NULL) SWIG_fail;
32721 temp2 = true;
32722 }
32723 {
32724 arg3 = &temp3;
32725 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32726 }
32727 {
32728 PyThreadState* __tstate = wxPyBeginAllowThreads();
32729 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32730 wxPyEndAllowThreads(__tstate);
32731 if (PyErr_Occurred()) SWIG_fail;
32732 }
32733 resultobj = SWIG_Py_Void();
32734 {
32735 if (temp2)
32736 delete arg2;
32737 }
32738 return resultobj;
32739fail:
32740 {
32741 if (temp2)
32742 delete arg2;
32743 }
32744 return NULL;
32745}
32746
32747
32748SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32749 PyObject *resultobj = 0;
32750 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32751 wxString *arg2 = 0 ;
32752 int arg3 ;
32753 int arg4 ;
32754 int arg5 ;
32755 void *argp1 = 0 ;
32756 int res1 = 0 ;
32757 bool temp2 = false ;
32758 int val3 ;
32759 int ecode3 = 0 ;
32760 int val4 ;
32761 int ecode4 = 0 ;
da91cb0f
RD
32762 int val5 ;
32763 int ecode5 = 0 ;
1bd55598
RD
32764 PyObject * obj0 = 0 ;
32765 PyObject * obj1 = 0 ;
32766 PyObject * obj2 = 0 ;
32767 PyObject * obj3 = 0 ;
32768 PyObject * obj4 = 0 ;
1bd55598 32769 char * kwnames[] = {
da91cb0f 32770 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32771 };
32772
da91cb0f
RD
32773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32775 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32777 }
32778 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32779 {
32780 arg2 = wxString_in_helper(obj1);
32781 if (arg2 == NULL) SWIG_fail;
32782 temp2 = true;
1bd55598 32783 }
1bd55598
RD
32784 ecode3 = SWIG_AsVal_int(obj2, &val3);
32785 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32787 }
32788 arg3 = static_cast< int >(val3);
32789 ecode4 = SWIG_AsVal_int(obj3, &val4);
32790 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32791 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32792 }
32793 arg4 = static_cast< int >(val4);
32794 ecode5 = SWIG_AsVal_int(obj4, &val5);
32795 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32797 }
32798 arg5 = static_cast< int >(val5);
1bd55598
RD
32799 {
32800 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32801 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32802 wxPyEndAllowThreads(__tstate);
32803 if (PyErr_Occurred()) SWIG_fail;
32804 }
da91cb0f 32805 resultobj = SWIG_Py_Void();
1bd55598 32806 {
da91cb0f
RD
32807 if (temp2)
32808 delete arg2;
1bd55598
RD
32809 }
32810 return resultobj;
32811fail:
32812 {
da91cb0f
RD
32813 if (temp2)
32814 delete arg2;
1bd55598
RD
32815 }
32816 return NULL;
32817}
32818
32819
da91cb0f
RD
32820SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32821 PyObject *obj;
32822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32823 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32824 return SWIG_Py_Void();
32825}
32826
32827SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32828 return SWIG_Python_InitShadowInstance(args);
32829}
32830
32831SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32832 PyObject *resultobj = 0;
da91cb0f 32833 wxFontList *result = 0 ;
1bd55598 32834
da91cb0f 32835 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
32836 {
32837 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32838 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
32839 wxPyEndAllowThreads(__tstate);
32840 if (PyErr_Occurred()) SWIG_fail;
32841 }
da91cb0f 32842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
32843 return resultobj;
32844fail:
32845 return NULL;
32846}
32847
32848
da91cb0f 32849SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32850 PyObject *resultobj = 0;
da91cb0f 32851 wxPenList *result = 0 ;
1bd55598 32852
da91cb0f 32853 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
32854 {
32855 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32856 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
32857 wxPyEndAllowThreads(__tstate);
32858 if (PyErr_Occurred()) SWIG_fail;
32859 }
da91cb0f 32860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
32861 return resultobj;
32862fail:
32863 return NULL;
32864}
32865
32866
da91cb0f
RD
32867SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32868 PyObject *resultobj = 0;
32869 wxBrushList *result = 0 ;
1bd55598 32870
da91cb0f
RD
32871 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32872 {
32873 PyThreadState* __tstate = wxPyBeginAllowThreads();
32874 result = (wxBrushList *)_wxPyInitTheBrushList();
32875 wxPyEndAllowThreads(__tstate);
32876 if (PyErr_Occurred()) SWIG_fail;
32877 }
32878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32879 return resultobj;
32880fail:
32881 return NULL;
1bd55598
RD
32882}
32883
32884
da91cb0f
RD
32885SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32886 PyObject *resultobj = 0;
32887 wxColourDatabase *result = 0 ;
1bd55598 32888
da91cb0f
RD
32889 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32890 {
32891 PyThreadState* __tstate = wxPyBeginAllowThreads();
32892 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32893 wxPyEndAllowThreads(__tstate);
32894 if (PyErr_Occurred()) SWIG_fail;
32895 }
32896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32897 return resultobj;
32898fail:
32899 return NULL;
1bd55598
RD
32900}
32901
32902
32903SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32904 PyObject *resultobj = 0;
32905 wxEffects *result = 0 ;
32906
32907 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32908 {
32909 PyThreadState* __tstate = wxPyBeginAllowThreads();
32910 result = (wxEffects *)new wxEffects();
32911 wxPyEndAllowThreads(__tstate);
32912 if (PyErr_Occurred()) SWIG_fail;
32913 }
32914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32915 return resultobj;
32916fail:
32917 return NULL;
32918}
32919
32920
32921SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32922 PyObject *resultobj = 0;
32923 wxEffects *arg1 = (wxEffects *) 0 ;
32924 wxColour result;
32925 void *argp1 = 0 ;
32926 int res1 = 0 ;
32927 PyObject *swig_obj[1] ;
32928
32929 if (!args) SWIG_fail;
32930 swig_obj[0] = args;
32931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32932 if (!SWIG_IsOK(res1)) {
32933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32934 }
32935 arg1 = reinterpret_cast< wxEffects * >(argp1);
32936 {
32937 PyThreadState* __tstate = wxPyBeginAllowThreads();
32938 result = ((wxEffects const *)arg1)->GetHighlightColour();
32939 wxPyEndAllowThreads(__tstate);
32940 if (PyErr_Occurred()) SWIG_fail;
32941 }
32942 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32943 return resultobj;
32944fail:
32945 return NULL;
32946}
32947
32948
32949SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32950 PyObject *resultobj = 0;
32951 wxEffects *arg1 = (wxEffects *) 0 ;
32952 wxColour result;
32953 void *argp1 = 0 ;
32954 int res1 = 0 ;
32955 PyObject *swig_obj[1] ;
32956
32957 if (!args) SWIG_fail;
32958 swig_obj[0] = args;
32959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32960 if (!SWIG_IsOK(res1)) {
32961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32962 }
32963 arg1 = reinterpret_cast< wxEffects * >(argp1);
32964 {
32965 PyThreadState* __tstate = wxPyBeginAllowThreads();
32966 result = ((wxEffects const *)arg1)->GetLightShadow();
32967 wxPyEndAllowThreads(__tstate);
32968 if (PyErr_Occurred()) SWIG_fail;
32969 }
32970 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32971 return resultobj;
32972fail:
32973 return NULL;
32974}
32975
32976
32977SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32978 PyObject *resultobj = 0;
32979 wxEffects *arg1 = (wxEffects *) 0 ;
32980 wxColour result;
32981 void *argp1 = 0 ;
32982 int res1 = 0 ;
32983 PyObject *swig_obj[1] ;
32984
32985 if (!args) SWIG_fail;
32986 swig_obj[0] = args;
32987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32988 if (!SWIG_IsOK(res1)) {
32989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32990 }
32991 arg1 = reinterpret_cast< wxEffects * >(argp1);
32992 {
32993 PyThreadState* __tstate = wxPyBeginAllowThreads();
32994 result = ((wxEffects const *)arg1)->GetFaceColour();
32995 wxPyEndAllowThreads(__tstate);
32996 if (PyErr_Occurred()) SWIG_fail;
32997 }
32998 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32999 return resultobj;
33000fail:
33001 return NULL;
33002}
33003
33004
33005SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33006 PyObject *resultobj = 0;
33007 wxEffects *arg1 = (wxEffects *) 0 ;
33008 wxColour result;
33009 void *argp1 = 0 ;
33010 int res1 = 0 ;
33011 PyObject *swig_obj[1] ;
33012
33013 if (!args) SWIG_fail;
33014 swig_obj[0] = args;
33015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33016 if (!SWIG_IsOK(res1)) {
33017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33018 }
33019 arg1 = reinterpret_cast< wxEffects * >(argp1);
33020 {
33021 PyThreadState* __tstate = wxPyBeginAllowThreads();
33022 result = ((wxEffects const *)arg1)->GetMediumShadow();
33023 wxPyEndAllowThreads(__tstate);
33024 if (PyErr_Occurred()) SWIG_fail;
33025 }
33026 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33027 return resultobj;
33028fail:
33029 return NULL;
33030}
33031
33032
33033SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33034 PyObject *resultobj = 0;
33035 wxEffects *arg1 = (wxEffects *) 0 ;
33036 wxColour result;
33037 void *argp1 = 0 ;
33038 int res1 = 0 ;
33039 PyObject *swig_obj[1] ;
33040
33041 if (!args) SWIG_fail;
33042 swig_obj[0] = args;
33043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33044 if (!SWIG_IsOK(res1)) {
33045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33046 }
33047 arg1 = reinterpret_cast< wxEffects * >(argp1);
33048 {
33049 PyThreadState* __tstate = wxPyBeginAllowThreads();
33050 result = ((wxEffects const *)arg1)->GetDarkShadow();
33051 wxPyEndAllowThreads(__tstate);
33052 if (PyErr_Occurred()) SWIG_fail;
33053 }
33054 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33055 return resultobj;
33056fail:
33057 return NULL;
33058}
33059
33060
33061SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33062 PyObject *resultobj = 0;
33063 wxEffects *arg1 = (wxEffects *) 0 ;
33064 wxColour *arg2 = 0 ;
33065 void *argp1 = 0 ;
33066 int res1 = 0 ;
33067 wxColour temp2 ;
33068 PyObject * obj0 = 0 ;
33069 PyObject * obj1 = 0 ;
33070 char * kwnames[] = {
33071 (char *) "self",(char *) "c", NULL
33072 };
33073
33074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33076 if (!SWIG_IsOK(res1)) {
33077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33078 }
33079 arg1 = reinterpret_cast< wxEffects * >(argp1);
33080 {
33081 arg2 = &temp2;
33082 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33083 }
33084 {
33085 PyThreadState* __tstate = wxPyBeginAllowThreads();
33086 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33087 wxPyEndAllowThreads(__tstate);
33088 if (PyErr_Occurred()) SWIG_fail;
33089 }
33090 resultobj = SWIG_Py_Void();
33091 return resultobj;
33092fail:
33093 return NULL;
33094}
33095
33096
33097SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33098 PyObject *resultobj = 0;
33099 wxEffects *arg1 = (wxEffects *) 0 ;
33100 wxColour *arg2 = 0 ;
33101 void *argp1 = 0 ;
33102 int res1 = 0 ;
33103 wxColour temp2 ;
33104 PyObject * obj0 = 0 ;
33105 PyObject * obj1 = 0 ;
33106 char * kwnames[] = {
33107 (char *) "self",(char *) "c", NULL
33108 };
33109
33110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33112 if (!SWIG_IsOK(res1)) {
33113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33114 }
33115 arg1 = reinterpret_cast< wxEffects * >(argp1);
33116 {
33117 arg2 = &temp2;
33118 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33119 }
33120 {
33121 PyThreadState* __tstate = wxPyBeginAllowThreads();
33122 (arg1)->SetLightShadow((wxColour const &)*arg2);
33123 wxPyEndAllowThreads(__tstate);
33124 if (PyErr_Occurred()) SWIG_fail;
33125 }
33126 resultobj = SWIG_Py_Void();
33127 return resultobj;
33128fail:
33129 return NULL;
33130}
33131
33132
33133SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33134 PyObject *resultobj = 0;
33135 wxEffects *arg1 = (wxEffects *) 0 ;
33136 wxColour *arg2 = 0 ;
33137 void *argp1 = 0 ;
33138 int res1 = 0 ;
33139 wxColour temp2 ;
33140 PyObject * obj0 = 0 ;
33141 PyObject * obj1 = 0 ;
33142 char * kwnames[] = {
33143 (char *) "self",(char *) "c", NULL
33144 };
33145
33146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33148 if (!SWIG_IsOK(res1)) {
33149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33150 }
33151 arg1 = reinterpret_cast< wxEffects * >(argp1);
33152 {
33153 arg2 = &temp2;
33154 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33155 }
33156 {
33157 PyThreadState* __tstate = wxPyBeginAllowThreads();
33158 (arg1)->SetFaceColour((wxColour const &)*arg2);
33159 wxPyEndAllowThreads(__tstate);
33160 if (PyErr_Occurred()) SWIG_fail;
33161 }
33162 resultobj = SWIG_Py_Void();
33163 return resultobj;
33164fail:
33165 return NULL;
33166}
33167
33168
33169SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33170 PyObject *resultobj = 0;
33171 wxEffects *arg1 = (wxEffects *) 0 ;
33172 wxColour *arg2 = 0 ;
33173 void *argp1 = 0 ;
33174 int res1 = 0 ;
33175 wxColour temp2 ;
33176 PyObject * obj0 = 0 ;
33177 PyObject * obj1 = 0 ;
33178 char * kwnames[] = {
33179 (char *) "self",(char *) "c", NULL
33180 };
33181
33182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33184 if (!SWIG_IsOK(res1)) {
33185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33186 }
33187 arg1 = reinterpret_cast< wxEffects * >(argp1);
33188 {
33189 arg2 = &temp2;
33190 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33191 }
33192 {
33193 PyThreadState* __tstate = wxPyBeginAllowThreads();
33194 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33195 wxPyEndAllowThreads(__tstate);
33196 if (PyErr_Occurred()) SWIG_fail;
33197 }
33198 resultobj = SWIG_Py_Void();
33199 return resultobj;
33200fail:
33201 return NULL;
33202}
33203
33204
33205SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33206 PyObject *resultobj = 0;
33207 wxEffects *arg1 = (wxEffects *) 0 ;
33208 wxColour *arg2 = 0 ;
33209 void *argp1 = 0 ;
33210 int res1 = 0 ;
33211 wxColour temp2 ;
33212 PyObject * obj0 = 0 ;
33213 PyObject * obj1 = 0 ;
33214 char * kwnames[] = {
33215 (char *) "self",(char *) "c", NULL
33216 };
33217
33218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33220 if (!SWIG_IsOK(res1)) {
33221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33222 }
33223 arg1 = reinterpret_cast< wxEffects * >(argp1);
33224 {
33225 arg2 = &temp2;
33226 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33227 }
33228 {
33229 PyThreadState* __tstate = wxPyBeginAllowThreads();
33230 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33231 wxPyEndAllowThreads(__tstate);
33232 if (PyErr_Occurred()) SWIG_fail;
33233 }
33234 resultobj = SWIG_Py_Void();
33235 return resultobj;
33236fail:
33237 return NULL;
33238}
33239
33240
33241SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33242 PyObject *resultobj = 0;
33243 wxEffects *arg1 = (wxEffects *) 0 ;
33244 wxColour *arg2 = 0 ;
33245 wxColour *arg3 = 0 ;
33246 wxColour *arg4 = 0 ;
33247 wxColour *arg5 = 0 ;
33248 wxColour *arg6 = 0 ;
33249 void *argp1 = 0 ;
33250 int res1 = 0 ;
33251 wxColour temp2 ;
33252 wxColour temp3 ;
33253 wxColour temp4 ;
33254 wxColour temp5 ;
33255 wxColour temp6 ;
33256 PyObject * obj0 = 0 ;
33257 PyObject * obj1 = 0 ;
33258 PyObject * obj2 = 0 ;
33259 PyObject * obj3 = 0 ;
33260 PyObject * obj4 = 0 ;
33261 PyObject * obj5 = 0 ;
33262 char * kwnames[] = {
33263 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33264 };
33265
33266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33268 if (!SWIG_IsOK(res1)) {
33269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33270 }
33271 arg1 = reinterpret_cast< wxEffects * >(argp1);
33272 {
33273 arg2 = &temp2;
33274 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33275 }
33276 {
33277 arg3 = &temp3;
33278 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33279 }
33280 {
33281 arg4 = &temp4;
33282 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33283 }
33284 {
33285 arg5 = &temp5;
33286 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33287 }
33288 {
33289 arg6 = &temp6;
33290 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33291 }
33292 {
33293 PyThreadState* __tstate = wxPyBeginAllowThreads();
33294 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33295 wxPyEndAllowThreads(__tstate);
33296 if (PyErr_Occurred()) SWIG_fail;
33297 }
33298 resultobj = SWIG_Py_Void();
33299 return resultobj;
33300fail:
33301 return NULL;
33302}
33303
33304
33305SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33306 PyObject *resultobj = 0;
33307 wxEffects *arg1 = (wxEffects *) 0 ;
33308 wxDC *arg2 = 0 ;
33309 wxRect *arg3 = 0 ;
33310 int arg4 = (int) 1 ;
33311 void *argp1 = 0 ;
33312 int res1 = 0 ;
33313 void *argp2 = 0 ;
33314 int res2 = 0 ;
33315 wxRect temp3 ;
33316 int val4 ;
33317 int ecode4 = 0 ;
33318 PyObject * obj0 = 0 ;
33319 PyObject * obj1 = 0 ;
33320 PyObject * obj2 = 0 ;
33321 PyObject * obj3 = 0 ;
33322 char * kwnames[] = {
33323 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33324 };
33325
33326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33328 if (!SWIG_IsOK(res1)) {
33329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33330 }
33331 arg1 = reinterpret_cast< wxEffects * >(argp1);
33332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33333 if (!SWIG_IsOK(res2)) {
33334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33335 }
33336 if (!argp2) {
33337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33338 }
33339 arg2 = reinterpret_cast< wxDC * >(argp2);
33340 {
33341 arg3 = &temp3;
33342 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33343 }
33344 if (obj3) {
33345 ecode4 = SWIG_AsVal_int(obj3, &val4);
33346 if (!SWIG_IsOK(ecode4)) {
33347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33348 }
33349 arg4 = static_cast< int >(val4);
33350 }
33351 {
33352 PyThreadState* __tstate = wxPyBeginAllowThreads();
33353 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33354 wxPyEndAllowThreads(__tstate);
33355 if (PyErr_Occurred()) SWIG_fail;
33356 }
33357 resultobj = SWIG_Py_Void();
33358 return resultobj;
33359fail:
33360 return NULL;
33361}
33362
33363
33364SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33365 PyObject *resultobj = 0;
33366 wxEffects *arg1 = (wxEffects *) 0 ;
33367 wxRect *arg2 = 0 ;
33368 wxDC *arg3 = 0 ;
33369 wxBitmap *arg4 = 0 ;
33370 bool result;
33371 void *argp1 = 0 ;
33372 int res1 = 0 ;
33373 wxRect temp2 ;
33374 void *argp3 = 0 ;
33375 int res3 = 0 ;
33376 void *argp4 = 0 ;
33377 int res4 = 0 ;
33378 PyObject * obj0 = 0 ;
33379 PyObject * obj1 = 0 ;
33380 PyObject * obj2 = 0 ;
33381 PyObject * obj3 = 0 ;
33382 char * kwnames[] = {
33383 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33384 };
33385
33386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33388 if (!SWIG_IsOK(res1)) {
33389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33390 }
33391 arg1 = reinterpret_cast< wxEffects * >(argp1);
33392 {
33393 arg2 = &temp2;
33394 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33395 }
33396 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33397 if (!SWIG_IsOK(res3)) {
33398 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33399 }
33400 if (!argp3) {
33401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33402 }
33403 arg3 = reinterpret_cast< wxDC * >(argp3);
33404 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33405 if (!SWIG_IsOK(res4)) {
33406 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33407 }
33408 if (!argp4) {
33409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33410 }
33411 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33412 {
33413 PyThreadState* __tstate = wxPyBeginAllowThreads();
33414 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33415 wxPyEndAllowThreads(__tstate);
33416 if (PyErr_Occurred()) SWIG_fail;
33417 }
33418 {
33419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33420 }
33421 return resultobj;
33422fail:
33423 return NULL;
33424}
33425
33426
33427SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33428 PyObject *obj;
33429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33430 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33431 return SWIG_Py_Void();
33432}
33433
33434SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33435 return SWIG_Python_InitShadowInstance(args);
33436}
33437
33438SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33439 PyObject *resultobj = 0;
33440 int arg1 ;
33441 int arg2 ;
33442 bool arg3 ;
33443 wxSplitterRenderParams *result = 0 ;
33444 int val1 ;
33445 int ecode1 = 0 ;
33446 int val2 ;
33447 int ecode2 = 0 ;
33448 bool val3 ;
33449 int ecode3 = 0 ;
33450 PyObject * obj0 = 0 ;
33451 PyObject * obj1 = 0 ;
33452 PyObject * obj2 = 0 ;
33453 char * kwnames[] = {
33454 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33455 };
33456
33457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33458 ecode1 = SWIG_AsVal_int(obj0, &val1);
33459 if (!SWIG_IsOK(ecode1)) {
33460 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33461 }
33462 arg1 = static_cast< int >(val1);
33463 ecode2 = SWIG_AsVal_int(obj1, &val2);
33464 if (!SWIG_IsOK(ecode2)) {
33465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33466 }
33467 arg2 = static_cast< int >(val2);
33468 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33469 if (!SWIG_IsOK(ecode3)) {
33470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33471 }
33472 arg3 = static_cast< bool >(val3);
33473 {
33474 PyThreadState* __tstate = wxPyBeginAllowThreads();
33475 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33476 wxPyEndAllowThreads(__tstate);
33477 if (PyErr_Occurred()) SWIG_fail;
33478 }
33479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33480 return resultobj;
33481fail:
33482 return NULL;
33483}
33484
33485
33486SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33487 PyObject *resultobj = 0;
33488 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33489 void *argp1 = 0 ;
33490 int res1 = 0 ;
33491 PyObject *swig_obj[1] ;
33492
33493 if (!args) SWIG_fail;
33494 swig_obj[0] = args;
33495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33496 if (!SWIG_IsOK(res1)) {
33497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33498 }
33499 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33500 {
33501 PyThreadState* __tstate = wxPyBeginAllowThreads();
33502 delete arg1;
33503
33504 wxPyEndAllowThreads(__tstate);
33505 if (PyErr_Occurred()) SWIG_fail;
33506 }
33507 resultobj = SWIG_Py_Void();
33508 return resultobj;
33509fail:
33510 return NULL;
33511}
33512
33513
33514SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33515 PyObject *resultobj = 0;
33516 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33517 int result;
33518 void *argp1 = 0 ;
33519 int res1 = 0 ;
33520 PyObject *swig_obj[1] ;
33521
33522 if (!args) SWIG_fail;
33523 swig_obj[0] = args;
33524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33525 if (!SWIG_IsOK(res1)) {
33526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33527 }
33528 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33529 result = (int)(int) ((arg1)->widthSash);
33530 resultobj = SWIG_From_int(static_cast< int >(result));
33531 return resultobj;
33532fail:
33533 return NULL;
33534}
33535
33536
33537SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33538 PyObject *resultobj = 0;
33539 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33540 int result;
33541 void *argp1 = 0 ;
33542 int res1 = 0 ;
33543 PyObject *swig_obj[1] ;
33544
33545 if (!args) SWIG_fail;
33546 swig_obj[0] = args;
33547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33548 if (!SWIG_IsOK(res1)) {
33549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33550 }
33551 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33552 result = (int)(int) ((arg1)->border);
33553 resultobj = SWIG_From_int(static_cast< int >(result));
33554 return resultobj;
33555fail:
33556 return NULL;
33557}
33558
33559
33560SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33561 PyObject *resultobj = 0;
33562 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33563 bool result;
33564 void *argp1 = 0 ;
33565 int res1 = 0 ;
33566 PyObject *swig_obj[1] ;
33567
33568 if (!args) SWIG_fail;
33569 swig_obj[0] = args;
33570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33571 if (!SWIG_IsOK(res1)) {
33572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33573 }
33574 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33575 result = (bool)(bool) ((arg1)->isHotSensitive);
33576 resultobj = SWIG_From_bool(static_cast< bool >(result));
33577 return resultobj;
33578fail:
33579 return NULL;
33580}
33581
33582
33583SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33584 PyObject *obj;
33585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33586 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33587 return SWIG_Py_Void();
33588}
33589
33590SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33591 return SWIG_Python_InitShadowInstance(args);
33592}
33593
33d6fd3b
RD
33594SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33595 PyObject *resultobj = 0;
33596 wxHeaderButtonParams *result = 0 ;
33597
33598 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33599 {
33600 PyThreadState* __tstate = wxPyBeginAllowThreads();
33601 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33602 wxPyEndAllowThreads(__tstate);
33603 if (PyErr_Occurred()) SWIG_fail;
33604 }
33605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33606 return resultobj;
33607fail:
33608 return NULL;
33609}
33610
33611
33612SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33613 PyObject *resultobj = 0;
33614 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33615 void *argp1 = 0 ;
33616 int res1 = 0 ;
33617 PyObject *swig_obj[1] ;
33618
33619 if (!args) SWIG_fail;
33620 swig_obj[0] = args;
33621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33622 if (!SWIG_IsOK(res1)) {
33623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33624 }
33625 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33626 {
33627 PyThreadState* __tstate = wxPyBeginAllowThreads();
33628 delete arg1;
33629
33630 wxPyEndAllowThreads(__tstate);
33631 if (PyErr_Occurred()) SWIG_fail;
33632 }
33633 resultobj = SWIG_Py_Void();
33634 return resultobj;
33635fail:
33636 return NULL;
33637}
33638
33639
33640SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33641 PyObject *resultobj = 0;
33642 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33643 wxColour *arg2 = (wxColour *) 0 ;
33644 void *argp1 = 0 ;
33645 int res1 = 0 ;
33646 wxColour temp2 ;
33647 PyObject *swig_obj[2] ;
33648
33649 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33651 if (!SWIG_IsOK(res1)) {
33652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33653 }
33654 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33655 {
33656 arg2 = &temp2;
33657 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33658 }
33659 if (arg1) (arg1)->m_arrowColour = *arg2;
33660
33661 resultobj = SWIG_Py_Void();
33662 return resultobj;
33663fail:
33664 return NULL;
33665}
33666
33667
33668SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33669 PyObject *resultobj = 0;
33670 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33671 wxColour *result = 0 ;
33672 void *argp1 = 0 ;
33673 int res1 = 0 ;
33674 PyObject *swig_obj[1] ;
33675
33676 if (!args) SWIG_fail;
33677 swig_obj[0] = args;
33678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33679 if (!SWIG_IsOK(res1)) {
33680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33681 }
33682 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33683 result = (wxColour *)& ((arg1)->m_arrowColour);
33684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33685 return resultobj;
33686fail:
33687 return NULL;
33688}
33689
33690
33691SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33692 PyObject *resultobj = 0;
33693 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33694 wxColour *arg2 = (wxColour *) 0 ;
33695 void *argp1 = 0 ;
33696 int res1 = 0 ;
33697 wxColour temp2 ;
33698 PyObject *swig_obj[2] ;
33699
33700 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33702 if (!SWIG_IsOK(res1)) {
33703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33704 }
33705 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33706 {
33707 arg2 = &temp2;
33708 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33709 }
33710 if (arg1) (arg1)->m_selectionColour = *arg2;
33711
33712 resultobj = SWIG_Py_Void();
33713 return resultobj;
33714fail:
33715 return NULL;
33716}
33717
33718
33719SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33720 PyObject *resultobj = 0;
33721 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33722 wxColour *result = 0 ;
33723 void *argp1 = 0 ;
33724 int res1 = 0 ;
33725 PyObject *swig_obj[1] ;
33726
33727 if (!args) SWIG_fail;
33728 swig_obj[0] = args;
33729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33730 if (!SWIG_IsOK(res1)) {
33731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33732 }
33733 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33734 result = (wxColour *)& ((arg1)->m_selectionColour);
33735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33736 return resultobj;
33737fail:
33738 return NULL;
33739}
33740
33741
33742SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33743 PyObject *resultobj = 0;
33744 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33745 wxString *arg2 = (wxString *) 0 ;
33746 void *argp1 = 0 ;
33747 int res1 = 0 ;
33748 bool temp2 = false ;
33749 PyObject *swig_obj[2] ;
33750
33751 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33753 if (!SWIG_IsOK(res1)) {
33754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33755 }
33756 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33757 {
33758 arg2 = wxString_in_helper(swig_obj[1]);
33759 if (arg2 == NULL) SWIG_fail;
33760 temp2 = true;
33761 }
33762 if (arg1) (arg1)->m_labelText = *arg2;
33763
33764 resultobj = SWIG_Py_Void();
33765 {
33766 if (temp2)
33767 delete arg2;
33768 }
33769 return resultobj;
33770fail:
33771 {
33772 if (temp2)
33773 delete arg2;
33774 }
33775 return NULL;
33776}
33777
33778
33779SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33780 PyObject *resultobj = 0;
33781 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33782 wxString *result = 0 ;
33783 void *argp1 = 0 ;
33784 int res1 = 0 ;
33785 PyObject *swig_obj[1] ;
33786
33787 if (!args) SWIG_fail;
33788 swig_obj[0] = args;
33789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33790 if (!SWIG_IsOK(res1)) {
33791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33792 }
33793 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33794 result = (wxString *)& ((arg1)->m_labelText);
33795 {
33796#if wxUSE_UNICODE
33797 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33798#else
33799 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33800#endif
33801 }
33802 return resultobj;
33803fail:
33804 return NULL;
33805}
33806
33807
33808SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33809 PyObject *resultobj = 0;
33810 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33811 wxFont *arg2 = (wxFont *) 0 ;
33812 void *argp1 = 0 ;
33813 int res1 = 0 ;
33814 void *argp2 = 0 ;
33815 int res2 = 0 ;
33816 PyObject *swig_obj[2] ;
33817
33818 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33820 if (!SWIG_IsOK(res1)) {
33821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33822 }
33823 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33824 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33825 if (!SWIG_IsOK(res2)) {
33826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33827 }
33828 arg2 = reinterpret_cast< wxFont * >(argp2);
33829 if (arg1) (arg1)->m_labelFont = *arg2;
33830
33831 resultobj = SWIG_Py_Void();
33832 return resultobj;
33833fail:
33834 return NULL;
33835}
33836
33837
33838SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33839 PyObject *resultobj = 0;
33840 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33841 wxFont *result = 0 ;
33842 void *argp1 = 0 ;
33843 int res1 = 0 ;
33844 PyObject *swig_obj[1] ;
33845
33846 if (!args) SWIG_fail;
33847 swig_obj[0] = args;
33848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33849 if (!SWIG_IsOK(res1)) {
33850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33851 }
33852 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33853 result = (wxFont *)& ((arg1)->m_labelFont);
33854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33855 return resultobj;
33856fail:
33857 return NULL;
33858}
33859
33860
33861SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33862 PyObject *resultobj = 0;
33863 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33864 wxColour *arg2 = (wxColour *) 0 ;
33865 void *argp1 = 0 ;
33866 int res1 = 0 ;
33867 wxColour temp2 ;
33868 PyObject *swig_obj[2] ;
33869
33870 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33872 if (!SWIG_IsOK(res1)) {
33873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33874 }
33875 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33876 {
33877 arg2 = &temp2;
33878 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33879 }
33880 if (arg1) (arg1)->m_labelColour = *arg2;
33881
33882 resultobj = SWIG_Py_Void();
33883 return resultobj;
33884fail:
33885 return NULL;
33886}
33887
33888
33889SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33890 PyObject *resultobj = 0;
33891 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33892 wxColour *result = 0 ;
33893 void *argp1 = 0 ;
33894 int res1 = 0 ;
33895 PyObject *swig_obj[1] ;
33896
33897 if (!args) SWIG_fail;
33898 swig_obj[0] = args;
33899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33900 if (!SWIG_IsOK(res1)) {
33901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33902 }
33903 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33904 result = (wxColour *)& ((arg1)->m_labelColour);
33905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33906 return resultobj;
33907fail:
33908 return NULL;
33909}
33910
33911
33912SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33913 PyObject *resultobj = 0;
33914 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33915 wxBitmap *arg2 = (wxBitmap *) 0 ;
33916 void *argp1 = 0 ;
33917 int res1 = 0 ;
33918 void *argp2 = 0 ;
33919 int res2 = 0 ;
33920 PyObject *swig_obj[2] ;
33921
33922 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33924 if (!SWIG_IsOK(res1)) {
33925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33926 }
33927 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33928 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33929 if (!SWIG_IsOK(res2)) {
33930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33931 }
33932 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33933 if (arg1) (arg1)->m_labelBitmap = *arg2;
33934
33935 resultobj = SWIG_Py_Void();
33936 return resultobj;
33937fail:
33938 return NULL;
33939}
33940
33941
33942SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33943 PyObject *resultobj = 0;
33944 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33945 wxBitmap *result = 0 ;
33946 void *argp1 = 0 ;
33947 int res1 = 0 ;
33948 PyObject *swig_obj[1] ;
33949
33950 if (!args) SWIG_fail;
33951 swig_obj[0] = args;
33952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33953 if (!SWIG_IsOK(res1)) {
33954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33955 }
33956 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33957 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33959 return resultobj;
33960fail:
33961 return NULL;
33962}
33963
33964
33965SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33966 PyObject *resultobj = 0;
33967 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33968 int arg2 ;
33969 void *argp1 = 0 ;
33970 int res1 = 0 ;
33971 int val2 ;
33972 int ecode2 = 0 ;
33973 PyObject *swig_obj[2] ;
33974
33975 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33977 if (!SWIG_IsOK(res1)) {
33978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33979 }
33980 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33981 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33982 if (!SWIG_IsOK(ecode2)) {
33983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33984 }
33985 arg2 = static_cast< int >(val2);
33986 if (arg1) (arg1)->m_labelAlignment = arg2;
33987
33988 resultobj = SWIG_Py_Void();
33989 return resultobj;
33990fail:
33991 return NULL;
33992}
33993
33994
33995SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33996 PyObject *resultobj = 0;
33997 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33998 int result;
33999 void *argp1 = 0 ;
34000 int res1 = 0 ;
34001 PyObject *swig_obj[1] ;
34002
34003 if (!args) SWIG_fail;
34004 swig_obj[0] = args;
34005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34006 if (!SWIG_IsOK(res1)) {
34007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34008 }
34009 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34010 result = (int) ((arg1)->m_labelAlignment);
34011 resultobj = SWIG_From_int(static_cast< int >(result));
34012 return resultobj;
34013fail:
34014 return NULL;
34015}
34016
34017
34018SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34019 PyObject *obj;
34020 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34021 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34022 return SWIG_Py_Void();
34023}
34024
34025SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34026 return SWIG_Python_InitShadowInstance(args);
34027}
34028
1bd55598
RD
34029SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34030 PyObject *resultobj = 0;
34031 int arg1 ;
34032 int arg2 ;
34033 wxRendererVersion *result = 0 ;
34034 int val1 ;
34035 int ecode1 = 0 ;
34036 int val2 ;
34037 int ecode2 = 0 ;
34038 PyObject * obj0 = 0 ;
34039 PyObject * obj1 = 0 ;
34040 char * kwnames[] = {
34041 (char *) "version_",(char *) "age_", NULL
34042 };
34043
34044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34045 ecode1 = SWIG_AsVal_int(obj0, &val1);
34046 if (!SWIG_IsOK(ecode1)) {
34047 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34048 }
34049 arg1 = static_cast< int >(val1);
34050 ecode2 = SWIG_AsVal_int(obj1, &val2);
34051 if (!SWIG_IsOK(ecode2)) {
34052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34053 }
34054 arg2 = static_cast< int >(val2);
34055 {
34056 PyThreadState* __tstate = wxPyBeginAllowThreads();
34057 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34058 wxPyEndAllowThreads(__tstate);
34059 if (PyErr_Occurred()) SWIG_fail;
34060 }
34061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34062 return resultobj;
34063fail:
34064 return NULL;
34065}
34066
34067
34068SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34069 PyObject *resultobj = 0;
34070 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34071 void *argp1 = 0 ;
34072 int res1 = 0 ;
34073 PyObject *swig_obj[1] ;
34074
34075 if (!args) SWIG_fail;
34076 swig_obj[0] = args;
34077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34078 if (!SWIG_IsOK(res1)) {
34079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34080 }
34081 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34082 {
34083 PyThreadState* __tstate = wxPyBeginAllowThreads();
34084 delete arg1;
34085
34086 wxPyEndAllowThreads(__tstate);
34087 if (PyErr_Occurred()) SWIG_fail;
34088 }
34089 resultobj = SWIG_Py_Void();
34090 return resultobj;
34091fail:
34092 return NULL;
34093}
34094
34095
34096SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34097 PyObject *resultobj = 0;
34098 wxRendererVersion *arg1 = 0 ;
34099 bool result;
34100 void *argp1 = 0 ;
34101 int res1 = 0 ;
34102 PyObject * obj0 = 0 ;
34103 char * kwnames[] = {
34104 (char *) "ver", NULL
34105 };
34106
34107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34108 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34109 if (!SWIG_IsOK(res1)) {
34110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34111 }
34112 if (!argp1) {
34113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34114 }
34115 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34116 {
34117 PyThreadState* __tstate = wxPyBeginAllowThreads();
34118 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34119 wxPyEndAllowThreads(__tstate);
34120 if (PyErr_Occurred()) SWIG_fail;
34121 }
34122 {
34123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34124 }
34125 return resultobj;
34126fail:
34127 return NULL;
34128}
34129
34130
34131SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34132 PyObject *resultobj = 0;
34133 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34134 int result;
34135 void *argp1 = 0 ;
34136 int res1 = 0 ;
34137 PyObject *swig_obj[1] ;
34138
34139 if (!args) SWIG_fail;
34140 swig_obj[0] = args;
34141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34142 if (!SWIG_IsOK(res1)) {
34143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34144 }
34145 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34146 result = (int)(int) ((arg1)->version);
34147 resultobj = SWIG_From_int(static_cast< int >(result));
34148 return resultobj;
34149fail:
34150 return NULL;
34151}
34152
34153
34154SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34155 PyObject *resultobj = 0;
34156 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34157 int result;
34158 void *argp1 = 0 ;
34159 int res1 = 0 ;
34160 PyObject *swig_obj[1] ;
34161
34162 if (!args) SWIG_fail;
34163 swig_obj[0] = args;
34164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34165 if (!SWIG_IsOK(res1)) {
34166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34167 }
34168 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34169 result = (int)(int) ((arg1)->age);
34170 resultobj = SWIG_From_int(static_cast< int >(result));
34171 return resultobj;
34172fail:
34173 return NULL;
34174}
34175
34176
34177SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34178 PyObject *obj;
34179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34180 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34181 return SWIG_Py_Void();
34182}
34183
34184SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34185 return SWIG_Python_InitShadowInstance(args);
34186}
34187
34188SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34189 PyObject *resultobj = 0;
34190 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34191 wxWindow *arg2 = (wxWindow *) 0 ;
34192 wxDC *arg3 = 0 ;
34193 wxRect *arg4 = 0 ;
34194 int arg5 = (int) 0 ;
33d6fd3b
RD
34195 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34196 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
34197 void *argp1 = 0 ;
34198 int res1 = 0 ;
34199 void *argp2 = 0 ;
34200 int res2 = 0 ;
34201 void *argp3 = 0 ;
34202 int res3 = 0 ;
34203 wxRect temp4 ;
34204 int val5 ;
34205 int ecode5 = 0 ;
33d6fd3b
RD
34206 int val6 ;
34207 int ecode6 = 0 ;
34208 void *argp7 = 0 ;
34209 int res7 = 0 ;
1bd55598
RD
34210 PyObject * obj0 = 0 ;
34211 PyObject * obj1 = 0 ;
34212 PyObject * obj2 = 0 ;
34213 PyObject * obj3 = 0 ;
34214 PyObject * obj4 = 0 ;
33d6fd3b
RD
34215 PyObject * obj5 = 0 ;
34216 PyObject * obj6 = 0 ;
1bd55598 34217 char * kwnames[] = {
33d6fd3b 34218 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34219 };
34220
33d6fd3b 34221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34223 if (!SWIG_IsOK(res1)) {
34224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34225 }
34226 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34227 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34228 if (!SWIG_IsOK(res2)) {
34229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34230 }
34231 arg2 = reinterpret_cast< wxWindow * >(argp2);
34232 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34233 if (!SWIG_IsOK(res3)) {
34234 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34235 }
34236 if (!argp3) {
34237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34238 }
34239 arg3 = reinterpret_cast< wxDC * >(argp3);
34240 {
34241 arg4 = &temp4;
34242 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34243 }
34244 if (obj4) {
34245 ecode5 = SWIG_AsVal_int(obj4, &val5);
34246 if (!SWIG_IsOK(ecode5)) {
34247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34248 }
34249 arg5 = static_cast< int >(val5);
34250 }
33d6fd3b
RD
34251 if (obj5) {
34252 ecode6 = SWIG_AsVal_int(obj5, &val6);
34253 if (!SWIG_IsOK(ecode6)) {
34254 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34255 }
34256 arg6 = static_cast< wxHeaderSortIconType >(val6);
34257 }
34258 if (obj6) {
34259 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34260 if (!SWIG_IsOK(res7)) {
34261 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34262 }
34263 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34264 }
34265 {
34266 PyThreadState* __tstate = wxPyBeginAllowThreads();
34267 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34268 wxPyEndAllowThreads(__tstate);
34269 if (PyErr_Occurred()) SWIG_fail;
34270 }
34271 resultobj = SWIG_Py_Void();
34272 return resultobj;
34273fail:
34274 return NULL;
34275}
34276
34277
34278SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34279 PyObject *resultobj = 0;
34280 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34281 wxWindow *arg2 = (wxWindow *) 0 ;
34282 wxDC *arg3 = 0 ;
34283 wxRect *arg4 = 0 ;
34284 int arg5 = (int) 0 ;
34285 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34286 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34287 void *argp1 = 0 ;
34288 int res1 = 0 ;
34289 void *argp2 = 0 ;
34290 int res2 = 0 ;
34291 void *argp3 = 0 ;
34292 int res3 = 0 ;
34293 wxRect temp4 ;
34294 int val5 ;
34295 int ecode5 = 0 ;
34296 int val6 ;
34297 int ecode6 = 0 ;
34298 void *argp7 = 0 ;
34299 int res7 = 0 ;
34300 PyObject * obj0 = 0 ;
34301 PyObject * obj1 = 0 ;
34302 PyObject * obj2 = 0 ;
34303 PyObject * obj3 = 0 ;
34304 PyObject * obj4 = 0 ;
34305 PyObject * obj5 = 0 ;
34306 PyObject * obj6 = 0 ;
34307 char * kwnames[] = {
34308 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34309 };
34310
34311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34313 if (!SWIG_IsOK(res1)) {
34314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34315 }
34316 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34318 if (!SWIG_IsOK(res2)) {
34319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34320 }
34321 arg2 = reinterpret_cast< wxWindow * >(argp2);
34322 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34323 if (!SWIG_IsOK(res3)) {
34324 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34325 }
34326 if (!argp3) {
34327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34328 }
34329 arg3 = reinterpret_cast< wxDC * >(argp3);
34330 {
34331 arg4 = &temp4;
34332 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34333 }
34334 if (obj4) {
34335 ecode5 = SWIG_AsVal_int(obj4, &val5);
34336 if (!SWIG_IsOK(ecode5)) {
34337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34338 }
34339 arg5 = static_cast< int >(val5);
34340 }
34341 if (obj5) {
34342 ecode6 = SWIG_AsVal_int(obj5, &val6);
34343 if (!SWIG_IsOK(ecode6)) {
34344 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34345 }
34346 arg6 = static_cast< wxHeaderSortIconType >(val6);
34347 }
34348 if (obj6) {
34349 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34350 if (!SWIG_IsOK(res7)) {
34351 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34352 }
34353 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34354 }
1bd55598
RD
34355 {
34356 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34357 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34358 wxPyEndAllowThreads(__tstate);
34359 if (PyErr_Occurred()) SWIG_fail;
34360 }
34361 resultobj = SWIG_Py_Void();
34362 return resultobj;
34363fail:
34364 return NULL;
34365}
34366
34367
33d6fd3b
RD
34368SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34369 PyObject *resultobj = 0;
34370 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34371 wxWindow *arg2 = (wxWindow *) 0 ;
34372 int result;
34373 void *argp1 = 0 ;
34374 int res1 = 0 ;
34375 void *argp2 = 0 ;
34376 int res2 = 0 ;
34377 PyObject * obj0 = 0 ;
34378 PyObject * obj1 = 0 ;
34379 char * kwnames[] = {
34380 (char *) "self",(char *) "win", NULL
34381 };
34382
34383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34385 if (!SWIG_IsOK(res1)) {
34386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34387 }
34388 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34389 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34390 if (!SWIG_IsOK(res2)) {
34391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34392 }
34393 arg2 = reinterpret_cast< wxWindow * >(argp2);
34394 {
34395 PyThreadState* __tstate = wxPyBeginAllowThreads();
34396 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34397 wxPyEndAllowThreads(__tstate);
34398 if (PyErr_Occurred()) SWIG_fail;
34399 }
34400 resultobj = SWIG_From_int(static_cast< int >(result));
34401 return resultobj;
34402fail:
34403 return NULL;
34404}
34405
34406
1bd55598
RD
34407SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34408 PyObject *resultobj = 0;
34409 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34410 wxWindow *arg2 = (wxWindow *) 0 ;
34411 wxDC *arg3 = 0 ;
34412 wxRect *arg4 = 0 ;
34413 int arg5 = (int) 0 ;
34414 void *argp1 = 0 ;
34415 int res1 = 0 ;
34416 void *argp2 = 0 ;
34417 int res2 = 0 ;
34418 void *argp3 = 0 ;
34419 int res3 = 0 ;
34420 wxRect temp4 ;
34421 int val5 ;
34422 int ecode5 = 0 ;
34423 PyObject * obj0 = 0 ;
34424 PyObject * obj1 = 0 ;
34425 PyObject * obj2 = 0 ;
34426 PyObject * obj3 = 0 ;
34427 PyObject * obj4 = 0 ;
34428 char * kwnames[] = {
34429 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34430 };
34431
34432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34434 if (!SWIG_IsOK(res1)) {
34435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34436 }
34437 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34438 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34439 if (!SWIG_IsOK(res2)) {
34440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34441 }
34442 arg2 = reinterpret_cast< wxWindow * >(argp2);
34443 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34444 if (!SWIG_IsOK(res3)) {
34445 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34446 }
34447 if (!argp3) {
34448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34449 }
34450 arg3 = reinterpret_cast< wxDC * >(argp3);
34451 {
34452 arg4 = &temp4;
34453 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34454 }
34455 if (obj4) {
34456 ecode5 = SWIG_AsVal_int(obj4, &val5);
34457 if (!SWIG_IsOK(ecode5)) {
34458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34459 }
34460 arg5 = static_cast< int >(val5);
34461 }
34462 {
34463 PyThreadState* __tstate = wxPyBeginAllowThreads();
34464 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34465 wxPyEndAllowThreads(__tstate);
34466 if (PyErr_Occurred()) SWIG_fail;
34467 }
34468 resultobj = SWIG_Py_Void();
34469 return resultobj;
34470fail:
34471 return NULL;
34472}
34473
34474
34475SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34476 PyObject *resultobj = 0;
34477 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34478 wxWindow *arg2 = (wxWindow *) 0 ;
34479 wxDC *arg3 = 0 ;
34480 wxRect *arg4 = 0 ;
34481 int arg5 = (int) 0 ;
34482 void *argp1 = 0 ;
34483 int res1 = 0 ;
34484 void *argp2 = 0 ;
34485 int res2 = 0 ;
34486 void *argp3 = 0 ;
34487 int res3 = 0 ;
34488 wxRect temp4 ;
34489 int val5 ;
34490 int ecode5 = 0 ;
34491 PyObject * obj0 = 0 ;
34492 PyObject * obj1 = 0 ;
34493 PyObject * obj2 = 0 ;
34494 PyObject * obj3 = 0 ;
34495 PyObject * obj4 = 0 ;
34496 char * kwnames[] = {
34497 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34498 };
34499
34500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34502 if (!SWIG_IsOK(res1)) {
34503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34504 }
34505 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34506 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34507 if (!SWIG_IsOK(res2)) {
34508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34509 }
34510 arg2 = reinterpret_cast< wxWindow * >(argp2);
34511 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34512 if (!SWIG_IsOK(res3)) {
34513 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34514 }
34515 if (!argp3) {
34516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34517 }
34518 arg3 = reinterpret_cast< wxDC * >(argp3);
34519 {
34520 arg4 = &temp4;
34521 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34522 }
34523 if (obj4) {
34524 ecode5 = SWIG_AsVal_int(obj4, &val5);
34525 if (!SWIG_IsOK(ecode5)) {
34526 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34527 }
34528 arg5 = static_cast< int >(val5);
34529 }
34530 {
34531 PyThreadState* __tstate = wxPyBeginAllowThreads();
34532 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34533 wxPyEndAllowThreads(__tstate);
34534 if (PyErr_Occurred()) SWIG_fail;
34535 }
34536 resultobj = SWIG_Py_Void();
34537 return resultobj;
34538fail:
34539 return NULL;
34540}
34541
34542
34543SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34544 PyObject *resultobj = 0;
34545 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34546 wxWindow *arg2 = (wxWindow *) 0 ;
34547 wxDC *arg3 = 0 ;
34548 wxSize *arg4 = 0 ;
34549 int arg5 ;
34550 wxOrientation arg6 ;
34551 int arg7 = (int) 0 ;
34552 void *argp1 = 0 ;
34553 int res1 = 0 ;
34554 void *argp2 = 0 ;
34555 int res2 = 0 ;
34556 void *argp3 = 0 ;
34557 int res3 = 0 ;
34558 wxSize temp4 ;
34559 int val5 ;
34560 int ecode5 = 0 ;
34561 int val6 ;
34562 int ecode6 = 0 ;
34563 int val7 ;
34564 int ecode7 = 0 ;
34565 PyObject * obj0 = 0 ;
34566 PyObject * obj1 = 0 ;
34567 PyObject * obj2 = 0 ;
34568 PyObject * obj3 = 0 ;
34569 PyObject * obj4 = 0 ;
34570 PyObject * obj5 = 0 ;
34571 PyObject * obj6 = 0 ;
34572 char * kwnames[] = {
34573 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34574 };
34575
34576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34578 if (!SWIG_IsOK(res1)) {
34579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34580 }
34581 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34583 if (!SWIG_IsOK(res2)) {
34584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34585 }
34586 arg2 = reinterpret_cast< wxWindow * >(argp2);
34587 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34588 if (!SWIG_IsOK(res3)) {
34589 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34590 }
34591 if (!argp3) {
34592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34593 }
34594 arg3 = reinterpret_cast< wxDC * >(argp3);
34595 {
34596 arg4 = &temp4;
34597 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34598 }
34599 ecode5 = SWIG_AsVal_int(obj4, &val5);
34600 if (!SWIG_IsOK(ecode5)) {
34601 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34602 }
34603 arg5 = static_cast< int >(val5);
34604 ecode6 = SWIG_AsVal_int(obj5, &val6);
34605 if (!SWIG_IsOK(ecode6)) {
34606 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34607 }
34608 arg6 = static_cast< wxOrientation >(val6);
34609 if (obj6) {
34610 ecode7 = SWIG_AsVal_int(obj6, &val7);
34611 if (!SWIG_IsOK(ecode7)) {
34612 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34613 }
34614 arg7 = static_cast< int >(val7);
34615 }
34616 {
34617 PyThreadState* __tstate = wxPyBeginAllowThreads();
34618 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34619 wxPyEndAllowThreads(__tstate);
34620 if (PyErr_Occurred()) SWIG_fail;
34621 }
34622 resultobj = SWIG_Py_Void();
34623 return resultobj;
34624fail:
34625 return NULL;
34626}
34627
34628
34629SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34630 PyObject *resultobj = 0;
34631 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34632 wxWindow *arg2 = (wxWindow *) 0 ;
34633 wxDC *arg3 = 0 ;
34634 wxRect *arg4 = 0 ;
34635 int arg5 = (int) 0 ;
34636 void *argp1 = 0 ;
34637 int res1 = 0 ;
34638 void *argp2 = 0 ;
34639 int res2 = 0 ;
34640 void *argp3 = 0 ;
34641 int res3 = 0 ;
34642 wxRect temp4 ;
34643 int val5 ;
34644 int ecode5 = 0 ;
34645 PyObject * obj0 = 0 ;
34646 PyObject * obj1 = 0 ;
34647 PyObject * obj2 = 0 ;
34648 PyObject * obj3 = 0 ;
34649 PyObject * obj4 = 0 ;
34650 char * kwnames[] = {
34651 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34652 };
34653
34654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34656 if (!SWIG_IsOK(res1)) {
34657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34658 }
34659 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34661 if (!SWIG_IsOK(res2)) {
34662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34663 }
34664 arg2 = reinterpret_cast< wxWindow * >(argp2);
34665 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34666 if (!SWIG_IsOK(res3)) {
34667 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34668 }
34669 if (!argp3) {
34670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34671 }
34672 arg3 = reinterpret_cast< wxDC * >(argp3);
34673 {
34674 arg4 = &temp4;
34675 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34676 }
34677 if (obj4) {
34678 ecode5 = SWIG_AsVal_int(obj4, &val5);
34679 if (!SWIG_IsOK(ecode5)) {
34680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34681 }
34682 arg5 = static_cast< int >(val5);
34683 }
34684 {
34685 PyThreadState* __tstate = wxPyBeginAllowThreads();
34686 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34687 wxPyEndAllowThreads(__tstate);
34688 if (PyErr_Occurred()) SWIG_fail;
34689 }
34690 resultobj = SWIG_Py_Void();
34691 return resultobj;
34692fail:
34693 return NULL;
34694}
34695
34696
34697SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34698 PyObject *resultobj = 0;
34699 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34700 wxWindow *arg2 = (wxWindow *) 0 ;
34701 wxDC *arg3 = 0 ;
34702 wxRect *arg4 = 0 ;
34703 int arg5 = (int) 0 ;
34704 void *argp1 = 0 ;
34705 int res1 = 0 ;
34706 void *argp2 = 0 ;
34707 int res2 = 0 ;
34708 void *argp3 = 0 ;
34709 int res3 = 0 ;
34710 wxRect temp4 ;
34711 int val5 ;
34712 int ecode5 = 0 ;
34713 PyObject * obj0 = 0 ;
34714 PyObject * obj1 = 0 ;
34715 PyObject * obj2 = 0 ;
34716 PyObject * obj3 = 0 ;
34717 PyObject * obj4 = 0 ;
34718 char * kwnames[] = {
34719 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34720 };
34721
34722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34724 if (!SWIG_IsOK(res1)) {
34725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34726 }
34727 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34729 if (!SWIG_IsOK(res2)) {
34730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34731 }
34732 arg2 = reinterpret_cast< wxWindow * >(argp2);
34733 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34734 if (!SWIG_IsOK(res3)) {
34735 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34736 }
34737 if (!argp3) {
34738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34739 }
34740 arg3 = reinterpret_cast< wxDC * >(argp3);
34741 {
34742 arg4 = &temp4;
34743 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34744 }
34745 if (obj4) {
34746 ecode5 = SWIG_AsVal_int(obj4, &val5);
34747 if (!SWIG_IsOK(ecode5)) {
34748 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34749 }
34750 arg5 = static_cast< int >(val5);
34751 }
34752 {
34753 PyThreadState* __tstate = wxPyBeginAllowThreads();
34754 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34755 wxPyEndAllowThreads(__tstate);
34756 if (PyErr_Occurred()) SWIG_fail;
34757 }
34758 resultobj = SWIG_Py_Void();
34759 return resultobj;
34760fail:
34761 return NULL;
34762}
34763
34764
2131d850 34765SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34766 PyObject *resultobj = 0;
34767 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34768 wxWindow *arg2 = (wxWindow *) 0 ;
34769 wxDC *arg3 = 0 ;
34770 wxRect *arg4 = 0 ;
34771 int arg5 = (int) 0 ;
34772 void *argp1 = 0 ;
34773 int res1 = 0 ;
34774 void *argp2 = 0 ;
34775 int res2 = 0 ;
34776 void *argp3 = 0 ;
34777 int res3 = 0 ;
34778 wxRect temp4 ;
34779 int val5 ;
34780 int ecode5 = 0 ;
34781 PyObject * obj0 = 0 ;
34782 PyObject * obj1 = 0 ;
34783 PyObject * obj2 = 0 ;
34784 PyObject * obj3 = 0 ;
34785 PyObject * obj4 = 0 ;
34786 char * kwnames[] = {
34787 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34788 };
34789
2131d850 34790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34792 if (!SWIG_IsOK(res1)) {
2131d850 34793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34794 }
34795 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34796 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34797 if (!SWIG_IsOK(res2)) {
2131d850 34798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34799 }
34800 arg2 = reinterpret_cast< wxWindow * >(argp2);
34801 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34802 if (!SWIG_IsOK(res3)) {
2131d850 34803 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34804 }
34805 if (!argp3) {
2131d850 34806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34807 }
34808 arg3 = reinterpret_cast< wxDC * >(argp3);
34809 {
34810 arg4 = &temp4;
34811 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34812 }
34813 if (obj4) {
34814 ecode5 = SWIG_AsVal_int(obj4, &val5);
34815 if (!SWIG_IsOK(ecode5)) {
2131d850 34816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34817 }
34818 arg5 = static_cast< int >(val5);
34819 }
34820 {
34821 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34822 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34823 wxPyEndAllowThreads(__tstate);
34824 if (PyErr_Occurred()) SWIG_fail;
34825 }
34826 resultobj = SWIG_Py_Void();
34827 return resultobj;
34828fail:
34829 return NULL;
34830}
34831
34832
34833SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34834 PyObject *resultobj = 0;
34835 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34836 wxWindow *arg2 = (wxWindow *) 0 ;
34837 wxDC *arg3 = 0 ;
34838 wxRect *arg4 = 0 ;
34839 int arg5 = (int) 0 ;
34840 void *argp1 = 0 ;
34841 int res1 = 0 ;
34842 void *argp2 = 0 ;
34843 int res2 = 0 ;
34844 void *argp3 = 0 ;
34845 int res3 = 0 ;
34846 wxRect temp4 ;
34847 int val5 ;
34848 int ecode5 = 0 ;
34849 PyObject * obj0 = 0 ;
34850 PyObject * obj1 = 0 ;
34851 PyObject * obj2 = 0 ;
34852 PyObject * obj3 = 0 ;
34853 PyObject * obj4 = 0 ;
34854 char * kwnames[] = {
34855 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34856 };
34857
34858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34860 if (!SWIG_IsOK(res1)) {
34861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34862 }
34863 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34864 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34865 if (!SWIG_IsOK(res2)) {
34866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34867 }
34868 arg2 = reinterpret_cast< wxWindow * >(argp2);
34869 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34870 if (!SWIG_IsOK(res3)) {
34871 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34872 }
34873 if (!argp3) {
34874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34875 }
34876 arg3 = reinterpret_cast< wxDC * >(argp3);
34877 {
34878 arg4 = &temp4;
34879 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34880 }
34881 if (obj4) {
34882 ecode5 = SWIG_AsVal_int(obj4, &val5);
34883 if (!SWIG_IsOK(ecode5)) {
34884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34885 }
34886 arg5 = static_cast< int >(val5);
34887 }
34888 {
34889 PyThreadState* __tstate = wxPyBeginAllowThreads();
34890 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34891 wxPyEndAllowThreads(__tstate);
34892 if (PyErr_Occurred()) SWIG_fail;
34893 }
34894 resultobj = SWIG_Py_Void();
34895 return resultobj;
34896fail:
34897 return NULL;
34898}
34899
34900
34901SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34902 PyObject *resultobj = 0;
34903 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34904 wxWindow *arg2 = (wxWindow *) 0 ;
34905 wxDC *arg3 = 0 ;
34906 wxRect *arg4 = 0 ;
34907 int arg5 = (int) 0 ;
34908 void *argp1 = 0 ;
34909 int res1 = 0 ;
34910 void *argp2 = 0 ;
34911 int res2 = 0 ;
34912 void *argp3 = 0 ;
34913 int res3 = 0 ;
34914 wxRect temp4 ;
34915 int val5 ;
34916 int ecode5 = 0 ;
34917 PyObject * obj0 = 0 ;
34918 PyObject * obj1 = 0 ;
34919 PyObject * obj2 = 0 ;
34920 PyObject * obj3 = 0 ;
34921 PyObject * obj4 = 0 ;
34922 char * kwnames[] = {
34923 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34924 };
34925
34926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34928 if (!SWIG_IsOK(res1)) {
34929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34930 }
34931 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34933 if (!SWIG_IsOK(res2)) {
34934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34935 }
34936 arg2 = reinterpret_cast< wxWindow * >(argp2);
34937 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34938 if (!SWIG_IsOK(res3)) {
34939 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34940 }
34941 if (!argp3) {
34942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34943 }
34944 arg3 = reinterpret_cast< wxDC * >(argp3);
34945 {
34946 arg4 = &temp4;
34947 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34948 }
34949 if (obj4) {
34950 ecode5 = SWIG_AsVal_int(obj4, &val5);
34951 if (!SWIG_IsOK(ecode5)) {
34952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34953 }
34954 arg5 = static_cast< int >(val5);
34955 }
34956 {
34957 PyThreadState* __tstate = wxPyBeginAllowThreads();
34958 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
34959 wxPyEndAllowThreads(__tstate);
34960 if (PyErr_Occurred()) SWIG_fail;
34961 }
34962 resultobj = SWIG_Py_Void();
34963 return resultobj;
34964fail:
34965 return NULL;
34966}
34967
34968
1bd55598
RD
34969SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34970 PyObject *resultobj = 0;
34971 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34972 wxWindow *arg2 = (wxWindow *) 0 ;
34973 SwigValueWrapper<wxSplitterRenderParams > result;
34974 void *argp1 = 0 ;
34975 int res1 = 0 ;
34976 void *argp2 = 0 ;
34977 int res2 = 0 ;
34978 PyObject * obj0 = 0 ;
34979 PyObject * obj1 = 0 ;
34980 char * kwnames[] = {
34981 (char *) "self",(char *) "win", NULL
34982 };
34983
34984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) 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_GetSplitterParams" "', 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_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34993 }
34994 arg2 = reinterpret_cast< wxWindow * >(argp2);
34995 {
34996 PyThreadState* __tstate = wxPyBeginAllowThreads();
34997 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34998 wxPyEndAllowThreads(__tstate);
34999 if (PyErr_Occurred()) SWIG_fail;
35000 }
35001 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35002 return resultobj;
35003fail:
35004 return NULL;
35005}
35006
35007
35008SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35009 PyObject *resultobj = 0;
35010 wxRendererNative *result = 0 ;
35011
35012 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35013 {
704eda0c 35014 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35015 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 35016 {
1bd55598
RD
35017 wxRendererNative &_result_ref = wxRendererNative::Get();
35018 result = (wxRendererNative *) &_result_ref;
36ed4f51 35019 }
1bd55598
RD
35020 wxPyEndAllowThreads(__tstate);
35021 if (PyErr_Occurred()) SWIG_fail;
35022 }
35023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35024 return resultobj;
35025fail:
35026 return NULL;
35027}
35028
35029
35030SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35031 PyObject *resultobj = 0;
35032 wxRendererNative *result = 0 ;
35033
35034 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35035 {
704eda0c 35036 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35037 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35038 {
1bd55598
RD
35039 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35040 result = (wxRendererNative *) &_result_ref;
be9b1dca 35041 }
1bd55598
RD
35042 wxPyEndAllowThreads(__tstate);
35043 if (PyErr_Occurred()) SWIG_fail;
35044 }
35045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35046 return resultobj;
35047fail:
35048 return NULL;
35049}
35050
35051
35052SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35053 PyObject *resultobj = 0;
35054 wxRendererNative *result = 0 ;
35055
35056 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35057 {
704eda0c 35058 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35059 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35060 {
1bd55598
RD
35061 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35062 result = (wxRendererNative *) &_result_ref;
be9b1dca 35063 }
1bd55598
RD
35064 wxPyEndAllowThreads(__tstate);
35065 if (PyErr_Occurred()) SWIG_fail;
35066 }
35067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35068 return resultobj;
35069fail:
35070 return NULL;
35071}
35072
35073
35074SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35075 PyObject *resultobj = 0;
35076 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35077 wxRendererNative *result = 0 ;
35078 void *argp1 = 0 ;
35079 int res1 = 0 ;
35080 PyObject * obj0 = 0 ;
35081 char * kwnames[] = {
35082 (char *) "renderer", NULL
35083 };
35084
35085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35087 if (!SWIG_IsOK(res1)) {
35088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35089 }
35090 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35091 {
704eda0c 35092 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
35093 PyThreadState* __tstate = wxPyBeginAllowThreads();
35094 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35095 wxPyEndAllowThreads(__tstate);
35096 if (PyErr_Occurred()) SWIG_fail;
35097 }
35098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35099 return resultobj;
35100fail:
35101 return NULL;
35102}
35103
35104
35105SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35106 PyObject *resultobj = 0;
35107 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35108 SwigValueWrapper<wxRendererVersion > result;
35109 void *argp1 = 0 ;
35110 int res1 = 0 ;
35111 PyObject *swig_obj[1] ;
35112
35113 if (!args) SWIG_fail;
35114 swig_obj[0] = args;
35115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35116 if (!SWIG_IsOK(res1)) {
35117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35118 }
35119 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35120 {
35121 PyThreadState* __tstate = wxPyBeginAllowThreads();
35122 result = ((wxRendererNative const *)arg1)->GetVersion();
35123 wxPyEndAllowThreads(__tstate);
35124 if (PyErr_Occurred()) SWIG_fail;
35125 }
35126 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35127 return resultobj;
35128fail:
35129 return NULL;
35130}
35131
35132
35133SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35134 PyObject *obj;
35135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35136 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35137 return SWIG_Py_Void();
35138}
35139
27e45892
RD
35140SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35141 PyObject *resultobj = 0;
35142 wxPseudoDC *result = 0 ;
35143
35144 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35145 {
35146 PyThreadState* __tstate = wxPyBeginAllowThreads();
35147 result = (wxPseudoDC *)new wxPseudoDC();
35148 wxPyEndAllowThreads(__tstate);
35149 if (PyErr_Occurred()) SWIG_fail;
35150 }
35151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35152 return resultobj;
35153fail:
35154 return NULL;
35155}
35156
35157
35158SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35159 PyObject *resultobj = 0;
35160 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35161 void *argp1 = 0 ;
35162 int res1 = 0 ;
35163 PyObject *swig_obj[1] ;
35164
35165 if (!args) SWIG_fail;
35166 swig_obj[0] = args;
35167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35168 if (!SWIG_IsOK(res1)) {
35169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35170 }
35171 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35172 {
35173 PyThreadState* __tstate = wxPyBeginAllowThreads();
35174 (arg1)->BeginDrawing();
35175 wxPyEndAllowThreads(__tstate);
35176 if (PyErr_Occurred()) SWIG_fail;
35177 }
35178 resultobj = SWIG_Py_Void();
35179 return resultobj;
35180fail:
35181 return NULL;
35182}
35183
35184
35185SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35186 PyObject *resultobj = 0;
35187 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35188 void *argp1 = 0 ;
35189 int res1 = 0 ;
35190 PyObject *swig_obj[1] ;
35191
35192 if (!args) SWIG_fail;
35193 swig_obj[0] = args;
35194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35195 if (!SWIG_IsOK(res1)) {
35196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35197 }
35198 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35199 {
35200 PyThreadState* __tstate = wxPyBeginAllowThreads();
35201 (arg1)->EndDrawing();
35202 wxPyEndAllowThreads(__tstate);
35203 if (PyErr_Occurred()) SWIG_fail;
35204 }
35205 resultobj = SWIG_Py_Void();
35206 return resultobj;
35207fail:
35208 return NULL;
35209}
35210
35211
35212SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35213 PyObject *resultobj = 0;
35214 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35215 void *argp1 = 0 ;
35216 int res1 = 0 ;
35217 PyObject *swig_obj[1] ;
35218
35219 if (!args) SWIG_fail;
35220 swig_obj[0] = args;
35221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35222 if (!SWIG_IsOK(res1)) {
35223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35224 }
35225 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35226 {
35227 PyThreadState* __tstate = wxPyBeginAllowThreads();
35228 delete arg1;
35229
35230 wxPyEndAllowThreads(__tstate);
35231 if (PyErr_Occurred()) SWIG_fail;
35232 }
35233 resultobj = SWIG_Py_Void();
35234 return resultobj;
35235fail:
35236 return NULL;
35237}
35238
35239
35240SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35241 PyObject *resultobj = 0;
35242 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35243 void *argp1 = 0 ;
35244 int res1 = 0 ;
35245 PyObject *swig_obj[1] ;
35246
35247 if (!args) SWIG_fail;
35248 swig_obj[0] = args;
35249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35250 if (!SWIG_IsOK(res1)) {
35251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35252 }
35253 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35254 {
35255 PyThreadState* __tstate = wxPyBeginAllowThreads();
35256 (arg1)->RemoveAll();
35257 wxPyEndAllowThreads(__tstate);
35258 if (PyErr_Occurred()) SWIG_fail;
35259 }
35260 resultobj = SWIG_Py_Void();
35261 return resultobj;
35262fail:
35263 return NULL;
35264}
35265
35266
35267SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35268 PyObject *resultobj = 0;
35269 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35270 int result;
35271 void *argp1 = 0 ;
35272 int res1 = 0 ;
35273 PyObject *swig_obj[1] ;
35274
35275 if (!args) SWIG_fail;
35276 swig_obj[0] = args;
35277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35278 if (!SWIG_IsOK(res1)) {
35279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35280 }
35281 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35282 {
35283 PyThreadState* __tstate = wxPyBeginAllowThreads();
35284 result = (int)(arg1)->GetLen();
35285 wxPyEndAllowThreads(__tstate);
35286 if (PyErr_Occurred()) SWIG_fail;
35287 }
35288 resultobj = SWIG_From_int(static_cast< int >(result));
35289 return resultobj;
35290fail:
35291 return NULL;
35292}
35293
35294
35295SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35296 PyObject *resultobj = 0;
35297 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35298 int arg2 ;
35299 void *argp1 = 0 ;
35300 int res1 = 0 ;
35301 int val2 ;
35302 int ecode2 = 0 ;
35303 PyObject * obj0 = 0 ;
35304 PyObject * obj1 = 0 ;
35305 char * kwnames[] = {
35306 (char *) "self",(char *) "id", NULL
35307 };
35308
35309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35311 if (!SWIG_IsOK(res1)) {
35312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35313 }
35314 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35315 ecode2 = SWIG_AsVal_int(obj1, &val2);
35316 if (!SWIG_IsOK(ecode2)) {
35317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35318 }
35319 arg2 = static_cast< int >(val2);
35320 {
35321 PyThreadState* __tstate = wxPyBeginAllowThreads();
35322 (arg1)->SetId(arg2);
35323 wxPyEndAllowThreads(__tstate);
35324 if (PyErr_Occurred()) SWIG_fail;
35325 }
35326 resultobj = SWIG_Py_Void();
35327 return resultobj;
35328fail:
35329 return NULL;
35330}
35331
35332
35333SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35334 PyObject *resultobj = 0;
35335 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35336 int arg2 ;
35337 void *argp1 = 0 ;
35338 int res1 = 0 ;
35339 int val2 ;
35340 int ecode2 = 0 ;
35341 PyObject * obj0 = 0 ;
35342 PyObject * obj1 = 0 ;
35343 char * kwnames[] = {
35344 (char *) "self",(char *) "id", NULL
35345 };
35346
35347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35349 if (!SWIG_IsOK(res1)) {
35350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35351 }
35352 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35353 ecode2 = SWIG_AsVal_int(obj1, &val2);
35354 if (!SWIG_IsOK(ecode2)) {
35355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35356 }
35357 arg2 = static_cast< int >(val2);
35358 {
35359 PyThreadState* __tstate = wxPyBeginAllowThreads();
35360 (arg1)->ClearId(arg2);
35361 wxPyEndAllowThreads(__tstate);
35362 if (PyErr_Occurred()) SWIG_fail;
35363 }
35364 resultobj = SWIG_Py_Void();
35365 return resultobj;
35366fail:
35367 return NULL;
35368}
35369
35370
35371SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35372 PyObject *resultobj = 0;
35373 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35374 int arg2 ;
35375 void *argp1 = 0 ;
35376 int res1 = 0 ;
35377 int val2 ;
35378 int ecode2 = 0 ;
35379 PyObject * obj0 = 0 ;
35380 PyObject * obj1 = 0 ;
35381 char * kwnames[] = {
35382 (char *) "self",(char *) "id", NULL
35383 };
35384
35385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35387 if (!SWIG_IsOK(res1)) {
35388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35389 }
35390 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35391 ecode2 = SWIG_AsVal_int(obj1, &val2);
35392 if (!SWIG_IsOK(ecode2)) {
35393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35394 }
35395 arg2 = static_cast< int >(val2);
35396 {
35397 PyThreadState* __tstate = wxPyBeginAllowThreads();
35398 (arg1)->RemoveId(arg2);
35399 wxPyEndAllowThreads(__tstate);
35400 if (PyErr_Occurred()) SWIG_fail;
35401 }
35402 resultobj = SWIG_Py_Void();
35403 return resultobj;
35404fail:
35405 return NULL;
35406}
35407
35408
35409SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35410 PyObject *resultobj = 0;
35411 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35412 int arg2 ;
35413 int arg3 ;
35414 int arg4 ;
35415 void *argp1 = 0 ;
35416 int res1 = 0 ;
35417 int val2 ;
35418 int ecode2 = 0 ;
35419 int val3 ;
35420 int ecode3 = 0 ;
35421 int val4 ;
35422 int ecode4 = 0 ;
35423 PyObject * obj0 = 0 ;
35424 PyObject * obj1 = 0 ;
35425 PyObject * obj2 = 0 ;
35426 PyObject * obj3 = 0 ;
35427 char * kwnames[] = {
35428 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35429 };
35430
35431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35433 if (!SWIG_IsOK(res1)) {
35434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35435 }
35436 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35437 ecode2 = SWIG_AsVal_int(obj1, &val2);
35438 if (!SWIG_IsOK(ecode2)) {
35439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35440 }
35441 arg2 = static_cast< int >(val2);
35442 ecode3 = SWIG_AsVal_int(obj2, &val3);
35443 if (!SWIG_IsOK(ecode3)) {
35444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35445 }
35446 arg3 = static_cast< int >(val3);
35447 ecode4 = SWIG_AsVal_int(obj3, &val4);
35448 if (!SWIG_IsOK(ecode4)) {
35449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35450 }
35451 arg4 = static_cast< int >(val4);
35452 {
35453 PyThreadState* __tstate = wxPyBeginAllowThreads();
35454 (arg1)->TranslateId(arg2,arg3,arg4);
35455 wxPyEndAllowThreads(__tstate);
35456 if (PyErr_Occurred()) SWIG_fail;
35457 }
35458 resultobj = SWIG_Py_Void();
35459 return resultobj;
35460fail:
35461 return NULL;
35462}
35463
35464
72ef6efb
RD
35465SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35466 PyObject *resultobj = 0;
35467 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35468 int arg2 ;
35469 bool arg3 = (bool) true ;
35470 void *argp1 = 0 ;
35471 int res1 = 0 ;
35472 int val2 ;
35473 int ecode2 = 0 ;
35474 bool val3 ;
35475 int ecode3 = 0 ;
35476 PyObject * obj0 = 0 ;
35477 PyObject * obj1 = 0 ;
35478 PyObject * obj2 = 0 ;
35479 char * kwnames[] = {
35480 (char *) "self",(char *) "id",(char *) "greyout", NULL
35481 };
35482
35483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35485 if (!SWIG_IsOK(res1)) {
35486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35487 }
35488 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35489 ecode2 = SWIG_AsVal_int(obj1, &val2);
35490 if (!SWIG_IsOK(ecode2)) {
35491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35492 }
35493 arg2 = static_cast< int >(val2);
35494 if (obj2) {
35495 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35496 if (!SWIG_IsOK(ecode3)) {
35497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35498 }
35499 arg3 = static_cast< bool >(val3);
35500 }
35501 {
35502 PyThreadState* __tstate = wxPyBeginAllowThreads();
35503 (arg1)->SetIdGreyedOut(arg2,arg3);
35504 wxPyEndAllowThreads(__tstate);
35505 if (PyErr_Occurred()) SWIG_fail;
35506 }
35507 resultobj = SWIG_Py_Void();
35508 return resultobj;
35509fail:
35510 return NULL;
35511}
35512
35513
35514SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35515 PyObject *resultobj = 0;
35516 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35517 int arg2 ;
35518 bool result;
35519 void *argp1 = 0 ;
35520 int res1 = 0 ;
35521 int val2 ;
35522 int ecode2 = 0 ;
35523 PyObject * obj0 = 0 ;
35524 PyObject * obj1 = 0 ;
35525 char * kwnames[] = {
35526 (char *) "self",(char *) "id", NULL
35527 };
35528
35529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35531 if (!SWIG_IsOK(res1)) {
35532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35533 }
35534 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35535 ecode2 = SWIG_AsVal_int(obj1, &val2);
35536 if (!SWIG_IsOK(ecode2)) {
35537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35538 }
35539 arg2 = static_cast< int >(val2);
35540 {
35541 PyThreadState* __tstate = wxPyBeginAllowThreads();
35542 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35543 wxPyEndAllowThreads(__tstate);
35544 if (PyErr_Occurred()) SWIG_fail;
35545 }
35546 {
35547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35548 }
35549 return resultobj;
35550fail:
35551 return NULL;
35552}
35553
35554
35555SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35556 PyObject *resultobj = 0;
35557 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35558 int arg2 ;
35559 int arg3 ;
35560 int arg4 = (int) 1 ;
35561 wxColor const &arg5_defvalue = *wxWHITE ;
35562 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35563 PyObject *result = 0 ;
35564 void *argp1 = 0 ;
35565 int res1 = 0 ;
35566 int val2 ;
35567 int ecode2 = 0 ;
35568 int val3 ;
35569 int ecode3 = 0 ;
35570 int val4 ;
35571 int ecode4 = 0 ;
35572 void *argp5 = 0 ;
35573 int res5 = 0 ;
35574 PyObject * obj0 = 0 ;
35575 PyObject * obj1 = 0 ;
35576 PyObject * obj2 = 0 ;
35577 PyObject * obj3 = 0 ;
35578 PyObject * obj4 = 0 ;
35579 char * kwnames[] = {
35580 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35581 };
35582
35583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35585 if (!SWIG_IsOK(res1)) {
35586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35587 }
35588 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35589 ecode2 = SWIG_AsVal_int(obj1, &val2);
35590 if (!SWIG_IsOK(ecode2)) {
35591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35592 }
35593 arg2 = static_cast< int >(val2);
35594 ecode3 = SWIG_AsVal_int(obj2, &val3);
35595 if (!SWIG_IsOK(ecode3)) {
35596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35597 }
35598 arg3 = static_cast< int >(val3);
35599 if (obj3) {
35600 ecode4 = SWIG_AsVal_int(obj3, &val4);
35601 if (!SWIG_IsOK(ecode4)) {
35602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35603 }
35604 arg4 = static_cast< int >(val4);
35605 }
35606 if (obj4) {
35607 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35608 if (!SWIG_IsOK(res5)) {
35609 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35610 }
35611 if (!argp5) {
35612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35613 }
35614 arg5 = reinterpret_cast< wxColor * >(argp5);
35615 }
35616 {
35617 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35618 if (PyErr_Occurred()) SWIG_fail;
35619 }
35620 resultobj = result;
35621 return resultobj;
35622fail:
35623 return NULL;
35624}
35625
35626
35627SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35628 PyObject *resultobj = 0;
35629 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35630 int arg2 ;
35631 int arg3 ;
35632 PyObject *result = 0 ;
35633 void *argp1 = 0 ;
35634 int res1 = 0 ;
35635 int val2 ;
35636 int ecode2 = 0 ;
35637 int val3 ;
35638 int ecode3 = 0 ;
35639 PyObject * obj0 = 0 ;
35640 PyObject * obj1 = 0 ;
35641 PyObject * obj2 = 0 ;
35642 char * kwnames[] = {
35643 (char *) "self",(char *) "x",(char *) "y", NULL
35644 };
35645
35646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35648 if (!SWIG_IsOK(res1)) {
35649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35650 }
35651 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35652 ecode2 = SWIG_AsVal_int(obj1, &val2);
35653 if (!SWIG_IsOK(ecode2)) {
35654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35655 }
35656 arg2 = static_cast< int >(val2);
35657 ecode3 = SWIG_AsVal_int(obj2, &val3);
35658 if (!SWIG_IsOK(ecode3)) {
35659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35660 }
35661 arg3 = static_cast< int >(val3);
35662 {
35663 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35664 if (PyErr_Occurred()) SWIG_fail;
35665 }
35666 resultobj = result;
35667 return resultobj;
35668fail:
35669 return NULL;
35670}
35671
35672
27e45892
RD
35673SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35674 PyObject *resultobj = 0;
35675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35676 int arg2 ;
35677 wxDC *arg3 = (wxDC *) 0 ;
35678 void *argp1 = 0 ;
35679 int res1 = 0 ;
35680 int val2 ;
35681 int ecode2 = 0 ;
35682 void *argp3 = 0 ;
35683 int res3 = 0 ;
35684 PyObject * obj0 = 0 ;
35685 PyObject * obj1 = 0 ;
35686 PyObject * obj2 = 0 ;
35687 char * kwnames[] = {
35688 (char *) "self",(char *) "id",(char *) "dc", NULL
35689 };
35690
35691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35693 if (!SWIG_IsOK(res1)) {
35694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35695 }
35696 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35697 ecode2 = SWIG_AsVal_int(obj1, &val2);
35698 if (!SWIG_IsOK(ecode2)) {
35699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35700 }
35701 arg2 = static_cast< int >(val2);
35702 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35703 if (!SWIG_IsOK(res3)) {
35704 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35705 }
35706 arg3 = reinterpret_cast< wxDC * >(argp3);
35707 {
35708 PyThreadState* __tstate = wxPyBeginAllowThreads();
35709 (arg1)->DrawIdToDC(arg2,arg3);
35710 wxPyEndAllowThreads(__tstate);
35711 if (PyErr_Occurred()) SWIG_fail;
35712 }
35713 resultobj = SWIG_Py_Void();
35714 return resultobj;
35715fail:
35716 return NULL;
35717}
35718
35719
35720SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35721 PyObject *resultobj = 0;
35722 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35723 int arg2 ;
35724 wxRect *arg3 = 0 ;
35725 void *argp1 = 0 ;
35726 int res1 = 0 ;
35727 int val2 ;
35728 int ecode2 = 0 ;
35729 wxRect temp3 ;
35730 PyObject * obj0 = 0 ;
35731 PyObject * obj1 = 0 ;
35732 PyObject * obj2 = 0 ;
35733 char * kwnames[] = {
35734 (char *) "self",(char *) "id",(char *) "rect", NULL
35735 };
35736
35737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35739 if (!SWIG_IsOK(res1)) {
35740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35741 }
35742 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35743 ecode2 = SWIG_AsVal_int(obj1, &val2);
35744 if (!SWIG_IsOK(ecode2)) {
35745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35746 }
35747 arg2 = static_cast< int >(val2);
35748 {
35749 arg3 = &temp3;
35750 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35751 }
35752 {
35753 PyThreadState* __tstate = wxPyBeginAllowThreads();
35754 (arg1)->SetIdBounds(arg2,*arg3);
35755 wxPyEndAllowThreads(__tstate);
35756 if (PyErr_Occurred()) SWIG_fail;
35757 }
35758 resultobj = SWIG_Py_Void();
35759 return resultobj;
35760fail:
35761 return NULL;
35762}
35763
35764
35765SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35766 PyObject *resultobj = 0;
35767 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35768 int arg2 ;
35769 wxRect result;
35770 void *argp1 = 0 ;
35771 int res1 = 0 ;
35772 int val2 ;
35773 int ecode2 = 0 ;
35774 PyObject * obj0 = 0 ;
35775 PyObject * obj1 = 0 ;
35776 char * kwnames[] = {
35777 (char *) "self",(char *) "id", NULL
35778 };
35779
35780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35782 if (!SWIG_IsOK(res1)) {
35783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35784 }
35785 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35786 ecode2 = SWIG_AsVal_int(obj1, &val2);
35787 if (!SWIG_IsOK(ecode2)) {
35788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35789 }
35790 arg2 = static_cast< int >(val2);
35791 {
35792 PyThreadState* __tstate = wxPyBeginAllowThreads();
35793 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35794 wxPyEndAllowThreads(__tstate);
35795 if (PyErr_Occurred()) SWIG_fail;
35796 }
35797 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35798 return resultobj;
35799fail:
35800 return NULL;
35801}
35802
35803
35804SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35805 PyObject *resultobj = 0;
35806 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35807 wxDC *arg2 = (wxDC *) 0 ;
35808 wxRect *arg3 = 0 ;
35809 void *argp1 = 0 ;
35810 int res1 = 0 ;
35811 void *argp2 = 0 ;
35812 int res2 = 0 ;
35813 wxRect temp3 ;
35814 PyObject * obj0 = 0 ;
35815 PyObject * obj1 = 0 ;
35816 PyObject * obj2 = 0 ;
35817 char * kwnames[] = {
35818 (char *) "self",(char *) "dc",(char *) "rect", NULL
35819 };
35820
35821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35823 if (!SWIG_IsOK(res1)) {
35824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35825 }
35826 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35827 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35828 if (!SWIG_IsOK(res2)) {
35829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35830 }
35831 arg2 = reinterpret_cast< wxDC * >(argp2);
35832 {
35833 arg3 = &temp3;
35834 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35835 }
35836 {
35837 PyThreadState* __tstate = wxPyBeginAllowThreads();
35838 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35839 wxPyEndAllowThreads(__tstate);
35840 if (PyErr_Occurred()) SWIG_fail;
35841 }
35842 resultobj = SWIG_Py_Void();
35843 return resultobj;
35844fail:
35845 return NULL;
35846}
35847
35848
35849SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35850 PyObject *resultobj = 0;
35851 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35852 wxDC *arg2 = (wxDC *) 0 ;
35853 wxRegion *arg3 = 0 ;
35854 void *argp1 = 0 ;
35855 int res1 = 0 ;
35856 void *argp2 = 0 ;
35857 int res2 = 0 ;
35858 void *argp3 = 0 ;
35859 int res3 = 0 ;
35860 PyObject * obj0 = 0 ;
35861 PyObject * obj1 = 0 ;
35862 PyObject * obj2 = 0 ;
35863 char * kwnames[] = {
35864 (char *) "self",(char *) "dc",(char *) "region", NULL
35865 };
35866
35867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35869 if (!SWIG_IsOK(res1)) {
35870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35871 }
35872 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35873 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35874 if (!SWIG_IsOK(res2)) {
35875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35876 }
35877 arg2 = reinterpret_cast< wxDC * >(argp2);
35878 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35879 if (!SWIG_IsOK(res3)) {
35880 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35881 }
35882 if (!argp3) {
35883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35884 }
35885 arg3 = reinterpret_cast< wxRegion * >(argp3);
35886 {
35887 PyThreadState* __tstate = wxPyBeginAllowThreads();
35888 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35889 wxPyEndAllowThreads(__tstate);
35890 if (PyErr_Occurred()) SWIG_fail;
35891 }
35892 resultobj = SWIG_Py_Void();
35893 return resultobj;
35894fail:
35895 return NULL;
35896}
35897
35898
35899SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35900 PyObject *resultobj = 0;
35901 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35902 wxDC *arg2 = (wxDC *) 0 ;
35903 void *argp1 = 0 ;
35904 int res1 = 0 ;
35905 void *argp2 = 0 ;
35906 int res2 = 0 ;
35907 PyObject * obj0 = 0 ;
35908 PyObject * obj1 = 0 ;
35909 char * kwnames[] = {
35910 (char *) "self",(char *) "dc", NULL
35911 };
35912
35913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35915 if (!SWIG_IsOK(res1)) {
35916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35917 }
35918 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35919 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35920 if (!SWIG_IsOK(res2)) {
35921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35922 }
35923 arg2 = reinterpret_cast< wxDC * >(argp2);
35924 {
35925 PyThreadState* __tstate = wxPyBeginAllowThreads();
35926 (arg1)->DrawToDC(arg2);
35927 wxPyEndAllowThreads(__tstate);
35928 if (PyErr_Occurred()) SWIG_fail;
35929 }
35930 resultobj = SWIG_Py_Void();
35931 return resultobj;
35932fail:
35933 return NULL;
35934}
35935
35936
35937SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35938 PyObject *resultobj = 0;
35939 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35940 int arg2 ;
35941 int arg3 ;
35942 wxColour *arg4 = 0 ;
35943 int arg5 = (int) wxFLOOD_SURFACE ;
35944 void *argp1 = 0 ;
35945 int res1 = 0 ;
35946 int val2 ;
35947 int ecode2 = 0 ;
35948 int val3 ;
35949 int ecode3 = 0 ;
35950 wxColour temp4 ;
35951 int val5 ;
35952 int ecode5 = 0 ;
35953 PyObject * obj0 = 0 ;
35954 PyObject * obj1 = 0 ;
35955 PyObject * obj2 = 0 ;
35956 PyObject * obj3 = 0 ;
35957 PyObject * obj4 = 0 ;
35958 char * kwnames[] = {
35959 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35960 };
35961
35962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35964 if (!SWIG_IsOK(res1)) {
35965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35966 }
35967 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35968 ecode2 = SWIG_AsVal_int(obj1, &val2);
35969 if (!SWIG_IsOK(ecode2)) {
35970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35971 }
35972 arg2 = static_cast< int >(val2);
35973 ecode3 = SWIG_AsVal_int(obj2, &val3);
35974 if (!SWIG_IsOK(ecode3)) {
35975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35976 }
35977 arg3 = static_cast< int >(val3);
35978 {
35979 arg4 = &temp4;
35980 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35981 }
35982 if (obj4) {
35983 ecode5 = SWIG_AsVal_int(obj4, &val5);
35984 if (!SWIG_IsOK(ecode5)) {
35985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35986 }
35987 arg5 = static_cast< int >(val5);
35988 }
35989 {
35990 PyThreadState* __tstate = wxPyBeginAllowThreads();
35991 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35992 wxPyEndAllowThreads(__tstate);
35993 if (PyErr_Occurred()) SWIG_fail;
35994 }
35995 resultobj = SWIG_Py_Void();
35996 return resultobj;
35997fail:
35998 return NULL;
35999}
36000
36001
36002SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36003 PyObject *resultobj = 0;
36004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36005 wxPoint *arg2 = 0 ;
36006 wxColour *arg3 = 0 ;
36007 int arg4 = (int) wxFLOOD_SURFACE ;
36008 void *argp1 = 0 ;
36009 int res1 = 0 ;
36010 wxPoint temp2 ;
36011 wxColour temp3 ;
36012 int val4 ;
36013 int ecode4 = 0 ;
36014 PyObject * obj0 = 0 ;
36015 PyObject * obj1 = 0 ;
36016 PyObject * obj2 = 0 ;
36017 PyObject * obj3 = 0 ;
36018 char * kwnames[] = {
36019 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36020 };
36021
36022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36024 if (!SWIG_IsOK(res1)) {
36025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36026 }
36027 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36028 {
36029 arg2 = &temp2;
36030 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36031 }
36032 {
36033 arg3 = &temp3;
36034 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36035 }
36036 if (obj3) {
36037 ecode4 = SWIG_AsVal_int(obj3, &val4);
36038 if (!SWIG_IsOK(ecode4)) {
36039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36040 }
36041 arg4 = static_cast< int >(val4);
36042 }
36043 {
36044 PyThreadState* __tstate = wxPyBeginAllowThreads();
36045 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36046 wxPyEndAllowThreads(__tstate);
36047 if (PyErr_Occurred()) SWIG_fail;
36048 }
36049 resultobj = SWIG_Py_Void();
36050 return resultobj;
36051fail:
36052 return NULL;
36053}
36054
36055
36056SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36057 PyObject *resultobj = 0;
36058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36059 int arg2 ;
36060 int arg3 ;
36061 int arg4 ;
36062 int arg5 ;
36063 void *argp1 = 0 ;
36064 int res1 = 0 ;
36065 int val2 ;
36066 int ecode2 = 0 ;
36067 int val3 ;
36068 int ecode3 = 0 ;
36069 int val4 ;
36070 int ecode4 = 0 ;
36071 int val5 ;
36072 int ecode5 = 0 ;
36073 PyObject * obj0 = 0 ;
36074 PyObject * obj1 = 0 ;
36075 PyObject * obj2 = 0 ;
36076 PyObject * obj3 = 0 ;
36077 PyObject * obj4 = 0 ;
36078 char * kwnames[] = {
36079 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36080 };
36081
36082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36084 if (!SWIG_IsOK(res1)) {
36085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36086 }
36087 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36088 ecode2 = SWIG_AsVal_int(obj1, &val2);
36089 if (!SWIG_IsOK(ecode2)) {
36090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36091 }
36092 arg2 = static_cast< int >(val2);
36093 ecode3 = SWIG_AsVal_int(obj2, &val3);
36094 if (!SWIG_IsOK(ecode3)) {
36095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36096 }
36097 arg3 = static_cast< int >(val3);
36098 ecode4 = SWIG_AsVal_int(obj3, &val4);
36099 if (!SWIG_IsOK(ecode4)) {
36100 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36101 }
36102 arg4 = static_cast< int >(val4);
36103 ecode5 = SWIG_AsVal_int(obj4, &val5);
36104 if (!SWIG_IsOK(ecode5)) {
36105 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36106 }
36107 arg5 = static_cast< int >(val5);
36108 {
36109 PyThreadState* __tstate = wxPyBeginAllowThreads();
36110 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36111 wxPyEndAllowThreads(__tstate);
36112 if (PyErr_Occurred()) SWIG_fail;
36113 }
36114 resultobj = SWIG_Py_Void();
36115 return resultobj;
36116fail:
36117 return NULL;
36118}
36119
36120
36121SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36122 PyObject *resultobj = 0;
36123 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36124 wxPoint *arg2 = 0 ;
36125 wxPoint *arg3 = 0 ;
36126 void *argp1 = 0 ;
36127 int res1 = 0 ;
36128 wxPoint temp2 ;
36129 wxPoint temp3 ;
36130 PyObject * obj0 = 0 ;
36131 PyObject * obj1 = 0 ;
36132 PyObject * obj2 = 0 ;
36133 char * kwnames[] = {
36134 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36135 };
36136
36137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36139 if (!SWIG_IsOK(res1)) {
36140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36141 }
36142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36143 {
36144 arg2 = &temp2;
36145 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36146 }
36147 {
36148 arg3 = &temp3;
36149 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36150 }
36151 {
36152 PyThreadState* __tstate = wxPyBeginAllowThreads();
36153 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36154 wxPyEndAllowThreads(__tstate);
36155 if (PyErr_Occurred()) SWIG_fail;
36156 }
36157 resultobj = SWIG_Py_Void();
36158 return resultobj;
36159fail:
36160 return NULL;
36161}
36162
36163
36164SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36165 PyObject *resultobj = 0;
36166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36167 int arg2 ;
36168 int arg3 ;
36169 void *argp1 = 0 ;
36170 int res1 = 0 ;
36171 int val2 ;
36172 int ecode2 = 0 ;
36173 int val3 ;
36174 int ecode3 = 0 ;
36175 PyObject * obj0 = 0 ;
36176 PyObject * obj1 = 0 ;
36177 PyObject * obj2 = 0 ;
36178 char * kwnames[] = {
36179 (char *) "self",(char *) "x",(char *) "y", NULL
36180 };
36181
36182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36184 if (!SWIG_IsOK(res1)) {
36185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36186 }
36187 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36188 ecode2 = SWIG_AsVal_int(obj1, &val2);
36189 if (!SWIG_IsOK(ecode2)) {
36190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36191 }
36192 arg2 = static_cast< int >(val2);
36193 ecode3 = SWIG_AsVal_int(obj2, &val3);
36194 if (!SWIG_IsOK(ecode3)) {
36195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36196 }
36197 arg3 = static_cast< int >(val3);
36198 {
36199 PyThreadState* __tstate = wxPyBeginAllowThreads();
36200 (arg1)->CrossHair(arg2,arg3);
36201 wxPyEndAllowThreads(__tstate);
36202 if (PyErr_Occurred()) SWIG_fail;
36203 }
36204 resultobj = SWIG_Py_Void();
36205 return resultobj;
36206fail:
36207 return NULL;
36208}
36209
36210
36211SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36212 PyObject *resultobj = 0;
36213 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36214 wxPoint *arg2 = 0 ;
36215 void *argp1 = 0 ;
36216 int res1 = 0 ;
36217 wxPoint temp2 ;
36218 PyObject * obj0 = 0 ;
36219 PyObject * obj1 = 0 ;
36220 char * kwnames[] = {
36221 (char *) "self",(char *) "pt", NULL
36222 };
36223
36224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36226 if (!SWIG_IsOK(res1)) {
36227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36228 }
36229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36230 {
36231 arg2 = &temp2;
36232 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36233 }
36234 {
36235 PyThreadState* __tstate = wxPyBeginAllowThreads();
36236 (arg1)->CrossHair((wxPoint const &)*arg2);
36237 wxPyEndAllowThreads(__tstate);
36238 if (PyErr_Occurred()) SWIG_fail;
36239 }
36240 resultobj = SWIG_Py_Void();
36241 return resultobj;
36242fail:
36243 return NULL;
36244}
36245
36246
36247SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36248 PyObject *resultobj = 0;
36249 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36250 int arg2 ;
36251 int arg3 ;
36252 int arg4 ;
36253 int arg5 ;
36254 int arg6 ;
36255 int arg7 ;
36256 void *argp1 = 0 ;
36257 int res1 = 0 ;
36258 int val2 ;
36259 int ecode2 = 0 ;
36260 int val3 ;
36261 int ecode3 = 0 ;
36262 int val4 ;
36263 int ecode4 = 0 ;
36264 int val5 ;
36265 int ecode5 = 0 ;
36266 int val6 ;
36267 int ecode6 = 0 ;
36268 int val7 ;
36269 int ecode7 = 0 ;
36270 PyObject * obj0 = 0 ;
36271 PyObject * obj1 = 0 ;
36272 PyObject * obj2 = 0 ;
36273 PyObject * obj3 = 0 ;
36274 PyObject * obj4 = 0 ;
36275 PyObject * obj5 = 0 ;
36276 PyObject * obj6 = 0 ;
36277 char * kwnames[] = {
36278 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36279 };
36280
36281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36283 if (!SWIG_IsOK(res1)) {
36284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36285 }
36286 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36287 ecode2 = SWIG_AsVal_int(obj1, &val2);
36288 if (!SWIG_IsOK(ecode2)) {
36289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36290 }
36291 arg2 = static_cast< int >(val2);
36292 ecode3 = SWIG_AsVal_int(obj2, &val3);
36293 if (!SWIG_IsOK(ecode3)) {
36294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36295 }
36296 arg3 = static_cast< int >(val3);
36297 ecode4 = SWIG_AsVal_int(obj3, &val4);
36298 if (!SWIG_IsOK(ecode4)) {
36299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36300 }
36301 arg4 = static_cast< int >(val4);
36302 ecode5 = SWIG_AsVal_int(obj4, &val5);
36303 if (!SWIG_IsOK(ecode5)) {
36304 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36305 }
36306 arg5 = static_cast< int >(val5);
36307 ecode6 = SWIG_AsVal_int(obj5, &val6);
36308 if (!SWIG_IsOK(ecode6)) {
36309 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36310 }
36311 arg6 = static_cast< int >(val6);
36312 ecode7 = SWIG_AsVal_int(obj6, &val7);
36313 if (!SWIG_IsOK(ecode7)) {
36314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36315 }
36316 arg7 = static_cast< int >(val7);
36317 {
36318 PyThreadState* __tstate = wxPyBeginAllowThreads();
36319 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36320 wxPyEndAllowThreads(__tstate);
36321 if (PyErr_Occurred()) SWIG_fail;
36322 }
36323 resultobj = SWIG_Py_Void();
36324 return resultobj;
36325fail:
36326 return NULL;
36327}
36328
36329
36330SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36331 PyObject *resultobj = 0;
36332 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36333 wxPoint *arg2 = 0 ;
36334 wxPoint *arg3 = 0 ;
36335 wxPoint *arg4 = 0 ;
36336 void *argp1 = 0 ;
36337 int res1 = 0 ;
36338 wxPoint temp2 ;
36339 wxPoint temp3 ;
36340 wxPoint temp4 ;
36341 PyObject * obj0 = 0 ;
36342 PyObject * obj1 = 0 ;
36343 PyObject * obj2 = 0 ;
36344 PyObject * obj3 = 0 ;
36345 char * kwnames[] = {
36346 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36347 };
36348
36349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36351 if (!SWIG_IsOK(res1)) {
36352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36353 }
36354 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36355 {
36356 arg2 = &temp2;
36357 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36358 }
36359 {
36360 arg3 = &temp3;
36361 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36362 }
36363 {
36364 arg4 = &temp4;
36365 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36366 }
36367 {
36368 PyThreadState* __tstate = wxPyBeginAllowThreads();
36369 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36370 wxPyEndAllowThreads(__tstate);
36371 if (PyErr_Occurred()) SWIG_fail;
36372 }
36373 resultobj = SWIG_Py_Void();
36374 return resultobj;
36375fail:
36376 return NULL;
36377}
36378
36379
36380SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36381 PyObject *resultobj = 0;
36382 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36383 int arg2 ;
36384 int arg3 ;
36385 int arg4 ;
36386 int arg5 ;
36387 void *argp1 = 0 ;
36388 int res1 = 0 ;
36389 int val2 ;
36390 int ecode2 = 0 ;
36391 int val3 ;
36392 int ecode3 = 0 ;
36393 int val4 ;
36394 int ecode4 = 0 ;
36395 int val5 ;
36396 int ecode5 = 0 ;
36397 PyObject * obj0 = 0 ;
36398 PyObject * obj1 = 0 ;
36399 PyObject * obj2 = 0 ;
36400 PyObject * obj3 = 0 ;
36401 PyObject * obj4 = 0 ;
36402 char * kwnames[] = {
36403 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36404 };
36405
36406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36408 if (!SWIG_IsOK(res1)) {
36409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36410 }
36411 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36412 ecode2 = SWIG_AsVal_int(obj1, &val2);
36413 if (!SWIG_IsOK(ecode2)) {
36414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36415 }
36416 arg2 = static_cast< int >(val2);
36417 ecode3 = SWIG_AsVal_int(obj2, &val3);
36418 if (!SWIG_IsOK(ecode3)) {
36419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36420 }
36421 arg3 = static_cast< int >(val3);
36422 ecode4 = SWIG_AsVal_int(obj3, &val4);
36423 if (!SWIG_IsOK(ecode4)) {
36424 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36425 }
36426 arg4 = static_cast< int >(val4);
36427 ecode5 = SWIG_AsVal_int(obj4, &val5);
36428 if (!SWIG_IsOK(ecode5)) {
36429 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36430 }
36431 arg5 = static_cast< int >(val5);
36432 {
36433 PyThreadState* __tstate = wxPyBeginAllowThreads();
36434 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36435 wxPyEndAllowThreads(__tstate);
36436 if (PyErr_Occurred()) SWIG_fail;
36437 }
36438 resultobj = SWIG_Py_Void();
36439 return resultobj;
36440fail:
36441 return NULL;
36442}
36443
36444
36445SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36446 PyObject *resultobj = 0;
36447 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36448 wxRect *arg2 = 0 ;
36449 void *argp1 = 0 ;
36450 int res1 = 0 ;
36451 wxRect temp2 ;
36452 PyObject * obj0 = 0 ;
36453 PyObject * obj1 = 0 ;
36454 char * kwnames[] = {
36455 (char *) "self",(char *) "rect", NULL
36456 };
36457
36458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36460 if (!SWIG_IsOK(res1)) {
36461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36462 }
36463 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36464 {
36465 arg2 = &temp2;
36466 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36467 }
36468 {
36469 PyThreadState* __tstate = wxPyBeginAllowThreads();
36470 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36471 wxPyEndAllowThreads(__tstate);
36472 if (PyErr_Occurred()) SWIG_fail;
36473 }
36474 resultobj = SWIG_Py_Void();
36475 return resultobj;
36476fail:
36477 return NULL;
36478}
36479
36480
36481SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36482 PyObject *resultobj = 0;
36483 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36484 int arg2 ;
36485 int arg3 ;
36486 int arg4 ;
36487 int arg5 ;
36488 double arg6 ;
36489 double arg7 ;
36490 void *argp1 = 0 ;
36491 int res1 = 0 ;
36492 int val2 ;
36493 int ecode2 = 0 ;
36494 int val3 ;
36495 int ecode3 = 0 ;
36496 int val4 ;
36497 int ecode4 = 0 ;
36498 int val5 ;
36499 int ecode5 = 0 ;
36500 double val6 ;
36501 int ecode6 = 0 ;
36502 double val7 ;
36503 int ecode7 = 0 ;
36504 PyObject * obj0 = 0 ;
36505 PyObject * obj1 = 0 ;
36506 PyObject * obj2 = 0 ;
36507 PyObject * obj3 = 0 ;
36508 PyObject * obj4 = 0 ;
36509 PyObject * obj5 = 0 ;
36510 PyObject * obj6 = 0 ;
36511 char * kwnames[] = {
36512 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36513 };
36514
36515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36517 if (!SWIG_IsOK(res1)) {
36518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36519 }
36520 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36521 ecode2 = SWIG_AsVal_int(obj1, &val2);
36522 if (!SWIG_IsOK(ecode2)) {
36523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36524 }
36525 arg2 = static_cast< int >(val2);
36526 ecode3 = SWIG_AsVal_int(obj2, &val3);
36527 if (!SWIG_IsOK(ecode3)) {
36528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36529 }
36530 arg3 = static_cast< int >(val3);
36531 ecode4 = SWIG_AsVal_int(obj3, &val4);
36532 if (!SWIG_IsOK(ecode4)) {
36533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36534 }
36535 arg4 = static_cast< int >(val4);
36536 ecode5 = SWIG_AsVal_int(obj4, &val5);
36537 if (!SWIG_IsOK(ecode5)) {
36538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36539 }
36540 arg5 = static_cast< int >(val5);
36541 ecode6 = SWIG_AsVal_double(obj5, &val6);
36542 if (!SWIG_IsOK(ecode6)) {
36543 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36544 }
36545 arg6 = static_cast< double >(val6);
36546 ecode7 = SWIG_AsVal_double(obj6, &val7);
36547 if (!SWIG_IsOK(ecode7)) {
36548 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36549 }
36550 arg7 = static_cast< double >(val7);
36551 {
36552 PyThreadState* __tstate = wxPyBeginAllowThreads();
36553 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36554 wxPyEndAllowThreads(__tstate);
36555 if (PyErr_Occurred()) SWIG_fail;
36556 }
36557 resultobj = SWIG_Py_Void();
36558 return resultobj;
36559fail:
36560 return NULL;
36561}
36562
36563
36564SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36565 PyObject *resultobj = 0;
36566 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36567 wxPoint *arg2 = 0 ;
36568 wxSize *arg3 = 0 ;
36569 double arg4 ;
36570 double arg5 ;
36571 void *argp1 = 0 ;
36572 int res1 = 0 ;
36573 wxPoint temp2 ;
36574 wxSize temp3 ;
36575 double val4 ;
36576 int ecode4 = 0 ;
36577 double val5 ;
36578 int ecode5 = 0 ;
36579 PyObject * obj0 = 0 ;
36580 PyObject * obj1 = 0 ;
36581 PyObject * obj2 = 0 ;
36582 PyObject * obj3 = 0 ;
36583 PyObject * obj4 = 0 ;
36584 char * kwnames[] = {
36585 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36586 };
36587
36588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36590 if (!SWIG_IsOK(res1)) {
36591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36592 }
36593 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36594 {
36595 arg2 = &temp2;
36596 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36597 }
36598 {
36599 arg3 = &temp3;
36600 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36601 }
36602 ecode4 = SWIG_AsVal_double(obj3, &val4);
36603 if (!SWIG_IsOK(ecode4)) {
36604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36605 }
36606 arg4 = static_cast< double >(val4);
36607 ecode5 = SWIG_AsVal_double(obj4, &val5);
36608 if (!SWIG_IsOK(ecode5)) {
36609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36610 }
36611 arg5 = static_cast< double >(val5);
36612 {
36613 PyThreadState* __tstate = wxPyBeginAllowThreads();
36614 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36615 wxPyEndAllowThreads(__tstate);
36616 if (PyErr_Occurred()) SWIG_fail;
36617 }
36618 resultobj = SWIG_Py_Void();
36619 return resultobj;
36620fail:
36621 return NULL;
36622}
36623
36624
36625SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36626 PyObject *resultobj = 0;
36627 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36628 int arg2 ;
36629 int arg3 ;
36630 void *argp1 = 0 ;
36631 int res1 = 0 ;
36632 int val2 ;
36633 int ecode2 = 0 ;
36634 int val3 ;
36635 int ecode3 = 0 ;
36636 PyObject * obj0 = 0 ;
36637 PyObject * obj1 = 0 ;
36638 PyObject * obj2 = 0 ;
36639 char * kwnames[] = {
36640 (char *) "self",(char *) "x",(char *) "y", NULL
36641 };
36642
36643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36645 if (!SWIG_IsOK(res1)) {
36646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36647 }
36648 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36649 ecode2 = SWIG_AsVal_int(obj1, &val2);
36650 if (!SWIG_IsOK(ecode2)) {
36651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36652 }
36653 arg2 = static_cast< int >(val2);
36654 ecode3 = SWIG_AsVal_int(obj2, &val3);
36655 if (!SWIG_IsOK(ecode3)) {
36656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36657 }
36658 arg3 = static_cast< int >(val3);
36659 {
36660 PyThreadState* __tstate = wxPyBeginAllowThreads();
36661 (arg1)->DrawPoint(arg2,arg3);
36662 wxPyEndAllowThreads(__tstate);
36663 if (PyErr_Occurred()) SWIG_fail;
36664 }
36665 resultobj = SWIG_Py_Void();
36666 return resultobj;
36667fail:
36668 return NULL;
36669}
36670
36671
36672SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36673 PyObject *resultobj = 0;
36674 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36675 wxPoint *arg2 = 0 ;
36676 void *argp1 = 0 ;
36677 int res1 = 0 ;
36678 wxPoint temp2 ;
36679 PyObject * obj0 = 0 ;
36680 PyObject * obj1 = 0 ;
36681 char * kwnames[] = {
36682 (char *) "self",(char *) "pt", NULL
36683 };
36684
36685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36687 if (!SWIG_IsOK(res1)) {
36688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36689 }
36690 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36691 {
36692 arg2 = &temp2;
36693 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36694 }
36695 {
36696 PyThreadState* __tstate = wxPyBeginAllowThreads();
36697 (arg1)->DrawPoint((wxPoint const &)*arg2);
36698 wxPyEndAllowThreads(__tstate);
36699 if (PyErr_Occurred()) SWIG_fail;
36700 }
36701 resultobj = SWIG_Py_Void();
36702 return resultobj;
36703fail:
36704 return NULL;
36705}
36706
36707
36708SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36709 PyObject *resultobj = 0;
36710 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36711 int arg2 ;
36712 int arg3 ;
36713 int arg4 ;
36714 int arg5 ;
36715 void *argp1 = 0 ;
36716 int res1 = 0 ;
36717 int val2 ;
36718 int ecode2 = 0 ;
36719 int val3 ;
36720 int ecode3 = 0 ;
36721 int val4 ;
36722 int ecode4 = 0 ;
36723 int val5 ;
36724 int ecode5 = 0 ;
36725 PyObject * obj0 = 0 ;
36726 PyObject * obj1 = 0 ;
36727 PyObject * obj2 = 0 ;
36728 PyObject * obj3 = 0 ;
36729 PyObject * obj4 = 0 ;
36730 char * kwnames[] = {
36731 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36732 };
36733
36734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawRectangle" "', 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_DrawRectangle" "', 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_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36748 }
36749 arg3 = static_cast< int >(val3);
36750 ecode4 = SWIG_AsVal_int(obj3, &val4);
36751 if (!SWIG_IsOK(ecode4)) {
36752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36753 }
36754 arg4 = static_cast< int >(val4);
36755 ecode5 = SWIG_AsVal_int(obj4, &val5);
36756 if (!SWIG_IsOK(ecode5)) {
36757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36758 }
36759 arg5 = static_cast< int >(val5);
36760 {
36761 PyThreadState* __tstate = wxPyBeginAllowThreads();
36762 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36763 wxPyEndAllowThreads(__tstate);
36764 if (PyErr_Occurred()) SWIG_fail;
36765 }
36766 resultobj = SWIG_Py_Void();
36767 return resultobj;
36768fail:
36769 return NULL;
36770}
36771
36772
36773SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36774 PyObject *resultobj = 0;
36775 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36776 wxRect *arg2 = 0 ;
36777 void *argp1 = 0 ;
36778 int res1 = 0 ;
36779 wxRect temp2 ;
36780 PyObject * obj0 = 0 ;
36781 PyObject * obj1 = 0 ;
36782 char * kwnames[] = {
36783 (char *) "self",(char *) "rect", NULL
36784 };
36785
36786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36788 if (!SWIG_IsOK(res1)) {
36789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36790 }
36791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36792 {
36793 arg2 = &temp2;
36794 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36795 }
36796 {
36797 PyThreadState* __tstate = wxPyBeginAllowThreads();
36798 (arg1)->DrawRectangle((wxRect const &)*arg2);
36799 wxPyEndAllowThreads(__tstate);
36800 if (PyErr_Occurred()) SWIG_fail;
36801 }
36802 resultobj = SWIG_Py_Void();
36803 return resultobj;
36804fail:
36805 return NULL;
36806}
36807
36808
36809SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36810 PyObject *resultobj = 0;
36811 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36812 wxPoint *arg2 = 0 ;
36813 wxSize *arg3 = 0 ;
36814 void *argp1 = 0 ;
36815 int res1 = 0 ;
36816 wxPoint temp2 ;
36817 wxSize temp3 ;
36818 PyObject * obj0 = 0 ;
36819 PyObject * obj1 = 0 ;
36820 PyObject * obj2 = 0 ;
36821 char * kwnames[] = {
36822 (char *) "self",(char *) "pt",(char *) "sz", NULL
36823 };
36824
36825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36827 if (!SWIG_IsOK(res1)) {
36828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36829 }
36830 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36831 {
36832 arg2 = &temp2;
36833 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36834 }
36835 {
36836 arg3 = &temp3;
36837 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36838 }
36839 {
36840 PyThreadState* __tstate = wxPyBeginAllowThreads();
36841 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36842 wxPyEndAllowThreads(__tstate);
36843 if (PyErr_Occurred()) SWIG_fail;
36844 }
36845 resultobj = SWIG_Py_Void();
36846 return resultobj;
36847fail:
36848 return NULL;
36849}
36850
36851
36852SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36853 PyObject *resultobj = 0;
36854 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36855 int arg2 ;
36856 int arg3 ;
36857 int arg4 ;
36858 int arg5 ;
36859 double arg6 ;
36860 void *argp1 = 0 ;
36861 int res1 = 0 ;
36862 int val2 ;
36863 int ecode2 = 0 ;
36864 int val3 ;
36865 int ecode3 = 0 ;
36866 int val4 ;
36867 int ecode4 = 0 ;
36868 int val5 ;
36869 int ecode5 = 0 ;
36870 double val6 ;
36871 int ecode6 = 0 ;
36872 PyObject * obj0 = 0 ;
36873 PyObject * obj1 = 0 ;
36874 PyObject * obj2 = 0 ;
36875 PyObject * obj3 = 0 ;
36876 PyObject * obj4 = 0 ;
36877 PyObject * obj5 = 0 ;
36878 char * kwnames[] = {
36879 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36880 };
36881
36882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36884 if (!SWIG_IsOK(res1)) {
36885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36886 }
36887 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36888 ecode2 = SWIG_AsVal_int(obj1, &val2);
36889 if (!SWIG_IsOK(ecode2)) {
36890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36891 }
36892 arg2 = static_cast< int >(val2);
36893 ecode3 = SWIG_AsVal_int(obj2, &val3);
36894 if (!SWIG_IsOK(ecode3)) {
36895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36896 }
36897 arg3 = static_cast< int >(val3);
36898 ecode4 = SWIG_AsVal_int(obj3, &val4);
36899 if (!SWIG_IsOK(ecode4)) {
36900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36901 }
36902 arg4 = static_cast< int >(val4);
36903 ecode5 = SWIG_AsVal_int(obj4, &val5);
36904 if (!SWIG_IsOK(ecode5)) {
36905 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36906 }
36907 arg5 = static_cast< int >(val5);
36908 ecode6 = SWIG_AsVal_double(obj5, &val6);
36909 if (!SWIG_IsOK(ecode6)) {
36910 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36911 }
36912 arg6 = static_cast< double >(val6);
36913 {
36914 PyThreadState* __tstate = wxPyBeginAllowThreads();
36915 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36916 wxPyEndAllowThreads(__tstate);
36917 if (PyErr_Occurred()) SWIG_fail;
36918 }
36919 resultobj = SWIG_Py_Void();
36920 return resultobj;
36921fail:
36922 return NULL;
36923}
36924
36925
36926SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36927 PyObject *resultobj = 0;
36928 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36929 wxRect *arg2 = 0 ;
36930 double arg3 ;
36931 void *argp1 = 0 ;
36932 int res1 = 0 ;
36933 wxRect temp2 ;
36934 double val3 ;
36935 int ecode3 = 0 ;
36936 PyObject * obj0 = 0 ;
36937 PyObject * obj1 = 0 ;
36938 PyObject * obj2 = 0 ;
36939 char * kwnames[] = {
36940 (char *) "self",(char *) "r",(char *) "radius", NULL
36941 };
36942
36943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36945 if (!SWIG_IsOK(res1)) {
36946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36947 }
36948 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36949 {
36950 arg2 = &temp2;
36951 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36952 }
36953 ecode3 = SWIG_AsVal_double(obj2, &val3);
36954 if (!SWIG_IsOK(ecode3)) {
36955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36956 }
36957 arg3 = static_cast< double >(val3);
36958 {
36959 PyThreadState* __tstate = wxPyBeginAllowThreads();
36960 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36961 wxPyEndAllowThreads(__tstate);
36962 if (PyErr_Occurred()) SWIG_fail;
36963 }
36964 resultobj = SWIG_Py_Void();
36965 return resultobj;
36966fail:
36967 return NULL;
36968}
36969
36970
36971SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36972 PyObject *resultobj = 0;
36973 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36974 wxPoint *arg2 = 0 ;
36975 wxSize *arg3 = 0 ;
36976 double arg4 ;
36977 void *argp1 = 0 ;
36978 int res1 = 0 ;
36979 wxPoint temp2 ;
36980 wxSize temp3 ;
36981 double val4 ;
36982 int ecode4 = 0 ;
36983 PyObject * obj0 = 0 ;
36984 PyObject * obj1 = 0 ;
36985 PyObject * obj2 = 0 ;
36986 PyObject * obj3 = 0 ;
36987 char * kwnames[] = {
36988 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36989 };
36990
36991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36993 if (!SWIG_IsOK(res1)) {
36994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36995 }
36996 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36997 {
36998 arg2 = &temp2;
36999 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37000 }
37001 {
37002 arg3 = &temp3;
37003 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37004 }
37005 ecode4 = SWIG_AsVal_double(obj3, &val4);
37006 if (!SWIG_IsOK(ecode4)) {
37007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37008 }
37009 arg4 = static_cast< double >(val4);
37010 {
37011 PyThreadState* __tstate = wxPyBeginAllowThreads();
37012 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37013 wxPyEndAllowThreads(__tstate);
37014 if (PyErr_Occurred()) SWIG_fail;
37015 }
37016 resultobj = SWIG_Py_Void();
37017 return resultobj;
37018fail:
37019 return NULL;
37020}
37021
37022
37023SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37024 PyObject *resultobj = 0;
37025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37026 int arg2 ;
37027 int arg3 ;
37028 int arg4 ;
37029 void *argp1 = 0 ;
37030 int res1 = 0 ;
37031 int val2 ;
37032 int ecode2 = 0 ;
37033 int val3 ;
37034 int ecode3 = 0 ;
37035 int val4 ;
37036 int ecode4 = 0 ;
37037 PyObject * obj0 = 0 ;
37038 PyObject * obj1 = 0 ;
37039 PyObject * obj2 = 0 ;
37040 PyObject * obj3 = 0 ;
37041 char * kwnames[] = {
37042 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37043 };
37044
37045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37047 if (!SWIG_IsOK(res1)) {
37048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37049 }
37050 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37051 ecode2 = SWIG_AsVal_int(obj1, &val2);
37052 if (!SWIG_IsOK(ecode2)) {
37053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37054 }
37055 arg2 = static_cast< int >(val2);
37056 ecode3 = SWIG_AsVal_int(obj2, &val3);
37057 if (!SWIG_IsOK(ecode3)) {
37058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37059 }
37060 arg3 = static_cast< int >(val3);
37061 ecode4 = SWIG_AsVal_int(obj3, &val4);
37062 if (!SWIG_IsOK(ecode4)) {
37063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37064 }
37065 arg4 = static_cast< int >(val4);
37066 {
37067 PyThreadState* __tstate = wxPyBeginAllowThreads();
37068 (arg1)->DrawCircle(arg2,arg3,arg4);
37069 wxPyEndAllowThreads(__tstate);
37070 if (PyErr_Occurred()) SWIG_fail;
37071 }
37072 resultobj = SWIG_Py_Void();
37073 return resultobj;
37074fail:
37075 return NULL;
37076}
37077
37078
37079SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37080 PyObject *resultobj = 0;
37081 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37082 wxPoint *arg2 = 0 ;
37083 int arg3 ;
37084 void *argp1 = 0 ;
37085 int res1 = 0 ;
37086 wxPoint temp2 ;
37087 int val3 ;
37088 int ecode3 = 0 ;
37089 PyObject * obj0 = 0 ;
37090 PyObject * obj1 = 0 ;
37091 PyObject * obj2 = 0 ;
37092 char * kwnames[] = {
37093 (char *) "self",(char *) "pt",(char *) "radius", NULL
37094 };
37095
37096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37098 if (!SWIG_IsOK(res1)) {
37099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37100 }
37101 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37102 {
37103 arg2 = &temp2;
37104 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37105 }
37106 ecode3 = SWIG_AsVal_int(obj2, &val3);
37107 if (!SWIG_IsOK(ecode3)) {
37108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37109 }
37110 arg3 = static_cast< int >(val3);
37111 {
37112 PyThreadState* __tstate = wxPyBeginAllowThreads();
37113 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37114 wxPyEndAllowThreads(__tstate);
37115 if (PyErr_Occurred()) SWIG_fail;
37116 }
37117 resultobj = SWIG_Py_Void();
37118 return resultobj;
37119fail:
37120 return NULL;
37121}
37122
37123
37124SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37125 PyObject *resultobj = 0;
37126 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37127 int arg2 ;
37128 int arg3 ;
37129 int arg4 ;
37130 int arg5 ;
37131 void *argp1 = 0 ;
37132 int res1 = 0 ;
37133 int val2 ;
37134 int ecode2 = 0 ;
37135 int val3 ;
37136 int ecode3 = 0 ;
37137 int val4 ;
37138 int ecode4 = 0 ;
37139 int val5 ;
37140 int ecode5 = 0 ;
37141 PyObject * obj0 = 0 ;
37142 PyObject * obj1 = 0 ;
37143 PyObject * obj2 = 0 ;
37144 PyObject * obj3 = 0 ;
37145 PyObject * obj4 = 0 ;
37146 char * kwnames[] = {
37147 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37148 };
37149
37150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37152 if (!SWIG_IsOK(res1)) {
37153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37154 }
37155 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37156 ecode2 = SWIG_AsVal_int(obj1, &val2);
37157 if (!SWIG_IsOK(ecode2)) {
37158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37159 }
37160 arg2 = static_cast< int >(val2);
37161 ecode3 = SWIG_AsVal_int(obj2, &val3);
37162 if (!SWIG_IsOK(ecode3)) {
37163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37164 }
37165 arg3 = static_cast< int >(val3);
37166 ecode4 = SWIG_AsVal_int(obj3, &val4);
37167 if (!SWIG_IsOK(ecode4)) {
37168 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37169 }
37170 arg4 = static_cast< int >(val4);
37171 ecode5 = SWIG_AsVal_int(obj4, &val5);
37172 if (!SWIG_IsOK(ecode5)) {
37173 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37174 }
37175 arg5 = static_cast< int >(val5);
37176 {
37177 PyThreadState* __tstate = wxPyBeginAllowThreads();
37178 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37179 wxPyEndAllowThreads(__tstate);
37180 if (PyErr_Occurred()) SWIG_fail;
37181 }
37182 resultobj = SWIG_Py_Void();
37183 return resultobj;
37184fail:
37185 return NULL;
37186}
37187
37188
37189SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37190 PyObject *resultobj = 0;
37191 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37192 wxRect *arg2 = 0 ;
37193 void *argp1 = 0 ;
37194 int res1 = 0 ;
37195 wxRect temp2 ;
37196 PyObject * obj0 = 0 ;
37197 PyObject * obj1 = 0 ;
37198 char * kwnames[] = {
37199 (char *) "self",(char *) "rect", NULL
37200 };
37201
37202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37204 if (!SWIG_IsOK(res1)) {
37205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37206 }
37207 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37208 {
37209 arg2 = &temp2;
37210 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37211 }
37212 {
37213 PyThreadState* __tstate = wxPyBeginAllowThreads();
37214 (arg1)->DrawEllipse((wxRect const &)*arg2);
37215 wxPyEndAllowThreads(__tstate);
37216 if (PyErr_Occurred()) SWIG_fail;
37217 }
37218 resultobj = SWIG_Py_Void();
37219 return resultobj;
37220fail:
37221 return NULL;
37222}
37223
37224
37225SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37226 PyObject *resultobj = 0;
37227 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37228 wxPoint *arg2 = 0 ;
37229 wxSize *arg3 = 0 ;
37230 void *argp1 = 0 ;
37231 int res1 = 0 ;
37232 wxPoint temp2 ;
37233 wxSize temp3 ;
37234 PyObject * obj0 = 0 ;
37235 PyObject * obj1 = 0 ;
37236 PyObject * obj2 = 0 ;
37237 char * kwnames[] = {
37238 (char *) "self",(char *) "pt",(char *) "sz", NULL
37239 };
37240
37241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37243 if (!SWIG_IsOK(res1)) {
37244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37245 }
37246 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37247 {
37248 arg2 = &temp2;
37249 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37250 }
37251 {
37252 arg3 = &temp3;
37253 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37254 }
37255 {
37256 PyThreadState* __tstate = wxPyBeginAllowThreads();
37257 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37258 wxPyEndAllowThreads(__tstate);
37259 if (PyErr_Occurred()) SWIG_fail;
37260 }
37261 resultobj = SWIG_Py_Void();
37262 return resultobj;
37263fail:
37264 return NULL;
37265}
37266
37267
37268SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37269 PyObject *resultobj = 0;
37270 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37271 wxIcon *arg2 = 0 ;
37272 int arg3 ;
37273 int arg4 ;
37274 void *argp1 = 0 ;
37275 int res1 = 0 ;
37276 void *argp2 = 0 ;
37277 int res2 = 0 ;
37278 int val3 ;
37279 int ecode3 = 0 ;
37280 int val4 ;
37281 int ecode4 = 0 ;
37282 PyObject * obj0 = 0 ;
37283 PyObject * obj1 = 0 ;
37284 PyObject * obj2 = 0 ;
37285 PyObject * obj3 = 0 ;
37286 char * kwnames[] = {
37287 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37288 };
37289
37290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37292 if (!SWIG_IsOK(res1)) {
37293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37294 }
37295 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37297 if (!SWIG_IsOK(res2)) {
37298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37299 }
37300 if (!argp2) {
37301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37302 }
37303 arg2 = reinterpret_cast< wxIcon * >(argp2);
37304 ecode3 = SWIG_AsVal_int(obj2, &val3);
37305 if (!SWIG_IsOK(ecode3)) {
37306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37307 }
37308 arg3 = static_cast< int >(val3);
37309 ecode4 = SWIG_AsVal_int(obj3, &val4);
37310 if (!SWIG_IsOK(ecode4)) {
37311 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37312 }
37313 arg4 = static_cast< int >(val4);
37314 {
37315 PyThreadState* __tstate = wxPyBeginAllowThreads();
37316 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37317 wxPyEndAllowThreads(__tstate);
37318 if (PyErr_Occurred()) SWIG_fail;
37319 }
37320 resultobj = SWIG_Py_Void();
37321 return resultobj;
37322fail:
37323 return NULL;
37324}
37325
37326
37327SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37328 PyObject *resultobj = 0;
37329 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37330 wxIcon *arg2 = 0 ;
37331 wxPoint *arg3 = 0 ;
37332 void *argp1 = 0 ;
37333 int res1 = 0 ;
37334 void *argp2 = 0 ;
37335 int res2 = 0 ;
37336 wxPoint temp3 ;
37337 PyObject * obj0 = 0 ;
37338 PyObject * obj1 = 0 ;
37339 PyObject * obj2 = 0 ;
37340 char * kwnames[] = {
37341 (char *) "self",(char *) "icon",(char *) "pt", NULL
37342 };
37343
37344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37346 if (!SWIG_IsOK(res1)) {
37347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37348 }
37349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37351 if (!SWIG_IsOK(res2)) {
37352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37353 }
37354 if (!argp2) {
37355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37356 }
37357 arg2 = reinterpret_cast< wxIcon * >(argp2);
37358 {
37359 arg3 = &temp3;
37360 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37361 }
37362 {
37363 PyThreadState* __tstate = wxPyBeginAllowThreads();
37364 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37365 wxPyEndAllowThreads(__tstate);
37366 if (PyErr_Occurred()) SWIG_fail;
37367 }
37368 resultobj = SWIG_Py_Void();
37369 return resultobj;
37370fail:
37371 return NULL;
37372}
37373
37374
37375SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37376 PyObject *resultobj = 0;
37377 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37378 wxBitmap *arg2 = 0 ;
37379 int arg3 ;
37380 int arg4 ;
37381 bool arg5 = (bool) false ;
37382 void *argp1 = 0 ;
37383 int res1 = 0 ;
37384 void *argp2 = 0 ;
37385 int res2 = 0 ;
37386 int val3 ;
37387 int ecode3 = 0 ;
37388 int val4 ;
37389 int ecode4 = 0 ;
37390 bool val5 ;
37391 int ecode5 = 0 ;
37392 PyObject * obj0 = 0 ;
37393 PyObject * obj1 = 0 ;
37394 PyObject * obj2 = 0 ;
37395 PyObject * obj3 = 0 ;
37396 PyObject * obj4 = 0 ;
37397 char * kwnames[] = {
37398 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37399 };
37400
37401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37403 if (!SWIG_IsOK(res1)) {
37404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37405 }
37406 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37407 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37408 if (!SWIG_IsOK(res2)) {
37409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37410 }
37411 if (!argp2) {
37412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37413 }
37414 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37415 ecode3 = SWIG_AsVal_int(obj2, &val3);
37416 if (!SWIG_IsOK(ecode3)) {
37417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37418 }
37419 arg3 = static_cast< int >(val3);
37420 ecode4 = SWIG_AsVal_int(obj3, &val4);
37421 if (!SWIG_IsOK(ecode4)) {
37422 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37423 }
37424 arg4 = static_cast< int >(val4);
37425 if (obj4) {
37426 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37427 if (!SWIG_IsOK(ecode5)) {
37428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37429 }
37430 arg5 = static_cast< bool >(val5);
37431 }
37432 {
37433 PyThreadState* __tstate = wxPyBeginAllowThreads();
37434 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37435 wxPyEndAllowThreads(__tstate);
37436 if (PyErr_Occurred()) SWIG_fail;
37437 }
37438 resultobj = SWIG_Py_Void();
37439 return resultobj;
37440fail:
37441 return NULL;
37442}
37443
37444
37445SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37446 PyObject *resultobj = 0;
37447 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37448 wxBitmap *arg2 = 0 ;
37449 wxPoint *arg3 = 0 ;
37450 bool arg4 = (bool) false ;
37451 void *argp1 = 0 ;
37452 int res1 = 0 ;
37453 void *argp2 = 0 ;
37454 int res2 = 0 ;
37455 wxPoint temp3 ;
37456 bool val4 ;
37457 int ecode4 = 0 ;
37458 PyObject * obj0 = 0 ;
37459 PyObject * obj1 = 0 ;
37460 PyObject * obj2 = 0 ;
37461 PyObject * obj3 = 0 ;
37462 char * kwnames[] = {
37463 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37464 };
37465
37466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37468 if (!SWIG_IsOK(res1)) {
37469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37470 }
37471 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37473 if (!SWIG_IsOK(res2)) {
37474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37475 }
37476 if (!argp2) {
37477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37478 }
37479 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37480 {
37481 arg3 = &temp3;
37482 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37483 }
37484 if (obj3) {
37485 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37486 if (!SWIG_IsOK(ecode4)) {
37487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37488 }
37489 arg4 = static_cast< bool >(val4);
37490 }
37491 {
37492 PyThreadState* __tstate = wxPyBeginAllowThreads();
37493 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37494 wxPyEndAllowThreads(__tstate);
37495 if (PyErr_Occurred()) SWIG_fail;
37496 }
37497 resultobj = SWIG_Py_Void();
37498 return resultobj;
37499fail:
37500 return NULL;
37501}
37502
37503
37504SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37505 PyObject *resultobj = 0;
37506 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37507 wxString *arg2 = 0 ;
37508 int arg3 ;
37509 int arg4 ;
37510 void *argp1 = 0 ;
37511 int res1 = 0 ;
37512 bool temp2 = false ;
37513 int val3 ;
37514 int ecode3 = 0 ;
37515 int val4 ;
37516 int ecode4 = 0 ;
37517 PyObject * obj0 = 0 ;
37518 PyObject * obj1 = 0 ;
37519 PyObject * obj2 = 0 ;
37520 PyObject * obj3 = 0 ;
37521 char * kwnames[] = {
37522 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37523 };
37524
37525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37527 if (!SWIG_IsOK(res1)) {
37528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37529 }
37530 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37531 {
37532 arg2 = wxString_in_helper(obj1);
37533 if (arg2 == NULL) SWIG_fail;
37534 temp2 = true;
37535 }
37536 ecode3 = SWIG_AsVal_int(obj2, &val3);
37537 if (!SWIG_IsOK(ecode3)) {
37538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37539 }
37540 arg3 = static_cast< int >(val3);
37541 ecode4 = SWIG_AsVal_int(obj3, &val4);
37542 if (!SWIG_IsOK(ecode4)) {
37543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37544 }
37545 arg4 = static_cast< int >(val4);
37546 {
37547 PyThreadState* __tstate = wxPyBeginAllowThreads();
37548 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37549 wxPyEndAllowThreads(__tstate);
37550 if (PyErr_Occurred()) SWIG_fail;
37551 }
37552 resultobj = SWIG_Py_Void();
37553 {
37554 if (temp2)
37555 delete arg2;
37556 }
37557 return resultobj;
37558fail:
37559 {
37560 if (temp2)
37561 delete arg2;
37562 }
37563 return NULL;
37564}
37565
37566
37567SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37568 PyObject *resultobj = 0;
37569 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37570 wxString *arg2 = 0 ;
37571 wxPoint *arg3 = 0 ;
37572 void *argp1 = 0 ;
37573 int res1 = 0 ;
37574 bool temp2 = false ;
37575 wxPoint temp3 ;
37576 PyObject * obj0 = 0 ;
37577 PyObject * obj1 = 0 ;
37578 PyObject * obj2 = 0 ;
37579 char * kwnames[] = {
37580 (char *) "self",(char *) "text",(char *) "pt", NULL
37581 };
37582
37583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37585 if (!SWIG_IsOK(res1)) {
37586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37587 }
37588 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37589 {
37590 arg2 = wxString_in_helper(obj1);
37591 if (arg2 == NULL) SWIG_fail;
37592 temp2 = true;
37593 }
37594 {
37595 arg3 = &temp3;
37596 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37597 }
37598 {
37599 PyThreadState* __tstate = wxPyBeginAllowThreads();
37600 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37601 wxPyEndAllowThreads(__tstate);
37602 if (PyErr_Occurred()) SWIG_fail;
37603 }
37604 resultobj = SWIG_Py_Void();
37605 {
37606 if (temp2)
37607 delete arg2;
37608 }
37609 return resultobj;
37610fail:
37611 {
37612 if (temp2)
37613 delete arg2;
37614 }
37615 return NULL;
37616}
37617
37618
37619SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37620 PyObject *resultobj = 0;
37621 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37622 wxString *arg2 = 0 ;
37623 int arg3 ;
37624 int arg4 ;
37625 double arg5 ;
37626 void *argp1 = 0 ;
37627 int res1 = 0 ;
37628 bool temp2 = false ;
37629 int val3 ;
37630 int ecode3 = 0 ;
37631 int val4 ;
37632 int ecode4 = 0 ;
37633 double val5 ;
37634 int ecode5 = 0 ;
37635 PyObject * obj0 = 0 ;
37636 PyObject * obj1 = 0 ;
37637 PyObject * obj2 = 0 ;
37638 PyObject * obj3 = 0 ;
37639 PyObject * obj4 = 0 ;
37640 char * kwnames[] = {
37641 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37642 };
37643
37644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37646 if (!SWIG_IsOK(res1)) {
37647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37648 }
37649 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37650 {
37651 arg2 = wxString_in_helper(obj1);
37652 if (arg2 == NULL) SWIG_fail;
37653 temp2 = true;
37654 }
37655 ecode3 = SWIG_AsVal_int(obj2, &val3);
37656 if (!SWIG_IsOK(ecode3)) {
37657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37658 }
37659 arg3 = static_cast< int >(val3);
37660 ecode4 = SWIG_AsVal_int(obj3, &val4);
37661 if (!SWIG_IsOK(ecode4)) {
37662 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37663 }
37664 arg4 = static_cast< int >(val4);
37665 ecode5 = SWIG_AsVal_double(obj4, &val5);
37666 if (!SWIG_IsOK(ecode5)) {
37667 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37668 }
37669 arg5 = static_cast< double >(val5);
37670 {
37671 PyThreadState* __tstate = wxPyBeginAllowThreads();
37672 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37673 wxPyEndAllowThreads(__tstate);
37674 if (PyErr_Occurred()) SWIG_fail;
37675 }
37676 resultobj = SWIG_Py_Void();
37677 {
37678 if (temp2)
37679 delete arg2;
37680 }
37681 return resultobj;
37682fail:
37683 {
37684 if (temp2)
37685 delete arg2;
37686 }
37687 return NULL;
37688}
37689
37690
37691SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37692 PyObject *resultobj = 0;
37693 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37694 wxString *arg2 = 0 ;
37695 wxPoint *arg3 = 0 ;
37696 double arg4 ;
37697 void *argp1 = 0 ;
37698 int res1 = 0 ;
37699 bool temp2 = false ;
37700 wxPoint temp3 ;
37701 double val4 ;
37702 int ecode4 = 0 ;
37703 PyObject * obj0 = 0 ;
37704 PyObject * obj1 = 0 ;
37705 PyObject * obj2 = 0 ;
37706 PyObject * obj3 = 0 ;
37707 char * kwnames[] = {
37708 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37709 };
37710
37711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37713 if (!SWIG_IsOK(res1)) {
37714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37715 }
37716 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37717 {
37718 arg2 = wxString_in_helper(obj1);
37719 if (arg2 == NULL) SWIG_fail;
37720 temp2 = true;
37721 }
37722 {
37723 arg3 = &temp3;
37724 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37725 }
37726 ecode4 = SWIG_AsVal_double(obj3, &val4);
37727 if (!SWIG_IsOK(ecode4)) {
37728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37729 }
37730 arg4 = static_cast< double >(val4);
37731 {
37732 PyThreadState* __tstate = wxPyBeginAllowThreads();
37733 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37734 wxPyEndAllowThreads(__tstate);
37735 if (PyErr_Occurred()) SWIG_fail;
37736 }
37737 resultobj = SWIG_Py_Void();
37738 {
37739 if (temp2)
37740 delete arg2;
37741 }
37742 return resultobj;
37743fail:
37744 {
37745 if (temp2)
37746 delete arg2;
37747 }
37748 return NULL;
37749}
37750
37751
37752SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37753 PyObject *resultobj = 0;
37754 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37755 int arg2 ;
37756 wxPoint *arg3 = (wxPoint *) 0 ;
37757 int arg4 = (int) 0 ;
37758 int arg5 = (int) 0 ;
37759 void *argp1 = 0 ;
37760 int res1 = 0 ;
37761 int val4 ;
37762 int ecode4 = 0 ;
37763 int val5 ;
37764 int ecode5 = 0 ;
37765 PyObject * obj0 = 0 ;
37766 PyObject * obj1 = 0 ;
37767 PyObject * obj2 = 0 ;
37768 PyObject * obj3 = 0 ;
37769 char * kwnames[] = {
37770 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37771 };
37772
37773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37775 if (!SWIG_IsOK(res1)) {
37776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37777 }
37778 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37779 {
37780 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37781 if (arg3 == NULL) SWIG_fail;
37782 }
37783 if (obj2) {
37784 ecode4 = SWIG_AsVal_int(obj2, &val4);
37785 if (!SWIG_IsOK(ecode4)) {
37786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37787 }
37788 arg4 = static_cast< int >(val4);
37789 }
37790 if (obj3) {
37791 ecode5 = SWIG_AsVal_int(obj3, &val5);
37792 if (!SWIG_IsOK(ecode5)) {
37793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37794 }
37795 arg5 = static_cast< int >(val5);
37796 }
37797 {
37798 PyThreadState* __tstate = wxPyBeginAllowThreads();
37799 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37800 wxPyEndAllowThreads(__tstate);
37801 if (PyErr_Occurred()) SWIG_fail;
37802 }
37803 resultobj = SWIG_Py_Void();
37804 {
37805 if (arg3) delete [] arg3;
37806 }
37807 return resultobj;
37808fail:
37809 {
37810 if (arg3) delete [] arg3;
37811 }
37812 return NULL;
37813}
37814
37815
37816SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37817 PyObject *resultobj = 0;
37818 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37819 int arg2 ;
37820 wxPoint *arg3 = (wxPoint *) 0 ;
37821 int arg4 = (int) 0 ;
37822 int arg5 = (int) 0 ;
37823 int arg6 = (int) wxODDEVEN_RULE ;
37824 void *argp1 = 0 ;
37825 int res1 = 0 ;
37826 int val4 ;
37827 int ecode4 = 0 ;
37828 int val5 ;
37829 int ecode5 = 0 ;
37830 int val6 ;
37831 int ecode6 = 0 ;
37832 PyObject * obj0 = 0 ;
37833 PyObject * obj1 = 0 ;
37834 PyObject * obj2 = 0 ;
37835 PyObject * obj3 = 0 ;
37836 PyObject * obj4 = 0 ;
37837 char * kwnames[] = {
37838 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37839 };
37840
37841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37843 if (!SWIG_IsOK(res1)) {
37844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37845 }
37846 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37847 {
37848 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37849 if (arg3 == NULL) SWIG_fail;
37850 }
37851 if (obj2) {
37852 ecode4 = SWIG_AsVal_int(obj2, &val4);
37853 if (!SWIG_IsOK(ecode4)) {
37854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37855 }
37856 arg4 = static_cast< int >(val4);
37857 }
37858 if (obj3) {
37859 ecode5 = SWIG_AsVal_int(obj3, &val5);
37860 if (!SWIG_IsOK(ecode5)) {
37861 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37862 }
37863 arg5 = static_cast< int >(val5);
37864 }
37865 if (obj4) {
37866 ecode6 = SWIG_AsVal_int(obj4, &val6);
37867 if (!SWIG_IsOK(ecode6)) {
37868 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37869 }
37870 arg6 = static_cast< int >(val6);
37871 }
37872 {
37873 PyThreadState* __tstate = wxPyBeginAllowThreads();
37874 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37875 wxPyEndAllowThreads(__tstate);
37876 if (PyErr_Occurred()) SWIG_fail;
37877 }
37878 resultobj = SWIG_Py_Void();
37879 {
37880 if (arg3) delete [] arg3;
37881 }
37882 return resultobj;
37883fail:
37884 {
37885 if (arg3) delete [] arg3;
37886 }
37887 return NULL;
37888}
37889
37890
37891SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37892 PyObject *resultobj = 0;
37893 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37894 wxString *arg2 = 0 ;
37895 wxRect *arg3 = 0 ;
37896 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37897 int arg5 = (int) -1 ;
37898 void *argp1 = 0 ;
37899 int res1 = 0 ;
37900 bool temp2 = false ;
37901 wxRect temp3 ;
37902 int val4 ;
37903 int ecode4 = 0 ;
37904 int val5 ;
37905 int ecode5 = 0 ;
37906 PyObject * obj0 = 0 ;
37907 PyObject * obj1 = 0 ;
37908 PyObject * obj2 = 0 ;
37909 PyObject * obj3 = 0 ;
37910 PyObject * obj4 = 0 ;
37911 char * kwnames[] = {
37912 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37913 };
37914
37915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37917 if (!SWIG_IsOK(res1)) {
37918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37919 }
37920 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37921 {
37922 arg2 = wxString_in_helper(obj1);
37923 if (arg2 == NULL) SWIG_fail;
37924 temp2 = true;
37925 }
37926 {
37927 arg3 = &temp3;
37928 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37929 }
37930 if (obj3) {
37931 ecode4 = SWIG_AsVal_int(obj3, &val4);
37932 if (!SWIG_IsOK(ecode4)) {
37933 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37934 }
37935 arg4 = static_cast< int >(val4);
37936 }
37937 if (obj4) {
37938 ecode5 = SWIG_AsVal_int(obj4, &val5);
37939 if (!SWIG_IsOK(ecode5)) {
37940 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37941 }
37942 arg5 = static_cast< int >(val5);
37943 }
37944 {
37945 PyThreadState* __tstate = wxPyBeginAllowThreads();
37946 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37947 wxPyEndAllowThreads(__tstate);
37948 if (PyErr_Occurred()) SWIG_fail;
37949 }
37950 resultobj = SWIG_Py_Void();
37951 {
37952 if (temp2)
37953 delete arg2;
37954 }
37955 return resultobj;
37956fail:
37957 {
37958 if (temp2)
37959 delete arg2;
37960 }
37961 return NULL;
37962}
37963
37964
37965SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37966 PyObject *resultobj = 0;
37967 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37968 wxString *arg2 = 0 ;
37969 wxBitmap *arg3 = 0 ;
37970 wxRect *arg4 = 0 ;
37971 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37972 int arg6 = (int) -1 ;
37973 void *argp1 = 0 ;
37974 int res1 = 0 ;
37975 bool temp2 = false ;
37976 void *argp3 = 0 ;
37977 int res3 = 0 ;
37978 wxRect temp4 ;
37979 int val5 ;
37980 int ecode5 = 0 ;
37981 int val6 ;
37982 int ecode6 = 0 ;
37983 PyObject * obj0 = 0 ;
37984 PyObject * obj1 = 0 ;
37985 PyObject * obj2 = 0 ;
37986 PyObject * obj3 = 0 ;
37987 PyObject * obj4 = 0 ;
37988 PyObject * obj5 = 0 ;
37989 char * kwnames[] = {
37990 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37991 };
37992
37993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37995 if (!SWIG_IsOK(res1)) {
37996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37997 }
37998 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37999 {
38000 arg2 = wxString_in_helper(obj1);
38001 if (arg2 == NULL) SWIG_fail;
38002 temp2 = true;
38003 }
38004 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38005 if (!SWIG_IsOK(res3)) {
38006 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38007 }
38008 if (!argp3) {
38009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38010 }
38011 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38012 {
38013 arg4 = &temp4;
38014 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38015 }
38016 if (obj4) {
38017 ecode5 = SWIG_AsVal_int(obj4, &val5);
38018 if (!SWIG_IsOK(ecode5)) {
38019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38020 }
38021 arg5 = static_cast< int >(val5);
38022 }
38023 if (obj5) {
38024 ecode6 = SWIG_AsVal_int(obj5, &val6);
38025 if (!SWIG_IsOK(ecode6)) {
38026 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38027 }
38028 arg6 = static_cast< int >(val6);
38029 }
38030 {
38031 PyThreadState* __tstate = wxPyBeginAllowThreads();
38032 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38033 wxPyEndAllowThreads(__tstate);
38034 if (PyErr_Occurred()) SWIG_fail;
38035 }
38036 resultobj = SWIG_Py_Void();
38037 {
38038 if (temp2)
38039 delete arg2;
38040 }
38041 return resultobj;
38042fail:
38043 {
38044 if (temp2)
38045 delete arg2;
38046 }
38047 return NULL;
38048}
38049
38050
38051SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38052 PyObject *resultobj = 0;
38053 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38054 int arg2 ;
38055 wxPoint *arg3 = (wxPoint *) 0 ;
38056 void *argp1 = 0 ;
38057 int res1 = 0 ;
38058 PyObject * obj0 = 0 ;
38059 PyObject * obj1 = 0 ;
38060 char * kwnames[] = {
38061 (char *) "self",(char *) "points", NULL
38062 };
38063
38064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38066 if (!SWIG_IsOK(res1)) {
38067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38068 }
38069 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38070 {
38071 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38072 if (arg3 == NULL) SWIG_fail;
38073 }
38074 {
38075 PyThreadState* __tstate = wxPyBeginAllowThreads();
38076 (arg1)->DrawSpline(arg2,arg3);
38077 wxPyEndAllowThreads(__tstate);
38078 if (PyErr_Occurred()) SWIG_fail;
38079 }
38080 resultobj = SWIG_Py_Void();
38081 {
38082 if (arg3) delete [] arg3;
38083 }
38084 return resultobj;
38085fail:
38086 {
38087 if (arg3) delete [] arg3;
38088 }
38089 return NULL;
38090}
38091
38092
38093SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38094 PyObject *resultobj = 0;
38095 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38096 void *argp1 = 0 ;
38097 int res1 = 0 ;
38098 PyObject *swig_obj[1] ;
38099
38100 if (!args) SWIG_fail;
38101 swig_obj[0] = args;
38102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38103 if (!SWIG_IsOK(res1)) {
38104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38105 }
38106 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38107 {
38108 PyThreadState* __tstate = wxPyBeginAllowThreads();
38109 (arg1)->Clear();
38110 wxPyEndAllowThreads(__tstate);
38111 if (PyErr_Occurred()) SWIG_fail;
38112 }
38113 resultobj = SWIG_Py_Void();
38114 return resultobj;
38115fail:
38116 return NULL;
38117}
38118
38119
38120SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38121 PyObject *resultobj = 0;
38122 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38123 wxFont *arg2 = 0 ;
38124 void *argp1 = 0 ;
38125 int res1 = 0 ;
38126 void *argp2 = 0 ;
38127 int res2 = 0 ;
38128 PyObject * obj0 = 0 ;
38129 PyObject * obj1 = 0 ;
38130 char * kwnames[] = {
38131 (char *) "self",(char *) "font", NULL
38132 };
38133
38134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38136 if (!SWIG_IsOK(res1)) {
38137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38138 }
38139 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38140 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38141 if (!SWIG_IsOK(res2)) {
38142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38143 }
38144 if (!argp2) {
38145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38146 }
38147 arg2 = reinterpret_cast< wxFont * >(argp2);
38148 {
38149 PyThreadState* __tstate = wxPyBeginAllowThreads();
38150 (arg1)->SetFont((wxFont const &)*arg2);
38151 wxPyEndAllowThreads(__tstate);
38152 if (PyErr_Occurred()) SWIG_fail;
38153 }
38154 resultobj = SWIG_Py_Void();
38155 return resultobj;
38156fail:
38157 return NULL;
38158}
38159
38160
38161SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38162 PyObject *resultobj = 0;
38163 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38164 wxPen *arg2 = 0 ;
38165 void *argp1 = 0 ;
38166 int res1 = 0 ;
38167 void *argp2 = 0 ;
38168 int res2 = 0 ;
38169 PyObject * obj0 = 0 ;
38170 PyObject * obj1 = 0 ;
38171 char * kwnames[] = {
38172 (char *) "self",(char *) "pen", NULL
38173 };
38174
38175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38177 if (!SWIG_IsOK(res1)) {
38178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38179 }
38180 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38182 if (!SWIG_IsOK(res2)) {
38183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38184 }
38185 if (!argp2) {
38186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38187 }
38188 arg2 = reinterpret_cast< wxPen * >(argp2);
38189 {
38190 PyThreadState* __tstate = wxPyBeginAllowThreads();
38191 (arg1)->SetPen((wxPen const &)*arg2);
38192 wxPyEndAllowThreads(__tstate);
38193 if (PyErr_Occurred()) SWIG_fail;
38194 }
38195 resultobj = SWIG_Py_Void();
38196 return resultobj;
38197fail:
38198 return NULL;
38199}
38200
38201
38202SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38203 PyObject *resultobj = 0;
38204 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38205 wxBrush *arg2 = 0 ;
38206 void *argp1 = 0 ;
38207 int res1 = 0 ;
38208 void *argp2 = 0 ;
38209 int res2 = 0 ;
38210 PyObject * obj0 = 0 ;
38211 PyObject * obj1 = 0 ;
38212 char * kwnames[] = {
38213 (char *) "self",(char *) "brush", NULL
38214 };
38215
38216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38218 if (!SWIG_IsOK(res1)) {
38219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38220 }
38221 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38223 if (!SWIG_IsOK(res2)) {
38224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38225 }
38226 if (!argp2) {
38227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38228 }
38229 arg2 = reinterpret_cast< wxBrush * >(argp2);
38230 {
38231 PyThreadState* __tstate = wxPyBeginAllowThreads();
38232 (arg1)->SetBrush((wxBrush const &)*arg2);
38233 wxPyEndAllowThreads(__tstate);
38234 if (PyErr_Occurred()) SWIG_fail;
38235 }
38236 resultobj = SWIG_Py_Void();
38237 return resultobj;
38238fail:
38239 return NULL;
38240}
38241
38242
38243SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38244 PyObject *resultobj = 0;
38245 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38246 wxBrush *arg2 = 0 ;
38247 void *argp1 = 0 ;
38248 int res1 = 0 ;
38249 void *argp2 = 0 ;
38250 int res2 = 0 ;
38251 PyObject * obj0 = 0 ;
38252 PyObject * obj1 = 0 ;
38253 char * kwnames[] = {
38254 (char *) "self",(char *) "brush", NULL
38255 };
38256
38257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38259 if (!SWIG_IsOK(res1)) {
38260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38261 }
38262 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38264 if (!SWIG_IsOK(res2)) {
38265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38266 }
38267 if (!argp2) {
38268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38269 }
38270 arg2 = reinterpret_cast< wxBrush * >(argp2);
38271 {
38272 PyThreadState* __tstate = wxPyBeginAllowThreads();
38273 (arg1)->SetBackground((wxBrush const &)*arg2);
38274 wxPyEndAllowThreads(__tstate);
38275 if (PyErr_Occurred()) SWIG_fail;
38276 }
38277 resultobj = SWIG_Py_Void();
38278 return resultobj;
38279fail:
38280 return NULL;
38281}
38282
38283
38284SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38285 PyObject *resultobj = 0;
38286 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38287 int arg2 ;
38288 void *argp1 = 0 ;
38289 int res1 = 0 ;
38290 int val2 ;
38291 int ecode2 = 0 ;
38292 PyObject * obj0 = 0 ;
38293 PyObject * obj1 = 0 ;
38294 char * kwnames[] = {
38295 (char *) "self",(char *) "mode", NULL
38296 };
38297
38298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38300 if (!SWIG_IsOK(res1)) {
38301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38302 }
38303 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38304 ecode2 = SWIG_AsVal_int(obj1, &val2);
38305 if (!SWIG_IsOK(ecode2)) {
38306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38307 }
38308 arg2 = static_cast< int >(val2);
38309 {
38310 PyThreadState* __tstate = wxPyBeginAllowThreads();
38311 (arg1)->SetBackgroundMode(arg2);
38312 wxPyEndAllowThreads(__tstate);
38313 if (PyErr_Occurred()) SWIG_fail;
38314 }
38315 resultobj = SWIG_Py_Void();
38316 return resultobj;
38317fail:
38318 return NULL;
38319}
38320
38321
38322SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38323 PyObject *resultobj = 0;
38324 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38325 wxPalette *arg2 = 0 ;
38326 void *argp1 = 0 ;
38327 int res1 = 0 ;
38328 void *argp2 = 0 ;
38329 int res2 = 0 ;
38330 PyObject * obj0 = 0 ;
38331 PyObject * obj1 = 0 ;
38332 char * kwnames[] = {
38333 (char *) "self",(char *) "palette", NULL
38334 };
38335
38336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38338 if (!SWIG_IsOK(res1)) {
38339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38340 }
38341 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38343 if (!SWIG_IsOK(res2)) {
38344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38345 }
38346 if (!argp2) {
38347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38348 }
38349 arg2 = reinterpret_cast< wxPalette * >(argp2);
38350 {
38351 PyThreadState* __tstate = wxPyBeginAllowThreads();
38352 (arg1)->SetPalette((wxPalette const &)*arg2);
38353 wxPyEndAllowThreads(__tstate);
38354 if (PyErr_Occurred()) SWIG_fail;
38355 }
38356 resultobj = SWIG_Py_Void();
38357 return resultobj;
38358fail:
38359 return NULL;
38360}
38361
38362
38363SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38364 PyObject *resultobj = 0;
38365 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38366 wxColour *arg2 = 0 ;
38367 void *argp1 = 0 ;
38368 int res1 = 0 ;
38369 wxColour temp2 ;
38370 PyObject * obj0 = 0 ;
38371 PyObject * obj1 = 0 ;
38372 char * kwnames[] = {
38373 (char *) "self",(char *) "colour", NULL
38374 };
38375
38376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38378 if (!SWIG_IsOK(res1)) {
38379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38380 }
38381 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38382 {
38383 arg2 = &temp2;
38384 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38385 }
38386 {
38387 PyThreadState* __tstate = wxPyBeginAllowThreads();
38388 (arg1)->SetTextForeground((wxColour const &)*arg2);
38389 wxPyEndAllowThreads(__tstate);
38390 if (PyErr_Occurred()) SWIG_fail;
38391 }
38392 resultobj = SWIG_Py_Void();
38393 return resultobj;
38394fail:
38395 return NULL;
38396}
38397
38398
38399SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38400 PyObject *resultobj = 0;
38401 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38402 wxColour *arg2 = 0 ;
38403 void *argp1 = 0 ;
38404 int res1 = 0 ;
38405 wxColour temp2 ;
38406 PyObject * obj0 = 0 ;
38407 PyObject * obj1 = 0 ;
38408 char * kwnames[] = {
38409 (char *) "self",(char *) "colour", NULL
38410 };
38411
38412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38414 if (!SWIG_IsOK(res1)) {
38415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38416 }
38417 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38418 {
38419 arg2 = &temp2;
38420 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38421 }
38422 {
38423 PyThreadState* __tstate = wxPyBeginAllowThreads();
38424 (arg1)->SetTextBackground((wxColour const &)*arg2);
38425 wxPyEndAllowThreads(__tstate);
38426 if (PyErr_Occurred()) SWIG_fail;
38427 }
38428 resultobj = SWIG_Py_Void();
38429 return resultobj;
38430fail:
38431 return NULL;
38432}
38433
38434
38435SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38436 PyObject *resultobj = 0;
38437 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38438 int arg2 ;
38439 void *argp1 = 0 ;
38440 int res1 = 0 ;
38441 int val2 ;
38442 int ecode2 = 0 ;
38443 PyObject * obj0 = 0 ;
38444 PyObject * obj1 = 0 ;
38445 char * kwnames[] = {
38446 (char *) "self",(char *) "function", NULL
38447 };
38448
38449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38451 if (!SWIG_IsOK(res1)) {
38452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38453 }
38454 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38455 ecode2 = SWIG_AsVal_int(obj1, &val2);
38456 if (!SWIG_IsOK(ecode2)) {
38457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38458 }
38459 arg2 = static_cast< int >(val2);
38460 {
38461 PyThreadState* __tstate = wxPyBeginAllowThreads();
38462 (arg1)->SetLogicalFunction(arg2);
38463 wxPyEndAllowThreads(__tstate);
38464 if (PyErr_Occurred()) SWIG_fail;
38465 }
38466 resultobj = SWIG_Py_Void();
38467 return resultobj;
38468fail:
38469 return NULL;
38470}
38471
38472
38473SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38474 PyObject *obj;
38475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38476 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38477 return SWIG_Py_Void();
38478}
38479
38480SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38481 return SWIG_Python_InitShadowInstance(args);
38482}
38483
38484static PyMethodDef SwigMethods[] = {
38485 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38486 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38487 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38488 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38489 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38490 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38491 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38494 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38495 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38496 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38497 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38498 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38499 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38500 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38501 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38502 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38503 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38504 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38505 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38506 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38507 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38508 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38509 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38510 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38512 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38515 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38516 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38517 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38518 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38520 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38521 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38522 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38523 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38524 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38525 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38526 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38527 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38528 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38532 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38533 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38535 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38536 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38537 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38538 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38539 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38540 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38541 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38542 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38543 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38544 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38545 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38546 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38547 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38548 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38549 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38550 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38552 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38553 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38555 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38557 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38558 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38560 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38561 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38562 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38563 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38564 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38565 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38566 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38567 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38569 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38570 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38573 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38574 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38575 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38578 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38580 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38583 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38584 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38588 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38589 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38590 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38591 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38592 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38593 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38594 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38595 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38596 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38597 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38598 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38599 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38600 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38601 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38602 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38603 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38604 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38605 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38606 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38607 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38611 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38612 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38613 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38614 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38615 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38616 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38617 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38618 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38619 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38620 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38621 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38622 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38624 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38625 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38627 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38628 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38631 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38632 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38633 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38634 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38635 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38636 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38637 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38638 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38639 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38640 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38641 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38642 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38643 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38644 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38645 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38646 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38647 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38649 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38652 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38653 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38655 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38656 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38657 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38658 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38660 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38661 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38662 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38663 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38666 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38670 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38671 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38673 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38675 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38676 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38677 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38678 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38683 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38684 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38690 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38691 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38694 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38695 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38705 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38708 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38709 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38711 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38712 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38713 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38714 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38715 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38716 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38717 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38718 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38719 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38720 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38721 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38722 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38723 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38724 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38725 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38726 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38727 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38729 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38730 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38731 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38732 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38733 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38734 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38735 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38736 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38744 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38745 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38746 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38747 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38748 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38749 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38750 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38751 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38752 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38753 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38754 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38755 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38757 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38758 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38759 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38760 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38762 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38763 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38764 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38765 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38766 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38767 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38773 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38778 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38779 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38781 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38785 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38786 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38787 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38788 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38790 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38791 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38792 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38793 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38794 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38795 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38796 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38797 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38798 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38799 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38800 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38801 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38802 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38813 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38814 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38815 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38816 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38818 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38819 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38821 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38822 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38823 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38824 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38826 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38827 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38828 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38829 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38830 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38831 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38832 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38833 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38834 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38835 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38836 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38837 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38838 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38839 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38841 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38844 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38845 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38846 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38847 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38848 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38849 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38850 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38851 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38852 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38853 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38854 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38861 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38862 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38863 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38865 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38866 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38869 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38870 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38871 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38872 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38873 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38874 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38880 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38881 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38882 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38913 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38917 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38921 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38922 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38932 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38934 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38935 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38936 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38943 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38944 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38945 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38946 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38947 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38952 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38953 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38954 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38955 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38960 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38964 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38965 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38966 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38967 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
38968 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38969 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38970 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38971 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38972 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38973 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38974 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38975 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38978 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38980 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38982 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38984 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38985 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38988 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38989 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38993 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38995 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38998 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38999 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39000 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39001 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39002 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39003 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39004 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39005 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39006 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39007 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39012 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39014 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39015 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39016 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39018 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39019 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39020 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39022 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39023 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39024 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39025 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39026 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39027 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39028 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39029 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39032 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39033 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39034 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39036 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39037 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39039 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39040 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39042 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
39043 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39048 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39049 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39050 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39051 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
39052 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
39054 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39055 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39056 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39058 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39059 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39061 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39062 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39063 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39065 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39066 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39068 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39071 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39072 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39073 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39075 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
39076 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39078 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39079 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39080 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39081 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39082 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39084 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39085 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39086 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39088 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39089 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39091 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39092 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39093 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39094 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39095 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39096 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39097 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39098 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39099 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39100 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39101 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39102 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39103 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39104 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39105 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39106 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 39107 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
39108 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39109 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39110 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39112 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39114 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39120 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
39121 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39122 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 39123 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39124 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39125 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39126 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39127 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39128 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39129 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39130 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39131 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39135 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39138 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39141 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 39142 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 39143 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 39144 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 39145 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 39146 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 39147 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39148 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39149 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39150 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39156 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39157 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39158 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39159 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39160 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39161 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
39162 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39165 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39168 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39169 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39170 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39171 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39174 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39176 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39177 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39182 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39183 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39184 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39188 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39189 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39190 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39191 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39192 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 39193 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
39194 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39197 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 39204 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 39205 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39206 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39207 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39208 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39209 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39210 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39211 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39212 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39213 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39214 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39215 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39216 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39217 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39218 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39219 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39220 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39222 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39223 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39230 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39232 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39234 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39235 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39236 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39237 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39238 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39239 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39245 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39246 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39247 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39248 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39249 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39250 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39251 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39252 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39253 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39254 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39255 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39256 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39257 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
39258 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39262 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39263 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39264 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39265 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39269 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39270 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39271 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39272 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39273 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39274 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39275 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39276 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39277 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39278 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39279 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39280 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39281 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39289 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39290 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39292 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39293 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39294 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39295 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39296 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39297 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39298 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39299 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39300 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39301 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39302 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39303 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39304 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39305 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39306 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39307 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39308 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39309 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39310 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39311 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39312 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39313 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39314 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39315 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39316 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39317 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39319 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39320 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39321 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39322 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39323 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39325 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39330 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39333 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39335 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39336 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39337 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39339 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39340 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39341 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39342 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39343 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39344 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39345 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39346 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39350 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39354 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39364 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39365 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39372 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39373 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39374 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39378 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39388 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39391 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39393 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39394 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39399 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39402 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39407 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39409 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39410 { NULL, NULL, 0, NULL }
39411};
39412
39413
39414/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39415
72ef6efb
RD
39416static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39417 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39418}
8e99bda9
RD
39419static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39420 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39421}
39422static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39423 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39424}
26c4d26f
RD
39425static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39426 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39427}
39428static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39429 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39430}
72ef6efb
RD
39431static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39432 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39433}
39434static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39435 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39436}
26c4d26f
RD
39437static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39438 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39439}
fc46b7f3
RD
39440static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39441 return (void *)((wxLocale *) ((wxPyLocale *) x));
39442}
70d7cb34
RD
39443static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39444 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39445}
39446static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39447 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39448}
39449static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39450 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39451}
39452static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39453 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39454}
39455static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39456 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39457}
39458static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39459 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39460}
1bd55598
RD
39461static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39462 return (void *)((wxGDIObject *) ((wxIcon *) x));
39463}
39464static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39465 return (void *)((wxGDIObject *) ((wxPalette *) x));
39466}
39467static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39468 return (void *)((wxGDIObject *) ((wxPen *) x));
39469}
39470static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39471 return (void *)((wxGDIObject *) ((wxFont *) x));
39472}
39473static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39474 return (void *)((wxGDIObject *) ((wxCursor *) x));
39475}
39476static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39477 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39478}
39479static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39480 return (void *)((wxGDIObject *) ((wxRegion *) x));
39481}
39482static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39483 return (void *)((wxGDIObject *) ((wxBrush *) x));
39484}
72ef6efb
RD
39485static void *_p_wxGCDCTo_p_wxDC(void *x) {
39486 return (void *)((wxDC *) ((wxGCDC *) x));
39487}
1bd55598
RD
39488static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39489 return (void *)((wxDC *) ((wxScreenDC *) x));
39490}
24f6c4e8 39491static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39492 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39493}
1bd55598
RD
39494static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39495 return (void *)((wxDC *) ((wxMirrorDC *) x));
39496}
1bd55598
RD
39497static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39498 return (void *)((wxDC *) ((wxWindowDC *) x));
39499}
26c4d26f
RD
39500static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39501 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39502}
1bd55598
RD
39503static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39504 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39505}
1bd55598 39506static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39507 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39508}
39509static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39510 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39511}
24f6c4e8 39512static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39513 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39514}
39515static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39516 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39517}
1bd55598
RD
39518static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39519 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39520}
39521static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39522 return (void *)((wxDC *) ((wxPrinterDC *) x));
39523}
da91cb0f
RD
39524static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39525 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39526}
39527static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39528 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39529}
39530static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39531 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39532}
1bd55598
RD
39533static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39534 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39535}
39536static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39537 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39538}
39539static void *_p_wxPenTo_p_wxObject(void *x) {
39540 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39541}
39542static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39543 return (void *)((wxObject *) ((wxRegionIterator *) x));
39544}
1bd55598
RD
39545static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39546 return (void *)((wxObject *) ((wxSizerItem *) x));
39547}
34e0a3bb
RD
39548static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39549 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39550}
1bd55598
RD
39551static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39552 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39553}
39554static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39555 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39556}
39557static void *_p_wxIconTo_p_wxObject(void *x) {
39558 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39559}
39560static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39561 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39562}
39563static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39564 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39565}
39566static void *_p_wxSizerTo_p_wxObject(void *x) {
39567 return (void *)((wxObject *) ((wxSizer *) x));
39568}
39569static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39570 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39571}
39572static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39573 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39574}
1bd55598
RD
39575static void *_p_wxEventTo_p_wxObject(void *x) {
39576 return (void *)((wxObject *) ((wxEvent *) x));
39577}
39578static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39579 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39580}
39581static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39582 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39583}
39584static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39585 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39586}
27e45892
RD
39587static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39588 return (void *)((wxObject *) ((wxPseudoDC *) x));
39589}
2131d850
RD
39590static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39591 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39592}
1bd55598
RD
39593static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39594 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39595}
39596static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39597 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39598}
39599static void *_p_wxDCTo_p_wxObject(void *x) {
39600 return (void *)((wxObject *) ((wxDC *) x));
39601}
39602static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39603 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39604}
39605static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39606 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39607}
39608static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39609 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39610}
39611static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39612 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39613}
39614static void *_p_wxControlTo_p_wxObject(void *x) {
39615 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39616}
70d7cb34
RD
39617static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39618 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39619}
1bd55598
RD
39620static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39621 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39622}
39623static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39624 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39625}
39626static void *_p_wxFSFileTo_p_wxObject(void *x) {
39627 return (void *)((wxObject *) ((wxFSFile *) x));
39628}
39629static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39630 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
1bd55598
RD
39631}
39632static void *_p_wxRegionTo_p_wxObject(void *x) {
39633 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39634}
39635static void *_p_wxPySizerTo_p_wxObject(void *x) {
39636 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39637}
39638static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39639 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39640}
39641static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39642 return (void *)((wxObject *) ((wxGDIObject *) x));
39643}
70d7cb34
RD
39644static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39645 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39646}
39647static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39648 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39649}
1bd55598
RD
39650static void *_p_wxEffectsTo_p_wxObject(void *x) {
39651 return (void *)((wxObject *) ((wxEffects *) x));
39652}
39653static void *_p_wxPyEventTo_p_wxObject(void *x) {
39654 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39655}
39656static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39657 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39658}
39659static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39660 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39661}
70d7cb34
RD
39662static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39663 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39664}
1bd55598
RD
39665static void *_p_wxShowEventTo_p_wxObject(void *x) {
39666 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39667}
39668static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39669 return (void *)((wxObject *) ((wxMenuItem *) x));
39670}
39671static void *_p_wxDateEventTo_p_wxObject(void *x) {
39672 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39673}
39674static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39675 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39676}
39677static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39678 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39679}
39680static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39681 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39682}
39683static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39684 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39685}
39686static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39687 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39688}
39689static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39690 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39691}
39692static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39693 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39694}
39695static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39696 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39697}
39698static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39699 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39700}
39701static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39702 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39703}
39704static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39705 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39706}
39707static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39708 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39709}
39710static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39711 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39712}
39713static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39714 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39715}
39716static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39717 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39718}
39719static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39720 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39721}
39722static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39723 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39724}
39725static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39726 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39727}
39728static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39729 return (void *)((wxObject *) ((wxImageHandler *) x));
39730}
39731static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39732 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39733}
39734static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39735 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39736}
580080c5
RD
39737static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39738 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39739}
1bd55598
RD
39740static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39741 return (void *)((wxObject *) ((wxEvtHandler *) x));
39742}
34e0a3bb
RD
39743static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39744 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39745}
24f6c4e8
RD
39746static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39747 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39748}
1bd55598 39749static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39750 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39751}
24f6c4e8
RD
39752static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39753 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39754}
39755static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39756 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39757}
39758static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39759 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39760}
1bd55598
RD
39761static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39762 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39763}
580080c5
RD
39764static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39765 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39766}
1bd55598
RD
39767static void *_p_wxImageTo_p_wxObject(void *x) {
39768 return (void *)((wxObject *) ((wxImage *) x));
39769}
39770static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39771 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39772}
70d7cb34
RD
39773static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39774 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39775}
39776static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39777 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39778}
1bd55598
RD
39779static void *_p_wxPaletteTo_p_wxObject(void *x) {
39780 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39781}
39782static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39783 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39784}
39785static void *_p_wxImageListTo_p_wxObject(void *x) {
39786 return (void *)((wxObject *) ((wxImageList *) x));
39787}
72ef6efb
RD
39788static void *_p_wxGCDCTo_p_wxObject(void *x) {
39789 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39790}
1bd55598
RD
39791static void *_p_wxCursorTo_p_wxObject(void *x) {
39792 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39793}
39794static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39795 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39796}
39797static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39798 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39799}
70d7cb34
RD
39800static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39801 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39802}
1bd55598
RD
39803static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39804 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39805}
39806static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39807 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39808}
39809static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39810 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39811}
39812static void *_p_wxWindowTo_p_wxObject(void *x) {
39813 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39814}
39815static void *_p_wxMenuTo_p_wxObject(void *x) {
39816 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39817}
39818static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39819 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39820}
39821static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39822 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39823}
1bd55598
RD
39824static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39825 return (void *)((wxObject *) ((wxFileSystem *) x));
39826}
39827static void *_p_wxBitmapTo_p_wxObject(void *x) {
39828 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39829}
39830static void *_p_wxMaskTo_p_wxObject(void *x) {
39831 return (void *)((wxObject *) ((wxMask *) x));
39832}
70d7cb34
RD
39833static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39834 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39835}
1bd55598
RD
39836static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39837 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39838}
39839static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39840 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39841}
39842static void *_p_wxPyAppTo_p_wxObject(void *x) {
39843 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39844}
39845static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39846 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39847}
39848static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39849 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39850}
39851static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39852 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39853}
39854static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39855 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39856}
39857static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39858 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39859}
39860static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39861 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39862}
39863static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39864 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39865}
39866static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39867 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39868}
39869static void *_p_wxFontTo_p_wxObject(void *x) {
39870 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39871}
39872static void *_p_wxBrushTo_p_wxObject(void *x) {
39873 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39874}
39875static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39876 return (void *)((wxObject *) ((wxMetaFile *) x));
39877}
39878static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39880}
39881static void *_p_wxColourTo_p_wxObject(void *x) {
39882 return (void *)((wxObject *) ((wxColour *) x));
39883}
1bd55598
RD
39884static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39885 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39886}
39887static void *_p_wxValidatorTo_p_wxObject(void *x) {
39888 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39889}
39890static void *_p_wxControlTo_p_wxWindow(void *x) {
39891 return (void *)((wxWindow *) ((wxControl *) x));
39892}
39893static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39894 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39895}
39896static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39897 return (void *)((wxWindow *) ((wxMenuBar *) x));
39898}
fc46b7f3
RD
39899static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39900 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39901}
39902static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39903 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39904}
39905static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 39906static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39907static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39908static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39909static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39910static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39911static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39912static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39913static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39914static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39915static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39916static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
39917static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39918static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39919static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39920static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39921static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39922static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 39923static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39924static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
39925static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39926static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39927static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39928static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39929static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39930static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39931static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39932static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39933static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
39934static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39935static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39936static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39937static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39938static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39939static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39940static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39941static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 39942static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 39943static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39944static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39945static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39946static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39947static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39948static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39949static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39950static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39951static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39952static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
39953static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39954static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39955static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39956static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39957static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39958static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39959static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39960static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39961static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39962static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39963static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39964static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39965static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39966static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39967static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39968static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
39969static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39970static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 39971static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39972static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
39973static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39974static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39975static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39976static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39977static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39978static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39979static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39980static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39981static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39982static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39983static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39984static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39985static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39986static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39987static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39988static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39989static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39990static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39991static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39992static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39993static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39994static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39995static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39996static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39997static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39998static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39999static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40000static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40001static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40002static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40003static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40004static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40005static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40006static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40007static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40008static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 40009static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40010static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40011static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40012static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40013static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40014static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40015static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40016static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40017static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40018static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40019static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40020static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
40021static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40022static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40023static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 40024static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598 40025static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40026static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
40027static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40028static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40029static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40030static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40031static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40032static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40033static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40034static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40035static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40036static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40037static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40038static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40039static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40040static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40041static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40042static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40043static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40044static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40045static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40046static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40047static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
40048static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40049static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40050static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40051static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40052static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40053static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 40054static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40055static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 40056static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
40057static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40058static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40059static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40060static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 40061static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40062static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 40063static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 40064static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
40065static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40066static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40067static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40068static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40069static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40070static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40071static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 40072static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
40073static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40074static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40075static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40076
40077static swig_type_info *swig_type_initial[] = {
fc46b7f3 40078 &_swigt__p_buffer,
1bd55598
RD
40079 &_swigt__p_char,
40080 &_swigt__p_double,
40081 &_swigt__p_form_ops_t,
40082 &_swigt__p_int,
40083 &_swigt__p_unsigned_char,
40084 &_swigt__p_unsigned_int,
40085 &_swigt__p_unsigned_long,
0a27f394 40086 &_swigt__p_void,
1bd55598
RD
40087 &_swigt__p_wxANIHandler,
40088 &_swigt__p_wxAcceleratorTable,
40089 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40090 &_swigt__p_wxAlphaPixelData,
40091 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40092 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
40093 &_swigt__p_wxBMPHandler,
40094 &_swigt__p_wxBitmap,
40095 &_swigt__p_wxBoxSizer,
40096 &_swigt__p_wxBrush,
40097 &_swigt__p_wxBrushList,
40098 &_swigt__p_wxBufferedDC,
40099 &_swigt__p_wxBufferedPaintDC,
40100 &_swigt__p_wxCURHandler,
fc46b7f3 40101 &_swigt__p_wxChar,
1bd55598
RD
40102 &_swigt__p_wxChildFocusEvent,
40103 &_swigt__p_wxClientDC,
2131d850 40104 &_swigt__p_wxClipboardTextEvent,
1bd55598 40105 &_swigt__p_wxCloseEvent,
72ef6efb 40106 &_swigt__p_wxColor,
1bd55598
RD
40107 &_swigt__p_wxColour,
40108 &_swigt__p_wxColourDatabase,
40109 &_swigt__p_wxCommandEvent,
40110 &_swigt__p_wxContextMenuEvent,
40111 &_swigt__p_wxControl,
40112 &_swigt__p_wxControlWithItems,
40113 &_swigt__p_wxCursor,
40114 &_swigt__p_wxDC,
70d7cb34
RD
40115 &_swigt__p_wxDCBrushChanger,
40116 &_swigt__p_wxDCClipper,
b39fe951 40117 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40118 &_swigt__p_wxDCPenChanger,
40119 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
40120 &_swigt__p_wxDash,
40121 &_swigt__p_wxDateEvent,
40122 &_swigt__p_wxDisplayChangedEvent,
40123 &_swigt__p_wxDropFilesEvent,
40124 &_swigt__p_wxDuplexMode,
40125 &_swigt__p_wxEffects,
40126 &_swigt__p_wxEncodingConverter,
40127 &_swigt__p_wxEraseEvent,
40128 &_swigt__p_wxEvent,
40129 &_swigt__p_wxEvtHandler,
40130 &_swigt__p_wxFSFile,
40131 &_swigt__p_wxFileSystem,
40132 &_swigt__p_wxFlexGridSizer,
40133 &_swigt__p_wxFocusEvent,
40134 &_swigt__p_wxFont,
40135 &_swigt__p_wxFontList,
40136 &_swigt__p_wxFontMapper,
40137 &_swigt__p_wxGBSizerItem,
72ef6efb 40138 &_swigt__p_wxGCDC,
da91cb0f 40139 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
40140 &_swigt__p_wxGDIObject,
40141 &_swigt__p_wxGIFHandler,
70d7cb34 40142 &_swigt__p_wxGraphicsBrush,
72ef6efb 40143 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40144 &_swigt__p_wxGraphicsFont,
40145 &_swigt__p_wxGraphicsMatrix,
40146 &_swigt__p_wxGraphicsObject,
72ef6efb 40147 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40148 &_swigt__p_wxGraphicsPen,
40149 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
40150 &_swigt__p_wxGridBagSizer,
40151 &_swigt__p_wxGridSizer,
33d6fd3b 40152 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
40153 &_swigt__p_wxICOHandler,
40154 &_swigt__p_wxIcon,
40155 &_swigt__p_wxIconBundle,
40156 &_swigt__p_wxIconLocation,
40157 &_swigt__p_wxIconizeEvent,
40158 &_swigt__p_wxIdleEvent,
40159 &_swigt__p_wxImage,
40160 &_swigt__p_wxImageHandler,
40161 &_swigt__p_wxImageList,
40162 &_swigt__p_wxIndividualLayoutConstraint,
40163 &_swigt__p_wxInitDialogEvent,
40164 &_swigt__p_wxJPEGHandler,
40165 &_swigt__p_wxKeyEvent,
40166 &_swigt__p_wxLanguageInfo,
40167 &_swigt__p_wxLayoutConstraints,
40168 &_swigt__p_wxLocale,
40169 &_swigt__p_wxMask,
40170 &_swigt__p_wxMaximizeEvent,
40171 &_swigt__p_wxMemoryDC,
40172 &_swigt__p_wxMenu,
40173 &_swigt__p_wxMenuBar,
40174 &_swigt__p_wxMenuEvent,
40175 &_swigt__p_wxMenuItem,
40176 &_swigt__p_wxMetaFile,
40177 &_swigt__p_wxMetaFileDC,
40178 &_swigt__p_wxMirrorDC,
40179 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40180 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
40181 &_swigt__p_wxMouseEvent,
40182 &_swigt__p_wxMoveEvent,
40183 &_swigt__p_wxNativeEncodingInfo,
40184 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40185 &_swigt__p_wxNativePixelData,
40186 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
40187 &_swigt__p_wxNavigationKeyEvent,
40188 &_swigt__p_wxNcPaintEvent,
40189 &_swigt__p_wxNotifyEvent,
40190 &_swigt__p_wxObject,
b39fe951 40191 &_swigt__p_wxOverlay,
1bd55598
RD
40192 &_swigt__p_wxPCXHandler,
40193 &_swigt__p_wxPNGHandler,
40194 &_swigt__p_wxPNMHandler,
40195 &_swigt__p_wxPaintDC,
40196 &_swigt__p_wxPaintEvent,
40197 &_swigt__p_wxPalette,
40198 &_swigt__p_wxPaletteChangedEvent,
40199 &_swigt__p_wxPaperSize,
40200 &_swigt__p_wxPen,
40201 &_swigt__p_wxPenList,
fc46b7f3 40202 &_swigt__p_wxPixelDataBase,
1bd55598 40203 &_swigt__p_wxPoint,
72ef6efb 40204 &_swigt__p_wxPoint2D,
70d7cb34 40205 &_swigt__p_wxPoint2DDouble,
1bd55598
RD
40206 &_swigt__p_wxPostScriptDC,
40207 &_swigt__p_wxPrintData,
40208 &_swigt__p_wxPrinterDC,
27e45892 40209 &_swigt__p_wxPseudoDC,
1bd55598
RD
40210 &_swigt__p_wxPyApp,
40211 &_swigt__p_wxPyCommandEvent,
40212 &_swigt__p_wxPyEvent,
40213 &_swigt__p_wxPyFontEnumerator,
40214 &_swigt__p_wxPyImageHandler,
fc46b7f3 40215 &_swigt__p_wxPyLocale,
1bd55598
RD
40216 &_swigt__p_wxPySizer,
40217 &_swigt__p_wxPyValidator,
40218 &_swigt__p_wxQueryNewPaletteEvent,
40219 &_swigt__p_wxRect,
70d7cb34 40220 &_swigt__p_wxRect2DDouble,
1bd55598
RD
40221 &_swigt__p_wxRegion,
40222 &_swigt__p_wxRegionIterator,
40223 &_swigt__p_wxRendererNative,
40224 &_swigt__p_wxRendererVersion,
40225 &_swigt__p_wxScreenDC,
40226 &_swigt__p_wxScrollEvent,
40227 &_swigt__p_wxScrollWinEvent,
40228 &_swigt__p_wxSetCursorEvent,
40229 &_swigt__p_wxShowEvent,
40230 &_swigt__p_wxSize,
40231 &_swigt__p_wxSizeEvent,
40232 &_swigt__p_wxSizer,
40233 &_swigt__p_wxSizerItem,
40234 &_swigt__p_wxSplitterRenderParams,
40235 &_swigt__p_wxStaticBoxSizer,
40236 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40237 &_swigt__p_wxStockGDI,
1bd55598
RD
40238 &_swigt__p_wxString,
40239 &_swigt__p_wxSysColourChangedEvent,
580080c5 40240 &_swigt__p_wxTGAHandler,
1bd55598
RD
40241 &_swigt__p_wxTIFFHandler,
40242 &_swigt__p_wxUpdateUIEvent,
40243 &_swigt__p_wxValidator,
40244 &_swigt__p_wxWindow,
40245 &_swigt__p_wxWindowCreateEvent,
40246 &_swigt__p_wxWindowDC,
40247 &_swigt__p_wxWindowDestroyEvent,
40248 &_swigt__p_wxXPMHandler,
40249};
40250
fc46b7f3 40251static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40252static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40253static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40254static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40255static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40256static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40257static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40258static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40259static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40260static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40261static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40262static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40263static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40264static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40265static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40266static 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}};
40267static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40268static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40269static 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}};
40270static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40271static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40272static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40273static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40274static 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
40275static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40276static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40277static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40278static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40279static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40280static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40281static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40282static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40283static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40284static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40285static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40286static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40287static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40288static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
1bd55598 40289static 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 40290static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40291static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40292static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40293static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40294static 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 40295static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40296static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40297static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40298static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40299static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40300static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40301static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40302static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40303static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40304static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40305static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40306static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40307static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40308static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40309static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40310static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40311static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40312static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40313static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40314static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40315static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40316static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40317static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40318static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40319static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40320static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40321static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40322static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40323static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40324static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40325static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40326static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40327static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40328static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40329static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40330static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40331static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40332static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40333static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40334static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40335static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40336static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40337static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40338static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40339static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40340static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40341static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40342static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40343static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40344static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40345static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40346static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40347static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40348static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40349static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40350static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40351static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40352static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40353static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40354static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40355static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40356static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40357static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40358static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40359static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40360static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40361static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40362static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40363static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40364static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40365static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40366static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40367static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40368static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40369static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40370static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40371static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40372static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40373static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40374static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40375static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40376static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40377static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40378static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40379static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40380static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40381static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40382static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40383static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40384static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40385static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40386static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40387static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40388static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40389static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40390static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40391static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40392static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 40393static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40394static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40395static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40396static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40397static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40398static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40399static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
1bd55598 40400static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40401static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40402static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40403static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40404static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40405static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40406static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40407static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40408static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40409static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40410static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40411static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40412static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40413static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40414static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40415static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40416static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40417static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40418static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40419static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40420static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
26c4d26f 40421static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40422
40423static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40424 _swigc__p_buffer,
1bd55598
RD
40425 _swigc__p_char,
40426 _swigc__p_double,
40427 _swigc__p_form_ops_t,
40428 _swigc__p_int,
40429 _swigc__p_unsigned_char,
40430 _swigc__p_unsigned_int,
40431 _swigc__p_unsigned_long,
0a27f394 40432 _swigc__p_void,
1bd55598
RD
40433 _swigc__p_wxANIHandler,
40434 _swigc__p_wxAcceleratorTable,
40435 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40436 _swigc__p_wxAlphaPixelData,
40437 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40438 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40439 _swigc__p_wxBMPHandler,
40440 _swigc__p_wxBitmap,
40441 _swigc__p_wxBoxSizer,
40442 _swigc__p_wxBrush,
40443 _swigc__p_wxBrushList,
40444 _swigc__p_wxBufferedDC,
40445 _swigc__p_wxBufferedPaintDC,
40446 _swigc__p_wxCURHandler,
fc46b7f3 40447 _swigc__p_wxChar,
1bd55598
RD
40448 _swigc__p_wxChildFocusEvent,
40449 _swigc__p_wxClientDC,
2131d850 40450 _swigc__p_wxClipboardTextEvent,
1bd55598 40451 _swigc__p_wxCloseEvent,
72ef6efb 40452 _swigc__p_wxColor,
1bd55598
RD
40453 _swigc__p_wxColour,
40454 _swigc__p_wxColourDatabase,
40455 _swigc__p_wxCommandEvent,
40456 _swigc__p_wxContextMenuEvent,
40457 _swigc__p_wxControl,
40458 _swigc__p_wxControlWithItems,
40459 _swigc__p_wxCursor,
40460 _swigc__p_wxDC,
70d7cb34
RD
40461 _swigc__p_wxDCBrushChanger,
40462 _swigc__p_wxDCClipper,
b39fe951 40463 _swigc__p_wxDCOverlay,
70d7cb34
RD
40464 _swigc__p_wxDCPenChanger,
40465 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40466 _swigc__p_wxDash,
40467 _swigc__p_wxDateEvent,
40468 _swigc__p_wxDisplayChangedEvent,
40469 _swigc__p_wxDropFilesEvent,
40470 _swigc__p_wxDuplexMode,
40471 _swigc__p_wxEffects,
40472 _swigc__p_wxEncodingConverter,
40473 _swigc__p_wxEraseEvent,
40474 _swigc__p_wxEvent,
40475 _swigc__p_wxEvtHandler,
40476 _swigc__p_wxFSFile,
40477 _swigc__p_wxFileSystem,
40478 _swigc__p_wxFlexGridSizer,
40479 _swigc__p_wxFocusEvent,
40480 _swigc__p_wxFont,
40481 _swigc__p_wxFontList,
40482 _swigc__p_wxFontMapper,
40483 _swigc__p_wxGBSizerItem,
72ef6efb 40484 _swigc__p_wxGCDC,
da91cb0f 40485 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40486 _swigc__p_wxGDIObject,
40487 _swigc__p_wxGIFHandler,
70d7cb34 40488 _swigc__p_wxGraphicsBrush,
72ef6efb 40489 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40490 _swigc__p_wxGraphicsFont,
40491 _swigc__p_wxGraphicsMatrix,
40492 _swigc__p_wxGraphicsObject,
72ef6efb 40493 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40494 _swigc__p_wxGraphicsPen,
40495 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40496 _swigc__p_wxGridBagSizer,
40497 _swigc__p_wxGridSizer,
33d6fd3b 40498 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40499 _swigc__p_wxICOHandler,
40500 _swigc__p_wxIcon,
40501 _swigc__p_wxIconBundle,
40502 _swigc__p_wxIconLocation,
40503 _swigc__p_wxIconizeEvent,
40504 _swigc__p_wxIdleEvent,
40505 _swigc__p_wxImage,
40506 _swigc__p_wxImageHandler,
40507 _swigc__p_wxImageList,
40508 _swigc__p_wxIndividualLayoutConstraint,
40509 _swigc__p_wxInitDialogEvent,
40510 _swigc__p_wxJPEGHandler,
40511 _swigc__p_wxKeyEvent,
40512 _swigc__p_wxLanguageInfo,
40513 _swigc__p_wxLayoutConstraints,
40514 _swigc__p_wxLocale,
40515 _swigc__p_wxMask,
40516 _swigc__p_wxMaximizeEvent,
40517 _swigc__p_wxMemoryDC,
40518 _swigc__p_wxMenu,
40519 _swigc__p_wxMenuBar,
40520 _swigc__p_wxMenuEvent,
40521 _swigc__p_wxMenuItem,
40522 _swigc__p_wxMetaFile,
40523 _swigc__p_wxMetaFileDC,
40524 _swigc__p_wxMirrorDC,
40525 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40526 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40527 _swigc__p_wxMouseEvent,
40528 _swigc__p_wxMoveEvent,
40529 _swigc__p_wxNativeEncodingInfo,
40530 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40531 _swigc__p_wxNativePixelData,
40532 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40533 _swigc__p_wxNavigationKeyEvent,
40534 _swigc__p_wxNcPaintEvent,
40535 _swigc__p_wxNotifyEvent,
40536 _swigc__p_wxObject,
b39fe951 40537 _swigc__p_wxOverlay,
1bd55598
RD
40538 _swigc__p_wxPCXHandler,
40539 _swigc__p_wxPNGHandler,
40540 _swigc__p_wxPNMHandler,
40541 _swigc__p_wxPaintDC,
40542 _swigc__p_wxPaintEvent,
40543 _swigc__p_wxPalette,
40544 _swigc__p_wxPaletteChangedEvent,
40545 _swigc__p_wxPaperSize,
40546 _swigc__p_wxPen,
40547 _swigc__p_wxPenList,
fc46b7f3 40548 _swigc__p_wxPixelDataBase,
1bd55598 40549 _swigc__p_wxPoint,
72ef6efb 40550 _swigc__p_wxPoint2D,
70d7cb34 40551 _swigc__p_wxPoint2DDouble,
1bd55598
RD
40552 _swigc__p_wxPostScriptDC,
40553 _swigc__p_wxPrintData,
40554 _swigc__p_wxPrinterDC,
27e45892 40555 _swigc__p_wxPseudoDC,
1bd55598
RD
40556 _swigc__p_wxPyApp,
40557 _swigc__p_wxPyCommandEvent,
40558 _swigc__p_wxPyEvent,
40559 _swigc__p_wxPyFontEnumerator,
40560 _swigc__p_wxPyImageHandler,
fc46b7f3 40561 _swigc__p_wxPyLocale,
1bd55598
RD
40562 _swigc__p_wxPySizer,
40563 _swigc__p_wxPyValidator,
40564 _swigc__p_wxQueryNewPaletteEvent,
40565 _swigc__p_wxRect,
70d7cb34 40566 _swigc__p_wxRect2DDouble,
1bd55598
RD
40567 _swigc__p_wxRegion,
40568 _swigc__p_wxRegionIterator,
40569 _swigc__p_wxRendererNative,
40570 _swigc__p_wxRendererVersion,
40571 _swigc__p_wxScreenDC,
40572 _swigc__p_wxScrollEvent,
40573 _swigc__p_wxScrollWinEvent,
40574 _swigc__p_wxSetCursorEvent,
40575 _swigc__p_wxShowEvent,
40576 _swigc__p_wxSize,
40577 _swigc__p_wxSizeEvent,
40578 _swigc__p_wxSizer,
40579 _swigc__p_wxSizerItem,
40580 _swigc__p_wxSplitterRenderParams,
40581 _swigc__p_wxStaticBoxSizer,
40582 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40583 _swigc__p_wxStockGDI,
1bd55598
RD
40584 _swigc__p_wxString,
40585 _swigc__p_wxSysColourChangedEvent,
580080c5 40586 _swigc__p_wxTGAHandler,
1bd55598
RD
40587 _swigc__p_wxTIFFHandler,
40588 _swigc__p_wxUpdateUIEvent,
40589 _swigc__p_wxValidator,
40590 _swigc__p_wxWindow,
40591 _swigc__p_wxWindowCreateEvent,
40592 _swigc__p_wxWindowDC,
40593 _swigc__p_wxWindowDestroyEvent,
40594 _swigc__p_wxXPMHandler,
40595};
40596
40597
40598/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40599
40600static swig_const_info swig_const_table[] = {
40601{0, 0, 0, 0.0, 0, 0}};
40602
40603#ifdef __cplusplus
40604}
40605#endif
40606/* -----------------------------------------------------------------------------
40607 * Type initialization:
40608 * This problem is tough by the requirement that no dynamic
40609 * memory is used. Also, since swig_type_info structures store pointers to
40610 * swig_cast_info structures and swig_cast_info structures store pointers back
40611 * to swig_type_info structures, we need some lookup code at initialization.
40612 * The idea is that swig generates all the structures that are needed.
40613 * The runtime then collects these partially filled structures.
40614 * The SWIG_InitializeModule function takes these initial arrays out of
40615 * swig_module, and does all the lookup, filling in the swig_module.types
40616 * array with the correct data and linking the correct swig_cast_info
40617 * structures together.
40618 *
40619 * The generated swig_type_info structures are assigned staticly to an initial
40620 * array. We just loop though that array, and handle each type individually.
40621 * First we lookup if this type has been already loaded, and if so, use the
40622 * loaded structure instead of the generated one. Then we have to fill in the
40623 * cast linked list. The cast data is initially stored in something like a
40624 * two-dimensional array. Each row corresponds to a type (there are the same
40625 * number of rows as there are in the swig_type_initial array). Each entry in
40626 * a column is one of the swig_cast_info structures for that type.
40627 * The cast_initial array is actually an array of arrays, because each row has
40628 * a variable number of columns. So to actually build the cast linked list,
40629 * we find the array of casts associated with the type, and loop through it
40630 * adding the casts to the list. The one last trick we need to do is making
40631 * sure the type pointer in the swig_cast_info struct is correct.
40632 *
40633 * First off, we lookup the cast->type name to see if it is already loaded.
40634 * There are three cases to handle:
40635 * 1) If the cast->type has already been loaded AND the type we are adding
40636 * casting info to has not been loaded (it is in this module), THEN we
40637 * replace the cast->type pointer with the type pointer that has already
40638 * been loaded.
40639 * 2) If BOTH types (the one we are adding casting info to, and the
40640 * cast->type) are loaded, THEN the cast info has already been loaded by
40641 * the previous module so we just ignore it.
40642 * 3) Finally, if cast->type has not already been loaded, then we add that
40643 * swig_cast_info to the linked list (because the cast->type) pointer will
40644 * be correct.
40645 * ----------------------------------------------------------------------------- */
40646
40647#ifdef __cplusplus
40648extern "C" {
40649#if 0
40650} /* c-mode */
40651#endif
40652#endif
40653
40654#if 0
40655#define SWIGRUNTIME_DEBUG
40656#endif
40657
40658SWIGRUNTIME void
40659SWIG_InitializeModule(void *clientdata) {
40660 size_t i;
40661 swig_module_info *module_head;
40662 static int init_run = 0;
40663
40664 clientdata = clientdata;
40665
40666 if (init_run) return;
40667 init_run = 1;
40668
40669 /* Initialize the swig_module */
40670 swig_module.type_initial = swig_type_initial;
40671 swig_module.cast_initial = swig_cast_initial;
40672
40673 /* Try and load any already created modules */
40674 module_head = SWIG_GetModule(clientdata);
40675 if (module_head) {
40676 swig_module.next = module_head->next;
40677 module_head->next = &swig_module;
40678 } else {
40679 /* This is the first module loaded */
40680 swig_module.next = &swig_module;
40681 SWIG_SetModule(clientdata, &swig_module);
40682 }
40683
40684 /* Now work on filling in swig_module.types */
40685#ifdef SWIGRUNTIME_DEBUG
40686 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40687#endif
40688 for (i = 0; i < swig_module.size; ++i) {
40689 swig_type_info *type = 0;
40690 swig_type_info *ret;
40691 swig_cast_info *cast;
40692
40693#ifdef SWIGRUNTIME_DEBUG
40694 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40695#endif
40696
40697 /* if there is another module already loaded */
40698 if (swig_module.next != &swig_module) {
40699 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40700 }
1bd55598
RD
40701 if (type) {
40702 /* Overwrite clientdata field */
40703#ifdef SWIGRUNTIME_DEBUG
40704 printf("SWIG_InitializeModule: found type %s\n", type->name);
40705#endif
40706 if (swig_module.type_initial[i]->clientdata) {
40707 type->clientdata = swig_module.type_initial[i]->clientdata;
40708#ifdef SWIGRUNTIME_DEBUG
40709 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40710#endif
40711 }
40712 } else {
40713 type = swig_module.type_initial[i];
be9b1dca 40714 }
1bd55598
RD
40715
40716 /* Insert casting types */
40717 cast = swig_module.cast_initial[i];
40718 while (cast->type) {
40719 /* Don't need to add information already in the list */
40720 ret = 0;
40721#ifdef SWIGRUNTIME_DEBUG
40722 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40723#endif
40724 if (swig_module.next != &swig_module) {
40725 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40726#ifdef SWIGRUNTIME_DEBUG
40727 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40728#endif
40729 }
40730 if (ret) {
40731 if (type == swig_module.type_initial[i]) {
40732#ifdef SWIGRUNTIME_DEBUG
40733 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40734#endif
40735 cast->type = ret;
40736 ret = 0;
40737 } else {
40738 /* Check for casting already in the list */
40739 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40740#ifdef SWIGRUNTIME_DEBUG
40741 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40742#endif
40743 if (!ocast) ret = 0;
40744 }
40745 }
40746
40747 if (!ret) {
40748#ifdef SWIGRUNTIME_DEBUG
40749 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40750#endif
40751 if (type->cast) {
40752 type->cast->prev = cast;
40753 cast->next = type->cast;
40754 }
40755 type->cast = cast;
40756 }
40757 cast++;
be9b1dca 40758 }
1bd55598
RD
40759 /* Set entry in modules->types array equal to the type */
40760 swig_module.types[i] = type;
40761 }
40762 swig_module.types[i] = 0;
40763
40764#ifdef SWIGRUNTIME_DEBUG
40765 printf("**** SWIG_InitializeModule: Cast List ******\n");
40766 for (i = 0; i < swig_module.size; ++i) {
40767 int j = 0;
40768 swig_cast_info *cast = swig_module.cast_initial[i];
40769 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40770 while (cast->type) {
40771 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40772 cast++;
40773 ++j;
40774 }
40775 printf("---- Total casts: %d\n",j);
40776 }
40777 printf("**** SWIG_InitializeModule: Cast List ******\n");
40778#endif
40779}
40780
40781/* This function will propagate the clientdata field of type to
40782* any new swig_type_info structures that have been added into the list
40783* of equivalent types. It is like calling
40784* SWIG_TypeClientData(type, clientdata) a second time.
40785*/
40786SWIGRUNTIME void
40787SWIG_PropagateClientData(void) {
40788 size_t i;
40789 swig_cast_info *equiv;
40790 static int init_run = 0;
40791
40792 if (init_run) return;
40793 init_run = 1;
40794
40795 for (i = 0; i < swig_module.size; i++) {
40796 if (swig_module.types[i]->clientdata) {
40797 equiv = swig_module.types[i]->cast;
40798 while (equiv) {
40799 if (!equiv->converter) {
40800 if (equiv->type && !equiv->type->clientdata)
40801 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40802 }
40803 equiv = equiv->next;
40804 }
be9b1dca 40805 }
1bd55598
RD
40806 }
40807}
40808
40809#ifdef __cplusplus
40810#if 0
40811{
40812 /* c-mode */
40813#endif
40814}
40815#endif
40816
40817
40818
40819#ifdef __cplusplus
40820extern "C" {
40821#endif
40822
40823 /* Python-specific SWIG API */
40824#define SWIG_newvarlink() SWIG_Python_newvarlink()
40825#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40826#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40827
40828 /* -----------------------------------------------------------------------------
40829 * global variable support code.
40830 * ----------------------------------------------------------------------------- */
40831
40832 typedef struct swig_globalvar {
40833 char *name; /* Name of global variable */
40834 PyObject *(*get_attr)(void); /* Return the current value */
40835 int (*set_attr)(PyObject *); /* Set the value */
40836 struct swig_globalvar *next;
40837 } swig_globalvar;
40838
40839 typedef struct swig_varlinkobject {
40840 PyObject_HEAD
40841 swig_globalvar *vars;
40842 } swig_varlinkobject;
40843
40844 SWIGINTERN PyObject *
40845 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40846 return PyString_FromString("<Swig global variables>");
40847 }
40848
40849 SWIGINTERN PyObject *
40850 swig_varlink_str(swig_varlinkobject *v) {
40851 PyObject *str = PyString_FromString("(");
40852 swig_globalvar *var;
40853 for (var = v->vars; var; var=var->next) {
40854 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40855 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40856 }
40857 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40858 return str;
40859 }
40860
40861 SWIGINTERN int
40862 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40863 PyObject *str = swig_varlink_str(v);
40864 fprintf(fp,"Swig global variables ");
40865 fprintf(fp,"%s\n", PyString_AsString(str));
40866 Py_DECREF(str);
40867 return 0;
40868 }
40869
40870 SWIGINTERN void
40871 swig_varlink_dealloc(swig_varlinkobject *v) {
40872 swig_globalvar *var = v->vars;
40873 while (var) {
40874 swig_globalvar *n = var->next;
40875 free(var->name);
40876 free(var);
40877 var = n;
be9b1dca 40878 }
1bd55598
RD
40879 }
40880
40881 SWIGINTERN PyObject *
40882 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40883 PyObject *res = NULL;
40884 swig_globalvar *var = v->vars;
40885 while (var) {
40886 if (strcmp(var->name,n) == 0) {
40887 res = (*var->get_attr)();
40888 break;
40889 }
40890 var = var->next;
be9b1dca 40891 }
1bd55598
RD
40892 if (res == NULL && !PyErr_Occurred()) {
40893 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40894 }
1bd55598
RD
40895 return res;
40896 }
40897
40898 SWIGINTERN int
40899 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40900 int res = 1;
40901 swig_globalvar *var = v->vars;
40902 while (var) {
40903 if (strcmp(var->name,n) == 0) {
40904 res = (*var->set_attr)(p);
40905 break;
40906 }
40907 var = var->next;
be9b1dca 40908 }
1bd55598
RD
40909 if (res == 1 && !PyErr_Occurred()) {
40910 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40911 }
1bd55598
RD
40912 return res;
40913 }
40914
40915 SWIGINTERN PyTypeObject*
40916 swig_varlink_type(void) {
40917 static char varlink__doc__[] = "Swig var link object";
40918 static PyTypeObject varlink_type;
40919 static int type_init = 0;
40920 if (!type_init) {
40921 const PyTypeObject tmp
40922 = {
40923 PyObject_HEAD_INIT(NULL)
40924 0, /* Number of items in variable part (ob_size) */
40925 (char *)"swigvarlink", /* Type name (tp_name) */
40926 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40927 0, /* Itemsize (tp_itemsize) */
40928 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40929 (printfunc) swig_varlink_print, /* Print (tp_print) */
40930 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40931 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40932 0, /* tp_compare */
40933 (reprfunc) swig_varlink_repr, /* tp_repr */
40934 0, /* tp_as_number */
40935 0, /* tp_as_sequence */
40936 0, /* tp_as_mapping */
40937 0, /* tp_hash */
40938 0, /* tp_call */
40939 (reprfunc)swig_varlink_str, /* tp_str */
40940 0, /* tp_getattro */
40941 0, /* tp_setattro */
40942 0, /* tp_as_buffer */
40943 0, /* tp_flags */
40944 varlink__doc__, /* tp_doc */
40945 0, /* tp_traverse */
40946 0, /* tp_clear */
40947 0, /* tp_richcompare */
40948 0, /* tp_weaklistoffset */
40949#if PY_VERSION_HEX >= 0x02020000
40950 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40951#endif
40952#if PY_VERSION_HEX >= 0x02030000
40953 0, /* tp_del */
40954#endif
40955#ifdef COUNT_ALLOCS
40956 0,0,0,0 /* tp_alloc -> tp_next */
40957#endif
40958 };
40959 varlink_type = tmp;
40960 varlink_type.ob_type = &PyType_Type;
40961 type_init = 1;
be9b1dca 40962 }
1bd55598
RD
40963 return &varlink_type;
40964 }
40965
40966 /* Create a variable linking object for use later */
40967 SWIGINTERN PyObject *
40968 SWIG_Python_newvarlink(void) {
40969 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40970 if (result) {
40971 result->vars = 0;
40972 }
40973 return ((PyObject*) result);
40974 }
40975
40976 SWIGINTERN void
40977 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40978 swig_varlinkobject *v = (swig_varlinkobject *) p;
40979 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40980 if (gv) {
40981 size_t size = strlen(name)+1;
40982 gv->name = (char *)malloc(size);
40983 if (gv->name) {
40984 strncpy(gv->name,name,size);
40985 gv->get_attr = get_attr;
40986 gv->set_attr = set_attr;
40987 gv->next = v->vars;
40988 }
be9b1dca 40989 }
1bd55598
RD
40990 v->vars = gv;
40991 }
40992
40993 SWIGINTERN PyObject *
40994 SWIG_globals() {
40995 static PyObject *_SWIG_globals = 0;
40996 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40997 return _SWIG_globals;
40998 }
40999
41000 /* -----------------------------------------------------------------------------
41001 * constants/methods manipulation
41002 * ----------------------------------------------------------------------------- */
41003
41004 /* Install Constants */
41005 SWIGINTERN void
41006 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41007 PyObject *obj = 0;
41008 size_t i;
41009 for (i = 0; constants[i].type; ++i) {
41010 switch(constants[i].type) {
41011 case SWIG_PY_POINTER:
41012 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41013 break;
41014 case SWIG_PY_BINARY:
41015 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41016 break;
41017 default:
41018 obj = 0;
41019 break;
41020 }
41021 if (obj) {
41022 PyDict_SetItemString(d, constants[i].name, obj);
41023 Py_DECREF(obj);
41024 }
be9b1dca 41025 }
1bd55598
RD
41026 }
41027
41028 /* -----------------------------------------------------------------------------*/
41029 /* Fix SwigMethods to carry the callback ptrs when needed */
41030 /* -----------------------------------------------------------------------------*/
41031
41032 SWIGINTERN void
41033 SWIG_Python_FixMethods(PyMethodDef *methods,
41034 swig_const_info *const_table,
41035 swig_type_info **types,
41036 swig_type_info **types_initial) {
41037 size_t i;
41038 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 41039 const char *c = methods[i].ml_doc;
1bd55598
RD
41040 if (c && (c = strstr(c, "swig_ptr: "))) {
41041 int j;
41042 swig_const_info *ci = 0;
3d6c9062 41043 const char *name = c + 10;
1bd55598
RD
41044 for (j = 0; const_table[j].type; ++j) {
41045 if (strncmp(const_table[j].name, name,
41046 strlen(const_table[j].name)) == 0) {
41047 ci = &(const_table[j]);
41048 break;
41049 }
41050 }
41051 if (ci) {
41052 size_t shift = (ci->ptype) - types;
41053 swig_type_info *ty = types_initial[shift];
41054 size_t ldoc = (c - methods[i].ml_doc);
41055 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41056 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41057 if (ndoc) {
41058 char *buff = ndoc;
41059 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41060 if (ptr) {
41061 strncpy(buff, methods[i].ml_doc, ldoc);
41062 buff += ldoc;
41063 strncpy(buff, "swig_ptr: ", 10);
41064 buff += 10;
41065 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41066 methods[i].ml_doc = ndoc;
41067 }
41068 }
41069 }
41070 }
be9b1dca 41071 }
1bd55598
RD
41072 }
41073
41074#ifdef __cplusplus
41075}
41076#endif
41077
41078/* -----------------------------------------------------------------------------*
41079 * Partial Init method
41080 * -----------------------------------------------------------------------------*/
41081
41082#ifdef __cplusplus
41083extern "C"
41084#endif
41085SWIGEXPORT void SWIG_init(void) {
41086 PyObject *m, *d;
41087
41088 /* Fix SwigMethods to carry the callback ptrs when needed */
41089 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41090
41091 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41092 d = PyModule_GetDict(m);
41093
41094 SWIG_InitializeModule(0);
41095 SWIG_InstallConstants(d,swig_const_table);
41096
41097
2131d850
RD
41098 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41099 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41100 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41101 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41102 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
41103 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41104 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41105 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41106 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41107 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41108 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41109 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41110 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41111 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41112 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41113 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41114 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41115 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41116 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41117 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41118 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41119 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41120 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41121 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41122 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41123 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41124 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41125 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41126 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41127 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41128 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41129 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41130 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41131 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41132 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41133 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41134 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41135 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41136 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41137 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41138 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41139 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41140 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41141 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41142 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41143 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41144 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41145 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41146 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41147 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41148 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41149 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41150 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41151 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41152 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41153 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41154 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41155 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41156 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41157 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41158 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41159 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41160 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41161 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41162 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41163 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41164 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41165 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41166 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41167 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41168 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41169 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41170 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41171 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41172 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41173 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41174 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41175 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41176 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41177 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41178 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41179 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41180 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41181 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41182 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41183 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41184 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41185 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41186 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41187 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41188 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41189 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41190 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41191 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41192 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41193 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41194 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41195 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41196 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41197 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41198 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41199 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41200 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41201 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41202 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41203 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41204 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41205 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41206 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41207 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41208 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41209 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41210 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41211 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41212 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41213 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41214 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41215 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41216 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41217 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41218 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41219 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41220 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41221 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41222 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41223 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41224 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41225 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41226 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41227 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41228 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41229 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41230
41231 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41232
41233 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41257 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41258 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41259 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41260 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41261 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41262 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41263 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41264 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41265 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41266 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41267 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41268 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41269 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41270 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41271 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41272 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41273 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41274 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41275 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41276 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41277 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41278 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41279 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41280 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41281 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41282 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41283 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41284 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41285 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41286 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41287 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41288 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41289 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41290 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41291 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41292 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41293 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41294 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41295 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41296 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41297 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41298 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41299 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41300 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41301 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41302 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41303 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41304 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41305 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41306 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41307 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41308 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41309 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41310 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41311 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41312 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41313 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41314 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41315 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41316 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41317 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41318 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41319 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41320 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41321 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41322 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41323 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41324 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41325 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41326 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41327 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41328 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41329 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41330 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41331 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41332 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41333 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41334 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41335 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41336 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41337 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41338 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41339 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41340 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41341 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41342 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41343 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41344 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41345 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41346 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41347 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41348 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41349 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41350 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41351 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41352 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41353 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41354 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41355 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41356 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41357 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41358 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41359 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41360 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41361 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41362 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41363 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41364 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41365 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41366 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41367 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41368 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41369 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41370 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41371 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41372 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41373 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41374 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41375 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41376 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41377 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41378 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41379 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41380 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41381 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41382 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41383 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41384 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41385 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41386 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41387 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41388 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41389 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41390 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41391 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41392 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41393 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41394 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41395 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41396 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41397 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41398 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41399 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41400 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41401 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41402 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41403 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41404 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41405 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41406 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41407 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41408 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41409 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41410 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41411 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41412 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41413 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41414 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41415 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41416 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41417 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41418 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41419 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41420 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41451 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41452 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41453 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41454 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41455 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41456 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41457 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41458 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41459 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41460 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41461 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41462 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41463 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41464 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41465 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41466 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41467 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41468 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41469 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41470 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41471 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41472 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41473 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41474 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41475 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41476 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41477 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41478 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41479 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41480 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41481 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41482 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41483 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41484 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41485 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41486 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41487 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41488 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41489 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41490 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41491 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41492 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41493 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41494 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41495 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41496 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41497 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41498 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41499 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41500 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41501 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41502 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41503 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41504 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41505 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41506 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41507 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41508 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41509 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41510 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41511 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41512 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41513 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41514 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41515 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41516 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41517 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41518 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41519 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41520 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41521 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41522 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41523 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41524 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41525 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41526 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41527 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41528 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41529 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41530 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41531 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41532 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41533 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41534 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41535 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41536 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41537 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41538 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41539 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41540 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41541 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41542 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41543 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41544 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41545 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41546 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41547 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41548 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41549 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41550 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41551 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41552 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41553 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41554 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41555 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41556 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41557
41558 // Work around a chicken/egg problem in drawlist.cpp
41559 wxPyDrawList_SetAPIPtr();
41560
d55e5bfc
RD
41561}
41562