]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
Add docstrings and a dummy class to be used in builds that don't have wxSearchCtrl.
[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]
4fe9ce47
RD
2593#define SWIGTYPE_p_wxPostScriptDC swig_types[127]
2594#define SWIGTYPE_p_wxPrintData swig_types[128]
2595#define SWIGTYPE_p_wxPrinterDC swig_types[129]
2596#define SWIGTYPE_p_wxPseudoDC swig_types[130]
2597#define SWIGTYPE_p_wxPyApp swig_types[131]
2598#define SWIGTYPE_p_wxPyCommandEvent swig_types[132]
2599#define SWIGTYPE_p_wxPyEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyFontEnumerator swig_types[134]
2601#define SWIGTYPE_p_wxPyImageHandler swig_types[135]
2602#define SWIGTYPE_p_wxPyLocale swig_types[136]
2603#define SWIGTYPE_p_wxPySizer swig_types[137]
2604#define SWIGTYPE_p_wxPyValidator swig_types[138]
2605#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[139]
2606#define SWIGTYPE_p_wxRect swig_types[140]
2607#define SWIGTYPE_p_wxRect2D swig_types[141]
2608#define SWIGTYPE_p_wxRegion swig_types[142]
2609#define SWIGTYPE_p_wxRegionIterator swig_types[143]
2610#define SWIGTYPE_p_wxRendererNative swig_types[144]
2611#define SWIGTYPE_p_wxRendererVersion swig_types[145]
2612#define SWIGTYPE_p_wxScreenDC swig_types[146]
2613#define SWIGTYPE_p_wxScrollEvent swig_types[147]
2614#define SWIGTYPE_p_wxScrollWinEvent swig_types[148]
2615#define SWIGTYPE_p_wxSetCursorEvent swig_types[149]
2616#define SWIGTYPE_p_wxShowEvent swig_types[150]
2617#define SWIGTYPE_p_wxSize swig_types[151]
2618#define SWIGTYPE_p_wxSizeEvent swig_types[152]
2619#define SWIGTYPE_p_wxSizer swig_types[153]
2620#define SWIGTYPE_p_wxSizerItem swig_types[154]
2621#define SWIGTYPE_p_wxSplitterRenderParams swig_types[155]
2622#define SWIGTYPE_p_wxStaticBoxSizer swig_types[156]
2623#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[157]
2624#define SWIGTYPE_p_wxStockGDI swig_types[158]
2625#define SWIGTYPE_p_wxString swig_types[159]
2626#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[160]
2627#define SWIGTYPE_p_wxTGAHandler swig_types[161]
2628#define SWIGTYPE_p_wxTIFFHandler swig_types[162]
2629#define SWIGTYPE_p_wxUpdateUIEvent swig_types[163]
2630#define SWIGTYPE_p_wxValidator swig_types[164]
2631#define SWIGTYPE_p_wxWindow swig_types[165]
2632#define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
2633#define SWIGTYPE_p_wxWindowDC swig_types[167]
2634#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168]
2635#define SWIGTYPE_p_wxXPMHandler swig_types[169]
2636static swig_type_info *swig_types[171];
2637static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0};
32fe5131
RD
2638#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2639#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2640
36ed4f51 2641/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2642
1bd55598
RD
2643#if (PY_VERSION_HEX <= 0x02000000)
2644# if !defined(SWIG_PYTHON_CLASSIC)
2645# error "This python version requires to use swig with the '-classic' option"
2646# endif
2647#endif
2648#if (PY_VERSION_HEX <= 0x02020000)
2649# error "This python version requires to use swig with the '-nomodern' option"
2650#endif
2651#if (PY_VERSION_HEX <= 0x02020000)
2652# error "This python version requires to use swig with the '-nomodernargs' option"
2653#endif
2654#ifndef METH_O
2655# error "This python version requires to use swig with the '-nofastunpack' option"
2656#endif
d55e5bfc 2657
36ed4f51
RD
2658/*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661#define SWIG_init init_gdi_
d55e5bfc 2662
36ed4f51 2663#define SWIG_name "_gdi_"
d55e5bfc 2664
1bd55598 2665#define SWIGVERSION 0x010329
d55e5bfc 2666
d55e5bfc 2667
1bd55598
RD
2668#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2669#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2670
2671
1bd55598
RD
2672#include <stdexcept>
2673
2674
2675namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
36ed4f51 2683 }
1bd55598
RD
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
36ed4f51 2688 }
1bd55598
RD
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
36ed4f51 2718}
d55e5bfc 2719
d55e5bfc 2720
1bd55598
RD
2721namespace swig {
2722 struct PyObject_var : PyObject_ptr {
2723 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2724
2725 PyObject_var & operator = (PyObject* obj)
2726 {
2727 Py_XDECREF(_obj);
2728 _obj = obj;
2729 return *this;
d55e5bfc 2730 }
1bd55598 2731 };
d55e5bfc
RD
2732}
2733
2734
1bd55598
RD
2735#include "wx/wxPython/wxPython.h"
2736#include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
2131d850
RD
2741 #define SWIG_From_long PyInt_FromLong
2742
2743
2744SWIGINTERNINLINE PyObject *
2745SWIG_From_int (int value)
2746{
2747 return SWIG_From_long (value);
2748}
2749
2750
1bd55598
RD
2751#include <limits.h>
2752#ifndef LLONG_MIN
2753# define LLONG_MIN LONG_LONG_MIN
2754#endif
2755#ifndef LLONG_MAX
2756# define LLONG_MAX LONG_LONG_MAX
2757#endif
2758#ifndef ULLONG_MAX
2759# define ULLONG_MAX ULONG_LONG_MAX
2760#endif
d55e5bfc
RD
2761
2762
da91cb0f
RD
2763SWIGINTERN int
2764SWIG_AsVal_long (PyObject* obj, long* val)
2765{
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771}
2772
2773
36ed4f51 2774SWIGINTERN int
1bd55598 2775SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2776{
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2779 return SWIG_TypeError;
36ed4f51
RD
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
1bd55598 2783 return SWIG_OK;
36ed4f51 2784}
d55e5bfc
RD
2785
2786
36ed4f51 2787SWIGINTERN int
1bd55598
RD
2788SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789{
36ed4f51 2790 unsigned long v;
1bd55598
RD
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
36ed4f51 2795 } else {
1bd55598 2796 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2797 }
1bd55598
RD
2798 }
2799 return res;
36ed4f51 2800}
d55e5bfc 2801
d55e5bfc 2802
1bd55598
RD
2803SWIGINTERNINLINE PyObject*
2804SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2805{
1bd55598
RD
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2808}
2809
2810
1bd55598
RD
2811SWIGINTERNINLINE PyObject *
2812SWIG_From_unsigned_SS_char (unsigned char value)
2813{
2814 return SWIG_From_unsigned_SS_long (value);
2815}
d55e5bfc 2816
e9d6f3a4
RD
2817SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
fc46b7f3
RD
2835
2836SWIGINTERN int
2837SWIG_AsVal_bool (PyObject *obj, bool *val)
2838{
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851}
2852
2853SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
fc46b7f3 2858 int alpha = wxALPHA_OPAQUE;
b39fe951 2859 if (self->IsOk()) {
36ed4f51
RD
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
fc46b7f3 2863 alpha = self->Alpha();
36ed4f51
RD
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2870 return rv;
2871 }
1bd55598 2872SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
d55e5bfc 2875
1bd55598
RD
2876SWIGINTERN int
2877SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2878{
1bd55598
RD
2879 long v;
2880 int res = SWIG_AsVal_long (obj, &v);
2881 if (SWIG_IsOK(res)) {
2882 if ((v < INT_MIN || v > INT_MAX)) {
2883 return SWIG_OverflowError;
2884 } else {
2885 if (val) *val = static_cast< int >(v);
2886 }
2887 }
2888 return res;
d55e5bfc
RD
2889}
2890
1bd55598 2891SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
5a446332 2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
1bd55598 2904SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2908
36ed4f51
RD
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
1bd55598
RD
2923SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2924SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2925
1bd55598
RD
2926SWIGINTERNINLINE PyObject *
2927SWIG_From_short (short value)
2928{
2929 return SWIG_From_long (value);
2930}
d55e5bfc
RD
2931
2932
36ed4f51 2933SWIGINTERN int
1bd55598
RD
2934SWIG_AsVal_short (PyObject * obj, short *val)
2935{
36ed4f51 2936 long v;
1bd55598
RD
2937 int res = SWIG_AsVal_long (obj, &v);
2938 if (SWIG_IsOK(res)) {
2939 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2940 return SWIG_OverflowError;
36ed4f51 2941 } else {
1bd55598
RD
2942 if (val) *val = static_cast< short >(v);
2943 }
2944 }
2945 return res;
d55e5bfc
RD
2946}
2947
2948
fc46b7f3
RD
2949#include <wx/rawbmp.h>
2950
2951
8f514ab4
RD
2952// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2953// appears to me that the other platforms are already doing it, so I'll just
2954// automatically do it for wxMSW here.
2955#ifdef __WXMSW__
2956#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2957#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2958#else
2959#define wxPy_premultiply(p, a) (p)
2960#define wxPy_unpremultiply(p, a) (p)
2961#endif
2962
2963
36ed4f51 2964#include <wx/image.h>
d55e5bfc 2965
36ed4f51
RD
2966 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2967 char** cArray = NULL;
2968 int count;
d55e5bfc 2969
36ed4f51
RD
2970 if (!PyList_Check(listOfStrings)) {
2971 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2972 return NULL;
2973 }
2974 count = PyList_Size(listOfStrings);
2975 cArray = new char*[count];
d55e5bfc 2976
36ed4f51
RD
2977 for(int x=0; x<count; x++) {
2978 // TODO: Need some validation and error checking here
2979 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2980 }
2981 return cArray;
d55e5bfc 2982 }
d55e5bfc
RD
2983
2984
1bd55598 2985SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2986 char** cArray = NULL;
2987 wxBitmap* bmp;
2988
2989 cArray = ConvertListOfStrings(listOfStrings);
2990 if (! cArray)
2991 return NULL;
2992 bmp = new wxBitmap(cArray);
2993 delete [] cArray;
2994 return bmp;
2995 }
1bd55598 2996SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2997 char* buf;
2998 Py_ssize_t length;
2999 PyString_AsStringAndSize(bits, &buf, &length);
3000 return new wxBitmap(buf, width, height, depth);
3001 }
1bd55598 3002SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3003 wxSize size(self->GetWidth(), self->GetHeight());
3004 return size;
3005 }
1bd55598 3006SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3007 wxMask *mask = new wxMask(*self, colour);
3008 self->SetMask(mask);
3009 }
1bd55598 3010SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3011 self->SetWidth(size.x);
3012 self->SetHeight(size.y);
3013 }
8f514ab4
RD
3014SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3015 int height=self->GetHeight();
3016 int width=self->GetWidth();
fc46b7f3 3017
8f514ab4
RD
3018 if (DATASIZE != width * height * 3) {
3019 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3020 }
3021 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3022 if (! pixData) {
3023 // raise an exception...
3024 wxPyErr_SetString(PyExc_RuntimeError,
3025 "Failed to gain raw access to bitmap data.");
3026 return;
3027 }
fc46b7f3 3028
8f514ab4
RD
3029 wxNativePixelData::Iterator p(pixData);
3030 for (int y=0; y<height; y++) {
3031 wxNativePixelData::Iterator rowStart = p;
3032 for (int x=0; x<width; x++) {
3033 p.Red() = *(data++);
3034 p.Green() = *(data++);
3035 p.Blue() = *(data++);
3036 ++p;
3037 }
3038 p = rowStart;
3039 p.OffsetY(pixData, 1);
3040 }
3041 }
3042SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3043 int height=self->GetHeight();
3044 int width=self->GetWidth();
3045
3046 if (DATASIZE != width * height * 4) {
3047 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3048 }
3049 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3050 if (! pixData) {
3051 // raise an exception...
3052 wxPyErr_SetString(PyExc_RuntimeError,
3053 "Failed to gain raw access to bitmap data.");
3054 return;
3055 }
3056
3057 pixData.UseAlpha();
3058 wxAlphaPixelData::Iterator p(pixData);
3059 for (int y=0; y<height; y++) {
3060 wxAlphaPixelData::Iterator rowStart = p;
3061 for (int x=0; x<width; x++) {
3062 byte a = data[3];
3063 p.Red() = wxPy_premultiply(*(data++), a);
3064 p.Green() = wxPy_premultiply(*(data++), a);
3065 p.Blue() = wxPy_premultiply(*(data++), a);
3066 p.Alpha() = a; data++;
3067 ++p;
3068 }
3069 p = rowStart;
3070 p.OffsetY(pixData, 1);
3071 }
3072 }
3073SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3074SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3075
3076 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3077 buffer data, int DATASIZE,
3078 buffer alpha, int ALPHASIZE)
3079 {
3080 if (DATASIZE != width*height*3) {
3081 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3082 return NULL;
3083 }
3084
3085 if (ALPHASIZE != width*height) {
3086 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3087 return NULL;
3088 }
3089
3090 wxBitmap* bmp = new wxBitmap(width, height, 32);
3091 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3092 if (! pixData) {
3093 // raise an exception...
3094 wxPyErr_SetString(PyExc_RuntimeError,
3095 "Failed to gain raw access to bitmap data.");
3096 return NULL;
3097 }
3098
3099 pixData.UseAlpha();
3100 wxAlphaPixelData::Iterator p(pixData);
3101 for (int y=0; y<height; y++) {
3102 wxAlphaPixelData::Iterator rowStart = p;
3103 for (int x=0; x<width; x++) {
3104 byte a = *(alpha++);
3105 p.Red() = wxPy_premultiply(*(data++), a);
3106 p.Green() = wxPy_premultiply(*(data++), a);
3107 p.Blue() = wxPy_premultiply(*(data++), a);
3108 p.Alpha() = a;
3109 ++p;
3110 }
3111 p = rowStart;
3112 p.OffsetY(pixData, 1);
3113 }
3114 return bmp;
3115 }
3116
3117 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3118 {
3119 if (DATASIZE != width*height*3) {
3120 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3121 return NULL;
3122 }
3123
3124 wxBitmap* bmp = new wxBitmap(width, height, 24);
3125 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3126 if (! pixData) {
3127 // raise an exception...
3128 wxPyErr_SetString(PyExc_RuntimeError,
3129 "Failed to gain raw access to bitmap data.");
3130 return NULL;
3131 }
3132
3133 wxNativePixelData::Iterator p(pixData);
3134 for (int y=0; y<height; y++) {
3135 wxNativePixelData::Iterator rowStart = p;
3136 for (int x=0; x<width; x++) {
3137 p.Red() = *(data++);
3138 p.Green() = *(data++);
3139 p.Blue() = *(data++);
3140 ++p;
3141 }
3142 p = rowStart;
3143 p.OffsetY(pixData, 1);
3144 }
3145 return bmp;
3146 }
3147
3148
3149 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3150 {
3151 if (DATASIZE != width*height*4) {
3152 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3153 return NULL;
3154 }
3155
3156 wxBitmap* bmp = new wxBitmap(width, height, 32);
3157 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3158 if (! pixData) {
3159 // raise an exception...
3160 wxPyErr_SetString(PyExc_RuntimeError,
3161 "Failed to gain raw access to bitmap data.");
3162 return NULL;
3163 }
3164
3165 pixData.UseAlpha();
3166 wxAlphaPixelData::Iterator p(pixData);
3167 for (int y=0; y<height; y++) {
3168 wxAlphaPixelData::Iterator rowStart = p;
3169 for (int x=0; x<width; x++) {
3170 byte a = data[3];
3171 p.Red() = wxPy_premultiply(*(data++), a);
3172 p.Green() = wxPy_premultiply(*(data++), a);
3173 p.Blue() = wxPy_premultiply(*(data++), a);
3174 p.Alpha() = a; data++;
3175 ++p;
3176 }
3177 p = rowStart;
3178 p.OffsetY(pixData, 1);
3179 }
3180 return bmp;
3181 }
3182
3183
3184 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3185
3186SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3187SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3188SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3189 self->Red() = red;
3190 self->Green() = green;
3191 self->Blue() = blue;
3192 }
3193SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3194 PyObject* rv = PyTuple_New(3);
3195 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3196 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3197 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3198 return rv;
3199 }
3200
3201 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3202
3203SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3204SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3205SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3206 self->Red() = wxPy_premultiply(red, alpha);
3207 self->Green() = wxPy_premultiply(green, alpha);
3208 self->Blue() = wxPy_premultiply(blue, alpha);
3209 self->Alpha() = alpha;
3210 }
3211SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3212 PyObject* rv = PyTuple_New(4);
3213 int red = self->Red();
3214 int green = self->Green();
3215 int blue = self->Blue();
3216 int alpha = self->Alpha();
3217
3218 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3219 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3220 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3221 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3222 return rv;
3223 }
1bd55598 3224SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3225 if ( !colour.IsOk() )
36ed4f51
RD
3226 return new wxMask(bitmap, *wxBLACK);
3227 else
3228 return new wxMask(bitmap, colour);
3229 }
d55e5bfc 3230
36ed4f51 3231#include <wx/iconbndl.h>
d55e5bfc 3232
1bd55598 3233SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3234 wxIcon* icon = new wxIcon();
3235 icon->CopyFromBitmap(bmp);
3236 return icon;
3237 }
1bd55598 3238SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3239 char** cArray = NULL;
3240 wxIcon* icon;
d55e5bfc 3241
36ed4f51
RD
3242 cArray = ConvertListOfStrings(listOfStrings);
3243 if (! cArray)
3244 return NULL;
3245 icon = new wxIcon(cArray);
3246 delete [] cArray;
3247 return icon;
3248 }
1bd55598 3249SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3250
3251
d55e5bfc 3252
36ed4f51 3253 return new wxIconLocation(*filename);
d55e5bfc 3254
36ed4f51 3255 }
1bd55598 3256SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3257
3258
d55e5bfc 3259
36ed4f51 3260 // do nothing
d55e5bfc 3261
36ed4f51 3262 }
1bd55598 3263SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3264
3265
d55e5bfc 3266
36ed4f51 3267 return -1;
d55e5bfc 3268
36ed4f51 3269 }
1bd55598 3270SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3271#ifdef __WXGTK__
fef4c27a
RD
3272 wxImage img(cursorName, type);
3273 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3275 return new wxCursor(img);
36ed4f51 3276#else
fef4c27a 3277 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3278#endif
3279 }
d55e5bfc 3280
d55e5bfc 3281
1bd55598 3282SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3283 (*self) ++;
3284 }
1bd55598 3285SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3286 return self->operator bool();
3287 }
d55e5bfc 3288
36ed4f51
RD
3289#include <wx/fontutil.h>
3290#include <wx/fontmap.h>
3291#include <wx/fontenum.h>
d55e5bfc 3292
1bd55598 3293SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3294 return self->ToString();
3295 }
d55e5bfc 3296
36ed4f51
RD
3297 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3298 static wxNativeEncodingInfo info;
3299 if ( wxGetNativeFontEncoding(encoding, &info) )
3300 return &info;
3301 else
3302 return NULL;
d55e5bfc 3303 }
d55e5bfc 3304
1bd55598
RD
3305
3306SWIGINTERNINLINE PyObject *
3307SWIG_From_size_t (size_t value)
3308{
3309 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3310}
3311
3312
3313SWIGINTERNINLINE int
3314SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3315{
3316 unsigned long v;
3317 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3318 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3319 return res;
3320}
3321
3322SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3323 wxFontEncoding alt_enc;
3324 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3325 return PyInt_FromLong(alt_enc);
3326 else {
3327 Py_INCREF(Py_None);
3328 return Py_None;
3329 }
3330 }
1bd55598 3331SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3332 wxNativeFontInfo nfi;
3333 nfi.FromString(info);
3334 return new wxFont(nfi);
3335 }
1bd55598 3336SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3337 return wxFont::New(pointSize, family, flags, face, encoding);
3338 }
1bd55598 3339SWIGINTERN 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
3340 return wxFontBase::New(pixelSize, family,
3341 style, weight, underlined,
3342 face, encoding);
3343 }
1bd55598 3344SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3345 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3346 }
1bd55598
RD
3347SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3348SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3349
36ed4f51
RD
3350class wxPyFontEnumerator : public wxFontEnumerator {
3351public:
3352 wxPyFontEnumerator() {}
3353 ~wxPyFontEnumerator() {}
d55e5bfc 3354
36ed4f51
RD
3355 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3356 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3357
36ed4f51
RD
3358 PYPRIVATE;
3359};
d55e5bfc 3360
36ed4f51
RD
3361IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3362IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3363
36ed4f51 3364
704eda0c 3365SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3366 PyObject* ret;
704eda0c 3367 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3368 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3369 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3370 wxPyEndBlockThreads(blocked);
3371 return ret;
36ed4f51 3372 }
704eda0c 3373SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3374 PyObject* ret;
704eda0c 3375 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3376 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3377 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3378 wxPyEndBlockThreads(blocked);
3379 return ret;
36ed4f51
RD
3380 }
3381
3382#include <locale.h>
3383
1bd55598 3384SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3385 wxLocale* loc;
3386 if (language == -1)
3387 loc = new wxLocale();
3388 else
3389 loc = new wxLocale(language, flags);
3390 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3391 // for the floating point conversions and such to work right.
3392#if PY_VERSION_HEX < 0x02040000
3393 setlocale(LC_NUMERIC, "C");
3394#endif
3395 return loc;
3396 }
1bd55598 3397SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3398 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3399 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3400 // for the floating point conversions and such to work right.
3401#if PY_VERSION_HEX < 0x02040000
3402 setlocale(LC_NUMERIC, "C");
3403#endif
3404 return rc;
3405 }
1bd55598 3406SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3407 bool rc = self->Init(language, flags);
3408 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3409 // for the floating point conversions and such to work right.
3410#if PY_VERSION_HEX < 0x02040000
3411 setlocale(LC_NUMERIC, "C");
3412#endif
3413 return rc;
3414 }
3415
fc46b7f3
RD
3416class wxPyLocale : public wxLocale
3417{
3418public:
3419 wxPyLocale();
3420
3421 wxPyLocale(const wxChar *szName, // name (for messages)
3422 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3423 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3424 bool bLoadDefault = true, // preload wxstd.mo?
3425 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3426
3427 wxPyLocale(int language, // wxLanguage id or custom language
3428 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3429
3430 ~wxPyLocale();
3431
3432 virtual const wxChar *GetString(const wxChar *szOrigString,
3433 const wxChar *szDomain = NULL) const;
3434 virtual const wxChar *GetString(const wxChar *szOrigString,
3435 const wxChar *szOrigString2, size_t n,
3436 const wxChar *szDomain = NULL) const;
3437
3438 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3439 const wxChar *szDomain = NULL) const;
3440 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3441 const wxChar *szOrigString2, size_t n,
3442 const wxChar *szDomain = NULL) const;
3443
3444 PYPRIVATE;
3445private:
3446 DECLARE_NO_COPY_CLASS(wxPyLocale)
3447};
3448
3449wxPyLocale::wxPyLocale() : wxLocale()
3450{
3451}
3452
3453wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3454 const wxChar *szShort, // dir prefix (for msg files)
3455 const wxChar *szLocale, // locale (for setlocale)
3456 bool bLoadDefault, // preload wxstd.mo?
3457 bool bConvertEncoding) // convert Win<->Unix if necessary?
3458 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3459{
3460}
3461
3462wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3463 int flags) : wxLocale(language, flags)
3464{
3465}
3466
3467wxPyLocale::~wxPyLocale()
3468{
3469}
3470
3471const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3472 const wxChar *szDomain) const
3473{
3474 wxChar *str = GetSingularString(szOrigString, szDomain);
3475 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3476}
3477
3478const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3479 const wxChar *szOrigString2, size_t n,
3480 const wxChar *szDomain) const
3481{
3482 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3483 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3484}
3485
3486wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3487 const wxChar *szDomain) const
3488{
3489 bool found;
3490 static wxString str;
3491 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.
3492 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3493 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3494 PyObject* param1 = wx2PyString(szOrigString);
3495 PyObject* param2 = wx2PyString(szDomain);
3496 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3497 Py_DECREF(param1);
3498 Py_DECREF(param2);
3499 if (ret) {
3500 str = Py2wxString(ret);
3501 Py_DECREF(ret);
3502 }
3503 }
3504 wxPyEndBlockThreads(blocked);
3505 return (found ? (wxChar*)str.c_str() : NULL);
3506}
3507
3508wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3509 const wxChar *szOrigString2, size_t n,
3510 const wxChar *szDomain) const
3511{
3512 bool found;
3513 static wxString str;
3514 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.
3515 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3516 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3517 PyObject* param1 = wx2PyString(szOrigString);
3518 PyObject* param2 = wx2PyString(szOrigString2);
3519 PyObject* param4 = wx2PyString(szDomain);
3520 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3521 Py_DECREF(param1);
3522 Py_DECREF(param2);
3523 Py_DECREF(param4);
3524 if( ret) {
3525 str = Py2wxString(ret);
3526 Py_DECREF(ret);
3527 }
3528 }
3529 wxPyEndBlockThreads(blocked);
3530 return (found ? (wxChar*)str.c_str() : NULL);
3531}
3532
3533SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3534 wxPyLocale* loc;
3535 if (language == -1)
3536 loc = new wxPyLocale();
3537 else
3538 loc = new wxPyLocale(language, flags);
3539 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3540 // for the floating point conversions and such to work right.
3541#if PY_VERSION_HEX < 0x02040000
3542 setlocale(LC_NUMERIC, "C");
3543#endif
3544 return loc;
3545 }
3546
36ed4f51
RD
3547#include "wx/wxPython/pydrawxxx.h"
3548
1bd55598 3549SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3550 wxColour col;
3551 self->GetPixel(x, y, &col);
3552 return col;
3553 }
1bd55598 3554SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3555 wxColour col;
3556 self->GetPixel(pt, &col);
3557 return col;
3558 }
3559
3560SWIGINTERN int
1bd55598 3561SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3562{
3563 if (PyNumber_Check(obj)) {
3564 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3565 return SWIG_OK;
d55e5bfc 3566 }
1bd55598 3567 return SWIG_TypeError;
36ed4f51
RD
3568}
3569
1bd55598 3570SWIGINTERN 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
3571 wxRect rv;
3572 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3573 return rv;
3574 }
1bd55598 3575SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3576 wxRect rect;
3577 self->GetClippingBox(rect);
3578 return rect;
3579 }
1bd55598 3580SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3581 wxArrayInt widths;
3582 self->GetPartialTextExtents(text, widths);
3583 return widths;
3584 }
3585
1bd55598 3586 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3587
1bd55598 3588SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3589 self->SetLogicalOrigin(point.x, point.y);
3590 }
1bd55598 3591SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3592 self->SetDeviceOrigin(point.x, point.y);
3593 }
1bd55598 3594SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3595 self->CalcBoundingBox(point.x, point.y);
3596 }
1bd55598 3597SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3598 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3599 }
1bd55598 3600SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3601 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3602 }
1bd55598 3603SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3604 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3605 }
1bd55598 3606SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3607 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3608 }
1bd55598 3609SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3610 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3611 }
1bd55598 3612SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3613 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3614 }
3615
3616static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3617 *x1 = dc->MinX();
3618 *y1 = dc->MinY();
3619 *x2 = dc->MaxX();
3620 *y2 = dc->MaxY();
3621}
3622
3623
3624#include <wx/dcbuffer.h>
3625
3626
3627#include <wx/dcps.h>
3628
3629
3630#include <wx/metafile.h>
3631
3632
72ef6efb
RD
3633#include <wx/graphics.h>
3634
3635
3636#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3637// C++ stub classes for platforms or build configurations that don't have
3638// wxGraphicsContext yet.
72ef6efb 3639
8bd35413
RD
3640class wxGraphicsRenderer;
3641class wxGraphicsMatrix;
3642
70d7cb34
RD
3643
3644class wxGraphicsObject : public wxObject
72ef6efb
RD
3645{
3646public :
8bd35413 3647 wxGraphicsObject() {}
70d7cb34 3648 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3649 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3650 "wx.GraphicsObject is not available on this platform.");
3651 }
3652 wxGraphicsObject( const wxGraphicsObject& ) {}
3653 virtual ~wxGraphicsObject() {}
3654 bool IsNull() const { return false; }
3655 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3656} ;
3657
3658
3659
3660class wxGraphicsPen : public wxGraphicsObject
3661{
8bd35413 3662public:
70d7cb34
RD
3663 wxGraphicsPen() {}
3664 virtual ~wxGraphicsPen() {}
3665} ;
3666wxGraphicsPen wxNullGraphicsPen;
3667
3668
3669
3670class wxGraphicsBrush : public wxGraphicsObject
3671{
3672public :
3673 wxGraphicsBrush() {}
3674 virtual ~wxGraphicsBrush() {}
3675} ;
3676wxGraphicsBrush wxNullGraphicsBrush;
3677
3678
3679
3680class wxGraphicsFont : public wxGraphicsObject
3681{
3682public :
3683 wxGraphicsFont() {}
3684 virtual ~wxGraphicsFont() {}
3685} ;
3686wxGraphicsFont wxNullGraphicsFont;
3687
3688
3689
3690class wxGraphicsPath : public wxGraphicsObject
3691{
3692public :
8bd35413 3693 wxGraphicsPath() { }
70d7cb34
RD
3694 wxGraphicsPath(wxGraphicsRenderer* ) {
3695 PyErr_SetString(PyExc_NotImplementedError,
3696 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3697 }
3698 virtual ~wxGraphicsPath() {}
70d7cb34 3699
72ef6efb 3700 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3701 void MoveToPoint( const wxPoint2DDouble& ) {}
3702 void AddLineToPoint( wxDouble, wxDouble ) {}
3703 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3704 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3705 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3706 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3707 void CloseSubpath() {}
8bd35413
RD
3708 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3709 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3710 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3711 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3712
3713 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3714 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3715 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3716 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3717
70d7cb34
RD
3718 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3719 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3720 void * GetNativePath() const { return NULL; }
8bd35413
RD
3721 void UnGetNativePath(void *) const {}
3722 void Transform( const wxGraphicsMatrix& ) {}
3723 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3724 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3725
8bd35413
RD
3726 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3727 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3728};
5c8c7dd3 3729wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3730
3731
3732class wxGraphicsMatrix : public wxGraphicsObject
3733{
3734public :
8bd35413 3735 wxGraphicsMatrix() { }
70d7cb34
RD
3736 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3737 PyErr_SetString(PyExc_NotImplementedError,
3738 "wx.GraphicsMatrix is not available on this platform.");
3739 }
3740 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3741 virtual void Concat( const wxGraphicsMatrix & ) {}
3742 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3743 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3744 wxDouble , wxDouble ) {}
248802d0
RD
3745 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3746 wxDouble*, wxDouble*, wxDouble*) {}
70d7cb34 3747 virtual void Invert() {}
8bd35413
RD
3748 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3749 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3750 virtual void Translate( wxDouble , wxDouble ) {}
3751 virtual void Scale( wxDouble , wxDouble ) {}
3752 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3753 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3754 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3755 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3756};
5c8c7dd3 3757wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3758
70d7cb34
RD
3759
3760class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3761{
3762public:
70d7cb34
RD
3763
3764 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3765 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3766 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3767 }
70d7cb34 3768
72ef6efb 3769 virtual ~wxGraphicsContext() {}
70d7cb34 3770
8bd35413
RD
3771 static wxGraphicsContext* Create() {
3772 PyErr_SetString(PyExc_NotImplementedError,
3773 "wx.GraphicsContext is not available on this platform.");
3774 return NULL;
3775 }
70d7cb34 3776 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3777 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3778 "wx.GraphicsContext is not available on this platform.");
8bd35413 3779 return NULL;
72ef6efb 3780 }
b876c1e4 3781
70d7cb34 3782 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3783 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3784 "wx.GraphicsContext is not available on this platform.");
8bd35413 3785 return NULL;
70d7cb34 3786 }
b876c1e4 3787
70d7cb34
RD
3788 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3789 PyErr_SetString(PyExc_NotImplementedError,
3790 "wx.GraphicsContext is not available on this platform.");
8bd35413 3791 return NULL;
70d7cb34
RD
3792 }
3793
3794 static wxGraphicsContext* Create( wxWindow* ) {
3795 PyErr_SetString(PyExc_NotImplementedError,
3796 "wx.GraphicsContext is not available on this platform.");
8bd35413 3797 return NULL;
70d7cb34
RD
3798 }
3799
8bd35413 3800 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3801
8bd35413 3802 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3803
8bd35413 3804 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3805
3806 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3807 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3808
3809 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3810 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3811 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3812
8bd35413 3813 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3814
8bd35413
RD
3815 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3816 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3817
3818 virtual void PushState() {}
3819 virtual void PopState() {}
3820 virtual void Clip( const wxRegion & ) {}
3821 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3822 virtual void ResetClip() {}
3823 virtual void * GetNativeContext() { return NULL; }
c8aaaf9e
RD
3824 virtual int GetLogicalFunction() const { return 0; }
3825 virtual bool SetLogicalFunction(int ) {}
70d7cb34
RD
3826 virtual void Translate( wxDouble , wxDouble ) {}
3827 virtual void Scale( wxDouble , wxDouble ) {}
3828 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3829 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3830 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3831 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3832
3833 virtual void SetPen( const wxGraphicsPen& ) {}
3834 void SetPen( const wxPen& ) {}
3835
3836 virtual void SetBrush( const wxGraphicsBrush& ) {}
3837 void SetBrush( const wxBrush& ) {}
3838
3839 virtual void SetFont( const wxGraphicsFont& ) {}
3840 void SetFont( const wxFont&, const wxColour& ) {}
3841
8bd35413
RD
3842 virtual void StrokePath( const wxGraphicsPath & ) {}
3843 virtual void FillPath( const wxGraphicsPath &, int ) {}
3844 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3845
3846 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3847 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3848 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3849 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3850 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3851 wxDouble *, wxDouble * ) const {}
3852 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3853
3854 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3855 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3856
3857 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3858 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3859 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3860 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3861 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
8bd35413 3862 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3863 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3864 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3865 virtual bool ShouldOffset() const { return false; }
3866};
3867
3868
3869class wxGraphicsRenderer : public wxObject
3870{
3871public :
3872 wxGraphicsRenderer() {
3873 PyErr_SetString(PyExc_NotImplementedError,
3874 "wx.GraphicsRenderer is not available on this platform.");
3875 }
3876
3877 virtual ~wxGraphicsRenderer() {}
3878
8bd35413 3879 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3880 PyErr_SetString(PyExc_NotImplementedError,
3881 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3882 return NULL;
3883 }
70d7cb34
RD
3884
3885 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3886 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3887 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3888 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3889 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3890
8bd35413 3891 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3892
8bd35413
RD
3893 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3894 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3895
8bd35413
RD
3896 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3897 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3898 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3899 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3900 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3901 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3902 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3903};
3904
3905
70d7cb34 3906
72ef6efb
RD
3907class wxGCDC: public wxWindowDC
3908{
3909public:
3910 wxGCDC(const wxWindowDC&) {
3911 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3912 PyErr_SetString(PyExc_NotImplementedError,
3913 "wxGCDC is not available on this platform.");
3914 wxPyEndBlockThreads(blocked);
3915 }
70d7cb34 3916
48a0c021
RD
3917 wxGCDC(const wxWindow*) {
3918 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3919 PyErr_SetString(PyExc_NotImplementedError,
3920 "wxGCDC is not available on this platform.");
3921 wxPyEndBlockThreads(blocked);
3922 }
3923
72ef6efb
RD
3924 wxGCDC() {
3925 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3926 PyErr_SetString(PyExc_NotImplementedError,
3927 "wxGCDC is not available on this platform.");
3928 wxPyEndBlockThreads(blocked);
3929 }
70d7cb34 3930
72ef6efb
RD
3931 virtual ~wxGCDC() {}
3932
b876c1e4
RD
3933 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3934 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3935};
3936
3937#endif
3938
f89238b9
RD
3939SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3940 if ( !backgroundBrush.IsNull() )
3941 self->DrawText(str, x, y, backgroundBrush);
3942 else
3943 self->DrawText(str, x, y);
3944 }
3945SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3946 if ( !backgroundBrush.IsNull() )
3947 self->DrawText(str, x, y, angle, backgroundBrush);
3948 else
3949 self->DrawText(str, x, y, angle);
3950 }
be68621e
RD
3951SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3952 wxDouble width = 0.0,
3953 height = 0.0;
3954 self->GetTextExtent(text, &width, &height, NULL, NULL);
3955 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3956 PyObject* rv = PyTuple_New(2);
3957 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3958 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3959 return rv;
3960 }
b39fe951
RD
3961SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3962 wxArrayDouble widths;
3963 self->GetPartialTextExtents(text, widths);
3964 return widths;
3965 }
f8eb59b9 3966SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3967 size_t c1, c2, count;
3968 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3969 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3970
3971 if ( beginP != NULL && endP != NULL )
3972 {
3973 count = wxMin(c1, c2);
3974 self->StrokeLines(count, beginP, endP);
3975 }
3976 delete [] beginP;
3977 delete [] endP;
3978 }
72ef6efb 3979
0a27f394
RD
3980#include "wx/dcgraph.h"
3981
3982
66493fc7
RD
3983#include <wx/overlay.h>
3984
3985
36ed4f51 3986
1bd55598 3987SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3988 self->AddColour(name, wxColour(red, green, blue));
3989 }
3990
da91cb0f
RD
3991 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3992 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3993 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3994 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3995
3996
36ed4f51
RD
3997#include <wx/effects.h>
3998
be9b1dca
RD
3999
4000#include "wx/renderer.h"
4001
4002
32fe5131 4003SWIGINTERNINLINE PyObject*
1bd55598 4004 SWIG_From_bool (bool value)
be9b1dca 4005{
1bd55598 4006 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
4007}
4008
27e45892
RD
4009
4010#include "wx/wxPython/pseudodc.h"
4011
4012SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4013 wxRect rect;
4014 self->GetIdBounds(id, rect);
4015 return rect;
4016 }
36ed4f51
RD
4017#ifdef __cplusplus
4018extern "C" {
4019#endif
1bd55598
RD
4020SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4021 PyObject *resultobj = 0;
4022 wxGDIObject *result = 0 ;
4023
4024 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4025 {
4026 if (!wxPyCheckForApp()) SWIG_fail;
4027 PyThreadState* __tstate = wxPyBeginAllowThreads();
4028 result = (wxGDIObject *)new wxGDIObject();
4029 wxPyEndAllowThreads(__tstate);
4030 if (PyErr_Occurred()) SWIG_fail;
4031 }
4032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4033 return resultobj;
4034fail:
4035 return NULL;
d55e5bfc
RD
4036}
4037
4038
1bd55598
RD
4039SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4040 PyObject *resultobj = 0;
4041 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4042 void *argp1 = 0 ;
4043 int res1 = 0 ;
4044 PyObject *swig_obj[1] ;
4045
4046 if (!args) SWIG_fail;
4047 swig_obj[0] = args;
4048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4049 if (!SWIG_IsOK(res1)) {
4050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4051 }
4052 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4053 {
4054 PyThreadState* __tstate = wxPyBeginAllowThreads();
4055 delete arg1;
d55e5bfc 4056
1bd55598
RD
4057 wxPyEndAllowThreads(__tstate);
4058 if (PyErr_Occurred()) SWIG_fail;
4059 }
4060 resultobj = SWIG_Py_Void();
4061 return resultobj;
4062fail:
4063 return NULL;
d55e5bfc
RD
4064}
4065
4066
1bd55598
RD
4067SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4068 PyObject *resultobj = 0;
4069 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4070 bool result;
4071 void *argp1 = 0 ;
4072 int res1 = 0 ;
4073 PyObject *swig_obj[1] ;
4074
4075 if (!args) SWIG_fail;
4076 swig_obj[0] = args;
4077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4078 if (!SWIG_IsOK(res1)) {
4079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4080 }
4081 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4082 {
4083 PyThreadState* __tstate = wxPyBeginAllowThreads();
4084 result = (bool)(arg1)->IsNull();
4085 wxPyEndAllowThreads(__tstate);
4086 if (PyErr_Occurred()) SWIG_fail;
4087 }
4088 {
4089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4090 }
4091 return resultobj;
4092fail:
4093 return NULL;
4094}
4095
4096
4097SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *obj;
4099 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4100 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4101 return SWIG_Py_Void();
4102}
4103
4104SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4105 return SWIG_Python_InitShadowInstance(args);
4106}
4107
4108SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4109 PyObject *resultobj = 0;
4110 byte arg1 = (byte) 0 ;
4111 byte arg2 = (byte) 0 ;
4112 byte arg3 = (byte) 0 ;
fc46b7f3 4113 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4114 wxColour *result = 0 ;
4115 unsigned char val1 ;
4116 int ecode1 = 0 ;
4117 unsigned char val2 ;
4118 int ecode2 = 0 ;
4119 unsigned char val3 ;
4120 int ecode3 = 0 ;
fc46b7f3
RD
4121 unsigned char val4 ;
4122 int ecode4 = 0 ;
1bd55598
RD
4123 PyObject * obj0 = 0 ;
4124 PyObject * obj1 = 0 ;
4125 PyObject * obj2 = 0 ;
fc46b7f3 4126 PyObject * obj3 = 0 ;
1bd55598 4127 char * kwnames[] = {
fc46b7f3 4128 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4129 };
4130
fc46b7f3 4131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4132 if (obj0) {
4133 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4134 if (!SWIG_IsOK(ecode1)) {
4135 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4136 }
4137 arg1 = static_cast< byte >(val1);
4138 }
4139 if (obj1) {
4140 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4141 if (!SWIG_IsOK(ecode2)) {
4142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4143 }
4144 arg2 = static_cast< byte >(val2);
4145 }
4146 if (obj2) {
4147 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4148 if (!SWIG_IsOK(ecode3)) {
4149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4150 }
4151 arg3 = static_cast< byte >(val3);
4152 }
fc46b7f3
RD
4153 if (obj3) {
4154 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4155 if (!SWIG_IsOK(ecode4)) {
4156 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4157 }
4158 arg4 = static_cast< byte >(val4);
4159 }
1bd55598
RD
4160 {
4161 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4162 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4163 wxPyEndAllowThreads(__tstate);
4164 if (PyErr_Occurred()) SWIG_fail;
4165 }
4166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4167 return resultobj;
4168fail:
4169 return NULL;
d55e5bfc
RD
4170}
4171
4172
1bd55598
RD
4173SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4174 PyObject *resultobj = 0;
4175 wxString *arg1 = 0 ;
4176 wxColour *result = 0 ;
4177 bool temp1 = false ;
4178 PyObject * obj0 = 0 ;
4179 char * kwnames[] = {
4180 (char *) "colorName", NULL
4181 };
4182
4183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4184 {
4185 arg1 = wxString_in_helper(obj0);
4186 if (arg1 == NULL) SWIG_fail;
4187 temp1 = true;
4188 }
4189 {
4190 if (!wxPyCheckForApp()) SWIG_fail;
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 result = (wxColour *)new wxColour((wxString const &)*arg1);
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4197 {
4198 if (temp1)
4199 delete arg1;
4200 }
4201 return resultobj;
4202fail:
4203 {
4204 if (temp1)
4205 delete arg1;
4206 }
4207 return NULL;
36ed4f51
RD
4208}
4209
4210
1bd55598
RD
4211SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4212 PyObject *resultobj = 0;
4213 unsigned long arg1 ;
4214 wxColour *result = 0 ;
4215 unsigned long val1 ;
4216 int ecode1 = 0 ;
4217 PyObject * obj0 = 0 ;
4218 char * kwnames[] = {
4219 (char *) "colRGB", NULL
4220 };
4221
4222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4223 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4224 if (!SWIG_IsOK(ecode1)) {
4225 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4226 }
4227 arg1 = static_cast< unsigned long >(val1);
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 result = (wxColour *)new wxColour(arg1);
4231 wxPyEndAllowThreads(__tstate);
4232 if (PyErr_Occurred()) SWIG_fail;
4233 }
4234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4235 return resultobj;
4236fail:
4237 return NULL;
d55e5bfc
RD
4238}
4239
4240
1bd55598
RD
4241SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4242 PyObject *resultobj = 0;
4243 wxColour *arg1 = (wxColour *) 0 ;
4244 void *argp1 = 0 ;
4245 int res1 = 0 ;
4246 PyObject *swig_obj[1] ;
4247
4248 if (!args) SWIG_fail;
4249 swig_obj[0] = args;
4250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4251 if (!SWIG_IsOK(res1)) {
4252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4253 }
4254 arg1 = reinterpret_cast< wxColour * >(argp1);
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 delete arg1;
d55e5bfc 4258
1bd55598
RD
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 resultobj = SWIG_Py_Void();
4263 return resultobj;
4264fail:
4265 return NULL;
d55e5bfc
RD
4266}
4267
4268
1bd55598
RD
4269SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4270 PyObject *resultobj = 0;
4271 wxColour *arg1 = (wxColour *) 0 ;
4272 byte result;
4273 void *argp1 = 0 ;
4274 int res1 = 0 ;
4275 PyObject *swig_obj[1] ;
4276
4277 if (!args) SWIG_fail;
4278 swig_obj[0] = args;
4279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4280 if (!SWIG_IsOK(res1)) {
4281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4282 }
4283 arg1 = reinterpret_cast< wxColour * >(argp1);
4284 {
4285 PyThreadState* __tstate = wxPyBeginAllowThreads();
4286 result = (byte)(arg1)->Red();
4287 wxPyEndAllowThreads(__tstate);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 }
4290 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4291 return resultobj;
4292fail:
4293 return NULL;
d55e5bfc
RD
4294}
4295
4296
1bd55598
RD
4297SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4298 PyObject *resultobj = 0;
4299 wxColour *arg1 = (wxColour *) 0 ;
4300 byte result;
4301 void *argp1 = 0 ;
4302 int res1 = 0 ;
4303 PyObject *swig_obj[1] ;
4304
4305 if (!args) SWIG_fail;
4306 swig_obj[0] = args;
4307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4308 if (!SWIG_IsOK(res1)) {
4309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4310 }
4311 arg1 = reinterpret_cast< wxColour * >(argp1);
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 result = (byte)(arg1)->Green();
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4319 return resultobj;
4320fail:
4321 return NULL;
d55e5bfc
RD
4322}
4323
4324
1bd55598
RD
4325SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4326 PyObject *resultobj = 0;
4327 wxColour *arg1 = (wxColour *) 0 ;
4328 byte result;
4329 void *argp1 = 0 ;
4330 int res1 = 0 ;
4331 PyObject *swig_obj[1] ;
4332
4333 if (!args) SWIG_fail;
4334 swig_obj[0] = args;
4335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4336 if (!SWIG_IsOK(res1)) {
4337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4338 }
4339 arg1 = reinterpret_cast< wxColour * >(argp1);
4340 {
4341 PyThreadState* __tstate = wxPyBeginAllowThreads();
4342 result = (byte)(arg1)->Blue();
4343 wxPyEndAllowThreads(__tstate);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4347 return resultobj;
4348fail:
4349 return NULL;
d55e5bfc
RD
4350}
4351
4352
fc46b7f3
RD
4353SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4354 PyObject *resultobj = 0;
4355 wxColour *arg1 = (wxColour *) 0 ;
4356 byte result;
4357 void *argp1 = 0 ;
4358 int res1 = 0 ;
4359 PyObject *swig_obj[1] ;
4360
4361 if (!args) SWIG_fail;
4362 swig_obj[0] = args;
4363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4364 if (!SWIG_IsOK(res1)) {
4365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4366 }
4367 arg1 = reinterpret_cast< wxColour * >(argp1);
4368 {
4369 PyThreadState* __tstate = wxPyBeginAllowThreads();
4370 result = (byte)(arg1)->Alpha();
4371 wxPyEndAllowThreads(__tstate);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 }
4374 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4375 return resultobj;
4376fail:
4377 return NULL;
4378}
4379
4380
b39fe951 4381SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4382 PyObject *resultobj = 0;
4383 wxColour *arg1 = (wxColour *) 0 ;
4384 bool result;
4385 void *argp1 = 0 ;
4386 int res1 = 0 ;
4387 PyObject *swig_obj[1] ;
4388
4389 if (!args) SWIG_fail;
4390 swig_obj[0] = args;
4391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4392 if (!SWIG_IsOK(res1)) {
b39fe951 4393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4394 }
4395 arg1 = reinterpret_cast< wxColour * >(argp1);
4396 {
4397 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4398 result = (bool)(arg1)->IsOk();
1bd55598
RD
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 {
4403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4404 }
4405 return resultobj;
4406fail:
4407 return NULL;
4408}
4409
4410
4411SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4412 PyObject *resultobj = 0;
4413 wxColour *arg1 = (wxColour *) 0 ;
4414 byte arg2 ;
4415 byte arg3 ;
4416 byte arg4 ;
fc46b7f3 4417 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4418 void *argp1 = 0 ;
4419 int res1 = 0 ;
4420 unsigned char val2 ;
4421 int ecode2 = 0 ;
4422 unsigned char val3 ;
4423 int ecode3 = 0 ;
4424 unsigned char val4 ;
4425 int ecode4 = 0 ;
fc46b7f3
RD
4426 unsigned char val5 ;
4427 int ecode5 = 0 ;
1bd55598
RD
4428 PyObject * obj0 = 0 ;
4429 PyObject * obj1 = 0 ;
4430 PyObject * obj2 = 0 ;
4431 PyObject * obj3 = 0 ;
fc46b7f3 4432 PyObject * obj4 = 0 ;
1bd55598 4433 char * kwnames[] = {
fc46b7f3 4434 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4435 };
4436
fc46b7f3 4437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4439 if (!SWIG_IsOK(res1)) {
4440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4441 }
4442 arg1 = reinterpret_cast< wxColour * >(argp1);
4443 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4444 if (!SWIG_IsOK(ecode2)) {
4445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4446 }
4447 arg2 = static_cast< byte >(val2);
4448 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4449 if (!SWIG_IsOK(ecode3)) {
4450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4451 }
4452 arg3 = static_cast< byte >(val3);
4453 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4454 if (!SWIG_IsOK(ecode4)) {
4455 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4456 }
4457 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4458 if (obj4) {
4459 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4460 if (!SWIG_IsOK(ecode5)) {
4461 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4462 }
4463 arg5 = static_cast< byte >(val5);
4464 }
1bd55598
RD
4465 {
4466 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4467 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4468 wxPyEndAllowThreads(__tstate);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 resultobj = SWIG_Py_Void();
4472 return resultobj;
4473fail:
4474 return NULL;
4475}
4476
4477
4478SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4479 PyObject *resultobj = 0;
4480 wxColour *arg1 = (wxColour *) 0 ;
4481 unsigned long arg2 ;
4482 void *argp1 = 0 ;
4483 int res1 = 0 ;
4484 unsigned long val2 ;
4485 int ecode2 = 0 ;
4486 PyObject * obj0 = 0 ;
4487 PyObject * obj1 = 0 ;
4488 char * kwnames[] = {
4489 (char *) "self",(char *) "colRGB", NULL
4490 };
4491
4492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4494 if (!SWIG_IsOK(res1)) {
4495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4496 }
4497 arg1 = reinterpret_cast< wxColour * >(argp1);
4498 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4499 if (!SWIG_IsOK(ecode2)) {
4500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4501 }
4502 arg2 = static_cast< unsigned long >(val2);
4503 {
4504 PyThreadState* __tstate = wxPyBeginAllowThreads();
4505 (arg1)->Set(arg2);
4506 wxPyEndAllowThreads(__tstate);
4507 if (PyErr_Occurred()) SWIG_fail;
4508 }
4509 resultobj = SWIG_Py_Void();
4510 return resultobj;
4511fail:
4512 return NULL;
4513}
4514
4515
4516SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4517 PyObject *resultobj = 0;
4518 wxColour *arg1 = (wxColour *) 0 ;
4519 wxString *arg2 = 0 ;
4520 void *argp1 = 0 ;
4521 int res1 = 0 ;
4522 bool temp2 = false ;
4523 PyObject * obj0 = 0 ;
4524 PyObject * obj1 = 0 ;
4525 char * kwnames[] = {
4526 (char *) "self",(char *) "colourName", NULL
4527 };
4528
4529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4531 if (!SWIG_IsOK(res1)) {
4532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4533 }
4534 arg1 = reinterpret_cast< wxColour * >(argp1);
4535 {
4536 arg2 = wxString_in_helper(obj1);
4537 if (arg2 == NULL) SWIG_fail;
4538 temp2 = true;
4539 }
4540 {
4541 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4542 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4543 wxPyEndAllowThreads(__tstate);
4544 if (PyErr_Occurred()) SWIG_fail;
4545 }
4546 resultobj = SWIG_Py_Void();
4547 {
4548 if (temp2)
4549 delete arg2;
4550 }
4551 return resultobj;
4552fail:
4553 {
4554 if (temp2)
4555 delete arg2;
4556 }
4557 return NULL;
d55e5bfc
RD
4558}
4559
4560
2131d850
RD
4561SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4562 PyObject *resultobj = 0;
4563 wxColour *arg1 = (wxColour *) 0 ;
4564 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4565 wxString result;
4566 void *argp1 = 0 ;
4567 int res1 = 0 ;
4568 long val2 ;
4569 int ecode2 = 0 ;
4570 PyObject * obj0 = 0 ;
4571 PyObject * obj1 = 0 ;
4572 char * kwnames[] = {
4573 (char *) "self",(char *) "flags", NULL
4574 };
4575
4576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4578 if (!SWIG_IsOK(res1)) {
4579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4580 }
4581 arg1 = reinterpret_cast< wxColour * >(argp1);
4582 if (obj1) {
4583 ecode2 = SWIG_AsVal_long(obj1, &val2);
4584 if (!SWIG_IsOK(ecode2)) {
4585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4586 }
4587 arg2 = static_cast< long >(val2);
4588 }
4589 {
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = ((wxColour const *)arg1)->GetAsString(arg2);
4592 wxPyEndAllowThreads(__tstate);
4593 if (PyErr_Occurred()) SWIG_fail;
4594 }
4595 {
4596#if wxUSE_UNICODE
4597 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4598#else
4599 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4600#endif
4601 }
4602 return resultobj;
4603fail:
4604 return NULL;
4605}
4606
4607
1bd55598
RD
4608SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4609 PyObject *resultobj = 0;
4610 wxColour *arg1 = (wxColour *) 0 ;
4611 long result;
4612 void *argp1 = 0 ;
4613 int res1 = 0 ;
4614 PyObject *swig_obj[1] ;
4615
4616 if (!args) SWIG_fail;
4617 swig_obj[0] = args;
4618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4619 if (!SWIG_IsOK(res1)) {
4620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4621 }
4622 arg1 = reinterpret_cast< wxColour * >(argp1);
4623 {
4624 PyThreadState* __tstate = wxPyBeginAllowThreads();
4625 result = (long)((wxColour const *)arg1)->GetPixel();
4626 wxPyEndAllowThreads(__tstate);
4627 if (PyErr_Occurred()) SWIG_fail;
4628 }
4629 resultobj = SWIG_From_long(static_cast< long >(result));
4630 return resultobj;
4631fail:
4632 return NULL;
4633}
4634
4635
4636SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4637 PyObject *resultobj = 0;
4638 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4639 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4640 bool result;
4641 void *argp1 = 0 ;
4642 int res1 = 0 ;
1bd55598
RD
4643 PyObject * obj0 = 0 ;
4644 PyObject * obj1 = 0 ;
4645 char * kwnames[] = {
e9d6f3a4 4646 (char *) "self",(char *) "other", NULL
1bd55598
RD
4647 };
4648
4649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4651 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4653 }
4654 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4655 arg2 = obj1;
1bd55598 4656 {
e9d6f3a4 4657 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 {
4661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4662 }
4663 return resultobj;
4664fail:
4665 return NULL;
4666}
4667
4668
4669SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4670 PyObject *resultobj = 0;
4671 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4672 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4673 bool result;
4674 void *argp1 = 0 ;
4675 int res1 = 0 ;
1bd55598
RD
4676 PyObject * obj0 = 0 ;
4677 PyObject * obj1 = 0 ;
4678 char * kwnames[] = {
e9d6f3a4 4679 (char *) "self",(char *) "other", NULL
1bd55598
RD
4680 };
4681
4682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4684 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4686 }
4687 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4688 arg2 = obj1;
1bd55598 4689 {
e9d6f3a4 4690 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4691 if (PyErr_Occurred()) SWIG_fail;
4692 }
4693 {
4694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4695 }
4696 return resultobj;
4697fail:
4698 return NULL;
d55e5bfc
RD
4699}
4700
4701
fc46b7f3 4702SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4703 PyObject *resultobj = 0;
4704 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4705 bool arg2 = (bool) false ;
1bd55598
RD
4706 PyObject *result = 0 ;
4707 void *argp1 = 0 ;
4708 int res1 = 0 ;
fc46b7f3
RD
4709 bool val2 ;
4710 int ecode2 = 0 ;
4711 PyObject * obj0 = 0 ;
4712 PyObject * obj1 = 0 ;
4713 char * kwnames[] = {
4714 (char *) "self",(char *) "includeAlpha", NULL
4715 };
1bd55598 4716
fc46b7f3
RD
4717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4719 if (!SWIG_IsOK(res1)) {
4720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4721 }
4722 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4723 if (obj1) {
4724 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4725 if (!SWIG_IsOK(ecode2)) {
4726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4727 }
4728 arg2 = static_cast< bool >(val2);
4729 }
1bd55598 4730 {
fc46b7f3 4731 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 resultobj = result;
4735 return resultobj;
4736fail:
4737 return NULL;
d55e5bfc
RD
4738}
4739
4740
1bd55598
RD
4741SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4742 PyObject *resultobj = 0;
4743 wxColour *arg1 = (wxColour *) 0 ;
4744 unsigned long result;
4745 void *argp1 = 0 ;
4746 int res1 = 0 ;
4747 PyObject *swig_obj[1] ;
4748
4749 if (!args) SWIG_fail;
4750 swig_obj[0] = args;
4751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4752 if (!SWIG_IsOK(res1)) {
4753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4754 }
4755 arg1 = reinterpret_cast< wxColour * >(argp1);
4756 {
1bd55598 4757 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4761 return resultobj;
4762fail:
4763 return NULL;
4764}
4765
4766
4767SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4768 PyObject *obj;
4769 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4770 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4771 return SWIG_Py_Void();
4772}
4773
4774SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4775 return SWIG_Python_InitShadowInstance(args);
4776}
4777
4778SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4779 PyObject *resultobj = 0;
4780 int arg1 ;
4781 unsigned char *arg2 = (unsigned char *) 0 ;
4782 unsigned char *arg3 = (unsigned char *) 0 ;
4783 unsigned char *arg4 = (unsigned char *) 0 ;
4784 wxPalette *result = 0 ;
4785 int val1 ;
4786 int ecode1 = 0 ;
4787 void *argp2 = 0 ;
4788 int res2 = 0 ;
4789 void *argp3 = 0 ;
4790 int res3 = 0 ;
4791 void *argp4 = 0 ;
4792 int res4 = 0 ;
4793 PyObject * obj0 = 0 ;
4794 PyObject * obj1 = 0 ;
4795 PyObject * obj2 = 0 ;
4796 PyObject * obj3 = 0 ;
4797 char * kwnames[] = {
4798 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4799 };
4800
4801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4802 ecode1 = SWIG_AsVal_int(obj0, &val1);
4803 if (!SWIG_IsOK(ecode1)) {
4804 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4805 }
4806 arg1 = static_cast< int >(val1);
4807 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4808 if (!SWIG_IsOK(res2)) {
4809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4810 }
4811 arg2 = reinterpret_cast< unsigned char * >(argp2);
4812 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4813 if (!SWIG_IsOK(res3)) {
4814 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4815 }
4816 arg3 = reinterpret_cast< unsigned char * >(argp3);
4817 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4818 if (!SWIG_IsOK(res4)) {
4819 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4820 }
4821 arg4 = reinterpret_cast< unsigned char * >(argp4);
4822 {
4823 if (!wxPyCheckForApp()) SWIG_fail;
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4826 wxPyEndAllowThreads(__tstate);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4830 return resultobj;
4831fail:
4832 return NULL;
d55e5bfc
RD
4833}
4834
4835
1bd55598
RD
4836SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4837 PyObject *resultobj = 0;
4838 wxPalette *arg1 = (wxPalette *) 0 ;
4839 void *argp1 = 0 ;
4840 int res1 = 0 ;
4841 PyObject *swig_obj[1] ;
4842
4843 if (!args) SWIG_fail;
4844 swig_obj[0] = args;
4845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4846 if (!SWIG_IsOK(res1)) {
4847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4848 }
4849 arg1 = reinterpret_cast< wxPalette * >(argp1);
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 delete arg1;
d55e5bfc 4853
1bd55598
RD
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4857 resultobj = SWIG_Py_Void();
4858 return resultobj;
4859fail:
4860 return NULL;
4861}
4862
4863
4864SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj = 0;
4866 wxPalette *arg1 = (wxPalette *) 0 ;
4867 byte arg2 ;
4868 byte arg3 ;
4869 byte arg4 ;
4870 int result;
4871 void *argp1 = 0 ;
4872 int res1 = 0 ;
4873 unsigned char val2 ;
4874 int ecode2 = 0 ;
4875 unsigned char val3 ;
4876 int ecode3 = 0 ;
4877 unsigned char val4 ;
4878 int ecode4 = 0 ;
4879 PyObject * obj0 = 0 ;
4880 PyObject * obj1 = 0 ;
4881 PyObject * obj2 = 0 ;
4882 PyObject * obj3 = 0 ;
4883 char * kwnames[] = {
4884 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4885 };
4886
4887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4889 if (!SWIG_IsOK(res1)) {
4890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4891 }
4892 arg1 = reinterpret_cast< wxPalette * >(argp1);
4893 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4894 if (!SWIG_IsOK(ecode2)) {
4895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4896 }
4897 arg2 = static_cast< byte >(val2);
4898 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4899 if (!SWIG_IsOK(ecode3)) {
4900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4901 }
4902 arg3 = static_cast< byte >(val3);
4903 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4904 if (!SWIG_IsOK(ecode4)) {
4905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4906 }
4907 arg4 = static_cast< byte >(val4);
4908 {
4909 PyThreadState* __tstate = wxPyBeginAllowThreads();
4910 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4911 wxPyEndAllowThreads(__tstate);
4912 if (PyErr_Occurred()) SWIG_fail;
4913 }
4914 resultobj = SWIG_From_int(static_cast< int >(result));
4915 return resultobj;
4916fail:
4917 return NULL;
4918}
4919
4920
4921SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4922 PyObject *resultobj = 0;
4923 wxPalette *arg1 = (wxPalette *) 0 ;
4924 int arg2 ;
4925 byte *arg3 = (byte *) 0 ;
4926 byte *arg4 = (byte *) 0 ;
4927 byte *arg5 = (byte *) 0 ;
4928 bool result;
4929 void *argp1 = 0 ;
4930 int res1 = 0 ;
4931 int val2 ;
4932 int ecode2 = 0 ;
4933 byte temp3 ;
4934 int res3 = SWIG_TMPOBJ ;
4935 byte temp4 ;
4936 int res4 = SWIG_TMPOBJ ;
4937 byte temp5 ;
4938 int res5 = SWIG_TMPOBJ ;
4939 PyObject * obj0 = 0 ;
4940 PyObject * obj1 = 0 ;
4941 char * kwnames[] = {
4942 (char *) "self",(char *) "pixel", NULL
4943 };
4944
4945 arg3 = &temp3;
4946 arg4 = &temp4;
4947 arg5 = &temp5;
4948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4950 if (!SWIG_IsOK(res1)) {
4951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4952 }
4953 arg1 = reinterpret_cast< wxPalette * >(argp1);
4954 ecode2 = SWIG_AsVal_int(obj1, &val2);
4955 if (!SWIG_IsOK(ecode2)) {
4956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4957 }
4958 arg2 = static_cast< int >(val2);
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4962 wxPyEndAllowThreads(__tstate);
4963 if (PyErr_Occurred()) SWIG_fail;
4964 }
4965 {
4966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4967 }
4968 if (SWIG_IsTmpObj(res3)) {
4969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4970 } else {
4971 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4973 }
4974 if (SWIG_IsTmpObj(res4)) {
4975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4976 } else {
4977 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4979 }
4980 if (SWIG_IsTmpObj(res5)) {
4981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4982 } else {
4983 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4985 }
4986 return resultobj;
4987fail:
4988 return NULL;
d55e5bfc
RD
4989}
4990
4991
1bd55598
RD
4992SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4993 PyObject *resultobj = 0;
4994 wxPalette *arg1 = (wxPalette *) 0 ;
4995 int result;
4996 void *argp1 = 0 ;
4997 int res1 = 0 ;
4998 PyObject *swig_obj[1] ;
4999
5000 if (!args) SWIG_fail;
5001 swig_obj[0] = args;
5002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5003 if (!SWIG_IsOK(res1)) {
5004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5005 }
5006 arg1 = reinterpret_cast< wxPalette * >(argp1);
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5010 wxPyEndAllowThreads(__tstate);
5011 if (PyErr_Occurred()) SWIG_fail;
5012 }
5013 resultobj = SWIG_From_int(static_cast< int >(result));
5014 return resultobj;
5015fail:
5016 return NULL;
d55e5bfc
RD
5017}
5018
5019
b39fe951 5020SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5021 PyObject *resultobj = 0;
5022 wxPalette *arg1 = (wxPalette *) 0 ;
5023 bool result;
5024 void *argp1 = 0 ;
5025 int res1 = 0 ;
5026 PyObject *swig_obj[1] ;
5027
5028 if (!args) SWIG_fail;
5029 swig_obj[0] = args;
5030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5031 if (!SWIG_IsOK(res1)) {
b39fe951 5032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
5033 }
5034 arg1 = reinterpret_cast< wxPalette * >(argp1);
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5037 result = (bool)(arg1)->IsOk();
1bd55598
RD
5038 wxPyEndAllowThreads(__tstate);
5039 if (PyErr_Occurred()) SWIG_fail;
5040 }
5041 {
5042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5043 }
5044 return resultobj;
5045fail:
5046 return NULL;
5047}
5048
5049
5050SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5051 PyObject *obj;
5052 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5053 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5054 return SWIG_Py_Void();
5055}
5056
5057SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5058 return SWIG_Python_InitShadowInstance(args);
5059}
5060
5061SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj = 0;
5063 wxColour *arg1 = 0 ;
5064 int arg2 = (int) 1 ;
5065 int arg3 = (int) wxSOLID ;
5066 wxPen *result = 0 ;
5067 wxColour temp1 ;
5068 int val2 ;
5069 int ecode2 = 0 ;
5070 int val3 ;
5071 int ecode3 = 0 ;
5072 PyObject * obj0 = 0 ;
5073 PyObject * obj1 = 0 ;
5074 PyObject * obj2 = 0 ;
5075 char * kwnames[] = {
5076 (char *) "colour",(char *) "width",(char *) "style", NULL
5077 };
5078
5079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5080 {
5081 arg1 = &temp1;
5082 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5083 }
5084 if (obj1) {
5085 ecode2 = SWIG_AsVal_int(obj1, &val2);
5086 if (!SWIG_IsOK(ecode2)) {
5087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5088 }
5089 arg2 = static_cast< int >(val2);
5090 }
5091 if (obj2) {
5092 ecode3 = SWIG_AsVal_int(obj2, &val3);
5093 if (!SWIG_IsOK(ecode3)) {
5094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5095 }
5096 arg3 = static_cast< int >(val3);
5097 }
5098 {
5099 if (!wxPyCheckForApp()) SWIG_fail;
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5102 wxPyEndAllowThreads(__tstate);
5103 if (PyErr_Occurred()) SWIG_fail;
5104 }
5105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5106 return resultobj;
5107fail:
5108 return NULL;
d55e5bfc
RD
5109}
5110
5111
1bd55598
RD
5112SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5113 PyObject *resultobj = 0;
5114 wxPen *arg1 = (wxPen *) 0 ;
5115 void *argp1 = 0 ;
5116 int res1 = 0 ;
5117 PyObject *swig_obj[1] ;
5118
5119 if (!args) SWIG_fail;
5120 swig_obj[0] = args;
5121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5122 if (!SWIG_IsOK(res1)) {
5123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5124 }
5125 arg1 = reinterpret_cast< wxPen * >(argp1);
5126 {
5127 PyThreadState* __tstate = wxPyBeginAllowThreads();
5128 delete arg1;
f78cc896 5129
1bd55598
RD
5130 wxPyEndAllowThreads(__tstate);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 }
5133 resultobj = SWIG_Py_Void();
5134 return resultobj;
5135fail:
5136 return NULL;
f78cc896
RD
5137}
5138
5139
1bd55598
RD
5140SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5141 PyObject *resultobj = 0;
5142 wxPen *arg1 = (wxPen *) 0 ;
5143 int result;
5144 void *argp1 = 0 ;
5145 int res1 = 0 ;
5146 PyObject *swig_obj[1] ;
5147
5148 if (!args) SWIG_fail;
5149 swig_obj[0] = args;
5150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5151 if (!SWIG_IsOK(res1)) {
5152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5153 }
5154 arg1 = reinterpret_cast< wxPen * >(argp1);
5155 {
5156 PyThreadState* __tstate = wxPyBeginAllowThreads();
5157 result = (int)(arg1)->GetCap();
5158 wxPyEndAllowThreads(__tstate);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 }
5161 resultobj = SWIG_From_int(static_cast< int >(result));
5162 return resultobj;
5163fail:
5164 return NULL;
d55e5bfc
RD
5165}
5166
5167
1bd55598
RD
5168SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5169 PyObject *resultobj = 0;
5170 wxPen *arg1 = (wxPen *) 0 ;
5171 wxColour result;
5172 void *argp1 = 0 ;
5173 int res1 = 0 ;
5174 PyObject *swig_obj[1] ;
5175
5176 if (!args) SWIG_fail;
5177 swig_obj[0] = args;
5178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5179 if (!SWIG_IsOK(res1)) {
5180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5181 }
5182 arg1 = reinterpret_cast< wxPen * >(argp1);
5183 {
5184 PyThreadState* __tstate = wxPyBeginAllowThreads();
5185 result = (arg1)->GetColour();
5186 wxPyEndAllowThreads(__tstate);
5187 if (PyErr_Occurred()) SWIG_fail;
5188 }
5189 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5190 return resultobj;
5191fail:
5192 return NULL;
d55e5bfc
RD
5193}
5194
5195
1bd55598
RD
5196SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5197 PyObject *resultobj = 0;
5198 wxPen *arg1 = (wxPen *) 0 ;
5199 int result;
5200 void *argp1 = 0 ;
5201 int res1 = 0 ;
5202 PyObject *swig_obj[1] ;
5203
5204 if (!args) SWIG_fail;
5205 swig_obj[0] = args;
5206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5207 if (!SWIG_IsOK(res1)) {
5208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5209 }
5210 arg1 = reinterpret_cast< wxPen * >(argp1);
5211 {
5212 PyThreadState* __tstate = wxPyBeginAllowThreads();
5213 result = (int)(arg1)->GetJoin();
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 resultobj = SWIG_From_int(static_cast< int >(result));
5218 return resultobj;
5219fail:
5220 return NULL;
d55e5bfc
RD
5221}
5222
5223
1bd55598
RD
5224SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5225 PyObject *resultobj = 0;
5226 wxPen *arg1 = (wxPen *) 0 ;
5227 int result;
5228 void *argp1 = 0 ;
5229 int res1 = 0 ;
5230 PyObject *swig_obj[1] ;
5231
5232 if (!args) SWIG_fail;
5233 swig_obj[0] = args;
5234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5235 if (!SWIG_IsOK(res1)) {
5236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5237 }
5238 arg1 = reinterpret_cast< wxPen * >(argp1);
5239 {
5240 PyThreadState* __tstate = wxPyBeginAllowThreads();
5241 result = (int)(arg1)->GetStyle();
5242 wxPyEndAllowThreads(__tstate);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
5245 resultobj = SWIG_From_int(static_cast< int >(result));
5246 return resultobj;
5247fail:
5248 return NULL;
d55e5bfc
RD
5249}
5250
5251
1bd55598
RD
5252SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5253 PyObject *resultobj = 0;
5254 wxPen *arg1 = (wxPen *) 0 ;
5255 int result;
5256 void *argp1 = 0 ;
5257 int res1 = 0 ;
5258 PyObject *swig_obj[1] ;
5259
5260 if (!args) SWIG_fail;
5261 swig_obj[0] = args;
5262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5265 }
5266 arg1 = reinterpret_cast< wxPen * >(argp1);
5267 {
5268 PyThreadState* __tstate = wxPyBeginAllowThreads();
5269 result = (int)(arg1)->GetWidth();
5270 wxPyEndAllowThreads(__tstate);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 }
5273 resultobj = SWIG_From_int(static_cast< int >(result));
5274 return resultobj;
5275fail:
5276 return NULL;
d55e5bfc
RD
5277}
5278
5279
b39fe951 5280SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5281 PyObject *resultobj = 0;
5282 wxPen *arg1 = (wxPen *) 0 ;
5283 bool result;
5284 void *argp1 = 0 ;
5285 int res1 = 0 ;
5286 PyObject *swig_obj[1] ;
5287
5288 if (!args) SWIG_fail;
5289 swig_obj[0] = args;
5290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5291 if (!SWIG_IsOK(res1)) {
b39fe951 5292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5293 }
5294 arg1 = reinterpret_cast< wxPen * >(argp1);
5295 {
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5297 result = (bool)(arg1)->IsOk();
1bd55598
RD
5298 wxPyEndAllowThreads(__tstate);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 {
5302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5303 }
5304 return resultobj;
5305fail:
5306 return NULL;
5307}
5308
5309
5310SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5311 PyObject *resultobj = 0;
5312 wxPen *arg1 = (wxPen *) 0 ;
5313 int arg2 ;
5314 void *argp1 = 0 ;
5315 int res1 = 0 ;
5316 int val2 ;
5317 int ecode2 = 0 ;
5318 PyObject * obj0 = 0 ;
5319 PyObject * obj1 = 0 ;
5320 char * kwnames[] = {
5321 (char *) "self",(char *) "cap_style", NULL
5322 };
5323
5324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5326 if (!SWIG_IsOK(res1)) {
5327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5328 }
5329 arg1 = reinterpret_cast< wxPen * >(argp1);
5330 ecode2 = SWIG_AsVal_int(obj1, &val2);
5331 if (!SWIG_IsOK(ecode2)) {
5332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5333 }
5334 arg2 = static_cast< int >(val2);
5335 {
5336 PyThreadState* __tstate = wxPyBeginAllowThreads();
5337 (arg1)->SetCap(arg2);
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 resultobj = SWIG_Py_Void();
5342 return resultobj;
5343fail:
5344 return NULL;
5345}
5346
5347
5348SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5349 PyObject *resultobj = 0;
5350 wxPen *arg1 = (wxPen *) 0 ;
5351 wxColour *arg2 = 0 ;
5352 void *argp1 = 0 ;
5353 int res1 = 0 ;
5354 wxColour temp2 ;
5355 PyObject * obj0 = 0 ;
5356 PyObject * obj1 = 0 ;
5357 char * kwnames[] = {
5358 (char *) "self",(char *) "colour", NULL
5359 };
5360
5361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5363 if (!SWIG_IsOK(res1)) {
5364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5365 }
5366 arg1 = reinterpret_cast< wxPen * >(argp1);
5367 {
5368 arg2 = &temp2;
5369 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5370 }
5371 {
5372 PyThreadState* __tstate = wxPyBeginAllowThreads();
5373 (arg1)->SetColour(*arg2);
5374 wxPyEndAllowThreads(__tstate);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 }
5377 resultobj = SWIG_Py_Void();
5378 return resultobj;
5379fail:
5380 return NULL;
5381}
5382
5383
5384SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5385 PyObject *resultobj = 0;
5386 wxPen *arg1 = (wxPen *) 0 ;
5387 int arg2 ;
5388 void *argp1 = 0 ;
5389 int res1 = 0 ;
5390 int val2 ;
5391 int ecode2 = 0 ;
5392 PyObject * obj0 = 0 ;
5393 PyObject * obj1 = 0 ;
5394 char * kwnames[] = {
5395 (char *) "self",(char *) "join_style", NULL
5396 };
5397
5398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5400 if (!SWIG_IsOK(res1)) {
5401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5402 }
5403 arg1 = reinterpret_cast< wxPen * >(argp1);
5404 ecode2 = SWIG_AsVal_int(obj1, &val2);
5405 if (!SWIG_IsOK(ecode2)) {
5406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5407 }
5408 arg2 = static_cast< int >(val2);
5409 {
5410 PyThreadState* __tstate = wxPyBeginAllowThreads();
5411 (arg1)->SetJoin(arg2);
5412 wxPyEndAllowThreads(__tstate);
5413 if (PyErr_Occurred()) SWIG_fail;
5414 }
5415 resultobj = SWIG_Py_Void();
5416 return resultobj;
5417fail:
5418 return NULL;
5419}
5420
5421
5422SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5423 PyObject *resultobj = 0;
5424 wxPen *arg1 = (wxPen *) 0 ;
5425 int arg2 ;
5426 void *argp1 = 0 ;
5427 int res1 = 0 ;
5428 int val2 ;
5429 int ecode2 = 0 ;
5430 PyObject * obj0 = 0 ;
5431 PyObject * obj1 = 0 ;
5432 char * kwnames[] = {
5433 (char *) "self",(char *) "style", NULL
5434 };
5435
5436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5438 if (!SWIG_IsOK(res1)) {
5439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5440 }
5441 arg1 = reinterpret_cast< wxPen * >(argp1);
5442 ecode2 = SWIG_AsVal_int(obj1, &val2);
5443 if (!SWIG_IsOK(ecode2)) {
5444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5445 }
5446 arg2 = static_cast< int >(val2);
5447 {
5448 PyThreadState* __tstate = wxPyBeginAllowThreads();
5449 (arg1)->SetStyle(arg2);
5450 wxPyEndAllowThreads(__tstate);
5451 if (PyErr_Occurred()) SWIG_fail;
5452 }
5453 resultobj = SWIG_Py_Void();
5454 return resultobj;
5455fail:
5456 return NULL;
5457}
5458
5459
5460SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5461 PyObject *resultobj = 0;
5462 wxPen *arg1 = (wxPen *) 0 ;
5463 int arg2 ;
5464 void *argp1 = 0 ;
5465 int res1 = 0 ;
5466 int val2 ;
5467 int ecode2 = 0 ;
5468 PyObject * obj0 = 0 ;
5469 PyObject * obj1 = 0 ;
5470 char * kwnames[] = {
5471 (char *) "self",(char *) "width", NULL
5472 };
5473
5474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5476 if (!SWIG_IsOK(res1)) {
5477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5478 }
5479 arg1 = reinterpret_cast< wxPen * >(argp1);
5480 ecode2 = SWIG_AsVal_int(obj1, &val2);
5481 if (!SWIG_IsOK(ecode2)) {
5482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5483 }
5484 arg2 = static_cast< int >(val2);
5485 {
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 (arg1)->SetWidth(arg2);
5488 wxPyEndAllowThreads(__tstate);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 }
5491 resultobj = SWIG_Py_Void();
5492 return resultobj;
5493fail:
5494 return NULL;
5495}
5496
5497
5498SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5499 PyObject *resultobj = 0;
5500 wxPen *arg1 = (wxPen *) 0 ;
5501 int arg2 ;
5502 wxDash *arg3 = (wxDash *) 0 ;
5503 void *argp1 = 0 ;
5504 int res1 = 0 ;
5505 PyObject * obj0 = 0 ;
5506 PyObject * obj1 = 0 ;
5507 char * kwnames[] = {
5508 (char *) "self",(char *) "dashes", NULL
5509 };
5510
5511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5513 if (!SWIG_IsOK(res1)) {
5514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5515 }
5516 arg1 = reinterpret_cast< wxPen * >(argp1);
5517 {
5518 arg2 = PyList_Size(obj1);
5519 arg3 = (wxDash*)byte_LIST_helper(obj1);
5520 if (arg3 == NULL) SWIG_fail;
5521 }
5522 {
5523 PyThreadState* __tstate = wxPyBeginAllowThreads();
5524 (arg1)->SetDashes(arg2,arg3);
5525 wxPyEndAllowThreads(__tstate);
5526 if (PyErr_Occurred()) SWIG_fail;
5527 }
5528 resultobj = SWIG_Py_Void();
5529 {
5530 if (arg3) delete [] arg3;
5531 }
5532 return resultobj;
5533fail:
5534 {
5535 if (arg3) delete [] arg3;
5536 }
5537 return NULL;
d6c14a4c
RD
5538}
5539
5540
1bd55598
RD
5541SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5542 PyObject *resultobj = 0;
5543 wxPen *arg1 = (wxPen *) 0 ;
5544 PyObject *result = 0 ;
5545 void *argp1 = 0 ;
5546 int res1 = 0 ;
5547 PyObject *swig_obj[1] ;
5548
5549 if (!args) SWIG_fail;
5550 swig_obj[0] = args;
5551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5552 if (!SWIG_IsOK(res1)) {
5553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5554 }
5555 arg1 = reinterpret_cast< wxPen * >(argp1);
5556 {
5557 PyThreadState* __tstate = wxPyBeginAllowThreads();
5558 result = (PyObject *)wxPen_GetDashes(arg1);
5559 wxPyEndAllowThreads(__tstate);
5560 if (PyErr_Occurred()) SWIG_fail;
5561 }
5562 resultobj = result;
5563 return resultobj;
5564fail:
5565 return NULL;
5566}
5567
5568
5569SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5570 PyObject *resultobj = 0;
5571 wxPen *arg1 = (wxPen *) 0 ;
5572 PyObject *arg2 = (PyObject *) 0 ;
5573 PyObject *arg3 = (PyObject *) 0 ;
5574 void *argp1 = 0 ;
5575 int res1 = 0 ;
5576 PyObject * obj0 = 0 ;
5577 PyObject * obj1 = 0 ;
5578 PyObject * obj2 = 0 ;
5579 char * kwnames[] = {
5580 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5581 };
5582
5583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5585 if (!SWIG_IsOK(res1)) {
5586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5587 }
5588 arg1 = reinterpret_cast< wxPen * >(argp1);
5589 arg2 = obj1;
5590 arg3 = obj2;
5591 {
5592 PyThreadState* __tstate = wxPyBeginAllowThreads();
5593 wxPen__SetDashes(arg1,arg2,arg3);
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 resultobj = SWIG_Py_Void();
5598 return resultobj;
5599fail:
5600 return NULL;
5601}
5602
5603
5604SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5605 PyObject *resultobj = 0;
5606 wxPen *arg1 = (wxPen *) 0 ;
5607 wxPen *arg2 = (wxPen *) 0 ;
5608 bool result;
5609 void *argp1 = 0 ;
5610 int res1 = 0 ;
5611 void *argp2 = 0 ;
5612 int res2 = 0 ;
5613 PyObject * obj0 = 0 ;
5614 PyObject * obj1 = 0 ;
5615 char * kwnames[] = {
5616 (char *) "self",(char *) "other", NULL
5617 };
5618
5619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5621 if (!SWIG_IsOK(res1)) {
5622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5623 }
5624 arg1 = reinterpret_cast< wxPen * >(argp1);
5625 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5626 if (!SWIG_IsOK(res2)) {
5627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5628 }
5629 arg2 = reinterpret_cast< wxPen * >(argp2);
5630 {
5631 PyThreadState* __tstate = wxPyBeginAllowThreads();
5632 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5633 wxPyEndAllowThreads(__tstate);
5634 if (PyErr_Occurred()) SWIG_fail;
5635 }
5636 {
5637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5638 }
5639 return resultobj;
5640fail:
5641 return NULL;
5642}
5643
5644
5645SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5646 PyObject *resultobj = 0;
5647 wxPen *arg1 = (wxPen *) 0 ;
5648 wxPen *arg2 = (wxPen *) 0 ;
5649 bool result;
5650 void *argp1 = 0 ;
5651 int res1 = 0 ;
5652 void *argp2 = 0 ;
5653 int res2 = 0 ;
5654 PyObject * obj0 = 0 ;
5655 PyObject * obj1 = 0 ;
5656 char * kwnames[] = {
5657 (char *) "self",(char *) "other", NULL
5658 };
5659
5660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5662 if (!SWIG_IsOK(res1)) {
5663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5664 }
5665 arg1 = reinterpret_cast< wxPen * >(argp1);
5666 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5667 if (!SWIG_IsOK(res2)) {
5668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5669 }
5670 arg2 = reinterpret_cast< wxPen * >(argp2);
5671 {
5672 PyThreadState* __tstate = wxPyBeginAllowThreads();
5673 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5674 wxPyEndAllowThreads(__tstate);
5675 if (PyErr_Occurred()) SWIG_fail;
5676 }
5677 {
5678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5679 }
5680 return resultobj;
5681fail:
5682 return NULL;
5683}
d55e5bfc
RD
5684
5685
1bd55598
RD
5686SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5687 PyObject *obj;
5688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5689 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5690 return SWIG_Py_Void();
d55e5bfc
RD
5691}
5692
1bd55598
RD
5693SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5694 return SWIG_Python_InitShadowInstance(args);
5695}
d55e5bfc 5696
1bd55598
RD
5697SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5698 PyObject *resultobj = 0;
5699 wxColour *arg1 = 0 ;
5700 int arg2 = (int) wxSOLID ;
5701 wxBrush *result = 0 ;
5702 wxColour temp1 ;
5703 int val2 ;
5704 int ecode2 = 0 ;
5705 PyObject * obj0 = 0 ;
5706 PyObject * obj1 = 0 ;
5707 char * kwnames[] = {
5708 (char *) "colour",(char *) "style", NULL
5709 };
5710
5711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5712 {
5713 arg1 = &temp1;
5714 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5715 }
5716 if (obj1) {
5717 ecode2 = SWIG_AsVal_int(obj1, &val2);
5718 if (!SWIG_IsOK(ecode2)) {
5719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5720 }
5721 arg2 = static_cast< int >(val2);
5722 }
5723 {
5724 if (!wxPyCheckForApp()) SWIG_fail;
5725 PyThreadState* __tstate = wxPyBeginAllowThreads();
5726 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5727 wxPyEndAllowThreads(__tstate);
5728 if (PyErr_Occurred()) SWIG_fail;
5729 }
5730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5731 return resultobj;
5732fail:
5733 return NULL;
5734}
5735
5736
5737SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5738 PyObject *resultobj = 0;
5739 wxBitmap *arg1 = 0 ;
5740 wxBrush *result = 0 ;
5741 void *argp1 = 0 ;
5742 int res1 = 0 ;
5743 PyObject * obj0 = 0 ;
5744 char * kwnames[] = {
5745 (char *) "stippleBitmap", NULL
5746 };
5747
5748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5749 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5750 if (!SWIG_IsOK(res1)) {
5751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5752 }
5753 if (!argp1) {
5754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5755 }
5756 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5757 {
5758 if (!wxPyCheckForApp()) SWIG_fail;
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5765 return resultobj;
5766fail:
5767 return NULL;
d55e5bfc
RD
5768}
5769
5770
1bd55598
RD
5771SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5772 PyObject *resultobj = 0;
5773 wxBrush *arg1 = (wxBrush *) 0 ;
5774 void *argp1 = 0 ;
5775 int res1 = 0 ;
5776 PyObject *swig_obj[1] ;
5777
5778 if (!args) SWIG_fail;
5779 swig_obj[0] = args;
5780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5781 if (!SWIG_IsOK(res1)) {
5782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5783 }
5784 arg1 = reinterpret_cast< wxBrush * >(argp1);
5785 {
5786 PyThreadState* __tstate = wxPyBeginAllowThreads();
5787 delete arg1;
d55e5bfc 5788
1bd55598
RD
5789 wxPyEndAllowThreads(__tstate);
5790 if (PyErr_Occurred()) SWIG_fail;
5791 }
5792 resultobj = SWIG_Py_Void();
5793 return resultobj;
5794fail:
5795 return NULL;
5796}
5797
5798
5799SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5800 PyObject *resultobj = 0;
5801 wxBrush *arg1 = (wxBrush *) 0 ;
5802 wxColour *arg2 = 0 ;
5803 void *argp1 = 0 ;
5804 int res1 = 0 ;
5805 wxColour temp2 ;
5806 PyObject * obj0 = 0 ;
5807 PyObject * obj1 = 0 ;
5808 char * kwnames[] = {
5809 (char *) "self",(char *) "col", NULL
5810 };
5811
5812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5814 if (!SWIG_IsOK(res1)) {
5815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5816 }
5817 arg1 = reinterpret_cast< wxBrush * >(argp1);
5818 {
5819 arg2 = &temp2;
5820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5821 }
5822 {
5823 PyThreadState* __tstate = wxPyBeginAllowThreads();
5824 (arg1)->SetColour((wxColour const &)*arg2);
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_Py_Void();
5829 return resultobj;
5830fail:
5831 return NULL;
5832}
5833
5834
5835SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj = 0;
5837 wxBrush *arg1 = (wxBrush *) 0 ;
5838 int arg2 ;
5839 void *argp1 = 0 ;
5840 int res1 = 0 ;
5841 int val2 ;
5842 int ecode2 = 0 ;
5843 PyObject * obj0 = 0 ;
5844 PyObject * obj1 = 0 ;
5845 char * kwnames[] = {
5846 (char *) "self",(char *) "style", NULL
5847 };
5848
5849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5851 if (!SWIG_IsOK(res1)) {
5852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5853 }
5854 arg1 = reinterpret_cast< wxBrush * >(argp1);
5855 ecode2 = SWIG_AsVal_int(obj1, &val2);
5856 if (!SWIG_IsOK(ecode2)) {
5857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5858 }
5859 arg2 = static_cast< int >(val2);
5860 {
5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
5862 (arg1)->SetStyle(arg2);
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 resultobj = SWIG_Py_Void();
5867 return resultobj;
5868fail:
5869 return NULL;
5870}
5871
5872
5873SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5874 PyObject *resultobj = 0;
5875 wxBrush *arg1 = (wxBrush *) 0 ;
5876 wxBitmap *arg2 = 0 ;
5877 void *argp1 = 0 ;
5878 int res1 = 0 ;
5879 void *argp2 = 0 ;
5880 int res2 = 0 ;
5881 PyObject * obj0 = 0 ;
5882 PyObject * obj1 = 0 ;
5883 char * kwnames[] = {
5884 (char *) "self",(char *) "stipple", NULL
5885 };
5886
5887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5889 if (!SWIG_IsOK(res1)) {
5890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5891 }
5892 arg1 = reinterpret_cast< wxBrush * >(argp1);
5893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5894 if (!SWIG_IsOK(res2)) {
5895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5896 }
5897 if (!argp2) {
5898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5899 }
5900 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5901 {
5902 PyThreadState* __tstate = wxPyBeginAllowThreads();
5903 (arg1)->SetStipple((wxBitmap const &)*arg2);
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 resultobj = SWIG_Py_Void();
5908 return resultobj;
5909fail:
5910 return NULL;
d55e5bfc
RD
5911}
5912
5913
1bd55598
RD
5914SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5915 PyObject *resultobj = 0;
5916 wxBrush *arg1 = (wxBrush *) 0 ;
5917 wxColour result;
5918 void *argp1 = 0 ;
5919 int res1 = 0 ;
5920 PyObject *swig_obj[1] ;
5921
5922 if (!args) SWIG_fail;
5923 swig_obj[0] = args;
5924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5925 if (!SWIG_IsOK(res1)) {
5926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5927 }
5928 arg1 = reinterpret_cast< wxBrush * >(argp1);
5929 {
5930 PyThreadState* __tstate = wxPyBeginAllowThreads();
5931 result = ((wxBrush const *)arg1)->GetColour();
5932 wxPyEndAllowThreads(__tstate);
5933 if (PyErr_Occurred()) SWIG_fail;
5934 }
5935 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5936 return resultobj;
5937fail:
5938 return NULL;
d55e5bfc
RD
5939}
5940
5941
1bd55598
RD
5942SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5943 PyObject *resultobj = 0;
5944 wxBrush *arg1 = (wxBrush *) 0 ;
5945 int result;
5946 void *argp1 = 0 ;
5947 int res1 = 0 ;
5948 PyObject *swig_obj[1] ;
5949
5950 if (!args) SWIG_fail;
5951 swig_obj[0] = args;
5952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5953 if (!SWIG_IsOK(res1)) {
5954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5955 }
5956 arg1 = reinterpret_cast< wxBrush * >(argp1);
5957 {
5958 PyThreadState* __tstate = wxPyBeginAllowThreads();
5959 result = (int)((wxBrush const *)arg1)->GetStyle();
5960 wxPyEndAllowThreads(__tstate);
5961 if (PyErr_Occurred()) SWIG_fail;
5962 }
5963 resultobj = SWIG_From_int(static_cast< int >(result));
5964 return resultobj;
5965fail:
5966 return NULL;
d55e5bfc
RD
5967}
5968
5969
1bd55598
RD
5970SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5971 PyObject *resultobj = 0;
5972 wxBrush *arg1 = (wxBrush *) 0 ;
5973 wxBitmap *result = 0 ;
5974 void *argp1 = 0 ;
5975 int res1 = 0 ;
5976 PyObject *swig_obj[1] ;
5977
5978 if (!args) SWIG_fail;
5979 swig_obj[0] = args;
5980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5981 if (!SWIG_IsOK(res1)) {
5982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5983 }
5984 arg1 = reinterpret_cast< wxBrush * >(argp1);
5985 {
5986 PyThreadState* __tstate = wxPyBeginAllowThreads();
5987 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5992 return resultobj;
5993fail:
5994 return NULL;
d55e5bfc
RD
5995}
5996
5997
1bd55598
RD
5998SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5999 PyObject *resultobj = 0;
6000 wxBrush *arg1 = (wxBrush *) 0 ;
6001 bool result;
6002 void *argp1 = 0 ;
6003 int res1 = 0 ;
6004 PyObject *swig_obj[1] ;
6005
6006 if (!args) SWIG_fail;
6007 swig_obj[0] = args;
6008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6009 if (!SWIG_IsOK(res1)) {
6010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6011 }
6012 arg1 = reinterpret_cast< wxBrush * >(argp1);
6013 {
6014 PyThreadState* __tstate = wxPyBeginAllowThreads();
6015 result = (bool)((wxBrush const *)arg1)->IsHatch();
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
6019 {
6020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6021 }
6022 return resultobj;
6023fail:
6024 return NULL;
d55e5bfc
RD
6025}
6026
6027
b39fe951 6028SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6029 PyObject *resultobj = 0;
6030 wxBrush *arg1 = (wxBrush *) 0 ;
6031 bool result;
6032 void *argp1 = 0 ;
6033 int res1 = 0 ;
6034 PyObject *swig_obj[1] ;
6035
6036 if (!args) SWIG_fail;
6037 swig_obj[0] = args;
6038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6039 if (!SWIG_IsOK(res1)) {
b39fe951 6040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
6041 }
6042 arg1 = reinterpret_cast< wxBrush * >(argp1);
6043 {
6044 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6045 result = (bool)(arg1)->IsOk();
1bd55598
RD
6046 wxPyEndAllowThreads(__tstate);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 }
6049 {
6050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6051 }
6052 return resultobj;
6053fail:
6054 return NULL;
d55e5bfc
RD
6055}
6056
6057
1bd55598
RD
6058SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6059 PyObject *resultobj = 0;
6060 wxBrush *arg1 = (wxBrush *) 0 ;
6061 short result;
6062 void *argp1 = 0 ;
6063 int res1 = 0 ;
6064 PyObject *swig_obj[1] ;
6065
6066 if (!args) SWIG_fail;
6067 swig_obj[0] = args;
6068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6069 if (!SWIG_IsOK(res1)) {
6070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6071 }
6072 arg1 = reinterpret_cast< wxBrush * >(argp1);
6073 {
6074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6075 result = (short)(arg1)->MacGetTheme();
6076 wxPyEndAllowThreads(__tstate);
6077 if (PyErr_Occurred()) SWIG_fail;
6078 }
6079 resultobj = SWIG_From_short(static_cast< short >(result));
6080 return resultobj;
6081fail:
6082 return NULL;
6083}
6084
6085
6086SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6087 PyObject *resultobj = 0;
6088 wxBrush *arg1 = (wxBrush *) 0 ;
6089 short arg2 ;
6090 void *argp1 = 0 ;
6091 int res1 = 0 ;
6092 short val2 ;
6093 int ecode2 = 0 ;
6094 PyObject * obj0 = 0 ;
6095 PyObject * obj1 = 0 ;
6096 char * kwnames[] = {
6097 (char *) "self",(char *) "macThemeBrush", NULL
6098 };
6099
6100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6102 if (!SWIG_IsOK(res1)) {
6103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6104 }
6105 arg1 = reinterpret_cast< wxBrush * >(argp1);
6106 ecode2 = SWIG_AsVal_short(obj1, &val2);
6107 if (!SWIG_IsOK(ecode2)) {
6108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6109 }
6110 arg2 = static_cast< short >(val2);
6111 {
6112 PyThreadState* __tstate = wxPyBeginAllowThreads();
6113 (arg1)->MacSetTheme(arg2);
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 resultobj = SWIG_Py_Void();
6118 return resultobj;
6119fail:
6120 return NULL;
d55e5bfc
RD
6121}
6122
6123
1bd55598
RD
6124SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6125 PyObject *obj;
6126 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6127 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6128 return SWIG_Py_Void();
d55e5bfc
RD
6129}
6130
1bd55598
RD
6131SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6132 return SWIG_Python_InitShadowInstance(args);
6133}
d55e5bfc 6134
1bd55598
RD
6135SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6136 PyObject *resultobj = 0;
6137 wxString *arg1 = 0 ;
6138 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6139 wxBitmap *result = 0 ;
6140 bool temp1 = false ;
6141 int val2 ;
6142 int ecode2 = 0 ;
6143 PyObject * obj0 = 0 ;
6144 PyObject * obj1 = 0 ;
6145 char * kwnames[] = {
6146 (char *) "name",(char *) "type", NULL
6147 };
6148
6149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6150 {
6151 arg1 = wxString_in_helper(obj0);
6152 if (arg1 == NULL) SWIG_fail;
6153 temp1 = true;
6154 }
6155 if (obj1) {
6156 ecode2 = SWIG_AsVal_int(obj1, &val2);
6157 if (!SWIG_IsOK(ecode2)) {
6158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6159 }
6160 arg2 = static_cast< wxBitmapType >(val2);
6161 }
6162 {
6163 if (!wxPyCheckForApp()) SWIG_fail;
6164 PyThreadState* __tstate = wxPyBeginAllowThreads();
6165 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6166 wxPyEndAllowThreads(__tstate);
6167 if (PyErr_Occurred()) SWIG_fail;
6168 }
6169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6170 {
6171 if (temp1)
6172 delete arg1;
6173 }
6174 return resultobj;
6175fail:
6176 {
6177 if (temp1)
6178 delete arg1;
6179 }
6180 return NULL;
d55e5bfc
RD
6181}
6182
6183
1bd55598
RD
6184SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6185 PyObject *resultobj = 0;
6186 wxBitmap *arg1 = (wxBitmap *) 0 ;
6187 void *argp1 = 0 ;
6188 int res1 = 0 ;
6189 PyObject *swig_obj[1] ;
6190
6191 if (!args) SWIG_fail;
6192 swig_obj[0] = args;
6193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6194 if (!SWIG_IsOK(res1)) {
6195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6196 }
6197 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6198 {
1bd55598 6199 delete arg1;
d55e5bfc 6200
1bd55598
RD
6201 if (PyErr_Occurred()) SWIG_fail;
6202 }
6203 resultobj = SWIG_Py_Void();
6204 return resultobj;
6205fail:
6206 return NULL;
6207}
6208
6209
6210SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6211 PyObject *resultobj = 0;
6212 int arg1 ;
6213 int arg2 ;
6214 int arg3 = (int) -1 ;
6215 wxBitmap *result = 0 ;
6216 int val1 ;
6217 int ecode1 = 0 ;
6218 int val2 ;
6219 int ecode2 = 0 ;
6220 int val3 ;
6221 int ecode3 = 0 ;
6222 PyObject * obj0 = 0 ;
6223 PyObject * obj1 = 0 ;
6224 PyObject * obj2 = 0 ;
6225 char * kwnames[] = {
6226 (char *) "width",(char *) "height",(char *) "depth", NULL
6227 };
6228
6229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6230 ecode1 = SWIG_AsVal_int(obj0, &val1);
6231 if (!SWIG_IsOK(ecode1)) {
6232 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6233 }
6234 arg1 = static_cast< int >(val1);
6235 ecode2 = SWIG_AsVal_int(obj1, &val2);
6236 if (!SWIG_IsOK(ecode2)) {
6237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6238 }
6239 arg2 = static_cast< int >(val2);
6240 if (obj2) {
6241 ecode3 = SWIG_AsVal_int(obj2, &val3);
6242 if (!SWIG_IsOK(ecode3)) {
6243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6244 }
6245 arg3 = static_cast< int >(val3);
6246 }
6247 {
6248 if (!wxPyCheckForApp()) SWIG_fail;
6249 PyThreadState* __tstate = wxPyBeginAllowThreads();
6250 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6251 wxPyEndAllowThreads(__tstate);
6252 if (PyErr_Occurred()) SWIG_fail;
6253 }
6254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6255 return resultobj;
6256fail:
6257 return NULL;
6258}
6259
6260
6261SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj = 0;
6263 wxIcon *arg1 = 0 ;
6264 wxBitmap *result = 0 ;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 PyObject * obj0 = 0 ;
6268 char * kwnames[] = {
6269 (char *) "icon", NULL
6270 };
6271
6272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6273 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6274 if (!SWIG_IsOK(res1)) {
6275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6276 }
6277 if (!argp1) {
6278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6279 }
6280 arg1 = reinterpret_cast< wxIcon * >(argp1);
6281 {
6282 if (!wxPyCheckForApp()) SWIG_fail;
6283 PyThreadState* __tstate = wxPyBeginAllowThreads();
6284 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6285 wxPyEndAllowThreads(__tstate);
6286 if (PyErr_Occurred()) SWIG_fail;
6287 }
6288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6289 return resultobj;
6290fail:
6291 return NULL;
6292}
6293
6294
6295SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6296 PyObject *resultobj = 0;
6297 wxImage *arg1 = 0 ;
6298 int arg2 = (int) -1 ;
6299 wxBitmap *result = 0 ;
6300 void *argp1 = 0 ;
6301 int res1 = 0 ;
6302 int val2 ;
6303 int ecode2 = 0 ;
6304 PyObject * obj0 = 0 ;
6305 PyObject * obj1 = 0 ;
6306 char * kwnames[] = {
6307 (char *) "image",(char *) "depth", NULL
6308 };
6309
6310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6311 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6312 if (!SWIG_IsOK(res1)) {
6313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6314 }
6315 if (!argp1) {
6316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6317 }
6318 arg1 = reinterpret_cast< wxImage * >(argp1);
6319 if (obj1) {
6320 ecode2 = SWIG_AsVal_int(obj1, &val2);
6321 if (!SWIG_IsOK(ecode2)) {
6322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6323 }
6324 arg2 = static_cast< int >(val2);
6325 }
6326 {
6327 if (!wxPyCheckForApp()) SWIG_fail;
6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
6329 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6330 wxPyEndAllowThreads(__tstate);
6331 if (PyErr_Occurred()) SWIG_fail;
6332 }
6333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6334 return resultobj;
6335fail:
6336 return NULL;
d55e5bfc
RD
6337}
6338
6339
1bd55598
RD
6340SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6341 PyObject *resultobj = 0;
6342 PyObject *arg1 = (PyObject *) 0 ;
6343 wxBitmap *result = 0 ;
6344 PyObject * obj0 = 0 ;
6345 char * kwnames[] = {
6346 (char *) "listOfStrings", NULL
6347 };
6348
6349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6350 arg1 = obj0;
6351 {
6352 if (!wxPyCheckForApp()) SWIG_fail;
6353 PyThreadState* __tstate = wxPyBeginAllowThreads();
6354 result = (wxBitmap *)new_wxBitmap(arg1);
6355 wxPyEndAllowThreads(__tstate);
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
6358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6359 return resultobj;
6360fail:
6361 return NULL;
6362}
6363
6364
6365SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj = 0;
6367 PyObject *arg1 = (PyObject *) 0 ;
6368 int arg2 ;
6369 int arg3 ;
6370 int arg4 = (int) 1 ;
6371 wxBitmap *result = 0 ;
6372 int val2 ;
6373 int ecode2 = 0 ;
6374 int val3 ;
6375 int ecode3 = 0 ;
6376 int val4 ;
6377 int ecode4 = 0 ;
6378 PyObject * obj0 = 0 ;
6379 PyObject * obj1 = 0 ;
6380 PyObject * obj2 = 0 ;
6381 PyObject * obj3 = 0 ;
6382 char * kwnames[] = {
6383 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6384 };
6385
6386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6387 arg1 = obj0;
6388 ecode2 = SWIG_AsVal_int(obj1, &val2);
6389 if (!SWIG_IsOK(ecode2)) {
6390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6391 }
6392 arg2 = static_cast< int >(val2);
6393 ecode3 = SWIG_AsVal_int(obj2, &val3);
6394 if (!SWIG_IsOK(ecode3)) {
6395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6396 }
6397 arg3 = static_cast< int >(val3);
6398 if (obj3) {
6399 ecode4 = SWIG_AsVal_int(obj3, &val4);
6400 if (!SWIG_IsOK(ecode4)) {
6401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6402 }
6403 arg4 = static_cast< int >(val4);
6404 }
6405 {
6406 if (!wxPyCheckForApp()) SWIG_fail;
6407 PyThreadState* __tstate = wxPyBeginAllowThreads();
6408 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6409 wxPyEndAllowThreads(__tstate);
6410 if (PyErr_Occurred()) SWIG_fail;
6411 }
6412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6413 return resultobj;
6414fail:
6415 return NULL;
d55e5bfc
RD
6416}
6417
6418
b39fe951 6419SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6420 PyObject *resultobj = 0;
6421 wxBitmap *arg1 = (wxBitmap *) 0 ;
6422 bool result;
6423 void *argp1 = 0 ;
6424 int res1 = 0 ;
6425 PyObject *swig_obj[1] ;
6426
6427 if (!args) SWIG_fail;
6428 swig_obj[0] = args;
6429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6430 if (!SWIG_IsOK(res1)) {
b39fe951 6431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6432 }
6433 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6434 {
b39fe951 6435 result = (bool)(arg1)->IsOk();
1bd55598
RD
6436 if (PyErr_Occurred()) SWIG_fail;
6437 }
6438 {
6439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6440 }
6441 return resultobj;
6442fail:
6443 return NULL;
d55e5bfc
RD
6444}
6445
6446
1bd55598
RD
6447SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6448 PyObject *resultobj = 0;
6449 wxBitmap *arg1 = (wxBitmap *) 0 ;
6450 int result;
6451 void *argp1 = 0 ;
6452 int res1 = 0 ;
6453 PyObject *swig_obj[1] ;
6454
6455 if (!args) SWIG_fail;
6456 swig_obj[0] = args;
6457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6458 if (!SWIG_IsOK(res1)) {
6459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6460 }
6461 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6462 {
1bd55598 6463 result = (int)(arg1)->GetWidth();
1bd55598
RD
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 resultobj = SWIG_From_int(static_cast< int >(result));
6467 return resultobj;
6468fail:
6469 return NULL;
070c48b4
RD
6470}
6471
6472
1bd55598
RD
6473SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6474 PyObject *resultobj = 0;
6475 wxBitmap *arg1 = (wxBitmap *) 0 ;
6476 int result;
6477 void *argp1 = 0 ;
6478 int res1 = 0 ;
6479 PyObject *swig_obj[1] ;
6480
6481 if (!args) SWIG_fail;
6482 swig_obj[0] = args;
6483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6484 if (!SWIG_IsOK(res1)) {
6485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6486 }
6487 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6488 {
1bd55598 6489 result = (int)(arg1)->GetHeight();
1bd55598
RD
6490 if (PyErr_Occurred()) SWIG_fail;
6491 }
6492 resultobj = SWIG_From_int(static_cast< int >(result));
6493 return resultobj;
6494fail:
6495 return NULL;
d55e5bfc
RD
6496}
6497
6498
1bd55598
RD
6499SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6500 PyObject *resultobj = 0;
6501 wxBitmap *arg1 = (wxBitmap *) 0 ;
6502 int result;
6503 void *argp1 = 0 ;
6504 int res1 = 0 ;
6505 PyObject *swig_obj[1] ;
6506
6507 if (!args) SWIG_fail;
6508 swig_obj[0] = args;
6509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6510 if (!SWIG_IsOK(res1)) {
6511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6512 }
6513 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6514 {
1bd55598 6515 result = (int)(arg1)->GetDepth();
1bd55598
RD
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 resultobj = SWIG_From_int(static_cast< int >(result));
6519 return resultobj;
6520fail:
6521 return NULL;
d55e5bfc
RD
6522}
6523
6524
1bd55598
RD
6525SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6526 PyObject *resultobj = 0;
6527 wxBitmap *arg1 = (wxBitmap *) 0 ;
6528 wxSize result;
6529 void *argp1 = 0 ;
6530 int res1 = 0 ;
6531 PyObject *swig_obj[1] ;
6532
6533 if (!args) SWIG_fail;
6534 swig_obj[0] = args;
6535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6536 if (!SWIG_IsOK(res1)) {
6537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6538 }
6539 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6540 {
1bd55598 6541 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6545 return resultobj;
6546fail:
6547 return NULL;
d55e5bfc
RD
6548}
6549
6550
1bd55598
RD
6551SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6552 PyObject *resultobj = 0;
6553 wxBitmap *arg1 = (wxBitmap *) 0 ;
6554 SwigValueWrapper<wxImage > result;
6555 void *argp1 = 0 ;
6556 int res1 = 0 ;
6557 PyObject *swig_obj[1] ;
6558
6559 if (!args) SWIG_fail;
6560 swig_obj[0] = args;
6561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6562 if (!SWIG_IsOK(res1)) {
6563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6564 }
6565 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6566 {
1bd55598 6567 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6568 if (PyErr_Occurred()) SWIG_fail;
6569 }
6570 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6571 return resultobj;
6572fail:
6573 return NULL;
d55e5bfc
RD
6574}
6575
6576
1bd55598
RD
6577SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6578 PyObject *resultobj = 0;
6579 wxBitmap *arg1 = (wxBitmap *) 0 ;
6580 wxMask *result = 0 ;
6581 void *argp1 = 0 ;
6582 int res1 = 0 ;
6583 PyObject *swig_obj[1] ;
6584
6585 if (!args) SWIG_fail;
6586 swig_obj[0] = args;
6587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6588 if (!SWIG_IsOK(res1)) {
6589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6590 }
6591 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6592 {
1bd55598 6593 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6597 return resultobj;
6598fail:
6599 return NULL;
6600}
6601
6602
6603SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj = 0;
6605 wxBitmap *arg1 = (wxBitmap *) 0 ;
6606 wxMask *arg2 = (wxMask *) 0 ;
6607 void *argp1 = 0 ;
6608 int res1 = 0 ;
6609 int res2 = 0 ;
6610 PyObject * obj0 = 0 ;
6611 PyObject * obj1 = 0 ;
6612 char * kwnames[] = {
6613 (char *) "self",(char *) "mask", NULL
6614 };
6615
6616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6618 if (!SWIG_IsOK(res1)) {
6619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6620 }
6621 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6622 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6623 if (!SWIG_IsOK(res2)) {
6624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6625 }
6626 {
1bd55598 6627 (arg1)->SetMask(arg2);
1bd55598
RD
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 resultobj = SWIG_Py_Void();
6631 return resultobj;
6632fail:
6633 return NULL;
6634}
6635
6636
6637SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj = 0;
6639 wxBitmap *arg1 = (wxBitmap *) 0 ;
6640 wxColour *arg2 = 0 ;
6641 void *argp1 = 0 ;
6642 int res1 = 0 ;
6643 wxColour temp2 ;
6644 PyObject * obj0 = 0 ;
6645 PyObject * obj1 = 0 ;
6646 char * kwnames[] = {
6647 (char *) "self",(char *) "colour", NULL
6648 };
6649
6650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6652 if (!SWIG_IsOK(res1)) {
6653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6654 }
6655 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6656 {
6657 arg2 = &temp2;
6658 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6659 }
6660 {
1bd55598 6661 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 resultobj = SWIG_Py_Void();
6665 return resultobj;
6666fail:
6667 return NULL;
6668}
6669
6670
6671SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj = 0;
6673 wxBitmap *arg1 = (wxBitmap *) 0 ;
6674 wxRect *arg2 = 0 ;
6675 SwigValueWrapper<wxBitmap > result;
6676 void *argp1 = 0 ;
6677 int res1 = 0 ;
6678 wxRect temp2 ;
6679 PyObject * obj0 = 0 ;
6680 PyObject * obj1 = 0 ;
6681 char * kwnames[] = {
6682 (char *) "self",(char *) "rect", NULL
6683 };
6684
6685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6687 if (!SWIG_IsOK(res1)) {
6688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6689 }
6690 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6691 {
6692 arg2 = &temp2;
6693 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6694 }
6695 {
1bd55598 6696 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6700 return resultobj;
6701fail:
6702 return NULL;
6703}
6704
6705
6706SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6707 PyObject *resultobj = 0;
6708 wxBitmap *arg1 = (wxBitmap *) 0 ;
6709 wxString *arg2 = 0 ;
6710 wxBitmapType arg3 ;
6711 wxPalette *arg4 = (wxPalette *) NULL ;
6712 bool result;
6713 void *argp1 = 0 ;
6714 int res1 = 0 ;
6715 bool temp2 = false ;
6716 int val3 ;
6717 int ecode3 = 0 ;
6718 void *argp4 = 0 ;
6719 int res4 = 0 ;
6720 PyObject * obj0 = 0 ;
6721 PyObject * obj1 = 0 ;
6722 PyObject * obj2 = 0 ;
6723 PyObject * obj3 = 0 ;
6724 char * kwnames[] = {
6725 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6726 };
6727
6728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6730 if (!SWIG_IsOK(res1)) {
6731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6732 }
6733 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6734 {
6735 arg2 = wxString_in_helper(obj1);
6736 if (arg2 == NULL) SWIG_fail;
6737 temp2 = true;
6738 }
6739 ecode3 = SWIG_AsVal_int(obj2, &val3);
6740 if (!SWIG_IsOK(ecode3)) {
6741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6742 }
6743 arg3 = static_cast< wxBitmapType >(val3);
6744 if (obj3) {
6745 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6746 if (!SWIG_IsOK(res4)) {
6747 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6748 }
1bd55598
RD
6749 arg4 = reinterpret_cast< wxPalette * >(argp4);
6750 }
6751 {
1bd55598 6752 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 {
6756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6757 }
6758 {
6759 if (temp2)
6760 delete arg2;
6761 }
6762 return resultobj;
6763fail:
6764 {
6765 if (temp2)
6766 delete arg2;
6767 }
6768 return NULL;
6769}
6770
6771
6772SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6773 PyObject *resultobj = 0;
6774 wxBitmap *arg1 = (wxBitmap *) 0 ;
6775 wxString *arg2 = 0 ;
6776 wxBitmapType arg3 ;
6777 bool result;
6778 void *argp1 = 0 ;
6779 int res1 = 0 ;
6780 bool temp2 = false ;
6781 int val3 ;
6782 int ecode3 = 0 ;
6783 PyObject * obj0 = 0 ;
6784 PyObject * obj1 = 0 ;
6785 PyObject * obj2 = 0 ;
6786 char * kwnames[] = {
6787 (char *) "self",(char *) "name",(char *) "type", NULL
6788 };
6789
6790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6792 if (!SWIG_IsOK(res1)) {
6793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6794 }
6795 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6796 {
6797 arg2 = wxString_in_helper(obj1);
6798 if (arg2 == NULL) SWIG_fail;
6799 temp2 = true;
6800 }
6801 ecode3 = SWIG_AsVal_int(obj2, &val3);
6802 if (!SWIG_IsOK(ecode3)) {
6803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6804 }
6805 arg3 = static_cast< wxBitmapType >(val3);
6806 {
1bd55598 6807 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6808 if (PyErr_Occurred()) SWIG_fail;
6809 }
6810 {
6811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6812 }
6813 {
6814 if (temp2)
6815 delete arg2;
6816 }
6817 return resultobj;
6818fail:
6819 {
6820 if (temp2)
6821 delete arg2;
6822 }
6823 return NULL;
d04418a7
RD
6824}
6825
6826
1bd55598
RD
6827SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6828 PyObject *resultobj = 0;
6829 wxBitmap *arg1 = (wxBitmap *) 0 ;
6830 wxPalette *result = 0 ;
6831 void *argp1 = 0 ;
6832 int res1 = 0 ;
6833 PyObject *swig_obj[1] ;
6834
6835 if (!args) SWIG_fail;
6836 swig_obj[0] = args;
6837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6838 if (!SWIG_IsOK(res1)) {
6839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6840 }
6841 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6842 {
1bd55598 6843 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6844 if (PyErr_Occurred()) SWIG_fail;
6845 }
6846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6847 return resultobj;
6848fail:
6849 return NULL;
6850}
6851
6852
6853SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6854 PyObject *resultobj = 0;
6855 wxBitmap *arg1 = (wxBitmap *) 0 ;
6856 wxIcon *arg2 = 0 ;
6857 bool result;
6858 void *argp1 = 0 ;
6859 int res1 = 0 ;
6860 void *argp2 = 0 ;
6861 int res2 = 0 ;
6862 PyObject * obj0 = 0 ;
6863 PyObject * obj1 = 0 ;
6864 char * kwnames[] = {
6865 (char *) "self",(char *) "icon", NULL
6866 };
6867
6868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6870 if (!SWIG_IsOK(res1)) {
6871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6872 }
6873 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6875 if (!SWIG_IsOK(res2)) {
6876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6877 }
6878 if (!argp2) {
6879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6880 }
6881 arg2 = reinterpret_cast< wxIcon * >(argp2);
6882 {
1bd55598 6883 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 {
6887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6888 }
6889 return resultobj;
6890fail:
6891 return NULL;
6892}
6893
6894
6895SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6896 PyObject *resultobj = 0;
6897 wxBitmap *arg1 = (wxBitmap *) 0 ;
6898 int arg2 ;
6899 void *argp1 = 0 ;
6900 int res1 = 0 ;
6901 int val2 ;
6902 int ecode2 = 0 ;
6903 PyObject * obj0 = 0 ;
6904 PyObject * obj1 = 0 ;
6905 char * kwnames[] = {
6906 (char *) "self",(char *) "height", NULL
6907 };
6908
6909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6911 if (!SWIG_IsOK(res1)) {
6912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6913 }
6914 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6915 ecode2 = SWIG_AsVal_int(obj1, &val2);
6916 if (!SWIG_IsOK(ecode2)) {
6917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6918 }
6919 arg2 = static_cast< int >(val2);
6920 {
1bd55598 6921 (arg1)->SetHeight(arg2);
1bd55598
RD
6922 if (PyErr_Occurred()) SWIG_fail;
6923 }
6924 resultobj = SWIG_Py_Void();
6925 return resultobj;
6926fail:
6927 return NULL;
6928}
6929
6930
6931SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6932 PyObject *resultobj = 0;
6933 wxBitmap *arg1 = (wxBitmap *) 0 ;
6934 int arg2 ;
6935 void *argp1 = 0 ;
6936 int res1 = 0 ;
6937 int val2 ;
6938 int ecode2 = 0 ;
6939 PyObject * obj0 = 0 ;
6940 PyObject * obj1 = 0 ;
6941 char * kwnames[] = {
6942 (char *) "self",(char *) "width", NULL
6943 };
6944
6945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6947 if (!SWIG_IsOK(res1)) {
6948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6949 }
6950 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6951 ecode2 = SWIG_AsVal_int(obj1, &val2);
6952 if (!SWIG_IsOK(ecode2)) {
6953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6954 }
6955 arg2 = static_cast< int >(val2);
6956 {
1bd55598 6957 (arg1)->SetWidth(arg2);
1bd55598
RD
6958 if (PyErr_Occurred()) SWIG_fail;
6959 }
6960 resultobj = SWIG_Py_Void();
6961 return resultobj;
6962fail:
6963 return NULL;
6964}
6965
6966
6967SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6968 PyObject *resultobj = 0;
6969 wxBitmap *arg1 = (wxBitmap *) 0 ;
6970 int arg2 ;
6971 void *argp1 = 0 ;
6972 int res1 = 0 ;
6973 int val2 ;
6974 int ecode2 = 0 ;
6975 PyObject * obj0 = 0 ;
6976 PyObject * obj1 = 0 ;
6977 char * kwnames[] = {
6978 (char *) "self",(char *) "depth", NULL
6979 };
6980
6981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6983 if (!SWIG_IsOK(res1)) {
6984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6985 }
6986 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6987 ecode2 = SWIG_AsVal_int(obj1, &val2);
6988 if (!SWIG_IsOK(ecode2)) {
6989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6990 }
6991 arg2 = static_cast< int >(val2);
6992 {
1bd55598 6993 (arg1)->SetDepth(arg2);
1bd55598
RD
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 resultobj = SWIG_Py_Void();
6997 return resultobj;
6998fail:
6999 return NULL;
7000}
7001
7002
7003SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj = 0;
7005 wxBitmap *arg1 = (wxBitmap *) 0 ;
7006 wxSize *arg2 = 0 ;
7007 void *argp1 = 0 ;
7008 int res1 = 0 ;
7009 wxSize temp2 ;
7010 PyObject * obj0 = 0 ;
7011 PyObject * obj1 = 0 ;
7012 char * kwnames[] = {
7013 (char *) "self",(char *) "size", NULL
7014 };
7015
7016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7018 if (!SWIG_IsOK(res1)) {
7019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7020 }
7021 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7022 {
7023 arg2 = &temp2;
7024 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7025 }
7026 {
1bd55598 7027 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
7028 if (PyErr_Occurred()) SWIG_fail;
7029 }
7030 resultobj = SWIG_Py_Void();
7031 return resultobj;
7032fail:
7033 return NULL;
7034}
7035
7036
8f514ab4
RD
7037SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7038 PyObject *resultobj = 0;
7039 wxBitmap *arg1 = (wxBitmap *) 0 ;
7040 buffer arg2 ;
7041 int arg3 ;
7042 void *argp1 = 0 ;
7043 int res1 = 0 ;
7044 Py_ssize_t temp2 ;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 char * kwnames[] = {
7048 (char *) "self",(char *) "data", NULL
7049 };
7050
7051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7055 }
7056 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7057 {
7058 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7059 arg3 = (int)temp2;
7060 }
7061 {
7062 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 resultobj = SWIG_Py_Void();
7066 return resultobj;
7067fail:
7068 return NULL;
7069}
7070
7071
7072SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7073 PyObject *resultobj = 0;
7074 wxBitmap *arg1 = (wxBitmap *) 0 ;
7075 buffer arg2 ;
7076 int arg3 ;
7077 void *argp1 = 0 ;
7078 int res1 = 0 ;
7079 Py_ssize_t temp2 ;
7080 PyObject * obj0 = 0 ;
7081 PyObject * obj1 = 0 ;
7082 char * kwnames[] = {
7083 (char *) "self",(char *) "data", NULL
7084 };
7085
7086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7088 if (!SWIG_IsOK(res1)) {
7089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7090 }
7091 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7092 {
7093 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7094 arg3 = (int)temp2;
7095 }
7096 {
7097 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 resultobj = SWIG_Py_Void();
7101 return resultobj;
7102fail:
7103 return NULL;
7104}
7105
7106
1bd55598
RD
7107SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7108 PyObject *resultobj = 0;
7109 wxBitmap *arg1 = (wxBitmap *) 0 ;
7110 wxBitmap *arg2 = (wxBitmap *) 0 ;
7111 bool result;
7112 void *argp1 = 0 ;
7113 int res1 = 0 ;
7114 void *argp2 = 0 ;
7115 int res2 = 0 ;
7116 PyObject * obj0 = 0 ;
7117 PyObject * obj1 = 0 ;
7118 char * kwnames[] = {
7119 (char *) "self",(char *) "other", NULL
7120 };
7121
7122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7124 if (!SWIG_IsOK(res1)) {
7125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7126 }
7127 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7128 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7129 if (!SWIG_IsOK(res2)) {
7130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7131 }
7132 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7133 {
1bd55598 7134 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7135 if (PyErr_Occurred()) SWIG_fail;
7136 }
7137 {
fc46b7f3
RD
7138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7139 }
7140 return resultobj;
7141fail:
7142 return NULL;
7143}
7144
7145
7146SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7147 PyObject *resultobj = 0;
7148 wxBitmap *arg1 = (wxBitmap *) 0 ;
7149 wxBitmap *arg2 = (wxBitmap *) 0 ;
7150 bool result;
7151 void *argp1 = 0 ;
7152 int res1 = 0 ;
7153 void *argp2 = 0 ;
7154 int res2 = 0 ;
7155 PyObject * obj0 = 0 ;
7156 PyObject * obj1 = 0 ;
7157 char * kwnames[] = {
7158 (char *) "self",(char *) "other", NULL
7159 };
7160
7161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7163 if (!SWIG_IsOK(res1)) {
7164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7165 }
7166 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7167 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7168 if (!SWIG_IsOK(res2)) {
7169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7170 }
7171 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7172 {
7173 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 {
7177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7178 }
7179 return resultobj;
7180fail:
7181 return NULL;
7182}
7183
7184
7185SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7186 PyObject *obj;
7187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7188 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7189 return SWIG_Py_Void();
7190}
7191
7192SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7193 return SWIG_Python_InitShadowInstance(args);
7194}
7195
7196SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7197 PyObject *resultobj = 0;
7198 int arg1 ;
7199 int arg2 ;
7200 buffer arg3 ;
7201 int arg4 ;
7202 buffer arg5 ;
7203 int arg6 ;
7204 wxBitmap *result = 0 ;
7205 int val1 ;
7206 int ecode1 = 0 ;
7207 int val2 ;
7208 int ecode2 = 0 ;
8c9c423b
RD
7209 Py_ssize_t temp3 ;
7210 Py_ssize_t temp5 ;
fc46b7f3
RD
7211 PyObject * obj0 = 0 ;
7212 PyObject * obj1 = 0 ;
7213 PyObject * obj2 = 0 ;
7214 PyObject * obj3 = 0 ;
7215 char * kwnames[] = {
7216 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7217 };
7218
7219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7220 ecode1 = SWIG_AsVal_int(obj0, &val1);
7221 if (!SWIG_IsOK(ecode1)) {
7222 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7223 }
7224 arg1 = static_cast< int >(val1);
7225 ecode2 = SWIG_AsVal_int(obj1, &val2);
7226 if (!SWIG_IsOK(ecode2)) {
7227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7228 }
7229 arg2 = static_cast< int >(val2);
7230 {
8c9c423b
RD
7231 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7232 arg4 = (int)temp3;
fc46b7f3
RD
7233 }
7234 {
7235 if (obj3 != Py_None) {
8c9c423b
RD
7236 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7237 arg6 = (int)temp5;
fc46b7f3
RD
7238 }
7239 }
7240 {
7241 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7245 return resultobj;
7246fail:
7247 return NULL;
7248}
7249
7250
7251SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7252 PyObject *resultobj = 0;
7253 int arg1 ;
7254 int arg2 ;
7255 buffer arg3 ;
7256 int arg4 ;
7257 wxBitmap *result = 0 ;
7258 int val1 ;
7259 int ecode1 = 0 ;
7260 int val2 ;
7261 int ecode2 = 0 ;
8c9c423b 7262 Py_ssize_t temp3 ;
fc46b7f3
RD
7263 PyObject * obj0 = 0 ;
7264 PyObject * obj1 = 0 ;
7265 PyObject * obj2 = 0 ;
7266 char * kwnames[] = {
7267 (char *) "width",(char *) "height",(char *) "data", NULL
7268 };
7269
7270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7271 ecode1 = SWIG_AsVal_int(obj0, &val1);
7272 if (!SWIG_IsOK(ecode1)) {
7273 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7274 }
7275 arg1 = static_cast< int >(val1);
7276 ecode2 = SWIG_AsVal_int(obj1, &val2);
7277 if (!SWIG_IsOK(ecode2)) {
7278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7279 }
7280 arg2 = static_cast< int >(val2);
7281 {
8c9c423b
RD
7282 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7283 arg4 = (int)temp3;
fc46b7f3
RD
7284 }
7285 {
7286 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7287 if (PyErr_Occurred()) SWIG_fail;
7288 }
7289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7290 return resultobj;
7291fail:
7292 return NULL;
7293}
7294
7295
7296SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7297 PyObject *resultobj = 0;
7298 int arg1 ;
7299 int arg2 ;
7300 buffer arg3 ;
7301 int arg4 ;
7302 wxBitmap *result = 0 ;
7303 int val1 ;
7304 int ecode1 = 0 ;
7305 int val2 ;
7306 int ecode2 = 0 ;
8c9c423b 7307 Py_ssize_t temp3 ;
fc46b7f3
RD
7308 PyObject * obj0 = 0 ;
7309 PyObject * obj1 = 0 ;
7310 PyObject * obj2 = 0 ;
7311 char * kwnames[] = {
7312 (char *) "width",(char *) "height",(char *) "data", NULL
7313 };
7314
7315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7316 ecode1 = SWIG_AsVal_int(obj0, &val1);
7317 if (!SWIG_IsOK(ecode1)) {
7318 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7319 }
7320 arg1 = static_cast< int >(val1);
7321 ecode2 = SWIG_AsVal_int(obj1, &val2);
7322 if (!SWIG_IsOK(ecode2)) {
7323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7324 }
7325 arg2 = static_cast< int >(val2);
7326 {
8c9c423b
RD
7327 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7328 arg4 = (int)temp3;
fc46b7f3
RD
7329 }
7330 {
7331 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7332 if (PyErr_Occurred()) SWIG_fail;
7333 }
7334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7335 return resultobj;
7336fail:
7337 return NULL;
7338}
7339
7340
7341SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7342 PyObject *resultobj = 0;
7343 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7344 wxPoint result;
7345 void *argp1 = 0 ;
7346 int res1 = 0 ;
7347 PyObject *swig_obj[1] ;
7348
7349 if (!args) SWIG_fail;
7350 swig_obj[0] = args;
7351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7352 if (!SWIG_IsOK(res1)) {
7353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7354 }
7355 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7356 {
7357 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7358 if (PyErr_Occurred()) SWIG_fail;
7359 }
7360 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7361 return resultobj;
7362fail:
7363 return NULL;
7364}
7365
7366
7367SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7368 PyObject *resultobj = 0;
7369 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7370 int result;
7371 void *argp1 = 0 ;
7372 int res1 = 0 ;
7373 PyObject *swig_obj[1] ;
7374
7375 if (!args) SWIG_fail;
7376 swig_obj[0] = args;
7377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7378 if (!SWIG_IsOK(res1)) {
7379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7380 }
7381 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7382 {
7383 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7384 if (PyErr_Occurred()) SWIG_fail;
7385 }
7386 resultobj = SWIG_From_int(static_cast< int >(result));
7387 return resultobj;
7388fail:
7389 return NULL;
7390}
7391
7392
7393SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7394 PyObject *resultobj = 0;
7395 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7396 int result;
7397 void *argp1 = 0 ;
7398 int res1 = 0 ;
7399 PyObject *swig_obj[1] ;
7400
7401 if (!args) SWIG_fail;
7402 swig_obj[0] = args;
7403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7404 if (!SWIG_IsOK(res1)) {
7405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7406 }
7407 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7408 {
7409 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7410 if (PyErr_Occurred()) SWIG_fail;
7411 }
7412 resultobj = SWIG_From_int(static_cast< int >(result));
7413 return resultobj;
7414fail:
7415 return NULL;
7416}
7417
7418
7419SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7420 PyObject *resultobj = 0;
7421 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7422 wxSize result;
7423 void *argp1 = 0 ;
7424 int res1 = 0 ;
7425 PyObject *swig_obj[1] ;
7426
7427 if (!args) SWIG_fail;
7428 swig_obj[0] = args;
7429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7430 if (!SWIG_IsOK(res1)) {
7431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7432 }
7433 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7434 {
7435 result = ((wxPixelDataBase const *)arg1)->GetSize();
7436 if (PyErr_Occurred()) SWIG_fail;
7437 }
7438 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7439 return resultobj;
7440fail:
7441 return NULL;
7442}
7443
7444
7445SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7446 PyObject *resultobj = 0;
7447 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7448 int result;
7449 void *argp1 = 0 ;
7450 int res1 = 0 ;
7451 PyObject *swig_obj[1] ;
7452
7453 if (!args) SWIG_fail;
7454 swig_obj[0] = args;
7455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7456 if (!SWIG_IsOK(res1)) {
7457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7458 }
7459 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7460 {
7461 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7462 if (PyErr_Occurred()) SWIG_fail;
7463 }
7464 resultobj = SWIG_From_int(static_cast< int >(result));
7465 return resultobj;
7466fail:
7467 return NULL;
7468}
7469
7470
7471SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7472 PyObject *obj;
7473 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7474 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7475 return SWIG_Py_Void();
7476}
7477
7478SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7479 PyObject *resultobj = 0;
7480 wxBitmap *arg1 = 0 ;
7481 wxNativePixelData *result = 0 ;
7482 void *argp1 = 0 ;
7483 int res1 = 0 ;
7484
7485 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7487 if (!SWIG_IsOK(res1)) {
7488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7489 }
7490 if (!argp1) {
7491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7492 }
7493 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7494 {
7495 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7496 if (PyErr_Occurred()) SWIG_fail;
7497 }
7498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7499 return resultobj;
7500fail:
7501 return NULL;
7502}
7503
7504
7505SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7506 PyObject *resultobj = 0;
7507 wxBitmap *arg1 = 0 ;
7508 wxRect *arg2 = 0 ;
7509 wxNativePixelData *result = 0 ;
7510 void *argp1 = 0 ;
7511 int res1 = 0 ;
7512 wxRect temp2 ;
7513
7514 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7516 if (!SWIG_IsOK(res1)) {
7517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7518 }
7519 if (!argp1) {
7520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7521 }
7522 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7523 {
7524 arg2 = &temp2;
7525 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7526 }
7527 {
7528 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7532 return resultobj;
7533fail:
7534 return NULL;
7535}
7536
7537
7538SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7539 PyObject *resultobj = 0;
7540 wxBitmap *arg1 = 0 ;
7541 wxPoint *arg2 = 0 ;
7542 wxSize *arg3 = 0 ;
7543 wxNativePixelData *result = 0 ;
7544 void *argp1 = 0 ;
7545 int res1 = 0 ;
7546 wxPoint temp2 ;
7547 wxSize temp3 ;
7548
7549 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7551 if (!SWIG_IsOK(res1)) {
7552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7553 }
7554 if (!argp1) {
7555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7556 }
7557 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7558 {
7559 arg2 = &temp2;
7560 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7561 }
7562 {
7563 arg3 = &temp3;
7564 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7565 }
7566 {
7567 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7571 return resultobj;
7572fail:
7573 return NULL;
7574}
7575
7576
7577SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7578 int argc;
7579 PyObject *argv[4];
7580
7581 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7582 --argc;
7583 if (argc == 1) {
7584 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7585 }
7586 if (argc == 2) {
7587 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7588 }
7589 if (argc == 3) {
7590 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7591 }
7592
7593fail:
7594 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7595 return NULL;
7596}
7597
7598
7599SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7600 PyObject *resultobj = 0;
7601 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7602 void *argp1 = 0 ;
7603 int res1 = 0 ;
7604 PyObject *swig_obj[1] ;
7605
7606 if (!args) SWIG_fail;
7607 swig_obj[0] = args;
7608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7609 if (!SWIG_IsOK(res1)) {
7610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7611 }
7612 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7613 {
7614 delete arg1;
7615
7616 if (PyErr_Occurred()) SWIG_fail;
7617 }
7618 resultobj = SWIG_Py_Void();
7619 return resultobj;
7620fail:
7621 return NULL;
7622}
7623
7624
7625SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7626 PyObject *resultobj = 0;
7627 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7628 wxNativePixelData_Accessor result;
7629 void *argp1 = 0 ;
7630 int res1 = 0 ;
7631 PyObject *swig_obj[1] ;
7632
7633 if (!args) SWIG_fail;
7634 swig_obj[0] = args;
7635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7636 if (!SWIG_IsOK(res1)) {
7637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7638 }
7639 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7640 {
7641 result = ((wxNativePixelData const *)arg1)->GetPixels();
7642 if (PyErr_Occurred()) SWIG_fail;
7643 }
7644 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7645 return resultobj;
7646fail:
7647 return NULL;
7648}
7649
7650
7651SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7652 PyObject *resultobj = 0;
7653 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7654 void *argp1 = 0 ;
7655 int res1 = 0 ;
7656 PyObject *swig_obj[1] ;
7657
7658 if (!args) SWIG_fail;
7659 swig_obj[0] = args;
7660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7661 if (!SWIG_IsOK(res1)) {
7662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7663 }
7664 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7665 {
7666 (arg1)->UseAlpha();
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 resultobj = SWIG_Py_Void();
7670 return resultobj;
7671fail:
7672 return NULL;
7673}
7674
7675
7676SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7677 PyObject *resultobj = 0;
7678 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7679 bool result;
7680 void *argp1 = 0 ;
7681 int res1 = 0 ;
7682 PyObject *swig_obj[1] ;
7683
7684 if (!args) SWIG_fail;
7685 swig_obj[0] = args;
7686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7687 if (!SWIG_IsOK(res1)) {
7688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7689 }
7690 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7691 {
7692 result = (bool)wxNativePixelData___nonzero__(arg1);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 {
7696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7697 }
7698 return resultobj;
7699fail:
7700 return NULL;
7701}
7702
7703
7704SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7705 PyObject *obj;
7706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7707 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7708 return SWIG_Py_Void();
7709}
7710
7711SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7712 return SWIG_Python_InitShadowInstance(args);
7713}
7714
7715SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7716 PyObject *resultobj = 0;
7717 wxNativePixelData *arg1 = 0 ;
7718 wxNativePixelData_Accessor *result = 0 ;
7719 void *argp1 = 0 ;
7720 int res1 = 0 ;
7721
7722 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7724 if (!SWIG_IsOK(res1)) {
7725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7726 }
7727 if (!argp1) {
7728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7729 }
7730 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7731 {
7732 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7736 return resultobj;
7737fail:
7738 return NULL;
7739}
7740
7741
7742SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7743 PyObject *resultobj = 0;
7744 wxBitmap *arg1 = 0 ;
7745 wxNativePixelData *arg2 = 0 ;
7746 wxNativePixelData_Accessor *result = 0 ;
7747 void *argp1 = 0 ;
7748 int res1 = 0 ;
7749 void *argp2 = 0 ;
7750 int res2 = 0 ;
7751
7752 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7754 if (!SWIG_IsOK(res1)) {
7755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7756 }
7757 if (!argp1) {
7758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7759 }
7760 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7761 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7762 if (!SWIG_IsOK(res2)) {
7763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7764 }
7765 if (!argp2) {
7766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7767 }
7768 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7769 {
7770 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7771 if (PyErr_Occurred()) SWIG_fail;
7772 }
7773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7774 return resultobj;
7775fail:
7776 return NULL;
7777}
7778
7779
7780SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7781 PyObject *resultobj = 0;
7782 wxNativePixelData_Accessor *result = 0 ;
7783
7784 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7785 {
7786 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7787 if (PyErr_Occurred()) SWIG_fail;
7788 }
7789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7790 return resultobj;
7791fail:
7792 return NULL;
7793}
7794
7795
7796SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7797 int argc;
7798 PyObject *argv[3];
7799
7800 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7801 --argc;
7802 if (argc == 0) {
7803 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7804 }
7805 if (argc == 1) {
7806 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7807 }
7808 if (argc == 2) {
7809 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7810 }
7811
7812fail:
7813 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7814 return NULL;
7815}
7816
7817
7818SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7819 PyObject *resultobj = 0;
7820 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7821 void *argp1 = 0 ;
7822 int res1 = 0 ;
7823 PyObject *swig_obj[1] ;
7824
7825 if (!args) SWIG_fail;
7826 swig_obj[0] = args;
7827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7828 if (!SWIG_IsOK(res1)) {
7829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7830 }
7831 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7832 {
7833 delete arg1;
7834
7835 if (PyErr_Occurred()) SWIG_fail;
7836 }
7837 resultobj = SWIG_Py_Void();
7838 return resultobj;
7839fail:
7840 return NULL;
7841}
7842
7843
7844SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7845 PyObject *resultobj = 0;
7846 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7847 wxNativePixelData *arg2 = 0 ;
7848 void *argp1 = 0 ;
7849 int res1 = 0 ;
7850 void *argp2 = 0 ;
7851 int res2 = 0 ;
7852 PyObject * obj0 = 0 ;
7853 PyObject * obj1 = 0 ;
7854 char * kwnames[] = {
7855 (char *) "self",(char *) "data", NULL
7856 };
7857
7858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7860 if (!SWIG_IsOK(res1)) {
7861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7862 }
7863 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7864 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7865 if (!SWIG_IsOK(res2)) {
7866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7867 }
7868 if (!argp2) {
7869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7870 }
7871 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7872 {
7873 (arg1)->Reset((wxNativePixelData const &)*arg2);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 }
7876 resultobj = SWIG_Py_Void();
7877 return resultobj;
7878fail:
7879 return NULL;
7880}
7881
7882
7883SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7884 PyObject *resultobj = 0;
7885 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7886 bool result;
7887 void *argp1 = 0 ;
7888 int res1 = 0 ;
7889 PyObject *swig_obj[1] ;
7890
7891 if (!args) SWIG_fail;
7892 swig_obj[0] = args;
7893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7894 if (!SWIG_IsOK(res1)) {
7895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7896 }
7897 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7898 {
7899 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7900 if (PyErr_Occurred()) SWIG_fail;
7901 }
7902 {
7903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7904 }
7905 return resultobj;
7906fail:
7907 return NULL;
7908}
7909
7910
7911SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7912 PyObject *resultobj = 0;
7913 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7914 void *argp1 = 0 ;
7915 int res1 = 0 ;
7916 PyObject *swig_obj[1] ;
7917
7918 if (!args) SWIG_fail;
7919 swig_obj[0] = args;
7920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7921 if (!SWIG_IsOK(res1)) {
7922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7923 }
7924 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7925 {
7926 wxNativePixelData_Accessor_nextPixel(arg1);
7927 if (PyErr_Occurred()) SWIG_fail;
7928 }
7929 resultobj = SWIG_Py_Void();
7930 return resultobj;
7931fail:
7932 return NULL;
7933}
7934
7935
7936SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7937 PyObject *resultobj = 0;
7938 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7939 wxNativePixelData *arg2 = 0 ;
7940 int arg3 ;
7941 int arg4 ;
7942 void *argp1 = 0 ;
7943 int res1 = 0 ;
7944 void *argp2 = 0 ;
7945 int res2 = 0 ;
7946 int val3 ;
7947 int ecode3 = 0 ;
7948 int val4 ;
7949 int ecode4 = 0 ;
7950 PyObject * obj0 = 0 ;
7951 PyObject * obj1 = 0 ;
7952 PyObject * obj2 = 0 ;
7953 PyObject * obj3 = 0 ;
7954 char * kwnames[] = {
7955 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7956 };
7957
7958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7960 if (!SWIG_IsOK(res1)) {
7961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7962 }
7963 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7965 if (!SWIG_IsOK(res2)) {
7966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7967 }
7968 if (!argp2) {
7969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7970 }
7971 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7972 ecode3 = SWIG_AsVal_int(obj2, &val3);
7973 if (!SWIG_IsOK(ecode3)) {
7974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7975 }
7976 arg3 = static_cast< int >(val3);
7977 ecode4 = SWIG_AsVal_int(obj3, &val4);
7978 if (!SWIG_IsOK(ecode4)) {
7979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7980 }
7981 arg4 = static_cast< int >(val4);
7982 {
7983 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7984 if (PyErr_Occurred()) SWIG_fail;
7985 }
7986 resultobj = SWIG_Py_Void();
7987 return resultobj;
7988fail:
7989 return NULL;
7990}
7991
7992
7993SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7994 PyObject *resultobj = 0;
7995 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7996 wxNativePixelData *arg2 = 0 ;
7997 int arg3 ;
7998 void *argp1 = 0 ;
7999 int res1 = 0 ;
8000 void *argp2 = 0 ;
8001 int res2 = 0 ;
8002 int val3 ;
8003 int ecode3 = 0 ;
8004 PyObject * obj0 = 0 ;
8005 PyObject * obj1 = 0 ;
8006 PyObject * obj2 = 0 ;
8007 char * kwnames[] = {
8008 (char *) "self",(char *) "data",(char *) "x", NULL
8009 };
8010
8011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8013 if (!SWIG_IsOK(res1)) {
8014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8015 }
8016 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8018 if (!SWIG_IsOK(res2)) {
8019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8020 }
8021 if (!argp2) {
8022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8023 }
8024 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8025 ecode3 = SWIG_AsVal_int(obj2, &val3);
8026 if (!SWIG_IsOK(ecode3)) {
8027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8028 }
8029 arg3 = static_cast< int >(val3);
8030 {
8031 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8032 if (PyErr_Occurred()) SWIG_fail;
8033 }
8034 resultobj = SWIG_Py_Void();
8035 return resultobj;
8036fail:
8037 return NULL;
8038}
8039
8040
8041SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8042 PyObject *resultobj = 0;
8043 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8044 wxNativePixelData *arg2 = 0 ;
8045 int arg3 ;
8046 void *argp1 = 0 ;
8047 int res1 = 0 ;
8048 void *argp2 = 0 ;
8049 int res2 = 0 ;
8050 int val3 ;
8051 int ecode3 = 0 ;
8052 PyObject * obj0 = 0 ;
8053 PyObject * obj1 = 0 ;
8054 PyObject * obj2 = 0 ;
8055 char * kwnames[] = {
8056 (char *) "self",(char *) "data",(char *) "y", NULL
8057 };
8058
8059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8061 if (!SWIG_IsOK(res1)) {
8062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8063 }
8064 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8066 if (!SWIG_IsOK(res2)) {
8067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8068 }
8069 if (!argp2) {
8070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8071 }
8072 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8073 ecode3 = SWIG_AsVal_int(obj2, &val3);
8074 if (!SWIG_IsOK(ecode3)) {
8075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8076 }
8077 arg3 = static_cast< int >(val3);
8078 {
8079 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8080 if (PyErr_Occurred()) SWIG_fail;
8081 }
8082 resultobj = SWIG_Py_Void();
8083 return resultobj;
8084fail:
8085 return NULL;
8086}
8087
8088
8089SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj = 0;
8091 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8092 wxNativePixelData *arg2 = 0 ;
8093 int arg3 ;
8094 int arg4 ;
8095 void *argp1 = 0 ;
8096 int res1 = 0 ;
8097 void *argp2 = 0 ;
8098 int res2 = 0 ;
8099 int val3 ;
8100 int ecode3 = 0 ;
8101 int val4 ;
8102 int ecode4 = 0 ;
8103 PyObject * obj0 = 0 ;
8104 PyObject * obj1 = 0 ;
8105 PyObject * obj2 = 0 ;
8106 PyObject * obj3 = 0 ;
8107 char * kwnames[] = {
8108 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8109 };
8110
8111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8113 if (!SWIG_IsOK(res1)) {
8114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8115 }
8116 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8118 if (!SWIG_IsOK(res2)) {
8119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8120 }
8121 if (!argp2) {
8122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8123 }
8124 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8125 ecode3 = SWIG_AsVal_int(obj2, &val3);
8126 if (!SWIG_IsOK(ecode3)) {
8127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8128 }
8129 arg3 = static_cast< int >(val3);
8130 ecode4 = SWIG_AsVal_int(obj3, &val4);
8131 if (!SWIG_IsOK(ecode4)) {
8132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8133 }
8134 arg4 = static_cast< int >(val4);
8135 {
8136 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 resultobj = SWIG_Py_Void();
8140 return resultobj;
8141fail:
8142 return NULL;
8143}
8144
8145
8146SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8147 PyObject *resultobj = 0;
8148 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8149 byte arg2 ;
8150 byte arg3 ;
8151 byte arg4 ;
8152 void *argp1 = 0 ;
8153 int res1 = 0 ;
8154 unsigned char val2 ;
8155 int ecode2 = 0 ;
8156 unsigned char val3 ;
8157 int ecode3 = 0 ;
8158 unsigned char val4 ;
8159 int ecode4 = 0 ;
8160 PyObject * obj0 = 0 ;
8161 PyObject * obj1 = 0 ;
8162 PyObject * obj2 = 0 ;
8163 PyObject * obj3 = 0 ;
8164 char * kwnames[] = {
8165 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8166 };
8167
8168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8170 if (!SWIG_IsOK(res1)) {
8171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8172 }
8173 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8174 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8175 if (!SWIG_IsOK(ecode2)) {
8176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8177 }
8178 arg2 = static_cast< byte >(val2);
8179 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8180 if (!SWIG_IsOK(ecode3)) {
8181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8182 }
8183 arg3 = static_cast< byte >(val3);
8184 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8185 if (!SWIG_IsOK(ecode4)) {
8186 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8187 }
8188 arg4 = static_cast< byte >(val4);
8189 {
8190 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 resultobj = SWIG_Py_Void();
8194 return resultobj;
8195fail:
8196 return NULL;
8197}
8198
8199
8200SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8201 PyObject *resultobj = 0;
8202 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8203 PyObject *result = 0 ;
8204 void *argp1 = 0 ;
8205 int res1 = 0 ;
8206 PyObject *swig_obj[1] ;
8207
8208 if (!args) SWIG_fail;
8209 swig_obj[0] = args;
8210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8211 if (!SWIG_IsOK(res1)) {
8212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8213 }
8214 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8215 {
8216 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8217 if (PyErr_Occurred()) SWIG_fail;
8218 }
8219 resultobj = result;
8220 return resultobj;
8221fail:
8222 return NULL;
8223}
8224
8225
8226SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8227 PyObject *obj;
8228 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8229 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8230 return SWIG_Py_Void();
8231}
8232
8233SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8234 return SWIG_Python_InitShadowInstance(args);
8235}
8236
8237SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8238 PyObject *resultobj = 0;
8239 wxBitmap *arg1 = 0 ;
8240 wxAlphaPixelData *result = 0 ;
8241 void *argp1 = 0 ;
8242 int res1 = 0 ;
8243
8244 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8246 if (!SWIG_IsOK(res1)) {
8247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8248 }
8249 if (!argp1) {
8250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8251 }
8252 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8253 {
8254 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8258 return resultobj;
8259fail:
8260 return NULL;
8261}
8262
8263
8264SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8265 PyObject *resultobj = 0;
8266 wxBitmap *arg1 = 0 ;
8267 wxRect *arg2 = 0 ;
8268 wxAlphaPixelData *result = 0 ;
8269 void *argp1 = 0 ;
8270 int res1 = 0 ;
8271 wxRect temp2 ;
8272
8273 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8275 if (!SWIG_IsOK(res1)) {
8276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8277 }
8278 if (!argp1) {
8279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8280 }
8281 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8282 {
8283 arg2 = &temp2;
8284 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8285 }
8286 {
8287 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8291 return resultobj;
8292fail:
8293 return NULL;
8294}
8295
8296
8297SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8298 PyObject *resultobj = 0;
8299 wxBitmap *arg1 = 0 ;
8300 wxPoint *arg2 = 0 ;
8301 wxSize *arg3 = 0 ;
8302 wxAlphaPixelData *result = 0 ;
8303 void *argp1 = 0 ;
8304 int res1 = 0 ;
8305 wxPoint temp2 ;
8306 wxSize temp3 ;
8307
8308 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8310 if (!SWIG_IsOK(res1)) {
8311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8312 }
8313 if (!argp1) {
8314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8315 }
8316 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8317 {
8318 arg2 = &temp2;
8319 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8320 }
8321 {
8322 arg3 = &temp3;
8323 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8324 }
8325 {
8326 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8327 if (PyErr_Occurred()) SWIG_fail;
8328 }
8329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8330 return resultobj;
8331fail:
8332 return NULL;
8333}
8334
8335
8336SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8337 int argc;
8338 PyObject *argv[4];
8339
8340 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8341 --argc;
8342 if (argc == 1) {
8343 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8344 }
8345 if (argc == 2) {
8346 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8347 }
8348 if (argc == 3) {
8349 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8350 }
8351
8352fail:
8353 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8354 return NULL;
8355}
8356
8357
8358SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8359 PyObject *resultobj = 0;
8360 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8361 void *argp1 = 0 ;
8362 int res1 = 0 ;
8363 PyObject *swig_obj[1] ;
8364
8365 if (!args) SWIG_fail;
8366 swig_obj[0] = args;
8367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8368 if (!SWIG_IsOK(res1)) {
8369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8370 }
8371 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8372 {
8373 delete arg1;
8374
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 resultobj = SWIG_Py_Void();
8378 return resultobj;
8379fail:
8380 return NULL;
8381}
8382
8383
8384SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8385 PyObject *resultobj = 0;
8386 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8387 wxAlphaPixelData_Accessor result;
8388 void *argp1 = 0 ;
8389 int res1 = 0 ;
8390 PyObject *swig_obj[1] ;
8391
8392 if (!args) SWIG_fail;
8393 swig_obj[0] = args;
8394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8395 if (!SWIG_IsOK(res1)) {
8396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8397 }
8398 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8399 {
8400 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8401 if (PyErr_Occurred()) SWIG_fail;
8402 }
8403 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8404 return resultobj;
8405fail:
8406 return NULL;
8407}
8408
8409
8410SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8411 PyObject *resultobj = 0;
8412 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8413 void *argp1 = 0 ;
8414 int res1 = 0 ;
8415 PyObject *swig_obj[1] ;
8416
8417 if (!args) SWIG_fail;
8418 swig_obj[0] = args;
8419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8420 if (!SWIG_IsOK(res1)) {
8421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8422 }
8423 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8424 {
8425 (arg1)->UseAlpha();
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 resultobj = SWIG_Py_Void();
8429 return resultobj;
8430fail:
8431 return NULL;
8432}
8433
8434
8435SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8436 PyObject *resultobj = 0;
8437 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8438 bool result;
8439 void *argp1 = 0 ;
8440 int res1 = 0 ;
8441 PyObject *swig_obj[1] ;
8442
8443 if (!args) SWIG_fail;
8444 swig_obj[0] = args;
8445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8446 if (!SWIG_IsOK(res1)) {
8447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8448 }
8449 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8450 {
8451 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 {
8455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8456 }
8457 return resultobj;
8458fail:
8459 return NULL;
8460}
8461
8462
8463SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8464 PyObject *obj;
8465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8466 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8467 return SWIG_Py_Void();
8468}
8469
8470SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8471 return SWIG_Python_InitShadowInstance(args);
8472}
8473
8474SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8475 PyObject *resultobj = 0;
8476 wxAlphaPixelData *arg1 = 0 ;
8477 wxAlphaPixelData_Accessor *result = 0 ;
8478 void *argp1 = 0 ;
8479 int res1 = 0 ;
8480
8481 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8483 if (!SWIG_IsOK(res1)) {
8484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8485 }
8486 if (!argp1) {
8487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8488 }
8489 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8490 {
8491 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8495 return resultobj;
8496fail:
8497 return NULL;
8498}
8499
8500
8501SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8502 PyObject *resultobj = 0;
8503 wxBitmap *arg1 = 0 ;
8504 wxAlphaPixelData *arg2 = 0 ;
8505 wxAlphaPixelData_Accessor *result = 0 ;
8506 void *argp1 = 0 ;
8507 int res1 = 0 ;
8508 void *argp2 = 0 ;
8509 int res2 = 0 ;
8510
8511 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8513 if (!SWIG_IsOK(res1)) {
8514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8515 }
8516 if (!argp1) {
8517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8518 }
8519 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8520 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8521 if (!SWIG_IsOK(res2)) {
8522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8523 }
8524 if (!argp2) {
8525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8526 }
8527 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8528 {
8529 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8530 if (PyErr_Occurred()) SWIG_fail;
8531 }
8532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8533 return resultobj;
8534fail:
8535 return NULL;
8536}
8537
8538
8539SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8540 PyObject *resultobj = 0;
8541 wxAlphaPixelData_Accessor *result = 0 ;
8542
8543 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8544 {
8545 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8546 if (PyErr_Occurred()) SWIG_fail;
8547 }
8548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8549 return resultobj;
8550fail:
8551 return NULL;
8552}
8553
8554
8555SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8556 int argc;
8557 PyObject *argv[3];
8558
8559 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8560 --argc;
8561 if (argc == 0) {
8562 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8563 }
8564 if (argc == 1) {
8565 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8566 }
8567 if (argc == 2) {
8568 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8569 }
8570
8571fail:
8572 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8573 return NULL;
8574}
8575
8576
8577SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8578 PyObject *resultobj = 0;
8579 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8580 void *argp1 = 0 ;
8581 int res1 = 0 ;
8582 PyObject *swig_obj[1] ;
8583
8584 if (!args) SWIG_fail;
8585 swig_obj[0] = args;
8586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8587 if (!SWIG_IsOK(res1)) {
8588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8589 }
8590 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8591 {
8592 delete arg1;
8593
8594 if (PyErr_Occurred()) SWIG_fail;
8595 }
8596 resultobj = SWIG_Py_Void();
8597 return resultobj;
8598fail:
8599 return NULL;
8600}
8601
8602
8603SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8604 PyObject *resultobj = 0;
8605 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8606 wxAlphaPixelData *arg2 = 0 ;
8607 void *argp1 = 0 ;
8608 int res1 = 0 ;
8609 void *argp2 = 0 ;
8610 int res2 = 0 ;
8611 PyObject * obj0 = 0 ;
8612 PyObject * obj1 = 0 ;
8613 char * kwnames[] = {
8614 (char *) "self",(char *) "data", NULL
8615 };
8616
8617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8619 if (!SWIG_IsOK(res1)) {
8620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8621 }
8622 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8624 if (!SWIG_IsOK(res2)) {
8625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8626 }
8627 if (!argp2) {
8628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8629 }
8630 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8631 {
8632 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8633 if (PyErr_Occurred()) SWIG_fail;
8634 }
8635 resultobj = SWIG_Py_Void();
8636 return resultobj;
8637fail:
8638 return NULL;
8639}
8640
8641
8642SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8643 PyObject *resultobj = 0;
8644 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8645 bool result;
8646 void *argp1 = 0 ;
8647 int res1 = 0 ;
8648 PyObject *swig_obj[1] ;
8649
8650 if (!args) SWIG_fail;
8651 swig_obj[0] = args;
8652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8653 if (!SWIG_IsOK(res1)) {
8654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8655 }
8656 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8657 {
8658 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8659 if (PyErr_Occurred()) SWIG_fail;
8660 }
8661 {
8662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8663 }
8664 return resultobj;
8665fail:
8666 return NULL;
8667}
8668
8669
8670SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8671 PyObject *resultobj = 0;
8672 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8673 void *argp1 = 0 ;
8674 int res1 = 0 ;
8675 PyObject *swig_obj[1] ;
8676
8677 if (!args) SWIG_fail;
8678 swig_obj[0] = args;
8679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8680 if (!SWIG_IsOK(res1)) {
8681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8682 }
8683 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8684 {
8685 wxAlphaPixelData_Accessor_nextPixel(arg1);
8686 if (PyErr_Occurred()) SWIG_fail;
8687 }
8688 resultobj = SWIG_Py_Void();
8689 return resultobj;
8690fail:
8691 return NULL;
8692}
8693
8694
8695SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8696 PyObject *resultobj = 0;
8697 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8698 wxAlphaPixelData *arg2 = 0 ;
8699 int arg3 ;
8700 int arg4 ;
8701 void *argp1 = 0 ;
8702 int res1 = 0 ;
8703 void *argp2 = 0 ;
8704 int res2 = 0 ;
8705 int val3 ;
8706 int ecode3 = 0 ;
8707 int val4 ;
8708 int ecode4 = 0 ;
8709 PyObject * obj0 = 0 ;
8710 PyObject * obj1 = 0 ;
8711 PyObject * obj2 = 0 ;
8712 PyObject * obj3 = 0 ;
8713 char * kwnames[] = {
8714 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8715 };
8716
8717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8719 if (!SWIG_IsOK(res1)) {
8720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8721 }
8722 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8724 if (!SWIG_IsOK(res2)) {
8725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8726 }
8727 if (!argp2) {
8728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8729 }
8730 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8731 ecode3 = SWIG_AsVal_int(obj2, &val3);
8732 if (!SWIG_IsOK(ecode3)) {
8733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8734 }
8735 arg3 = static_cast< int >(val3);
8736 ecode4 = SWIG_AsVal_int(obj3, &val4);
8737 if (!SWIG_IsOK(ecode4)) {
8738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8739 }
8740 arg4 = static_cast< int >(val4);
8741 {
8742 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8743 if (PyErr_Occurred()) SWIG_fail;
8744 }
8745 resultobj = SWIG_Py_Void();
8746 return resultobj;
8747fail:
8748 return NULL;
8749}
8750
8751
8752SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8753 PyObject *resultobj = 0;
8754 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8755 wxAlphaPixelData *arg2 = 0 ;
8756 int arg3 ;
8757 void *argp1 = 0 ;
8758 int res1 = 0 ;
8759 void *argp2 = 0 ;
8760 int res2 = 0 ;
8761 int val3 ;
8762 int ecode3 = 0 ;
8763 PyObject * obj0 = 0 ;
8764 PyObject * obj1 = 0 ;
8765 PyObject * obj2 = 0 ;
8766 char * kwnames[] = {
8767 (char *) "self",(char *) "data",(char *) "x", NULL
8768 };
8769
8770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8772 if (!SWIG_IsOK(res1)) {
8773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8774 }
8775 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8777 if (!SWIG_IsOK(res2)) {
8778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8779 }
8780 if (!argp2) {
8781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8782 }
8783 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8784 ecode3 = SWIG_AsVal_int(obj2, &val3);
8785 if (!SWIG_IsOK(ecode3)) {
8786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8787 }
8788 arg3 = static_cast< int >(val3);
8789 {
8790 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8791 if (PyErr_Occurred()) SWIG_fail;
8792 }
8793 resultobj = SWIG_Py_Void();
8794 return resultobj;
8795fail:
8796 return NULL;
8797}
8798
8799
8800SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj = 0;
8802 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8803 wxAlphaPixelData *arg2 = 0 ;
8804 int arg3 ;
8805 void *argp1 = 0 ;
8806 int res1 = 0 ;
8807 void *argp2 = 0 ;
8808 int res2 = 0 ;
8809 int val3 ;
8810 int ecode3 = 0 ;
8811 PyObject * obj0 = 0 ;
8812 PyObject * obj1 = 0 ;
8813 PyObject * obj2 = 0 ;
8814 char * kwnames[] = {
8815 (char *) "self",(char *) "data",(char *) "y", NULL
8816 };
8817
8818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8820 if (!SWIG_IsOK(res1)) {
8821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8822 }
8823 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8825 if (!SWIG_IsOK(res2)) {
8826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8827 }
8828 if (!argp2) {
8829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8830 }
8831 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8832 ecode3 = SWIG_AsVal_int(obj2, &val3);
8833 if (!SWIG_IsOK(ecode3)) {
8834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8835 }
8836 arg3 = static_cast< int >(val3);
8837 {
8838 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8839 if (PyErr_Occurred()) SWIG_fail;
8840 }
8841 resultobj = SWIG_Py_Void();
8842 return resultobj;
8843fail:
8844 return NULL;
8845}
8846
8847
8848SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8849 PyObject *resultobj = 0;
8850 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8851 wxAlphaPixelData *arg2 = 0 ;
8852 int arg3 ;
8853 int arg4 ;
8854 void *argp1 = 0 ;
8855 int res1 = 0 ;
8856 void *argp2 = 0 ;
8857 int res2 = 0 ;
8858 int val3 ;
8859 int ecode3 = 0 ;
8860 int val4 ;
8861 int ecode4 = 0 ;
8862 PyObject * obj0 = 0 ;
8863 PyObject * obj1 = 0 ;
8864 PyObject * obj2 = 0 ;
8865 PyObject * obj3 = 0 ;
8866 char * kwnames[] = {
8867 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8868 };
8869
8870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8872 if (!SWIG_IsOK(res1)) {
8873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8874 }
8875 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8877 if (!SWIG_IsOK(res2)) {
8878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8879 }
8880 if (!argp2) {
8881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8882 }
8883 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8884 ecode3 = SWIG_AsVal_int(obj2, &val3);
8885 if (!SWIG_IsOK(ecode3)) {
8886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8887 }
8888 arg3 = static_cast< int >(val3);
8889 ecode4 = SWIG_AsVal_int(obj3, &val4);
8890 if (!SWIG_IsOK(ecode4)) {
8891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8892 }
8893 arg4 = static_cast< int >(val4);
8894 {
8895 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 resultobj = SWIG_Py_Void();
8899 return resultobj;
8900fail:
8901 return NULL;
8902}
8903
8904
8905SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8906 PyObject *resultobj = 0;
8907 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8908 byte arg2 ;
8909 byte arg3 ;
8910 byte arg4 ;
8911 byte arg5 ;
8912 void *argp1 = 0 ;
8913 int res1 = 0 ;
8914 unsigned char val2 ;
8915 int ecode2 = 0 ;
8916 unsigned char val3 ;
8917 int ecode3 = 0 ;
8918 unsigned char val4 ;
8919 int ecode4 = 0 ;
8920 unsigned char val5 ;
8921 int ecode5 = 0 ;
8922 PyObject * obj0 = 0 ;
8923 PyObject * obj1 = 0 ;
8924 PyObject * obj2 = 0 ;
8925 PyObject * obj3 = 0 ;
8926 PyObject * obj4 = 0 ;
8927 char * kwnames[] = {
8928 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8929 };
8930
8931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8933 if (!SWIG_IsOK(res1)) {
8934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8935 }
8936 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8937 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8938 if (!SWIG_IsOK(ecode2)) {
8939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8940 }
8941 arg2 = static_cast< byte >(val2);
8942 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8943 if (!SWIG_IsOK(ecode3)) {
8944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8945 }
8946 arg3 = static_cast< byte >(val3);
8947 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8948 if (!SWIG_IsOK(ecode4)) {
8949 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8950 }
8951 arg4 = static_cast< byte >(val4);
8952 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8953 if (!SWIG_IsOK(ecode5)) {
8954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8955 }
8956 arg5 = static_cast< byte >(val5);
8957 {
8958 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8959 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8960 }
fc46b7f3 8961 resultobj = SWIG_Py_Void();
1bd55598
RD
8962 return resultobj;
8963fail:
8964 return NULL;
8965}
8966
8967
fc46b7f3 8968SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8969 PyObject *resultobj = 0;
fc46b7f3
RD
8970 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8971 PyObject *result = 0 ;
1bd55598
RD
8972 void *argp1 = 0 ;
8973 int res1 = 0 ;
fc46b7f3 8974 PyObject *swig_obj[1] ;
1bd55598 8975
fc46b7f3
RD
8976 if (!args) SWIG_fail;
8977 swig_obj[0] = args;
8978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8979 if (!SWIG_IsOK(res1)) {
fc46b7f3 8980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8981 }
fc46b7f3 8982 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8983 {
fc46b7f3 8984 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8985 if (PyErr_Occurred()) SWIG_fail;
8986 }
fc46b7f3 8987 resultobj = result;
1bd55598
RD
8988 return resultobj;
8989fail:
8990 return NULL;
d55e5bfc
RD
8991}
8992
8993
fc46b7f3 8994SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8995 PyObject *obj;
8996 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8997 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8998 return SWIG_Py_Void();
d55e5bfc
RD
8999}
9000
fc46b7f3 9001SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 9002 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9003}
9004
1bd55598
RD
9005SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9006 PyObject *resultobj = 0;
9007 wxBitmap *arg1 = 0 ;
9008 wxColour const &arg2_defvalue = wxNullColour ;
9009 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9010 wxMask *result = 0 ;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 wxColour temp2 ;
9014 PyObject * obj0 = 0 ;
9015 PyObject * obj1 = 0 ;
9016 char * kwnames[] = {
9017 (char *) "bitmap",(char *) "colour", NULL
9018 };
9019
9020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9021 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9022 if (!SWIG_IsOK(res1)) {
9023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9024 }
9025 if (!argp1) {
9026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9027 }
9028 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9029 if (obj1) {
d55e5bfc 9030 {
1bd55598
RD
9031 arg2 = &temp2;
9032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9033 }
1bd55598
RD
9034 }
9035 {
9036 if (!wxPyCheckForApp()) SWIG_fail;
9037 PyThreadState* __tstate = wxPyBeginAllowThreads();
9038 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9039 wxPyEndAllowThreads(__tstate);
9040 if (PyErr_Occurred()) SWIG_fail;
9041 }
9042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9043 return resultobj;
9044fail:
9045 return NULL;
d55e5bfc
RD
9046}
9047
9048
1bd55598
RD
9049SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9050 PyObject *resultobj = 0;
9051 wxMask *arg1 = (wxMask *) 0 ;
9052 void *argp1 = 0 ;
9053 int res1 = 0 ;
9054 PyObject *swig_obj[1] ;
9055
9056 if (!args) SWIG_fail;
9057 swig_obj[0] = args;
9058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9059 if (!SWIG_IsOK(res1)) {
9060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9061 }
9062 arg1 = reinterpret_cast< wxMask * >(argp1);
9063 {
1bd55598 9064 delete arg1;
d55e5bfc 9065
1bd55598
RD
9066 if (PyErr_Occurred()) SWIG_fail;
9067 }
9068 resultobj = SWIG_Py_Void();
9069 return resultobj;
9070fail:
9071 return NULL;
9072}
9073
9074
9075SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9076 PyObject *obj;
9077 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9078 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9079 return SWIG_Py_Void();
9080}
9081
9082SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9083 return SWIG_Python_InitShadowInstance(args);
9084}
9085
9086SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj = 0;
9088 wxString *arg1 = 0 ;
9089 wxBitmapType arg2 ;
9090 int arg3 = (int) -1 ;
9091 int arg4 = (int) -1 ;
9092 wxIcon *result = 0 ;
9093 bool temp1 = false ;
9094 int val2 ;
9095 int ecode2 = 0 ;
9096 int val3 ;
9097 int ecode3 = 0 ;
9098 int val4 ;
9099 int ecode4 = 0 ;
9100 PyObject * obj0 = 0 ;
9101 PyObject * obj1 = 0 ;
9102 PyObject * obj2 = 0 ;
9103 PyObject * obj3 = 0 ;
9104 char * kwnames[] = {
9105 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9106 };
9107
9108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9109 {
9110 arg1 = wxString_in_helper(obj0);
9111 if (arg1 == NULL) SWIG_fail;
9112 temp1 = true;
9113 }
9114 ecode2 = SWIG_AsVal_int(obj1, &val2);
9115 if (!SWIG_IsOK(ecode2)) {
9116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9117 }
9118 arg2 = static_cast< wxBitmapType >(val2);
9119 if (obj2) {
9120 ecode3 = SWIG_AsVal_int(obj2, &val3);
9121 if (!SWIG_IsOK(ecode3)) {
9122 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9123 }
9124 arg3 = static_cast< int >(val3);
9125 }
9126 if (obj3) {
9127 ecode4 = SWIG_AsVal_int(obj3, &val4);
9128 if (!SWIG_IsOK(ecode4)) {
9129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9130 }
9131 arg4 = static_cast< int >(val4);
9132 }
9133 {
9134 if (!wxPyCheckForApp()) SWIG_fail;
9135 PyThreadState* __tstate = wxPyBeginAllowThreads();
9136 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9137 wxPyEndAllowThreads(__tstate);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 }
9140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9141 {
9142 if (temp1)
9143 delete arg1;
9144 }
9145 return resultobj;
9146fail:
9147 {
9148 if (temp1)
9149 delete arg1;
9150 }
9151 return NULL;
d55e5bfc
RD
9152}
9153
9154
1bd55598
RD
9155SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9156 PyObject *resultobj = 0;
9157 wxIcon *arg1 = (wxIcon *) 0 ;
9158 void *argp1 = 0 ;
9159 int res1 = 0 ;
9160 PyObject *swig_obj[1] ;
9161
9162 if (!args) SWIG_fail;
9163 swig_obj[0] = args;
9164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9165 if (!SWIG_IsOK(res1)) {
9166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9167 }
9168 arg1 = reinterpret_cast< wxIcon * >(argp1);
9169 {
9170 PyThreadState* __tstate = wxPyBeginAllowThreads();
9171 delete arg1;
d55e5bfc 9172
1bd55598
RD
9173 wxPyEndAllowThreads(__tstate);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 resultobj = SWIG_Py_Void();
9177 return resultobj;
9178fail:
9179 return NULL;
d55e5bfc
RD
9180}
9181
9182
1bd55598
RD
9183SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9184 PyObject *resultobj = 0;
9185 wxIcon *result = 0 ;
9186
9187 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9188 {
9189 if (!wxPyCheckForApp()) SWIG_fail;
9190 PyThreadState* __tstate = wxPyBeginAllowThreads();
9191 result = (wxIcon *)new wxIcon();
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9196 return resultobj;
9197fail:
9198 return NULL;
9199}
9200
9201
9202SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9203 PyObject *resultobj = 0;
9204 wxIconLocation *arg1 = 0 ;
9205 wxIcon *result = 0 ;
9206 void *argp1 = 0 ;
9207 int res1 = 0 ;
9208 PyObject * obj0 = 0 ;
9209 char * kwnames[] = {
9210 (char *) "loc", NULL
9211 };
9212
9213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9214 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9215 if (!SWIG_IsOK(res1)) {
9216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9217 }
9218 if (!argp1) {
9219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9220 }
9221 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9222 {
9223 if (!wxPyCheckForApp()) SWIG_fail;
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9226 wxPyEndAllowThreads(__tstate);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 }
9229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9230 return resultobj;
9231fail:
9232 return NULL;
9233}
9234
9235
9236SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9237 PyObject *resultobj = 0;
9238 wxBitmap *arg1 = 0 ;
9239 wxIcon *result = 0 ;
9240 void *argp1 = 0 ;
9241 int res1 = 0 ;
9242 PyObject * obj0 = 0 ;
9243 char * kwnames[] = {
9244 (char *) "bmp", NULL
9245 };
9246
9247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9248 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9249 if (!SWIG_IsOK(res1)) {
9250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9251 }
9252 if (!argp1) {
9253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9254 }
9255 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9256 {
9257 if (!wxPyCheckForApp()) SWIG_fail;
9258 PyThreadState* __tstate = wxPyBeginAllowThreads();
9259 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9264 return resultobj;
9265fail:
9266 return NULL;
d55e5bfc
RD
9267}
9268
9269
1bd55598
RD
9270SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9271 PyObject *resultobj = 0;
9272 PyObject *arg1 = (PyObject *) 0 ;
9273 wxIcon *result = 0 ;
9274 PyObject * obj0 = 0 ;
9275 char * kwnames[] = {
9276 (char *) "listOfStrings", NULL
9277 };
9278
9279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9280 arg1 = obj0;
9281 {
9282 if (!wxPyCheckForApp()) SWIG_fail;
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 result = (wxIcon *)new_wxIcon(arg1);
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9289 return resultobj;
9290fail:
9291 return NULL;
d55e5bfc
RD
9292}
9293
9294
b39fe951 9295SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9296 PyObject *resultobj = 0;
9297 wxIcon *arg1 = (wxIcon *) 0 ;
9298 bool result;
9299 void *argp1 = 0 ;
9300 int res1 = 0 ;
9301 PyObject *swig_obj[1] ;
9302
9303 if (!args) SWIG_fail;
9304 swig_obj[0] = args;
9305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9306 if (!SWIG_IsOK(res1)) {
b39fe951 9307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9308 }
9309 arg1 = reinterpret_cast< wxIcon * >(argp1);
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9312 result = (bool)(arg1)->IsOk();
1bd55598
RD
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 {
9317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9318 }
9319 return resultobj;
9320fail:
9321 return NULL;
d55e5bfc
RD
9322}
9323
9324
1bd55598
RD
9325SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9326 PyObject *resultobj = 0;
9327 wxIcon *arg1 = (wxIcon *) 0 ;
9328 int result;
9329 void *argp1 = 0 ;
9330 int res1 = 0 ;
9331 PyObject *swig_obj[1] ;
9332
9333 if (!args) SWIG_fail;
9334 swig_obj[0] = args;
9335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9336 if (!SWIG_IsOK(res1)) {
9337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9338 }
9339 arg1 = reinterpret_cast< wxIcon * >(argp1);
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 result = (int)(arg1)->GetWidth();
9343 wxPyEndAllowThreads(__tstate);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 resultobj = SWIG_From_int(static_cast< int >(result));
9347 return resultobj;
9348fail:
9349 return NULL;
d55e5bfc
RD
9350}
9351
9352
1bd55598
RD
9353SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9354 PyObject *resultobj = 0;
9355 wxIcon *arg1 = (wxIcon *) 0 ;
9356 int result;
9357 void *argp1 = 0 ;
9358 int res1 = 0 ;
9359 PyObject *swig_obj[1] ;
9360
9361 if (!args) SWIG_fail;
9362 swig_obj[0] = args;
9363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9364 if (!SWIG_IsOK(res1)) {
9365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9366 }
9367 arg1 = reinterpret_cast< wxIcon * >(argp1);
9368 {
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 result = (int)(arg1)->GetHeight();
9371 wxPyEndAllowThreads(__tstate);
9372 if (PyErr_Occurred()) SWIG_fail;
9373 }
9374 resultobj = SWIG_From_int(static_cast< int >(result));
9375 return resultobj;
9376fail:
9377 return NULL;
d55e5bfc
RD
9378}
9379
9380
1bd55598
RD
9381SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9382 PyObject *resultobj = 0;
9383 wxIcon *arg1 = (wxIcon *) 0 ;
9384 int result;
9385 void *argp1 = 0 ;
9386 int res1 = 0 ;
9387 PyObject *swig_obj[1] ;
9388
9389 if (!args) SWIG_fail;
9390 swig_obj[0] = args;
9391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9392 if (!SWIG_IsOK(res1)) {
9393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9394 }
9395 arg1 = reinterpret_cast< wxIcon * >(argp1);
9396 {
9397 PyThreadState* __tstate = wxPyBeginAllowThreads();
9398 result = (int)(arg1)->GetDepth();
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 resultobj = SWIG_From_int(static_cast< int >(result));
9403 return resultobj;
9404fail:
9405 return NULL;
9406}
9407
9408
9409SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9410 PyObject *resultobj = 0;
9411 wxIcon *arg1 = (wxIcon *) 0 ;
9412 int arg2 ;
9413 void *argp1 = 0 ;
9414 int res1 = 0 ;
9415 int val2 ;
9416 int ecode2 = 0 ;
9417 PyObject * obj0 = 0 ;
9418 PyObject * obj1 = 0 ;
9419 char * kwnames[] = {
9420 (char *) "self",(char *) "w", NULL
9421 };
9422
9423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9425 if (!SWIG_IsOK(res1)) {
9426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9427 }
9428 arg1 = reinterpret_cast< wxIcon * >(argp1);
9429 ecode2 = SWIG_AsVal_int(obj1, &val2);
9430 if (!SWIG_IsOK(ecode2)) {
9431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9432 }
9433 arg2 = static_cast< int >(val2);
9434 {
9435 PyThreadState* __tstate = wxPyBeginAllowThreads();
9436 (arg1)->SetWidth(arg2);
9437 wxPyEndAllowThreads(__tstate);
9438 if (PyErr_Occurred()) SWIG_fail;
9439 }
9440 resultobj = SWIG_Py_Void();
9441 return resultobj;
9442fail:
9443 return NULL;
9444}
9445
9446
9447SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9448 PyObject *resultobj = 0;
9449 wxIcon *arg1 = (wxIcon *) 0 ;
9450 int arg2 ;
9451 void *argp1 = 0 ;
9452 int res1 = 0 ;
9453 int val2 ;
9454 int ecode2 = 0 ;
9455 PyObject * obj0 = 0 ;
9456 PyObject * obj1 = 0 ;
9457 char * kwnames[] = {
9458 (char *) "self",(char *) "h", NULL
9459 };
9460
9461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9463 if (!SWIG_IsOK(res1)) {
9464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9465 }
9466 arg1 = reinterpret_cast< wxIcon * >(argp1);
9467 ecode2 = SWIG_AsVal_int(obj1, &val2);
9468 if (!SWIG_IsOK(ecode2)) {
9469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9470 }
9471 arg2 = static_cast< int >(val2);
9472 {
9473 PyThreadState* __tstate = wxPyBeginAllowThreads();
9474 (arg1)->SetHeight(arg2);
9475 wxPyEndAllowThreads(__tstate);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 }
9478 resultobj = SWIG_Py_Void();
9479 return resultobj;
9480fail:
9481 return NULL;
9482}
9483
9484
9485SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9486 PyObject *resultobj = 0;
9487 wxIcon *arg1 = (wxIcon *) 0 ;
9488 int arg2 ;
9489 void *argp1 = 0 ;
9490 int res1 = 0 ;
9491 int val2 ;
9492 int ecode2 = 0 ;
9493 PyObject * obj0 = 0 ;
9494 PyObject * obj1 = 0 ;
9495 char * kwnames[] = {
9496 (char *) "self",(char *) "d", NULL
9497 };
9498
9499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9501 if (!SWIG_IsOK(res1)) {
9502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9503 }
9504 arg1 = reinterpret_cast< wxIcon * >(argp1);
9505 ecode2 = SWIG_AsVal_int(obj1, &val2);
9506 if (!SWIG_IsOK(ecode2)) {
9507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9508 }
9509 arg2 = static_cast< int >(val2);
9510 {
9511 PyThreadState* __tstate = wxPyBeginAllowThreads();
9512 (arg1)->SetDepth(arg2);
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 resultobj = SWIG_Py_Void();
9517 return resultobj;
9518fail:
9519 return NULL;
9520}
9521
9522
9523SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9524 PyObject *resultobj = 0;
9525 wxIcon *arg1 = (wxIcon *) 0 ;
9526 wxBitmap *arg2 = 0 ;
9527 void *argp1 = 0 ;
9528 int res1 = 0 ;
9529 void *argp2 = 0 ;
9530 int res2 = 0 ;
9531 PyObject * obj0 = 0 ;
9532 PyObject * obj1 = 0 ;
9533 char * kwnames[] = {
9534 (char *) "self",(char *) "bmp", NULL
9535 };
9536
9537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9539 if (!SWIG_IsOK(res1)) {
9540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9541 }
9542 arg1 = reinterpret_cast< wxIcon * >(argp1);
9543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9544 if (!SWIG_IsOK(res2)) {
9545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9546 }
9547 if (!argp2) {
9548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9549 }
9550 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = SWIG_Py_Void();
9558 return resultobj;
9559fail:
9560 return NULL;
d55e5bfc
RD
9561}
9562
9563
1bd55598
RD
9564SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9565 PyObject *obj;
9566 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9567 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9568 return SWIG_Py_Void();
d55e5bfc
RD
9569}
9570
1bd55598
RD
9571SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9572 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9573}
9574
1bd55598
RD
9575SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9576 PyObject *resultobj = 0;
9577 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9578 int arg2 = (int) 0 ;
9579 wxIconLocation *result = 0 ;
9580 bool temp1 = false ;
9581 int val2 ;
9582 int ecode2 = 0 ;
9583 PyObject * obj0 = 0 ;
9584 PyObject * obj1 = 0 ;
9585 char * kwnames[] = {
9586 (char *) "filename",(char *) "num", NULL
9587 };
9588
9589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9590 if (obj0) {
d55e5bfc 9591 {
1bd55598
RD
9592 arg1 = wxString_in_helper(obj0);
9593 if (arg1 == NULL) SWIG_fail;
9594 temp1 = true;
d55e5bfc 9595 }
1bd55598
RD
9596 }
9597 if (obj1) {
9598 ecode2 = SWIG_AsVal_int(obj1, &val2);
9599 if (!SWIG_IsOK(ecode2)) {
9600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9601 }
9602 arg2 = static_cast< int >(val2);
9603 }
9604 {
9605 PyThreadState* __tstate = wxPyBeginAllowThreads();
9606 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9607 wxPyEndAllowThreads(__tstate);
9608 if (PyErr_Occurred()) SWIG_fail;
9609 }
9610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9611 {
9612 if (temp1)
9613 delete arg1;
9614 }
9615 return resultobj;
9616fail:
9617 {
9618 if (temp1)
9619 delete arg1;
9620 }
9621 return NULL;
d55e5bfc
RD
9622}
9623
9624
1bd55598
RD
9625SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9626 PyObject *resultobj = 0;
9627 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9628 void *argp1 = 0 ;
9629 int res1 = 0 ;
9630 PyObject *swig_obj[1] ;
9631
9632 if (!args) SWIG_fail;
9633 swig_obj[0] = args;
9634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9635 if (!SWIG_IsOK(res1)) {
9636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9637 }
9638 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9639 {
9640 PyThreadState* __tstate = wxPyBeginAllowThreads();
9641 delete arg1;
d55e5bfc 9642
1bd55598
RD
9643 wxPyEndAllowThreads(__tstate);
9644 if (PyErr_Occurred()) SWIG_fail;
9645 }
9646 resultobj = SWIG_Py_Void();
9647 return resultobj;
9648fail:
9649 return NULL;
d55e5bfc
RD
9650}
9651
9652
1bd55598
RD
9653SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9654 PyObject *resultobj = 0;
9655 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9656 bool result;
9657 void *argp1 = 0 ;
9658 int res1 = 0 ;
9659 PyObject *swig_obj[1] ;
9660
9661 if (!args) SWIG_fail;
9662 swig_obj[0] = args;
9663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9664 if (!SWIG_IsOK(res1)) {
9665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9666 }
9667 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9668 {
9669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9670 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 {
9675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9676 }
9677 return resultobj;
9678fail:
9679 return NULL;
9680}
9681
9682
9683SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj = 0;
9685 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9686 wxString *arg2 = 0 ;
9687 void *argp1 = 0 ;
9688 int res1 = 0 ;
9689 bool temp2 = false ;
9690 PyObject * obj0 = 0 ;
9691 PyObject * obj1 = 0 ;
9692 char * kwnames[] = {
9693 (char *) "self",(char *) "filename", NULL
9694 };
9695
9696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9698 if (!SWIG_IsOK(res1)) {
9699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9700 }
9701 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9702 {
9703 arg2 = wxString_in_helper(obj1);
9704 if (arg2 == NULL) SWIG_fail;
9705 temp2 = true;
9706 }
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 (arg1)->SetFileName((wxString const &)*arg2);
9710 wxPyEndAllowThreads(__tstate);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 resultobj = SWIG_Py_Void();
9714 {
9715 if (temp2)
9716 delete arg2;
9717 }
9718 return resultobj;
9719fail:
9720 {
9721 if (temp2)
9722 delete arg2;
9723 }
9724 return NULL;
d55e5bfc
RD
9725}
9726
9727
1bd55598
RD
9728SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9729 PyObject *resultobj = 0;
9730 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9731 wxString *result = 0 ;
9732 void *argp1 = 0 ;
9733 int res1 = 0 ;
9734 PyObject *swig_obj[1] ;
9735
9736 if (!args) SWIG_fail;
9737 swig_obj[0] = args;
9738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9739 if (!SWIG_IsOK(res1)) {
9740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9741 }
9742 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9743 {
9744 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9745 {
1bd55598
RD
9746 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9747 result = (wxString *) &_result_ref;
d55e5bfc 9748 }
1bd55598
RD
9749 wxPyEndAllowThreads(__tstate);
9750 if (PyErr_Occurred()) SWIG_fail;
9751 }
9752 {
9753#if wxUSE_UNICODE
9754 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9755#else
9756 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9757#endif
9758 }
9759 return resultobj;
9760fail:
9761 return NULL;
9762}
9763
9764
9765SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9766 PyObject *resultobj = 0;
9767 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9768 int arg2 ;
9769 void *argp1 = 0 ;
9770 int res1 = 0 ;
9771 int val2 ;
9772 int ecode2 = 0 ;
9773 PyObject * obj0 = 0 ;
9774 PyObject * obj1 = 0 ;
9775 char * kwnames[] = {
9776 (char *) "self",(char *) "num", NULL
9777 };
9778
9779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9781 if (!SWIG_IsOK(res1)) {
9782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9783 }
9784 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9785 ecode2 = SWIG_AsVal_int(obj1, &val2);
9786 if (!SWIG_IsOK(ecode2)) {
9787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9788 }
9789 arg2 = static_cast< int >(val2);
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 wxIconLocation_SetIndex(arg1,arg2);
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_Py_Void();
9797 return resultobj;
9798fail:
9799 return NULL;
d55e5bfc
RD
9800}
9801
9802
1bd55598
RD
9803SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9804 PyObject *resultobj = 0;
9805 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9806 int result;
9807 void *argp1 = 0 ;
9808 int res1 = 0 ;
9809 PyObject *swig_obj[1] ;
9810
9811 if (!args) SWIG_fail;
9812 swig_obj[0] = args;
9813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9814 if (!SWIG_IsOK(res1)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9816 }
9817 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 result = (int)wxIconLocation_GetIndex(arg1);
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_From_int(static_cast< int >(result));
9825 return resultobj;
9826fail:
9827 return NULL;
d55e5bfc
RD
9828}
9829
9830
1bd55598
RD
9831SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9832 PyObject *obj;
9833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9834 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9835 return SWIG_Py_Void();
d55e5bfc
RD
9836}
9837
1bd55598
RD
9838SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9839 return SWIG_Python_InitShadowInstance(args);
9840}
d55e5bfc 9841
1bd55598
RD
9842SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9843 PyObject *resultobj = 0;
9844 wxIconBundle *result = 0 ;
9845
9846 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 result = (wxIconBundle *)new wxIconBundle();
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9854 return resultobj;
9855fail:
9856 return NULL;
9857}
9858
9859
9860SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = 0;
9862 wxString *arg1 = 0 ;
9863 long arg2 ;
9864 wxIconBundle *result = 0 ;
9865 bool temp1 = false ;
9866 long val2 ;
9867 int ecode2 = 0 ;
9868 PyObject * obj0 = 0 ;
9869 PyObject * obj1 = 0 ;
9870 char * kwnames[] = {
9871 (char *) "file",(char *) "type", NULL
9872 };
9873
9874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9875 {
9876 arg1 = wxString_in_helper(obj0);
9877 if (arg1 == NULL) SWIG_fail;
9878 temp1 = true;
9879 }
9880 ecode2 = SWIG_AsVal_long(obj1, &val2);
9881 if (!SWIG_IsOK(ecode2)) {
9882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9883 }
9884 arg2 = static_cast< long >(val2);
9885 {
9886 PyThreadState* __tstate = wxPyBeginAllowThreads();
9887 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9888 wxPyEndAllowThreads(__tstate);
9889 if (PyErr_Occurred()) SWIG_fail;
9890 }
9891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9892 {
9893 if (temp1)
9894 delete arg1;
9895 }
9896 return resultobj;
9897fail:
9898 {
9899 if (temp1)
9900 delete arg1;
9901 }
9902 return NULL;
d55e5bfc
RD
9903}
9904
9905
1bd55598
RD
9906SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj = 0;
9908 wxIcon *arg1 = 0 ;
9909 wxIconBundle *result = 0 ;
9910 void *argp1 = 0 ;
9911 int res1 = 0 ;
9912 PyObject * obj0 = 0 ;
9913 char * kwnames[] = {
9914 (char *) "icon", NULL
9915 };
9916
9917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9918 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9919 if (!SWIG_IsOK(res1)) {
9920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9921 }
9922 if (!argp1) {
9923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9924 }
9925 arg1 = reinterpret_cast< wxIcon * >(argp1);
9926 {
9927 PyThreadState* __tstate = wxPyBeginAllowThreads();
9928 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9929 wxPyEndAllowThreads(__tstate);
9930 if (PyErr_Occurred()) SWIG_fail;
9931 }
9932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9933 return resultobj;
9934fail:
9935 return NULL;
d55e5bfc
RD
9936}
9937
9938
1bd55598
RD
9939SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9940 PyObject *resultobj = 0;
9941 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9942 void *argp1 = 0 ;
9943 int res1 = 0 ;
9944 PyObject *swig_obj[1] ;
9945
9946 if (!args) SWIG_fail;
9947 swig_obj[0] = args;
9948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9949 if (!SWIG_IsOK(res1)) {
9950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9951 }
9952 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9953 {
9954 PyThreadState* __tstate = wxPyBeginAllowThreads();
9955 delete arg1;
d55e5bfc 9956
1bd55598
RD
9957 wxPyEndAllowThreads(__tstate);
9958 if (PyErr_Occurred()) SWIG_fail;
9959 }
9960 resultobj = SWIG_Py_Void();
9961 return resultobj;
9962fail:
9963 return NULL;
9964}
9965
9966
9967SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9968 PyObject *resultobj = 0;
9969 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9970 wxIcon *arg2 = 0 ;
9971 void *argp1 = 0 ;
9972 int res1 = 0 ;
9973 void *argp2 = 0 ;
9974 int res2 = 0 ;
9975 PyObject * obj0 = 0 ;
9976 PyObject * obj1 = 0 ;
9977 char * kwnames[] = {
9978 (char *) "self",(char *) "icon", NULL
9979 };
9980
9981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9983 if (!SWIG_IsOK(res1)) {
9984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9985 }
9986 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9988 if (!SWIG_IsOK(res2)) {
9989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9990 }
9991 if (!argp2) {
9992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9993 }
9994 arg2 = reinterpret_cast< wxIcon * >(argp2);
9995 {
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 (arg1)->AddIcon((wxIcon const &)*arg2);
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = SWIG_Py_Void();
10002 return resultobj;
10003fail:
10004 return NULL;
10005}
10006
10007
10008SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10009 PyObject *resultobj = 0;
10010 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10011 wxString *arg2 = 0 ;
10012 long arg3 ;
10013 void *argp1 = 0 ;
10014 int res1 = 0 ;
10015 bool temp2 = false ;
10016 long val3 ;
10017 int ecode3 = 0 ;
10018 PyObject * obj0 = 0 ;
10019 PyObject * obj1 = 0 ;
10020 PyObject * obj2 = 0 ;
10021 char * kwnames[] = {
10022 (char *) "self",(char *) "file",(char *) "type", NULL
10023 };
10024
10025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10027 if (!SWIG_IsOK(res1)) {
10028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10029 }
10030 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10031 {
10032 arg2 = wxString_in_helper(obj1);
10033 if (arg2 == NULL) SWIG_fail;
10034 temp2 = true;
10035 }
10036 ecode3 = SWIG_AsVal_long(obj2, &val3);
10037 if (!SWIG_IsOK(ecode3)) {
10038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10039 }
10040 arg3 = static_cast< long >(val3);
10041 {
10042 PyThreadState* __tstate = wxPyBeginAllowThreads();
10043 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10044 wxPyEndAllowThreads(__tstate);
10045 if (PyErr_Occurred()) SWIG_fail;
10046 }
10047 resultobj = SWIG_Py_Void();
10048 {
10049 if (temp2)
10050 delete arg2;
10051 }
10052 return resultobj;
10053fail:
10054 {
10055 if (temp2)
10056 delete arg2;
10057 }
10058 return NULL;
10059}
10060
10061
10062SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10063 PyObject *resultobj = 0;
10064 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10065 wxSize *arg2 = 0 ;
10066 wxIcon *result = 0 ;
10067 void *argp1 = 0 ;
10068 int res1 = 0 ;
10069 wxSize temp2 ;
10070 PyObject * obj0 = 0 ;
10071 PyObject * obj1 = 0 ;
10072 char * kwnames[] = {
10073 (char *) "self",(char *) "size", NULL
10074 };
10075
10076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10078 if (!SWIG_IsOK(res1)) {
10079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10080 }
10081 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10082 {
10083 arg2 = &temp2;
10084 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10085 }
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10088 {
1bd55598
RD
10089 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10090 result = (wxIcon *) &_result_ref;
d55e5bfc 10091 }
1bd55598
RD
10092 wxPyEndAllowThreads(__tstate);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 {
10096 wxIcon* resultptr = new wxIcon(*result);
10097 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10098 }
10099 return resultobj;
10100fail:
10101 return NULL;
10102}
10103
10104
10105SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10106 PyObject *obj;
10107 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10108 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10109 return SWIG_Py_Void();
10110}
10111
10112SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10113 return SWIG_Python_InitShadowInstance(args);
10114}
10115
10116SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10117 PyObject *resultobj = 0;
10118 wxString *arg1 = 0 ;
10119 long arg2 ;
10120 int arg3 = (int) 0 ;
10121 int arg4 = (int) 0 ;
10122 wxCursor *result = 0 ;
10123 bool temp1 = false ;
10124 long val2 ;
10125 int ecode2 = 0 ;
10126 int val3 ;
10127 int ecode3 = 0 ;
10128 int val4 ;
10129 int ecode4 = 0 ;
10130 PyObject * obj0 = 0 ;
10131 PyObject * obj1 = 0 ;
10132 PyObject * obj2 = 0 ;
10133 PyObject * obj3 = 0 ;
10134 char * kwnames[] = {
10135 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10136 };
10137
10138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10139 {
10140 arg1 = wxString_in_helper(obj0);
10141 if (arg1 == NULL) SWIG_fail;
10142 temp1 = true;
10143 }
10144 ecode2 = SWIG_AsVal_long(obj1, &val2);
10145 if (!SWIG_IsOK(ecode2)) {
10146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10147 }
10148 arg2 = static_cast< long >(val2);
10149 if (obj2) {
10150 ecode3 = SWIG_AsVal_int(obj2, &val3);
10151 if (!SWIG_IsOK(ecode3)) {
10152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10153 }
10154 arg3 = static_cast< int >(val3);
10155 }
10156 if (obj3) {
10157 ecode4 = SWIG_AsVal_int(obj3, &val4);
10158 if (!SWIG_IsOK(ecode4)) {
10159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10160 }
10161 arg4 = static_cast< int >(val4);
10162 }
10163 {
10164 if (!wxPyCheckForApp()) SWIG_fail;
10165 PyThreadState* __tstate = wxPyBeginAllowThreads();
10166 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10167 wxPyEndAllowThreads(__tstate);
10168 if (PyErr_Occurred()) SWIG_fail;
10169 }
10170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10171 {
10172 if (temp1)
10173 delete arg1;
10174 }
10175 return resultobj;
10176fail:
10177 {
10178 if (temp1)
10179 delete arg1;
10180 }
10181 return NULL;
d55e5bfc
RD
10182}
10183
10184
1bd55598
RD
10185SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10186 PyObject *resultobj = 0;
10187 wxCursor *arg1 = (wxCursor *) 0 ;
10188 void *argp1 = 0 ;
10189 int res1 = 0 ;
10190 PyObject *swig_obj[1] ;
10191
10192 if (!args) SWIG_fail;
10193 swig_obj[0] = args;
10194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10195 if (!SWIG_IsOK(res1)) {
10196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10197 }
10198 arg1 = reinterpret_cast< wxCursor * >(argp1);
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 delete arg1;
d55e5bfc 10202
1bd55598
RD
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 resultobj = SWIG_Py_Void();
10207 return resultobj;
10208fail:
10209 return NULL;
10210}
10211
10212
10213SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10214 PyObject *resultobj = 0;
10215 int arg1 ;
10216 wxCursor *result = 0 ;
10217 int val1 ;
10218 int ecode1 = 0 ;
10219 PyObject * obj0 = 0 ;
10220 char * kwnames[] = {
10221 (char *) "id", NULL
10222 };
10223
10224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10225 ecode1 = SWIG_AsVal_int(obj0, &val1);
10226 if (!SWIG_IsOK(ecode1)) {
10227 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10228 }
10229 arg1 = static_cast< int >(val1);
10230 {
10231 if (!wxPyCheckForApp()) SWIG_fail;
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 result = (wxCursor *)new wxCursor(arg1);
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10238 return resultobj;
10239fail:
10240 return NULL;
10241}
10242
10243
10244SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10245 PyObject *resultobj = 0;
10246 wxImage *arg1 = 0 ;
10247 wxCursor *result = 0 ;
10248 void *argp1 = 0 ;
10249 int res1 = 0 ;
10250 PyObject * obj0 = 0 ;
10251 char * kwnames[] = {
10252 (char *) "image", NULL
10253 };
10254
10255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10256 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10257 if (!SWIG_IsOK(res1)) {
10258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10259 }
10260 if (!argp1) {
10261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10262 }
10263 arg1 = reinterpret_cast< wxImage * >(argp1);
10264 {
10265 if (!wxPyCheckForApp()) SWIG_fail;
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10268 wxPyEndAllowThreads(__tstate);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 }
10271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10272 return resultobj;
10273fail:
10274 return NULL;
d55e5bfc
RD
10275}
10276
10277
b39fe951 10278SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10279 PyObject *resultobj = 0;
10280 wxCursor *arg1 = (wxCursor *) 0 ;
10281 bool result;
10282 void *argp1 = 0 ;
10283 int res1 = 0 ;
10284 PyObject *swig_obj[1] ;
10285
10286 if (!args) SWIG_fail;
10287 swig_obj[0] = args;
10288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10289 if (!SWIG_IsOK(res1)) {
b39fe951 10290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10291 }
10292 arg1 = reinterpret_cast< wxCursor * >(argp1);
10293 {
10294 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10295 result = (bool)(arg1)->IsOk();
1bd55598
RD
10296 wxPyEndAllowThreads(__tstate);
10297 if (PyErr_Occurred()) SWIG_fail;
10298 }
10299 {
10300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10301 }
10302 return resultobj;
10303fail:
10304 return NULL;
10305}
10306
10307
10308SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10309 PyObject *obj;
10310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10311 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10312 return SWIG_Py_Void();
10313}
10314
10315SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10316 return SWIG_Python_InitShadowInstance(args);
10317}
10318
10319SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10320 PyObject *resultobj = 0;
10321 int arg1 = (int) 0 ;
10322 int arg2 = (int) 0 ;
10323 int arg3 = (int) 0 ;
10324 int arg4 = (int) 0 ;
10325 wxRegion *result = 0 ;
10326 int val1 ;
10327 int ecode1 = 0 ;
10328 int val2 ;
10329 int ecode2 = 0 ;
10330 int val3 ;
10331 int ecode3 = 0 ;
10332 int val4 ;
10333 int ecode4 = 0 ;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 PyObject * obj2 = 0 ;
10337 PyObject * obj3 = 0 ;
10338 char * kwnames[] = {
10339 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10340 };
10341
10342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10343 if (obj0) {
10344 ecode1 = SWIG_AsVal_int(obj0, &val1);
10345 if (!SWIG_IsOK(ecode1)) {
10346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10347 }
10348 arg1 = static_cast< int >(val1);
10349 }
10350 if (obj1) {
10351 ecode2 = SWIG_AsVal_int(obj1, &val2);
10352 if (!SWIG_IsOK(ecode2)) {
10353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10354 }
10355 arg2 = static_cast< int >(val2);
10356 }
10357 if (obj2) {
10358 ecode3 = SWIG_AsVal_int(obj2, &val3);
10359 if (!SWIG_IsOK(ecode3)) {
10360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10361 }
10362 arg3 = static_cast< int >(val3);
10363 }
10364 if (obj3) {
10365 ecode4 = SWIG_AsVal_int(obj3, &val4);
10366 if (!SWIG_IsOK(ecode4)) {
10367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10368 }
10369 arg4 = static_cast< int >(val4);
10370 }
10371 {
10372 if (!wxPyCheckForApp()) SWIG_fail;
10373 PyThreadState* __tstate = wxPyBeginAllowThreads();
10374 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10375 wxPyEndAllowThreads(__tstate);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10379 return resultobj;
10380fail:
10381 return NULL;
10382}
10383
10384
10385SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10386 PyObject *resultobj = 0;
10387 wxBitmap *arg1 = 0 ;
10388 wxRegion *result = 0 ;
10389 void *argp1 = 0 ;
10390 int res1 = 0 ;
10391 PyObject * obj0 = 0 ;
10392 char * kwnames[] = {
10393 (char *) "bmp", NULL
10394 };
10395
10396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10397 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10398 if (!SWIG_IsOK(res1)) {
10399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10400 }
10401 if (!argp1) {
10402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10403 }
10404 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10405 {
10406 if (!wxPyCheckForApp()) SWIG_fail;
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10413 return resultobj;
10414fail:
10415 return NULL;
10416}
10417
10418
10419SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10420 PyObject *resultobj = 0;
10421 wxBitmap *arg1 = 0 ;
10422 wxColour *arg2 = 0 ;
10423 int arg3 = (int) 0 ;
10424 wxRegion *result = 0 ;
10425 void *argp1 = 0 ;
10426 int res1 = 0 ;
10427 wxColour temp2 ;
10428 int val3 ;
10429 int ecode3 = 0 ;
10430 PyObject * obj0 = 0 ;
10431 PyObject * obj1 = 0 ;
10432 PyObject * obj2 = 0 ;
10433 char * kwnames[] = {
10434 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10435 };
10436
10437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10438 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10439 if (!SWIG_IsOK(res1)) {
10440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10441 }
10442 if (!argp1) {
10443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10444 }
10445 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10446 {
10447 arg2 = &temp2;
10448 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10449 }
10450 if (obj2) {
10451 ecode3 = SWIG_AsVal_int(obj2, &val3);
10452 if (!SWIG_IsOK(ecode3)) {
10453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10454 }
10455 arg3 = static_cast< int >(val3);
10456 }
10457 {
10458 if (!wxPyCheckForApp()) SWIG_fail;
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
10460 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10465 return resultobj;
10466fail:
10467 return NULL;
10468}
10469
10470
10471SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10472 PyObject *resultobj = 0;
10473 int arg1 ;
10474 wxPoint *arg2 = (wxPoint *) 0 ;
10475 int arg3 = (int) wxWINDING_RULE ;
10476 wxRegion *result = 0 ;
10477 int val3 ;
10478 int ecode3 = 0 ;
10479 PyObject * obj0 = 0 ;
10480 PyObject * obj1 = 0 ;
10481 char * kwnames[] = {
10482 (char *) "points",(char *) "fillStyle", NULL
10483 };
10484
10485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10486 {
10487 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10488 if (arg2 == NULL) SWIG_fail;
10489 }
10490 if (obj1) {
10491 ecode3 = SWIG_AsVal_int(obj1, &val3);
10492 if (!SWIG_IsOK(ecode3)) {
10493 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10494 }
10495 arg3 = static_cast< int >(val3);
10496 }
10497 {
10498 if (!wxPyCheckForApp()) SWIG_fail;
10499 PyThreadState* __tstate = wxPyBeginAllowThreads();
10500 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10501 wxPyEndAllowThreads(__tstate);
10502 if (PyErr_Occurred()) SWIG_fail;
10503 }
10504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10505 {
10506 if (arg2) delete [] arg2;
10507 }
10508 return resultobj;
10509fail:
10510 {
10511 if (arg2) delete [] arg2;
10512 }
10513 return NULL;
d55e5bfc
RD
10514}
10515
10516
1bd55598
RD
10517SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10518 PyObject *resultobj = 0;
10519 wxRegion *arg1 = (wxRegion *) 0 ;
10520 void *argp1 = 0 ;
10521 int res1 = 0 ;
10522 PyObject *swig_obj[1] ;
10523
10524 if (!args) SWIG_fail;
10525 swig_obj[0] = args;
10526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10527 if (!SWIG_IsOK(res1)) {
10528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10529 }
10530 arg1 = reinterpret_cast< wxRegion * >(argp1);
10531 {
10532 PyThreadState* __tstate = wxPyBeginAllowThreads();
10533 delete arg1;
d55e5bfc 10534
1bd55598
RD
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 resultobj = SWIG_Py_Void();
10539 return resultobj;
10540fail:
10541 return NULL;
d55e5bfc
RD
10542}
10543
10544
1bd55598
RD
10545SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10546 PyObject *resultobj = 0;
10547 wxRegion *arg1 = (wxRegion *) 0 ;
10548 void *argp1 = 0 ;
10549 int res1 = 0 ;
10550 PyObject *swig_obj[1] ;
10551
10552 if (!args) SWIG_fail;
10553 swig_obj[0] = args;
10554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10555 if (!SWIG_IsOK(res1)) {
10556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10557 }
10558 arg1 = reinterpret_cast< wxRegion * >(argp1);
10559 {
10560 PyThreadState* __tstate = wxPyBeginAllowThreads();
10561 (arg1)->Clear();
10562 wxPyEndAllowThreads(__tstate);
10563 if (PyErr_Occurred()) SWIG_fail;
10564 }
10565 resultobj = SWIG_Py_Void();
10566 return resultobj;
10567fail:
10568 return NULL;
10569}
10570
10571
10572SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10573 PyObject *resultobj = 0;
10574 wxRegion *arg1 = (wxRegion *) 0 ;
10575 int arg2 ;
10576 int arg3 ;
10577 bool result;
10578 void *argp1 = 0 ;
10579 int res1 = 0 ;
10580 int val2 ;
10581 int ecode2 = 0 ;
10582 int val3 ;
10583 int ecode3 = 0 ;
10584 PyObject * obj0 = 0 ;
10585 PyObject * obj1 = 0 ;
10586 PyObject * obj2 = 0 ;
10587 char * kwnames[] = {
10588 (char *) "self",(char *) "x",(char *) "y", NULL
10589 };
10590
10591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10593 if (!SWIG_IsOK(res1)) {
10594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10595 }
10596 arg1 = reinterpret_cast< wxRegion * >(argp1);
10597 ecode2 = SWIG_AsVal_int(obj1, &val2);
10598 if (!SWIG_IsOK(ecode2)) {
10599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10600 }
10601 arg2 = static_cast< int >(val2);
10602 ecode3 = SWIG_AsVal_int(obj2, &val3);
10603 if (!SWIG_IsOK(ecode3)) {
10604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10605 }
10606 arg3 = static_cast< int >(val3);
10607 {
10608 PyThreadState* __tstate = wxPyBeginAllowThreads();
10609 result = (bool)(arg1)->Offset(arg2,arg3);
10610 wxPyEndAllowThreads(__tstate);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 }
10613 {
10614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10615 }
10616 return resultobj;
10617fail:
10618 return NULL;
10619}
10620
10621
10622SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10623 PyObject *resultobj = 0;
10624 wxRegion *arg1 = (wxRegion *) 0 ;
10625 int arg2 ;
10626 int arg3 ;
10627 wxRegionContain result;
10628 void *argp1 = 0 ;
10629 int res1 = 0 ;
10630 int val2 ;
10631 int ecode2 = 0 ;
10632 int val3 ;
10633 int ecode3 = 0 ;
10634 PyObject * obj0 = 0 ;
10635 PyObject * obj1 = 0 ;
10636 PyObject * obj2 = 0 ;
10637 char * kwnames[] = {
10638 (char *) "self",(char *) "x",(char *) "y", NULL
10639 };
10640
10641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10643 if (!SWIG_IsOK(res1)) {
10644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10645 }
10646 arg1 = reinterpret_cast< wxRegion * >(argp1);
10647 ecode2 = SWIG_AsVal_int(obj1, &val2);
10648 if (!SWIG_IsOK(ecode2)) {
10649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10650 }
10651 arg2 = static_cast< int >(val2);
10652 ecode3 = SWIG_AsVal_int(obj2, &val3);
10653 if (!SWIG_IsOK(ecode3)) {
10654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10655 }
10656 arg3 = static_cast< int >(val3);
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 }
10663 resultobj = SWIG_From_int(static_cast< int >(result));
10664 return resultobj;
10665fail:
10666 return NULL;
10667}
10668
10669
10670SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10671 PyObject *resultobj = 0;
10672 wxRegion *arg1 = (wxRegion *) 0 ;
10673 wxPoint *arg2 = 0 ;
10674 wxRegionContain result;
10675 void *argp1 = 0 ;
10676 int res1 = 0 ;
10677 wxPoint temp2 ;
10678 PyObject * obj0 = 0 ;
10679 PyObject * obj1 = 0 ;
10680 char * kwnames[] = {
10681 (char *) "self",(char *) "pt", NULL
10682 };
10683
10684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10686 if (!SWIG_IsOK(res1)) {
10687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10688 }
10689 arg1 = reinterpret_cast< wxRegion * >(argp1);
10690 {
10691 arg2 = &temp2;
10692 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10693 }
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
10696 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10697 wxPyEndAllowThreads(__tstate);
10698 if (PyErr_Occurred()) SWIG_fail;
10699 }
10700 resultobj = SWIG_From_int(static_cast< int >(result));
10701 return resultobj;
10702fail:
10703 return NULL;
10704}
10705
10706
10707SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10708 PyObject *resultobj = 0;
10709 wxRegion *arg1 = (wxRegion *) 0 ;
10710 wxRect *arg2 = 0 ;
10711 wxRegionContain result;
10712 void *argp1 = 0 ;
10713 int res1 = 0 ;
10714 wxRect temp2 ;
10715 PyObject * obj0 = 0 ;
10716 PyObject * obj1 = 0 ;
10717 char * kwnames[] = {
10718 (char *) "self",(char *) "rect", NULL
10719 };
10720
10721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10723 if (!SWIG_IsOK(res1)) {
10724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10725 }
10726 arg1 = reinterpret_cast< wxRegion * >(argp1);
10727 {
10728 arg2 = &temp2;
10729 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10730 }
10731 {
10732 PyThreadState* __tstate = wxPyBeginAllowThreads();
10733 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10734 wxPyEndAllowThreads(__tstate);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 resultobj = SWIG_From_int(static_cast< int >(result));
10738 return resultobj;
10739fail:
10740 return NULL;
10741}
10742
10743
10744SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj = 0;
10746 wxRegion *arg1 = (wxRegion *) 0 ;
10747 int arg2 ;
10748 int arg3 ;
10749 int arg4 ;
10750 int arg5 ;
10751 wxRegionContain result;
10752 void *argp1 = 0 ;
10753 int res1 = 0 ;
10754 int val2 ;
10755 int ecode2 = 0 ;
10756 int val3 ;
10757 int ecode3 = 0 ;
10758 int val4 ;
10759 int ecode4 = 0 ;
10760 int val5 ;
10761 int ecode5 = 0 ;
10762 PyObject * obj0 = 0 ;
10763 PyObject * obj1 = 0 ;
10764 PyObject * obj2 = 0 ;
10765 PyObject * obj3 = 0 ;
10766 PyObject * obj4 = 0 ;
10767 char * kwnames[] = {
10768 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10769 };
10770
10771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10773 if (!SWIG_IsOK(res1)) {
10774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10775 }
10776 arg1 = reinterpret_cast< wxRegion * >(argp1);
10777 ecode2 = SWIG_AsVal_int(obj1, &val2);
10778 if (!SWIG_IsOK(ecode2)) {
10779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10780 }
10781 arg2 = static_cast< int >(val2);
10782 ecode3 = SWIG_AsVal_int(obj2, &val3);
10783 if (!SWIG_IsOK(ecode3)) {
10784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10785 }
10786 arg3 = static_cast< int >(val3);
10787 ecode4 = SWIG_AsVal_int(obj3, &val4);
10788 if (!SWIG_IsOK(ecode4)) {
10789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10790 }
10791 arg4 = static_cast< int >(val4);
10792 ecode5 = SWIG_AsVal_int(obj4, &val5);
10793 if (!SWIG_IsOK(ecode5)) {
10794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10795 }
10796 arg5 = static_cast< int >(val5);
10797 {
10798 PyThreadState* __tstate = wxPyBeginAllowThreads();
10799 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10800 wxPyEndAllowThreads(__tstate);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 }
10803 resultobj = SWIG_From_int(static_cast< int >(result));
10804 return resultobj;
10805fail:
10806 return NULL;
d55e5bfc
RD
10807}
10808
10809
1bd55598
RD
10810SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10811 PyObject *resultobj = 0;
10812 wxRegion *arg1 = (wxRegion *) 0 ;
10813 wxRect result;
10814 void *argp1 = 0 ;
10815 int res1 = 0 ;
10816 PyObject *swig_obj[1] ;
10817
10818 if (!args) SWIG_fail;
10819 swig_obj[0] = args;
10820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10821 if (!SWIG_IsOK(res1)) {
10822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10823 }
10824 arg1 = reinterpret_cast< wxRegion * >(argp1);
10825 {
10826 PyThreadState* __tstate = wxPyBeginAllowThreads();
10827 result = (arg1)->GetBox();
10828 wxPyEndAllowThreads(__tstate);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 }
10831 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10832 return resultobj;
10833fail:
10834 return NULL;
10835}
10836
10837
10838SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10839 PyObject *resultobj = 0;
10840 wxRegion *arg1 = (wxRegion *) 0 ;
10841 int arg2 ;
10842 int arg3 ;
10843 int arg4 ;
10844 int arg5 ;
10845 bool result;
10846 void *argp1 = 0 ;
10847 int res1 = 0 ;
10848 int val2 ;
10849 int ecode2 = 0 ;
10850 int val3 ;
10851 int ecode3 = 0 ;
10852 int val4 ;
10853 int ecode4 = 0 ;
10854 int val5 ;
10855 int ecode5 = 0 ;
10856 PyObject * obj0 = 0 ;
10857 PyObject * obj1 = 0 ;
10858 PyObject * obj2 = 0 ;
10859 PyObject * obj3 = 0 ;
10860 PyObject * obj4 = 0 ;
10861 char * kwnames[] = {
10862 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10863 };
10864
10865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10867 if (!SWIG_IsOK(res1)) {
10868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10869 }
10870 arg1 = reinterpret_cast< wxRegion * >(argp1);
10871 ecode2 = SWIG_AsVal_int(obj1, &val2);
10872 if (!SWIG_IsOK(ecode2)) {
10873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10874 }
10875 arg2 = static_cast< int >(val2);
10876 ecode3 = SWIG_AsVal_int(obj2, &val3);
10877 if (!SWIG_IsOK(ecode3)) {
10878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10879 }
10880 arg3 = static_cast< int >(val3);
10881 ecode4 = SWIG_AsVal_int(obj3, &val4);
10882 if (!SWIG_IsOK(ecode4)) {
10883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10884 }
10885 arg4 = static_cast< int >(val4);
10886 ecode5 = SWIG_AsVal_int(obj4, &val5);
10887 if (!SWIG_IsOK(ecode5)) {
10888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10889 }
10890 arg5 = static_cast< int >(val5);
10891 {
10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
10893 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10894 wxPyEndAllowThreads(__tstate);
10895 if (PyErr_Occurred()) SWIG_fail;
10896 }
10897 {
10898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10899 }
10900 return resultobj;
10901fail:
10902 return NULL;
10903}
10904
10905
10906SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10907 PyObject *resultobj = 0;
10908 wxRegion *arg1 = (wxRegion *) 0 ;
10909 wxRect *arg2 = 0 ;
10910 bool result;
10911 void *argp1 = 0 ;
10912 int res1 = 0 ;
10913 wxRect temp2 ;
10914 PyObject * obj0 = 0 ;
10915 PyObject * obj1 = 0 ;
10916 char * kwnames[] = {
10917 (char *) "self",(char *) "rect", NULL
10918 };
10919
10920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10922 if (!SWIG_IsOK(res1)) {
10923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10924 }
10925 arg1 = reinterpret_cast< wxRegion * >(argp1);
10926 {
10927 arg2 = &temp2;
10928 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10929 }
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 {
10937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10938 }
10939 return resultobj;
10940fail:
10941 return NULL;
10942}
10943
10944
10945SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10946 PyObject *resultobj = 0;
10947 wxRegion *arg1 = (wxRegion *) 0 ;
10948 wxRegion *arg2 = 0 ;
10949 bool result;
10950 void *argp1 = 0 ;
10951 int res1 = 0 ;
10952 void *argp2 = 0 ;
10953 int res2 = 0 ;
10954 PyObject * obj0 = 0 ;
10955 PyObject * obj1 = 0 ;
10956 char * kwnames[] = {
10957 (char *) "self",(char *) "region", NULL
10958 };
10959
10960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10962 if (!SWIG_IsOK(res1)) {
10963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10964 }
10965 arg1 = reinterpret_cast< wxRegion * >(argp1);
10966 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10967 if (!SWIG_IsOK(res2)) {
10968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10969 }
10970 if (!argp2) {
10971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10972 }
10973 arg2 = reinterpret_cast< wxRegion * >(argp2);
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 {
10981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10982 }
10983 return resultobj;
10984fail:
10985 return NULL;
d55e5bfc
RD
10986}
10987
10988
1bd55598
RD
10989SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10990 PyObject *resultobj = 0;
10991 wxRegion *arg1 = (wxRegion *) 0 ;
10992 bool result;
10993 void *argp1 = 0 ;
10994 int res1 = 0 ;
10995 PyObject *swig_obj[1] ;
10996
10997 if (!args) SWIG_fail;
10998 swig_obj[0] = args;
10999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11000 if (!SWIG_IsOK(res1)) {
11001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11002 }
11003 arg1 = reinterpret_cast< wxRegion * >(argp1);
11004 {
11005 PyThreadState* __tstate = wxPyBeginAllowThreads();
11006 result = (bool)(arg1)->IsEmpty();
11007 wxPyEndAllowThreads(__tstate);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 }
11010 {
11011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11012 }
11013 return resultobj;
11014fail:
11015 return NULL;
11016}
11017
11018
f5263701
RD
11019SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11020 PyObject *resultobj = 0;
11021 wxRegion *arg1 = (wxRegion *) 0 ;
11022 wxRegion *arg2 = 0 ;
11023 bool result;
11024 void *argp1 = 0 ;
11025 int res1 = 0 ;
11026 void *argp2 = 0 ;
11027 int res2 = 0 ;
11028 PyObject * obj0 = 0 ;
11029 PyObject * obj1 = 0 ;
11030 char * kwnames[] = {
11031 (char *) "self",(char *) "region", NULL
11032 };
11033
11034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11036 if (!SWIG_IsOK(res1)) {
11037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11038 }
11039 arg1 = reinterpret_cast< wxRegion * >(argp1);
11040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11041 if (!SWIG_IsOK(res2)) {
11042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11043 }
11044 if (!argp2) {
11045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11046 }
11047 arg2 = reinterpret_cast< wxRegion * >(argp2);
11048 {
11049 PyThreadState* __tstate = wxPyBeginAllowThreads();
11050 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11056 }
11057 return resultobj;
11058fail:
11059 return NULL;
11060}
11061
11062
1bd55598
RD
11063SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11064 PyObject *resultobj = 0;
11065 wxRegion *arg1 = (wxRegion *) 0 ;
11066 int arg2 ;
11067 int arg3 ;
11068 int arg4 ;
11069 int arg5 ;
11070 bool result;
11071 void *argp1 = 0 ;
11072 int res1 = 0 ;
11073 int val2 ;
11074 int ecode2 = 0 ;
11075 int val3 ;
11076 int ecode3 = 0 ;
11077 int val4 ;
11078 int ecode4 = 0 ;
11079 int val5 ;
11080 int ecode5 = 0 ;
11081 PyObject * obj0 = 0 ;
11082 PyObject * obj1 = 0 ;
11083 PyObject * obj2 = 0 ;
11084 PyObject * obj3 = 0 ;
11085 PyObject * obj4 = 0 ;
11086 char * kwnames[] = {
11087 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11088 };
11089
11090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11092 if (!SWIG_IsOK(res1)) {
11093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11094 }
11095 arg1 = reinterpret_cast< wxRegion * >(argp1);
11096 ecode2 = SWIG_AsVal_int(obj1, &val2);
11097 if (!SWIG_IsOK(ecode2)) {
11098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11099 }
11100 arg2 = static_cast< int >(val2);
11101 ecode3 = SWIG_AsVal_int(obj2, &val3);
11102 if (!SWIG_IsOK(ecode3)) {
11103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11104 }
11105 arg3 = static_cast< int >(val3);
11106 ecode4 = SWIG_AsVal_int(obj3, &val4);
11107 if (!SWIG_IsOK(ecode4)) {
11108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11109 }
11110 arg4 = static_cast< int >(val4);
11111 ecode5 = SWIG_AsVal_int(obj4, &val5);
11112 if (!SWIG_IsOK(ecode5)) {
11113 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11114 }
11115 arg5 = static_cast< int >(val5);
11116 {
11117 PyThreadState* __tstate = wxPyBeginAllowThreads();
11118 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 }
11122 {
11123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11124 }
11125 return resultobj;
11126fail:
11127 return NULL;
11128}
11129
11130
11131SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11132 PyObject *resultobj = 0;
11133 wxRegion *arg1 = (wxRegion *) 0 ;
11134 wxRect *arg2 = 0 ;
11135 bool result;
11136 void *argp1 = 0 ;
11137 int res1 = 0 ;
11138 wxRect temp2 ;
11139 PyObject * obj0 = 0 ;
11140 PyObject * obj1 = 0 ;
11141 char * kwnames[] = {
11142 (char *) "self",(char *) "rect", NULL
11143 };
11144
11145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11147 if (!SWIG_IsOK(res1)) {
11148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11149 }
11150 arg1 = reinterpret_cast< wxRegion * >(argp1);
11151 {
11152 arg2 = &temp2;
11153 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11154 }
11155 {
11156 PyThreadState* __tstate = wxPyBeginAllowThreads();
11157 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 {
11162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11163 }
11164 return resultobj;
11165fail:
11166 return NULL;
11167}
11168
11169
11170SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11171 PyObject *resultobj = 0;
11172 wxRegion *arg1 = (wxRegion *) 0 ;
11173 wxRegion *arg2 = 0 ;
11174 bool result;
11175 void *argp1 = 0 ;
11176 int res1 = 0 ;
11177 void *argp2 = 0 ;
11178 int res2 = 0 ;
11179 PyObject * obj0 = 0 ;
11180 PyObject * obj1 = 0 ;
11181 char * kwnames[] = {
11182 (char *) "self",(char *) "region", NULL
11183 };
11184
11185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11187 if (!SWIG_IsOK(res1)) {
11188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11189 }
11190 arg1 = reinterpret_cast< wxRegion * >(argp1);
11191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11192 if (!SWIG_IsOK(res2)) {
11193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11194 }
11195 if (!argp2) {
11196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11197 }
11198 arg2 = reinterpret_cast< wxRegion * >(argp2);
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 {
11206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11207 }
11208 return resultobj;
11209fail:
11210 return NULL;
11211}
11212
11213
11214SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11215 PyObject *resultobj = 0;
11216 wxRegion *arg1 = (wxRegion *) 0 ;
11217 int arg2 ;
11218 int arg3 ;
11219 int arg4 ;
11220 int arg5 ;
11221 bool result;
11222 void *argp1 = 0 ;
11223 int res1 = 0 ;
11224 int val2 ;
11225 int ecode2 = 0 ;
11226 int val3 ;
11227 int ecode3 = 0 ;
11228 int val4 ;
11229 int ecode4 = 0 ;
11230 int val5 ;
11231 int ecode5 = 0 ;
11232 PyObject * obj0 = 0 ;
11233 PyObject * obj1 = 0 ;
11234 PyObject * obj2 = 0 ;
11235 PyObject * obj3 = 0 ;
11236 PyObject * obj4 = 0 ;
11237 char * kwnames[] = {
11238 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11239 };
11240
11241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11243 if (!SWIG_IsOK(res1)) {
11244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11245 }
11246 arg1 = reinterpret_cast< wxRegion * >(argp1);
11247 ecode2 = SWIG_AsVal_int(obj1, &val2);
11248 if (!SWIG_IsOK(ecode2)) {
11249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11250 }
11251 arg2 = static_cast< int >(val2);
11252 ecode3 = SWIG_AsVal_int(obj2, &val3);
11253 if (!SWIG_IsOK(ecode3)) {
11254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11255 }
11256 arg3 = static_cast< int >(val3);
11257 ecode4 = SWIG_AsVal_int(obj3, &val4);
11258 if (!SWIG_IsOK(ecode4)) {
11259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11260 }
11261 arg4 = static_cast< int >(val4);
11262 ecode5 = SWIG_AsVal_int(obj4, &val5);
11263 if (!SWIG_IsOK(ecode5)) {
11264 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11265 }
11266 arg5 = static_cast< int >(val5);
11267 {
11268 PyThreadState* __tstate = wxPyBeginAllowThreads();
11269 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11270 wxPyEndAllowThreads(__tstate);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 }
11273 {
11274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11275 }
11276 return resultobj;
11277fail:
11278 return NULL;
11279}
11280
11281
11282SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11283 PyObject *resultobj = 0;
11284 wxRegion *arg1 = (wxRegion *) 0 ;
11285 wxRect *arg2 = 0 ;
11286 bool result;
11287 void *argp1 = 0 ;
11288 int res1 = 0 ;
11289 wxRect temp2 ;
11290 PyObject * obj0 = 0 ;
11291 PyObject * obj1 = 0 ;
11292 char * kwnames[] = {
11293 (char *) "self",(char *) "rect", NULL
11294 };
11295
11296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11298 if (!SWIG_IsOK(res1)) {
11299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11300 }
11301 arg1 = reinterpret_cast< wxRegion * >(argp1);
11302 {
11303 arg2 = &temp2;
11304 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11305 }
11306 {
11307 PyThreadState* __tstate = wxPyBeginAllowThreads();
11308 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 {
11313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11314 }
11315 return resultobj;
11316fail:
11317 return NULL;
11318}
11319
11320
11321SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11322 PyObject *resultobj = 0;
11323 wxRegion *arg1 = (wxRegion *) 0 ;
11324 wxRegion *arg2 = 0 ;
11325 bool result;
11326 void *argp1 = 0 ;
11327 int res1 = 0 ;
11328 void *argp2 = 0 ;
11329 int res2 = 0 ;
11330 PyObject * obj0 = 0 ;
11331 PyObject * obj1 = 0 ;
11332 char * kwnames[] = {
11333 (char *) "self",(char *) "region", NULL
11334 };
11335
11336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11338 if (!SWIG_IsOK(res1)) {
11339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11340 }
11341 arg1 = reinterpret_cast< wxRegion * >(argp1);
11342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11343 if (!SWIG_IsOK(res2)) {
11344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11345 }
11346 if (!argp2) {
11347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11348 }
11349 arg2 = reinterpret_cast< wxRegion * >(argp2);
11350 {
11351 PyThreadState* __tstate = wxPyBeginAllowThreads();
11352 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11353 wxPyEndAllowThreads(__tstate);
11354 if (PyErr_Occurred()) SWIG_fail;
11355 }
11356 {
11357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11358 }
11359 return resultobj;
11360fail:
11361 return NULL;
11362}
11363
11364
11365SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11366 PyObject *resultobj = 0;
11367 wxRegion *arg1 = (wxRegion *) 0 ;
11368 int arg2 ;
11369 int arg3 ;
11370 int arg4 ;
11371 int arg5 ;
11372 bool result;
11373 void *argp1 = 0 ;
11374 int res1 = 0 ;
11375 int val2 ;
11376 int ecode2 = 0 ;
11377 int val3 ;
11378 int ecode3 = 0 ;
11379 int val4 ;
11380 int ecode4 = 0 ;
11381 int val5 ;
11382 int ecode5 = 0 ;
11383 PyObject * obj0 = 0 ;
11384 PyObject * obj1 = 0 ;
11385 PyObject * obj2 = 0 ;
11386 PyObject * obj3 = 0 ;
11387 PyObject * obj4 = 0 ;
11388 char * kwnames[] = {
11389 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11390 };
11391
11392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11394 if (!SWIG_IsOK(res1)) {
11395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11396 }
11397 arg1 = reinterpret_cast< wxRegion * >(argp1);
11398 ecode2 = SWIG_AsVal_int(obj1, &val2);
11399 if (!SWIG_IsOK(ecode2)) {
11400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11401 }
11402 arg2 = static_cast< int >(val2);
11403 ecode3 = SWIG_AsVal_int(obj2, &val3);
11404 if (!SWIG_IsOK(ecode3)) {
11405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11406 }
11407 arg3 = static_cast< int >(val3);
11408 ecode4 = SWIG_AsVal_int(obj3, &val4);
11409 if (!SWIG_IsOK(ecode4)) {
11410 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11411 }
11412 arg4 = static_cast< int >(val4);
11413 ecode5 = SWIG_AsVal_int(obj4, &val5);
11414 if (!SWIG_IsOK(ecode5)) {
11415 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11416 }
11417 arg5 = static_cast< int >(val5);
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 {
11425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11426 }
11427 return resultobj;
11428fail:
11429 return NULL;
11430}
11431
11432
11433SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11434 PyObject *resultobj = 0;
11435 wxRegion *arg1 = (wxRegion *) 0 ;
11436 wxRect *arg2 = 0 ;
11437 bool result;
11438 void *argp1 = 0 ;
11439 int res1 = 0 ;
11440 wxRect temp2 ;
11441 PyObject * obj0 = 0 ;
11442 PyObject * obj1 = 0 ;
11443 char * kwnames[] = {
11444 (char *) "self",(char *) "rect", NULL
11445 };
11446
11447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11449 if (!SWIG_IsOK(res1)) {
11450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11451 }
11452 arg1 = reinterpret_cast< wxRegion * >(argp1);
11453 {
11454 arg2 = &temp2;
11455 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11456 }
11457 {
11458 PyThreadState* __tstate = wxPyBeginAllowThreads();
11459 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 {
11464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11465 }
11466 return resultobj;
11467fail:
11468 return NULL;
11469}
11470
11471
11472SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11473 PyObject *resultobj = 0;
11474 wxRegion *arg1 = (wxRegion *) 0 ;
11475 wxRegion *arg2 = 0 ;
11476 bool result;
11477 void *argp1 = 0 ;
11478 int res1 = 0 ;
11479 void *argp2 = 0 ;
11480 int res2 = 0 ;
11481 PyObject * obj0 = 0 ;
11482 PyObject * obj1 = 0 ;
11483 char * kwnames[] = {
11484 (char *) "self",(char *) "region", NULL
11485 };
11486
11487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11489 if (!SWIG_IsOK(res1)) {
11490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11491 }
11492 arg1 = reinterpret_cast< wxRegion * >(argp1);
11493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11494 if (!SWIG_IsOK(res2)) {
11495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11496 }
11497 if (!argp2) {
11498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11499 }
11500 arg2 = reinterpret_cast< wxRegion * >(argp2);
11501 {
11502 PyThreadState* __tstate = wxPyBeginAllowThreads();
11503 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 {
11508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11509 }
11510 return resultobj;
11511fail:
11512 return NULL;
d55e5bfc
RD
11513}
11514
11515
1bd55598
RD
11516SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11517 PyObject *resultobj = 0;
11518 wxRegion *arg1 = (wxRegion *) 0 ;
11519 SwigValueWrapper<wxBitmap > result;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 PyObject *swig_obj[1] ;
11523
11524 if (!args) SWIG_fail;
11525 swig_obj[0] = args;
11526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11527 if (!SWIG_IsOK(res1)) {
11528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11529 }
11530 arg1 = reinterpret_cast< wxRegion * >(argp1);
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 result = (arg1)->ConvertToBitmap();
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11538 return resultobj;
11539fail:
11540 return NULL;
11541}
11542
11543
11544SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11545 PyObject *resultobj = 0;
11546 wxRegion *arg1 = (wxRegion *) 0 ;
11547 wxBitmap *arg2 = 0 ;
11548 bool result;
11549 void *argp1 = 0 ;
11550 int res1 = 0 ;
11551 void *argp2 = 0 ;
11552 int res2 = 0 ;
11553 PyObject * obj0 = 0 ;
11554 PyObject * obj1 = 0 ;
11555 char * kwnames[] = {
11556 (char *) "self",(char *) "bmp", NULL
11557 };
11558
11559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11561 if (!SWIG_IsOK(res1)) {
11562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11563 }
11564 arg1 = reinterpret_cast< wxRegion * >(argp1);
11565 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11566 if (!SWIG_IsOK(res2)) {
11567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11568 }
11569 if (!argp2) {
11570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11571 }
11572 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11573 {
11574 PyThreadState* __tstate = wxPyBeginAllowThreads();
11575 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11576 wxPyEndAllowThreads(__tstate);
11577 if (PyErr_Occurred()) SWIG_fail;
11578 }
11579 {
11580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11581 }
11582 return resultobj;
11583fail:
11584 return NULL;
11585}
11586
11587
11588SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11589 PyObject *resultobj = 0;
11590 wxRegion *arg1 = (wxRegion *) 0 ;
11591 wxBitmap *arg2 = 0 ;
11592 wxColour *arg3 = 0 ;
11593 int arg4 = (int) 0 ;
11594 bool result;
11595 void *argp1 = 0 ;
11596 int res1 = 0 ;
11597 void *argp2 = 0 ;
11598 int res2 = 0 ;
11599 wxColour temp3 ;
11600 int val4 ;
11601 int ecode4 = 0 ;
11602 PyObject * obj0 = 0 ;
11603 PyObject * obj1 = 0 ;
11604 PyObject * obj2 = 0 ;
11605 PyObject * obj3 = 0 ;
11606 char * kwnames[] = {
11607 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11608 };
11609
11610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11612 if (!SWIG_IsOK(res1)) {
11613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11614 }
11615 arg1 = reinterpret_cast< wxRegion * >(argp1);
11616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11617 if (!SWIG_IsOK(res2)) {
11618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11619 }
11620 if (!argp2) {
11621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11622 }
11623 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11624 {
11625 arg3 = &temp3;
11626 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11627 }
11628 if (obj3) {
11629 ecode4 = SWIG_AsVal_int(obj3, &val4);
11630 if (!SWIG_IsOK(ecode4)) {
11631 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11632 }
11633 arg4 = static_cast< int >(val4);
11634 }
11635 {
11636 PyThreadState* __tstate = wxPyBeginAllowThreads();
11637 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11638 wxPyEndAllowThreads(__tstate);
11639 if (PyErr_Occurred()) SWIG_fail;
11640 }
11641 {
11642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11643 }
11644 return resultobj;
11645fail:
11646 return NULL;
d55e5bfc
RD
11647}
11648
11649
1bd55598
RD
11650SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11651 PyObject *obj;
11652 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11653 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11654 return SWIG_Py_Void();
d55e5bfc
RD
11655}
11656
1bd55598
RD
11657SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11658 return SWIG_Python_InitShadowInstance(args);
11659}
d55e5bfc 11660
1bd55598
RD
11661SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11662 PyObject *resultobj = 0;
11663 wxRegion *arg1 = 0 ;
11664 wxRegionIterator *result = 0 ;
11665 void *argp1 = 0 ;
11666 int res1 = 0 ;
11667 PyObject * obj0 = 0 ;
11668 char * kwnames[] = {
11669 (char *) "region", NULL
11670 };
11671
11672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11673 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11674 if (!SWIG_IsOK(res1)) {
11675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11676 }
11677 if (!argp1) {
11678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11679 }
11680 arg1 = reinterpret_cast< wxRegion * >(argp1);
11681 {
11682 if (!wxPyCheckForApp()) SWIG_fail;
11683 PyThreadState* __tstate = wxPyBeginAllowThreads();
11684 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11685 wxPyEndAllowThreads(__tstate);
11686 if (PyErr_Occurred()) SWIG_fail;
11687 }
11688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11689 return resultobj;
11690fail:
11691 return NULL;
d55e5bfc
RD
11692}
11693
11694
1bd55598
RD
11695SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11696 PyObject *resultobj = 0;
11697 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11698 void *argp1 = 0 ;
11699 int res1 = 0 ;
11700 PyObject *swig_obj[1] ;
11701
11702 if (!args) SWIG_fail;
11703 swig_obj[0] = args;
11704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11705 if (!SWIG_IsOK(res1)) {
11706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11707 }
11708 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11709 {
11710 PyThreadState* __tstate = wxPyBeginAllowThreads();
11711 delete arg1;
d55e5bfc 11712
1bd55598
RD
11713 wxPyEndAllowThreads(__tstate);
11714 if (PyErr_Occurred()) SWIG_fail;
11715 }
11716 resultobj = SWIG_Py_Void();
11717 return resultobj;
11718fail:
11719 return NULL;
d55e5bfc
RD
11720}
11721
11722
1bd55598
RD
11723SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11724 PyObject *resultobj = 0;
11725 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11726 int result;
11727 void *argp1 = 0 ;
11728 int res1 = 0 ;
11729 PyObject *swig_obj[1] ;
11730
11731 if (!args) SWIG_fail;
11732 swig_obj[0] = args;
11733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11734 if (!SWIG_IsOK(res1)) {
11735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11736 }
11737 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
11740 result = (int)(arg1)->GetX();
11741 wxPyEndAllowThreads(__tstate);
11742 if (PyErr_Occurred()) SWIG_fail;
11743 }
11744 resultobj = SWIG_From_int(static_cast< int >(result));
11745 return resultobj;
11746fail:
11747 return NULL;
d55e5bfc
RD
11748}
11749
11750
1bd55598
RD
11751SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11752 PyObject *resultobj = 0;
11753 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11754 int result;
11755 void *argp1 = 0 ;
11756 int res1 = 0 ;
11757 PyObject *swig_obj[1] ;
11758
11759 if (!args) SWIG_fail;
11760 swig_obj[0] = args;
11761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11762 if (!SWIG_IsOK(res1)) {
11763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11764 }
11765 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11766 {
11767 PyThreadState* __tstate = wxPyBeginAllowThreads();
11768 result = (int)(arg1)->GetY();
11769 wxPyEndAllowThreads(__tstate);
11770 if (PyErr_Occurred()) SWIG_fail;
11771 }
11772 resultobj = SWIG_From_int(static_cast< int >(result));
11773 return resultobj;
11774fail:
11775 return NULL;
d55e5bfc
RD
11776}
11777
11778
1bd55598
RD
11779SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11780 PyObject *resultobj = 0;
11781 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11782 int result;
11783 void *argp1 = 0 ;
11784 int res1 = 0 ;
11785 PyObject *swig_obj[1] ;
11786
11787 if (!args) SWIG_fail;
11788 swig_obj[0] = args;
11789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11790 if (!SWIG_IsOK(res1)) {
11791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11792 }
11793 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11794 {
11795 PyThreadState* __tstate = wxPyBeginAllowThreads();
11796 result = (int)(arg1)->GetW();
11797 wxPyEndAllowThreads(__tstate);
11798 if (PyErr_Occurred()) SWIG_fail;
11799 }
11800 resultobj = SWIG_From_int(static_cast< int >(result));
11801 return resultobj;
11802fail:
11803 return NULL;
d55e5bfc
RD
11804}
11805
11806
1bd55598
RD
11807SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11808 PyObject *resultobj = 0;
11809 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11810 int result;
11811 void *argp1 = 0 ;
11812 int res1 = 0 ;
11813 PyObject *swig_obj[1] ;
11814
11815 if (!args) SWIG_fail;
11816 swig_obj[0] = args;
11817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11818 if (!SWIG_IsOK(res1)) {
11819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11820 }
11821 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11822 {
11823 PyThreadState* __tstate = wxPyBeginAllowThreads();
11824 result = (int)(arg1)->GetWidth();
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 resultobj = SWIG_From_int(static_cast< int >(result));
11829 return resultobj;
11830fail:
11831 return NULL;
d55e5bfc
RD
11832}
11833
11834
1bd55598
RD
11835SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11836 PyObject *resultobj = 0;
11837 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11838 int result;
11839 void *argp1 = 0 ;
11840 int res1 = 0 ;
11841 PyObject *swig_obj[1] ;
11842
11843 if (!args) SWIG_fail;
11844 swig_obj[0] = args;
11845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11846 if (!SWIG_IsOK(res1)) {
11847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11848 }
11849 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11850 {
11851 PyThreadState* __tstate = wxPyBeginAllowThreads();
11852 result = (int)(arg1)->GetH();
11853 wxPyEndAllowThreads(__tstate);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 resultobj = SWIG_From_int(static_cast< int >(result));
11857 return resultobj;
11858fail:
11859 return NULL;
d07096ad
RD
11860}
11861
11862
1bd55598
RD
11863SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11864 PyObject *resultobj = 0;
11865 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11866 int result;
11867 void *argp1 = 0 ;
11868 int res1 = 0 ;
11869 PyObject *swig_obj[1] ;
11870
11871 if (!args) SWIG_fail;
11872 swig_obj[0] = args;
11873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11874 if (!SWIG_IsOK(res1)) {
11875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11876 }
11877 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11878 {
11879 PyThreadState* __tstate = wxPyBeginAllowThreads();
11880 result = (int)(arg1)->GetHeight();
11881 wxPyEndAllowThreads(__tstate);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 }
11884 resultobj = SWIG_From_int(static_cast< int >(result));
11885 return resultobj;
11886fail:
11887 return NULL;
d55e5bfc
RD
11888}
11889
11890
1bd55598
RD
11891SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11892 PyObject *resultobj = 0;
11893 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11894 wxRect result;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 PyObject *swig_obj[1] ;
11898
11899 if (!args) SWIG_fail;
11900 swig_obj[0] = args;
11901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11902 if (!SWIG_IsOK(res1)) {
11903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11904 }
11905 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11906 {
11907 PyThreadState* __tstate = wxPyBeginAllowThreads();
11908 result = (arg1)->GetRect();
11909 wxPyEndAllowThreads(__tstate);
11910 if (PyErr_Occurred()) SWIG_fail;
11911 }
11912 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11913 return resultobj;
11914fail:
11915 return NULL;
d55e5bfc
RD
11916}
11917
11918
1bd55598
RD
11919SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11920 PyObject *resultobj = 0;
11921 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11922 bool result;
11923 void *argp1 = 0 ;
11924 int res1 = 0 ;
11925 PyObject *swig_obj[1] ;
11926
11927 if (!args) SWIG_fail;
11928 swig_obj[0] = args;
11929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11930 if (!SWIG_IsOK(res1)) {
11931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11932 }
11933 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11934 {
11935 PyThreadState* __tstate = wxPyBeginAllowThreads();
11936 result = (bool)(arg1)->HaveRects();
11937 wxPyEndAllowThreads(__tstate);
11938 if (PyErr_Occurred()) SWIG_fail;
11939 }
11940 {
11941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11942 }
11943 return resultobj;
11944fail:
11945 return NULL;
d55e5bfc
RD
11946}
11947
11948
1bd55598
RD
11949SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11950 PyObject *resultobj = 0;
11951 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11952 void *argp1 = 0 ;
11953 int res1 = 0 ;
11954 PyObject *swig_obj[1] ;
11955
11956 if (!args) SWIG_fail;
11957 swig_obj[0] = args;
11958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11959 if (!SWIG_IsOK(res1)) {
11960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11961 }
11962 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11963 {
11964 PyThreadState* __tstate = wxPyBeginAllowThreads();
11965 (arg1)->Reset();
11966 wxPyEndAllowThreads(__tstate);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 }
11969 resultobj = SWIG_Py_Void();
11970 return resultobj;
11971fail:
11972 return NULL;
d55e5bfc
RD
11973}
11974
11975
1bd55598
RD
11976SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11977 PyObject *resultobj = 0;
11978 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11979 void *argp1 = 0 ;
11980 int res1 = 0 ;
11981 PyObject *swig_obj[1] ;
11982
11983 if (!args) SWIG_fail;
11984 swig_obj[0] = args;
11985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11986 if (!SWIG_IsOK(res1)) {
11987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11988 }
11989 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11990 {
11991 PyThreadState* __tstate = wxPyBeginAllowThreads();
11992 wxRegionIterator_Next(arg1);
11993 wxPyEndAllowThreads(__tstate);
11994 if (PyErr_Occurred()) SWIG_fail;
11995 }
11996 resultobj = SWIG_Py_Void();
11997 return resultobj;
11998fail:
11999 return NULL;
070c48b4
RD
12000}
12001
12002
1bd55598
RD
12003SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12004 PyObject *resultobj = 0;
12005 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12006 bool result;
12007 void *argp1 = 0 ;
12008 int res1 = 0 ;
12009 PyObject *swig_obj[1] ;
12010
12011 if (!args) SWIG_fail;
12012 swig_obj[0] = args;
12013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12014 if (!SWIG_IsOK(res1)) {
12015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12016 }
12017 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 result = (bool)wxRegionIterator___nonzero__(arg1);
12021 wxPyEndAllowThreads(__tstate);
12022 if (PyErr_Occurred()) SWIG_fail;
12023 }
12024 {
12025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12026 }
12027 return resultobj;
12028fail:
12029 return NULL;
d55e5bfc
RD
12030}
12031
12032
1bd55598
RD
12033SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12034 PyObject *obj;
12035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12036 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12037 return SWIG_Py_Void();
d55e5bfc
RD
12038}
12039
1bd55598
RD
12040SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12041 return SWIG_Python_InitShadowInstance(args);
12042}
d55e5bfc 12043
1bd55598
RD
12044SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12045 PyObject *resultobj = 0;
12046 wxNativeFontInfo *result = 0 ;
12047
12048 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12049 {
12050 PyThreadState* __tstate = wxPyBeginAllowThreads();
12051 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12052 wxPyEndAllowThreads(__tstate);
12053 if (PyErr_Occurred()) SWIG_fail;
12054 }
12055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12056 return resultobj;
12057fail:
12058 return NULL;
d55e5bfc
RD
12059}
12060
12061
1bd55598
RD
12062SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12063 PyObject *resultobj = 0;
12064 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 PyObject *swig_obj[1] ;
12068
12069 if (!args) SWIG_fail;
12070 swig_obj[0] = args;
12071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12072 if (!SWIG_IsOK(res1)) {
12073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12074 }
12075 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 delete arg1;
d55e5bfc 12079
1bd55598
RD
12080 wxPyEndAllowThreads(__tstate);
12081 if (PyErr_Occurred()) SWIG_fail;
12082 }
12083 resultobj = SWIG_Py_Void();
12084 return resultobj;
12085fail:
12086 return NULL;
d55e5bfc
RD
12087}
12088
12089
1bd55598
RD
12090SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12091 PyObject *resultobj = 0;
12092 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12093 void *argp1 = 0 ;
12094 int res1 = 0 ;
12095 PyObject *swig_obj[1] ;
12096
12097 if (!args) SWIG_fail;
12098 swig_obj[0] = args;
12099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12100 if (!SWIG_IsOK(res1)) {
12101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12102 }
12103 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
12106 (arg1)->Init();
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 resultobj = SWIG_Py_Void();
12111 return resultobj;
12112fail:
12113 return NULL;
12114}
12115
12116
12117SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12118 PyObject *resultobj = 0;
12119 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12120 wxFont *arg2 = 0 ;
12121 void *argp1 = 0 ;
12122 int res1 = 0 ;
12123 void *argp2 = 0 ;
12124 int res2 = 0 ;
12125 PyObject * obj0 = 0 ;
12126 PyObject * obj1 = 0 ;
12127 char * kwnames[] = {
12128 (char *) "self",(char *) "font", NULL
12129 };
12130
12131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12133 if (!SWIG_IsOK(res1)) {
12134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12135 }
12136 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12137 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12138 if (!SWIG_IsOK(res2)) {
12139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12140 }
12141 if (!argp2) {
12142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12143 }
12144 arg2 = reinterpret_cast< wxFont * >(argp2);
12145 {
12146 PyThreadState* __tstate = wxPyBeginAllowThreads();
12147 (arg1)->InitFromFont((wxFont const &)*arg2);
12148 wxPyEndAllowThreads(__tstate);
12149 if (PyErr_Occurred()) SWIG_fail;
12150 }
12151 resultobj = SWIG_Py_Void();
12152 return resultobj;
12153fail:
12154 return NULL;
d55e5bfc
RD
12155}
12156
12157
1bd55598
RD
12158SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12159 PyObject *resultobj = 0;
12160 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12161 int result;
12162 void *argp1 = 0 ;
12163 int res1 = 0 ;
12164 PyObject *swig_obj[1] ;
12165
12166 if (!args) SWIG_fail;
12167 swig_obj[0] = args;
12168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12169 if (!SWIG_IsOK(res1)) {
12170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12171 }
12172 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12173 {
12174 PyThreadState* __tstate = wxPyBeginAllowThreads();
12175 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12176 wxPyEndAllowThreads(__tstate);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
12179 resultobj = SWIG_From_int(static_cast< int >(result));
12180 return resultobj;
12181fail:
12182 return NULL;
d55e5bfc
RD
12183}
12184
12185
1bd55598
RD
12186SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12187 PyObject *resultobj = 0;
12188 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12189 wxFontStyle result;
12190 void *argp1 = 0 ;
12191 int res1 = 0 ;
12192 PyObject *swig_obj[1] ;
12193
12194 if (!args) SWIG_fail;
12195 swig_obj[0] = args;
12196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12197 if (!SWIG_IsOK(res1)) {
12198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12199 }
12200 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12201 {
12202 PyThreadState* __tstate = wxPyBeginAllowThreads();
12203 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 resultobj = SWIG_From_int(static_cast< int >(result));
12208 return resultobj;
12209fail:
12210 return NULL;
d55e5bfc
RD
12211}
12212
12213
1bd55598
RD
12214SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12215 PyObject *resultobj = 0;
12216 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12217 wxFontWeight result;
12218 void *argp1 = 0 ;
12219 int res1 = 0 ;
12220 PyObject *swig_obj[1] ;
12221
12222 if (!args) SWIG_fail;
12223 swig_obj[0] = args;
12224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12225 if (!SWIG_IsOK(res1)) {
12226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12227 }
12228 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12229 {
12230 PyThreadState* __tstate = wxPyBeginAllowThreads();
12231 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12232 wxPyEndAllowThreads(__tstate);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 resultobj = SWIG_From_int(static_cast< int >(result));
12236 return resultobj;
12237fail:
12238 return NULL;
d55e5bfc
RD
12239}
12240
12241
1bd55598
RD
12242SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12243 PyObject *resultobj = 0;
12244 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12245 bool result;
12246 void *argp1 = 0 ;
12247 int res1 = 0 ;
12248 PyObject *swig_obj[1] ;
12249
12250 if (!args) SWIG_fail;
12251 swig_obj[0] = args;
12252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12253 if (!SWIG_IsOK(res1)) {
12254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12255 }
12256 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12257 {
12258 PyThreadState* __tstate = wxPyBeginAllowThreads();
12259 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12260 wxPyEndAllowThreads(__tstate);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
12263 {
12264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12265 }
12266 return resultobj;
12267fail:
12268 return NULL;
d55e5bfc
RD
12269}
12270
12271
1bd55598
RD
12272SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12273 PyObject *resultobj = 0;
12274 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12275 wxString result;
12276 void *argp1 = 0 ;
12277 int res1 = 0 ;
12278 PyObject *swig_obj[1] ;
12279
12280 if (!args) SWIG_fail;
12281 swig_obj[0] = args;
12282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12283 if (!SWIG_IsOK(res1)) {
12284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12285 }
12286 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12287 {
12288 PyThreadState* __tstate = wxPyBeginAllowThreads();
12289 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12290 wxPyEndAllowThreads(__tstate);
12291 if (PyErr_Occurred()) SWIG_fail;
12292 }
12293 {
12294#if wxUSE_UNICODE
12295 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12296#else
12297 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12298#endif
12299 }
12300 return resultobj;
12301fail:
12302 return NULL;
d55e5bfc
RD
12303}
12304
12305
1bd55598
RD
12306SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12307 PyObject *resultobj = 0;
12308 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12309 wxFontFamily result;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12319 }
12320 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 resultobj = SWIG_From_int(static_cast< int >(result));
12328 return resultobj;
12329fail:
12330 return NULL;
d55e5bfc
RD
12331}
12332
12333
1bd55598
RD
12334SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12335 PyObject *resultobj = 0;
12336 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12337 wxFontEncoding result;
12338 void *argp1 = 0 ;
12339 int res1 = 0 ;
12340 PyObject *swig_obj[1] ;
12341
12342 if (!args) SWIG_fail;
12343 swig_obj[0] = args;
12344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12345 if (!SWIG_IsOK(res1)) {
12346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12347 }
12348 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
12351 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 resultobj = SWIG_From_int(static_cast< int >(result));
12356 return resultobj;
12357fail:
12358 return NULL;
12359}
12360
12361
12362SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12363 PyObject *resultobj = 0;
12364 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12365 int arg2 ;
12366 void *argp1 = 0 ;
12367 int res1 = 0 ;
12368 int val2 ;
12369 int ecode2 = 0 ;
12370 PyObject * obj0 = 0 ;
12371 PyObject * obj1 = 0 ;
12372 char * kwnames[] = {
12373 (char *) "self",(char *) "pointsize", NULL
12374 };
12375
12376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12378 if (!SWIG_IsOK(res1)) {
12379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12380 }
12381 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12382 ecode2 = SWIG_AsVal_int(obj1, &val2);
12383 if (!SWIG_IsOK(ecode2)) {
12384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12385 }
12386 arg2 = static_cast< int >(val2);
12387 {
12388 PyThreadState* __tstate = wxPyBeginAllowThreads();
12389 (arg1)->SetPointSize(arg2);
12390 wxPyEndAllowThreads(__tstate);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 resultobj = SWIG_Py_Void();
12394 return resultobj;
12395fail:
12396 return NULL;
12397}
12398
12399
12400SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12401 PyObject *resultobj = 0;
12402 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12403 wxFontStyle arg2 ;
12404 void *argp1 = 0 ;
12405 int res1 = 0 ;
12406 int val2 ;
12407 int ecode2 = 0 ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 char * kwnames[] = {
12411 (char *) "self",(char *) "style", NULL
12412 };
12413
12414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12416 if (!SWIG_IsOK(res1)) {
12417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12418 }
12419 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12420 ecode2 = SWIG_AsVal_int(obj1, &val2);
12421 if (!SWIG_IsOK(ecode2)) {
12422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12423 }
12424 arg2 = static_cast< wxFontStyle >(val2);
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 (arg1)->SetStyle(arg2);
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
12431 resultobj = SWIG_Py_Void();
12432 return resultobj;
12433fail:
12434 return NULL;
12435}
12436
12437
12438SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12439 PyObject *resultobj = 0;
12440 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12441 wxFontWeight arg2 ;
12442 void *argp1 = 0 ;
12443 int res1 = 0 ;
12444 int val2 ;
12445 int ecode2 = 0 ;
12446 PyObject * obj0 = 0 ;
12447 PyObject * obj1 = 0 ;
12448 char * kwnames[] = {
12449 (char *) "self",(char *) "weight", NULL
12450 };
12451
12452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12454 if (!SWIG_IsOK(res1)) {
12455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12456 }
12457 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12458 ecode2 = SWIG_AsVal_int(obj1, &val2);
12459 if (!SWIG_IsOK(ecode2)) {
12460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12461 }
12462 arg2 = static_cast< wxFontWeight >(val2);
12463 {
12464 PyThreadState* __tstate = wxPyBeginAllowThreads();
12465 (arg1)->SetWeight(arg2);
12466 wxPyEndAllowThreads(__tstate);
12467 if (PyErr_Occurred()) SWIG_fail;
12468 }
12469 resultobj = SWIG_Py_Void();
12470 return resultobj;
12471fail:
12472 return NULL;
12473}
12474
12475
12476SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12477 PyObject *resultobj = 0;
12478 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12479 bool arg2 ;
12480 void *argp1 = 0 ;
12481 int res1 = 0 ;
12482 bool val2 ;
12483 int ecode2 = 0 ;
12484 PyObject * obj0 = 0 ;
12485 PyObject * obj1 = 0 ;
12486 char * kwnames[] = {
12487 (char *) "self",(char *) "underlined", NULL
12488 };
12489
12490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12492 if (!SWIG_IsOK(res1)) {
12493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12494 }
12495 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12496 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12497 if (!SWIG_IsOK(ecode2)) {
12498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12499 }
12500 arg2 = static_cast< bool >(val2);
12501 {
12502 PyThreadState* __tstate = wxPyBeginAllowThreads();
12503 (arg1)->SetUnderlined(arg2);
12504 wxPyEndAllowThreads(__tstate);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 }
12507 resultobj = SWIG_Py_Void();
12508 return resultobj;
12509fail:
12510 return NULL;
12511}
12512
12513
12514SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12515 PyObject *resultobj = 0;
12516 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12517 wxString arg2 ;
704eda0c 12518 bool result;
1bd55598
RD
12519 void *argp1 = 0 ;
12520 int res1 = 0 ;
12521 PyObject * obj0 = 0 ;
12522 PyObject * obj1 = 0 ;
12523 char * kwnames[] = {
12524 (char *) "self",(char *) "facename", NULL
12525 };
12526
12527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12529 if (!SWIG_IsOK(res1)) {
12530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12531 }
12532 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12533 {
12534 wxString* sptr = wxString_in_helper(obj1);
12535 if (sptr == NULL) SWIG_fail;
12536 arg2 = *sptr;
12537 delete sptr;
12538 }
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12541 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12542 wxPyEndAllowThreads(__tstate);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 }
704eda0c
RD
12545 {
12546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12547 }
1bd55598
RD
12548 return resultobj;
12549fail:
12550 return NULL;
12551}
12552
12553
12554SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12555 PyObject *resultobj = 0;
12556 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12557 wxFontFamily arg2 ;
12558 void *argp1 = 0 ;
12559 int res1 = 0 ;
12560 int val2 ;
12561 int ecode2 = 0 ;
12562 PyObject * obj0 = 0 ;
12563 PyObject * obj1 = 0 ;
12564 char * kwnames[] = {
12565 (char *) "self",(char *) "family", NULL
12566 };
12567
12568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12570 if (!SWIG_IsOK(res1)) {
12571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12572 }
12573 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12574 ecode2 = SWIG_AsVal_int(obj1, &val2);
12575 if (!SWIG_IsOK(ecode2)) {
12576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12577 }
12578 arg2 = static_cast< wxFontFamily >(val2);
12579 {
12580 PyThreadState* __tstate = wxPyBeginAllowThreads();
12581 (arg1)->SetFamily(arg2);
12582 wxPyEndAllowThreads(__tstate);
12583 if (PyErr_Occurred()) SWIG_fail;
12584 }
12585 resultobj = SWIG_Py_Void();
12586 return resultobj;
12587fail:
12588 return NULL;
12589}
12590
12591
12592SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12593 PyObject *resultobj = 0;
12594 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12595 wxFontEncoding arg2 ;
12596 void *argp1 = 0 ;
12597 int res1 = 0 ;
12598 int val2 ;
12599 int ecode2 = 0 ;
12600 PyObject * obj0 = 0 ;
12601 PyObject * obj1 = 0 ;
12602 char * kwnames[] = {
12603 (char *) "self",(char *) "encoding", NULL
12604 };
12605
12606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12608 if (!SWIG_IsOK(res1)) {
12609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12610 }
12611 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12612 ecode2 = SWIG_AsVal_int(obj1, &val2);
12613 if (!SWIG_IsOK(ecode2)) {
12614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12615 }
12616 arg2 = static_cast< wxFontEncoding >(val2);
12617 {
12618 PyThreadState* __tstate = wxPyBeginAllowThreads();
12619 (arg1)->SetEncoding(arg2);
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 resultobj = SWIG_Py_Void();
12624 return resultobj;
12625fail:
12626 return NULL;
12627}
12628
12629
12630SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12631 PyObject *resultobj = 0;
12632 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12633 wxString *arg2 = 0 ;
12634 bool result;
12635 void *argp1 = 0 ;
12636 int res1 = 0 ;
12637 bool temp2 = false ;
12638 PyObject * obj0 = 0 ;
12639 PyObject * obj1 = 0 ;
12640 char * kwnames[] = {
12641 (char *) "self",(char *) "s", NULL
12642 };
12643
12644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12646 if (!SWIG_IsOK(res1)) {
12647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12648 }
12649 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12650 {
12651 arg2 = wxString_in_helper(obj1);
12652 if (arg2 == NULL) SWIG_fail;
12653 temp2 = true;
12654 }
12655 {
12656 PyThreadState* __tstate = wxPyBeginAllowThreads();
12657 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12658 wxPyEndAllowThreads(__tstate);
12659 if (PyErr_Occurred()) SWIG_fail;
12660 }
12661 {
12662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12663 }
12664 {
12665 if (temp2)
12666 delete arg2;
12667 }
12668 return resultobj;
12669fail:
12670 {
12671 if (temp2)
12672 delete arg2;
12673 }
12674 return NULL;
d55e5bfc
RD
12675}
12676
12677
1bd55598
RD
12678SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12679 PyObject *resultobj = 0;
12680 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12681 wxString result;
12682 void *argp1 = 0 ;
12683 int res1 = 0 ;
12684 PyObject *swig_obj[1] ;
12685
12686 if (!args) SWIG_fail;
12687 swig_obj[0] = args;
12688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12689 if (!SWIG_IsOK(res1)) {
12690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12691 }
12692 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12693 {
12694 PyThreadState* __tstate = wxPyBeginAllowThreads();
12695 result = ((wxNativeFontInfo const *)arg1)->ToString();
12696 wxPyEndAllowThreads(__tstate);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 {
12700#if wxUSE_UNICODE
12701 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12702#else
12703 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12704#endif
12705 }
12706 return resultobj;
12707fail:
12708 return NULL;
d55e5bfc
RD
12709}
12710
12711
1bd55598
RD
12712SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12713 PyObject *resultobj = 0;
12714 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12715 wxString result;
12716 void *argp1 = 0 ;
12717 int res1 = 0 ;
12718 PyObject *swig_obj[1] ;
12719
12720 if (!args) SWIG_fail;
12721 swig_obj[0] = args;
12722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12723 if (!SWIG_IsOK(res1)) {
12724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12725 }
12726 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12727 {
12728 PyThreadState* __tstate = wxPyBeginAllowThreads();
12729 result = wxNativeFontInfo___str__(arg1);
12730 wxPyEndAllowThreads(__tstate);
12731 if (PyErr_Occurred()) SWIG_fail;
12732 }
12733 {
12734#if wxUSE_UNICODE
12735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12736#else
12737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12738#endif
12739 }
12740 return resultobj;
12741fail:
12742 return NULL;
12743}
12744
12745
12746SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12747 PyObject *resultobj = 0;
12748 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12749 wxString *arg2 = 0 ;
12750 bool result;
12751 void *argp1 = 0 ;
12752 int res1 = 0 ;
12753 bool temp2 = false ;
12754 PyObject * obj0 = 0 ;
12755 PyObject * obj1 = 0 ;
12756 char * kwnames[] = {
12757 (char *) "self",(char *) "s", NULL
12758 };
12759
12760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12762 if (!SWIG_IsOK(res1)) {
12763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12764 }
12765 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12766 {
12767 arg2 = wxString_in_helper(obj1);
12768 if (arg2 == NULL) SWIG_fail;
12769 temp2 = true;
12770 }
12771 {
12772 PyThreadState* __tstate = wxPyBeginAllowThreads();
12773 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 {
12778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12779 }
12780 {
12781 if (temp2)
12782 delete arg2;
12783 }
12784 return resultobj;
12785fail:
12786 {
12787 if (temp2)
12788 delete arg2;
12789 }
12790 return NULL;
d55e5bfc
RD
12791}
12792
12793
1bd55598
RD
12794SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12795 PyObject *resultobj = 0;
12796 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12797 wxString result;
12798 void *argp1 = 0 ;
12799 int res1 = 0 ;
12800 PyObject *swig_obj[1] ;
12801
12802 if (!args) SWIG_fail;
12803 swig_obj[0] = args;
12804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12805 if (!SWIG_IsOK(res1)) {
12806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12807 }
12808 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12809 {
12810 PyThreadState* __tstate = wxPyBeginAllowThreads();
12811 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12812 wxPyEndAllowThreads(__tstate);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 }
12815 {
36ed4f51 12816#if wxUSE_UNICODE
1bd55598 12817 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12818#else
1bd55598 12819 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12820#endif
1bd55598
RD
12821 }
12822 return resultobj;
12823fail:
12824 return NULL;
d55e5bfc
RD
12825}
12826
12827
1bd55598
RD
12828SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12829 PyObject *obj;
12830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12831 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12832 return SWIG_Py_Void();
d55e5bfc
RD
12833}
12834
1bd55598
RD
12835SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12836 return SWIG_Python_InitShadowInstance(args);
12837}
d55e5bfc 12838
1bd55598
RD
12839SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12840 PyObject *resultobj = 0;
12841 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12842 wxString *arg2 = (wxString *) 0 ;
12843 void *argp1 = 0 ;
12844 int res1 = 0 ;
12845 bool temp2 = false ;
12846 PyObject *swig_obj[2] ;
12847
12848 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12850 if (!SWIG_IsOK(res1)) {
12851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12852 }
12853 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12854 {
12855 arg2 = wxString_in_helper(swig_obj[1]);
12856 if (arg2 == NULL) SWIG_fail;
12857 temp2 = true;
12858 }
12859 if (arg1) (arg1)->facename = *arg2;
12860
12861 resultobj = SWIG_Py_Void();
12862 {
12863 if (temp2)
12864 delete arg2;
12865 }
12866 return resultobj;
12867fail:
12868 {
12869 if (temp2)
12870 delete arg2;
12871 }
12872 return NULL;
d55e5bfc
RD
12873}
12874
12875
1bd55598
RD
12876SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12877 PyObject *resultobj = 0;
12878 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12879 wxString *result = 0 ;
12880 void *argp1 = 0 ;
12881 int res1 = 0 ;
12882 PyObject *swig_obj[1] ;
12883
12884 if (!args) SWIG_fail;
12885 swig_obj[0] = args;
12886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12887 if (!SWIG_IsOK(res1)) {
12888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12889 }
12890 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12891 result = (wxString *)& ((arg1)->facename);
12892 {
12893#if wxUSE_UNICODE
12894 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12895#else
12896 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12897#endif
12898 }
12899 return resultobj;
12900fail:
12901 return NULL;
d55e5bfc
RD
12902}
12903
12904
1bd55598
RD
12905SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12906 PyObject *resultobj = 0;
12907 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12908 wxFontEncoding arg2 ;
12909 void *argp1 = 0 ;
12910 int res1 = 0 ;
12911 int val2 ;
12912 int ecode2 = 0 ;
12913 PyObject *swig_obj[2] ;
12914
12915 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12917 if (!SWIG_IsOK(res1)) {
12918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12919 }
12920 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12921 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12922 if (!SWIG_IsOK(ecode2)) {
12923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12924 }
12925 arg2 = static_cast< wxFontEncoding >(val2);
12926 if (arg1) (arg1)->encoding = arg2;
12927
12928 resultobj = SWIG_Py_Void();
12929 return resultobj;
12930fail:
12931 return NULL;
d55e5bfc
RD
12932}
12933
12934
1bd55598
RD
12935SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12936 PyObject *resultobj = 0;
12937 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12938 wxFontEncoding result;
12939 void *argp1 = 0 ;
12940 int res1 = 0 ;
12941 PyObject *swig_obj[1] ;
12942
12943 if (!args) SWIG_fail;
12944 swig_obj[0] = args;
12945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12946 if (!SWIG_IsOK(res1)) {
12947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12948 }
12949 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12950 result = (wxFontEncoding) ((arg1)->encoding);
12951 resultobj = SWIG_From_int(static_cast< int >(result));
12952 return resultobj;
12953fail:
12954 return NULL;
d07096ad
RD
12955}
12956
12957
1bd55598
RD
12958SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12959 PyObject *resultobj = 0;
12960 wxNativeEncodingInfo *result = 0 ;
12961
12962 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12963 {
12964 PyThreadState* __tstate = wxPyBeginAllowThreads();
12965 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12966 wxPyEndAllowThreads(__tstate);
12967 if (PyErr_Occurred()) SWIG_fail;
12968 }
12969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12970 return resultobj;
12971fail:
12972 return NULL;
d55e5bfc
RD
12973}
12974
12975
1bd55598
RD
12976SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12977 PyObject *resultobj = 0;
12978 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12979 void *argp1 = 0 ;
12980 int res1 = 0 ;
12981 PyObject *swig_obj[1] ;
12982
12983 if (!args) SWIG_fail;
12984 swig_obj[0] = args;
12985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12986 if (!SWIG_IsOK(res1)) {
12987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12988 }
12989 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12990 {
12991 PyThreadState* __tstate = wxPyBeginAllowThreads();
12992 delete arg1;
d55e5bfc 12993
1bd55598
RD
12994 wxPyEndAllowThreads(__tstate);
12995 if (PyErr_Occurred()) SWIG_fail;
12996 }
12997 resultobj = SWIG_Py_Void();
12998 return resultobj;
12999fail:
13000 return NULL;
13001}
13002
13003
13004SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13005 PyObject *resultobj = 0;
13006 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13007 wxString *arg2 = 0 ;
13008 bool result;
13009 void *argp1 = 0 ;
13010 int res1 = 0 ;
13011 bool temp2 = false ;
13012 PyObject * obj0 = 0 ;
13013 PyObject * obj1 = 0 ;
13014 char * kwnames[] = {
13015 (char *) "self",(char *) "s", NULL
13016 };
13017
13018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13020 if (!SWIG_IsOK(res1)) {
13021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13022 }
13023 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13024 {
13025 arg2 = wxString_in_helper(obj1);
13026 if (arg2 == NULL) SWIG_fail;
13027 temp2 = true;
13028 }
13029 {
13030 PyThreadState* __tstate = wxPyBeginAllowThreads();
13031 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13032 wxPyEndAllowThreads(__tstate);
13033 if (PyErr_Occurred()) SWIG_fail;
13034 }
13035 {
13036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13037 }
13038 {
13039 if (temp2)
13040 delete arg2;
13041 }
13042 return resultobj;
13043fail:
13044 {
13045 if (temp2)
13046 delete arg2;
13047 }
13048 return NULL;
d55e5bfc
RD
13049}
13050
13051
1bd55598
RD
13052SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13053 PyObject *resultobj = 0;
13054 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13055 wxString result;
13056 void *argp1 = 0 ;
13057 int res1 = 0 ;
13058 PyObject *swig_obj[1] ;
13059
13060 if (!args) SWIG_fail;
13061 swig_obj[0] = args;
13062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13063 if (!SWIG_IsOK(res1)) {
13064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13065 }
13066 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13067 {
13068 PyThreadState* __tstate = wxPyBeginAllowThreads();
13069 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13070 wxPyEndAllowThreads(__tstate);
13071 if (PyErr_Occurred()) SWIG_fail;
13072 }
13073 {
13074#if wxUSE_UNICODE
13075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13076#else
13077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13078#endif
13079 }
13080 return resultobj;
13081fail:
13082 return NULL;
d55e5bfc
RD
13083}
13084
13085
1bd55598
RD
13086SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13087 PyObject *obj;
13088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13089 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13090 return SWIG_Py_Void();
d55e5bfc
RD
13091}
13092
1bd55598
RD
13093SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13094 return SWIG_Python_InitShadowInstance(args);
13095}
d55e5bfc 13096
1bd55598
RD
13097SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13098 PyObject *resultobj = 0;
13099 wxFontEncoding arg1 ;
13100 wxNativeEncodingInfo *result = 0 ;
13101 int val1 ;
13102 int ecode1 = 0 ;
13103 PyObject * obj0 = 0 ;
13104 char * kwnames[] = {
13105 (char *) "encoding", NULL
13106 };
13107
13108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13109 ecode1 = SWIG_AsVal_int(obj0, &val1);
13110 if (!SWIG_IsOK(ecode1)) {
13111 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13112 }
13113 arg1 = static_cast< wxFontEncoding >(val1);
13114 {
13115 PyThreadState* __tstate = wxPyBeginAllowThreads();
13116 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13117 wxPyEndAllowThreads(__tstate);
13118 if (PyErr_Occurred()) SWIG_fail;
13119 }
13120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13121 return resultobj;
13122fail:
13123 return NULL;
13124}
13125
13126
13127SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13128 PyObject *resultobj = 0;
13129 wxNativeEncodingInfo *arg1 = 0 ;
13130 bool result;
13131 void *argp1 = 0 ;
13132 int res1 = 0 ;
13133 PyObject * obj0 = 0 ;
13134 char * kwnames[] = {
13135 (char *) "info", NULL
13136 };
13137
13138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13139 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13140 if (!SWIG_IsOK(res1)) {
13141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13142 }
13143 if (!argp1) {
13144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13145 }
13146 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 {
13154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13155 }
13156 return resultobj;
13157fail:
13158 return NULL;
d55e5bfc
RD
13159}
13160
13161
1bd55598
RD
13162SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13163 PyObject *resultobj = 0;
13164 wxFontMapper *result = 0 ;
13165
13166 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13167 {
13168 PyThreadState* __tstate = wxPyBeginAllowThreads();
13169 result = (wxFontMapper *)new wxFontMapper();
13170 wxPyEndAllowThreads(__tstate);
13171 if (PyErr_Occurred()) SWIG_fail;
13172 }
13173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13174 return resultobj;
13175fail:
13176 return NULL;
d55e5bfc
RD
13177}
13178
13179
1bd55598
RD
13180SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13181 PyObject *resultobj = 0;
13182 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13183 void *argp1 = 0 ;
13184 int res1 = 0 ;
13185 PyObject *swig_obj[1] ;
13186
13187 if (!args) SWIG_fail;
13188 swig_obj[0] = args;
13189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13190 if (!SWIG_IsOK(res1)) {
13191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13192 }
13193 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13194 {
13195 PyThreadState* __tstate = wxPyBeginAllowThreads();
13196 delete arg1;
d55e5bfc 13197
1bd55598
RD
13198 wxPyEndAllowThreads(__tstate);
13199 if (PyErr_Occurred()) SWIG_fail;
13200 }
13201 resultobj = SWIG_Py_Void();
13202 return resultobj;
13203fail:
13204 return NULL;
d55e5bfc
RD
13205}
13206
13207
1bd55598
RD
13208SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13209 PyObject *resultobj = 0;
13210 wxFontMapper *result = 0 ;
13211
13212 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13213 {
13214 PyThreadState* __tstate = wxPyBeginAllowThreads();
13215 result = (wxFontMapper *)wxFontMapper::Get();
13216 wxPyEndAllowThreads(__tstate);
13217 if (PyErr_Occurred()) SWIG_fail;
13218 }
13219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13220 return resultobj;
13221fail:
13222 return NULL;
13223}
13224
13225
13226SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13227 PyObject *resultobj = 0;
13228 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13229 wxFontMapper *result = 0 ;
13230 void *argp1 = 0 ;
13231 int res1 = 0 ;
13232 PyObject * obj0 = 0 ;
13233 char * kwnames[] = {
13234 (char *) "mapper", NULL
13235 };
13236
13237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13239 if (!SWIG_IsOK(res1)) {
13240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13241 }
13242 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13243 {
13244 PyThreadState* __tstate = wxPyBeginAllowThreads();
13245 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13246 wxPyEndAllowThreads(__tstate);
13247 if (PyErr_Occurred()) SWIG_fail;
13248 }
13249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13250 return resultobj;
13251fail:
13252 return NULL;
13253}
13254
13255
13256SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13257 PyObject *resultobj = 0;
13258 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13259 wxString *arg2 = 0 ;
13260 bool arg3 = (bool) true ;
13261 wxFontEncoding result;
13262 void *argp1 = 0 ;
13263 int res1 = 0 ;
13264 bool temp2 = false ;
13265 bool val3 ;
13266 int ecode3 = 0 ;
13267 PyObject * obj0 = 0 ;
13268 PyObject * obj1 = 0 ;
13269 PyObject * obj2 = 0 ;
13270 char * kwnames[] = {
13271 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13272 };
13273
13274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13276 if (!SWIG_IsOK(res1)) {
13277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13278 }
13279 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13280 {
13281 arg2 = wxString_in_helper(obj1);
13282 if (arg2 == NULL) SWIG_fail;
13283 temp2 = true;
13284 }
13285 if (obj2) {
13286 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13287 if (!SWIG_IsOK(ecode3)) {
13288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13289 }
13290 arg3 = static_cast< bool >(val3);
13291 }
13292 {
13293 PyThreadState* __tstate = wxPyBeginAllowThreads();
13294 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13295 wxPyEndAllowThreads(__tstate);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 resultobj = SWIG_From_int(static_cast< int >(result));
13299 {
13300 if (temp2)
13301 delete arg2;
13302 }
13303 return resultobj;
13304fail:
13305 {
13306 if (temp2)
13307 delete arg2;
13308 }
13309 return NULL;
d55e5bfc
RD
13310}
13311
13312
1bd55598
RD
13313SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13314 PyObject *resultobj = 0;
13315 size_t result;
13316
13317 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13318 {
13319 PyThreadState* __tstate = wxPyBeginAllowThreads();
13320 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13321 wxPyEndAllowThreads(__tstate);
13322 if (PyErr_Occurred()) SWIG_fail;
13323 }
13324 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13325 return resultobj;
13326fail:
13327 return NULL;
13328}
13329
13330
13331SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13332 PyObject *resultobj = 0;
13333 size_t arg1 ;
13334 wxFontEncoding result;
13335 size_t val1 ;
13336 int ecode1 = 0 ;
13337 PyObject * obj0 = 0 ;
13338 char * kwnames[] = {
13339 (char *) "n", NULL
13340 };
13341
13342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13343 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13344 if (!SWIG_IsOK(ecode1)) {
13345 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13346 }
13347 arg1 = static_cast< size_t >(val1);
13348 {
13349 PyThreadState* __tstate = wxPyBeginAllowThreads();
13350 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13351 wxPyEndAllowThreads(__tstate);
13352 if (PyErr_Occurred()) SWIG_fail;
13353 }
13354 resultobj = SWIG_From_int(static_cast< int >(result));
13355 return resultobj;
13356fail:
13357 return NULL;
13358}
13359
13360
13361SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13362 PyObject *resultobj = 0;
13363 wxFontEncoding arg1 ;
13364 wxString result;
13365 int val1 ;
13366 int ecode1 = 0 ;
13367 PyObject * obj0 = 0 ;
13368 char * kwnames[] = {
13369 (char *) "encoding", NULL
13370 };
13371
13372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13373 ecode1 = SWIG_AsVal_int(obj0, &val1);
13374 if (!SWIG_IsOK(ecode1)) {
13375 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13376 }
13377 arg1 = static_cast< wxFontEncoding >(val1);
13378 {
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 result = wxFontMapper::GetEncodingName(arg1);
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 {
13385#if wxUSE_UNICODE
13386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13387#else
13388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13389#endif
13390 }
13391 return resultobj;
13392fail:
13393 return NULL;
d55e5bfc
RD
13394}
13395
13396
1bd55598
RD
13397SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13398 PyObject *resultobj = 0;
13399 wxFontEncoding arg1 ;
13400 wxString result;
13401 int val1 ;
13402 int ecode1 = 0 ;
13403 PyObject * obj0 = 0 ;
13404 char * kwnames[] = {
13405 (char *) "encoding", NULL
13406 };
13407
13408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13409 ecode1 = SWIG_AsVal_int(obj0, &val1);
13410 if (!SWIG_IsOK(ecode1)) {
13411 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13412 }
13413 arg1 = static_cast< wxFontEncoding >(val1);
13414 {
13415 PyThreadState* __tstate = wxPyBeginAllowThreads();
13416 result = wxFontMapper::GetEncodingDescription(arg1);
13417 wxPyEndAllowThreads(__tstate);
13418 if (PyErr_Occurred()) SWIG_fail;
13419 }
13420 {
13421#if wxUSE_UNICODE
13422 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13423#else
13424 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13425#endif
13426 }
13427 return resultobj;
13428fail:
13429 return NULL;
d55e5bfc
RD
13430}
13431
13432
1bd55598
RD
13433SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13434 PyObject *resultobj = 0;
13435 wxString *arg1 = 0 ;
13436 wxFontEncoding result;
13437 bool temp1 = false ;
13438 PyObject * obj0 = 0 ;
13439 char * kwnames[] = {
13440 (char *) "name", NULL
13441 };
13442
13443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13444 {
13445 arg1 = wxString_in_helper(obj0);
13446 if (arg1 == NULL) SWIG_fail;
13447 temp1 = true;
13448 }
13449 {
13450 PyThreadState* __tstate = wxPyBeginAllowThreads();
13451 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13452 wxPyEndAllowThreads(__tstate);
13453 if (PyErr_Occurred()) SWIG_fail;
13454 }
13455 resultobj = SWIG_From_int(static_cast< int >(result));
13456 {
13457 if (temp1)
13458 delete arg1;
13459 }
13460 return resultobj;
13461fail:
13462 {
13463 if (temp1)
13464 delete arg1;
13465 }
13466 return NULL;
d55e5bfc
RD
13467}
13468
13469
1bd55598
RD
13470SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13471 PyObject *resultobj = 0;
13472 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13473 wxString *arg2 = 0 ;
13474 void *argp1 = 0 ;
13475 int res1 = 0 ;
13476 bool temp2 = false ;
13477 PyObject * obj0 = 0 ;
13478 PyObject * obj1 = 0 ;
13479 char * kwnames[] = {
13480 (char *) "self",(char *) "prefix", NULL
13481 };
13482
13483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13485 if (!SWIG_IsOK(res1)) {
13486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13487 }
13488 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13489 {
13490 arg2 = wxString_in_helper(obj1);
13491 if (arg2 == NULL) SWIG_fail;
13492 temp2 = true;
13493 }
13494 {
13495 PyThreadState* __tstate = wxPyBeginAllowThreads();
13496 (arg1)->SetConfigPath((wxString const &)*arg2);
13497 wxPyEndAllowThreads(__tstate);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 }
13500 resultobj = SWIG_Py_Void();
13501 {
13502 if (temp2)
13503 delete arg2;
13504 }
13505 return resultobj;
13506fail:
13507 {
13508 if (temp2)
13509 delete arg2;
13510 }
13511 return NULL;
13512}
13513
13514
13515SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13516 PyObject *resultobj = 0;
13517 wxString result;
13518
13519 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
13522 result = wxFontMapper::GetDefaultConfigPath();
13523 wxPyEndAllowThreads(__tstate);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 {
13527#if wxUSE_UNICODE
13528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13529#else
13530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13531#endif
13532 }
13533 return resultobj;
13534fail:
13535 return NULL;
13536}
13537
13538
13539SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13540 PyObject *resultobj = 0;
13541 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13542 wxFontEncoding arg2 ;
13543 wxString const &arg3_defvalue = wxPyEmptyString ;
13544 wxString *arg3 = (wxString *) &arg3_defvalue ;
13545 bool arg4 = (bool) true ;
13546 PyObject *result = 0 ;
13547 void *argp1 = 0 ;
13548 int res1 = 0 ;
13549 int val2 ;
13550 int ecode2 = 0 ;
13551 bool temp3 = false ;
13552 bool val4 ;
13553 int ecode4 = 0 ;
13554 PyObject * obj0 = 0 ;
13555 PyObject * obj1 = 0 ;
13556 PyObject * obj2 = 0 ;
13557 PyObject * obj3 = 0 ;
13558 char * kwnames[] = {
13559 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13560 };
13561
13562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13564 if (!SWIG_IsOK(res1)) {
13565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13566 }
13567 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13568 ecode2 = SWIG_AsVal_int(obj1, &val2);
13569 if (!SWIG_IsOK(ecode2)) {
13570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13571 }
13572 arg2 = static_cast< wxFontEncoding >(val2);
13573 if (obj2) {
36ed4f51 13574 {
1bd55598
RD
13575 arg3 = wxString_in_helper(obj2);
13576 if (arg3 == NULL) SWIG_fail;
13577 temp3 = true;
36ed4f51 13578 }
1bd55598
RD
13579 }
13580 if (obj3) {
13581 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13582 if (!SWIG_IsOK(ecode4)) {
13583 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13584 }
13585 arg4 = static_cast< bool >(val4);
13586 }
13587 {
13588 PyThreadState* __tstate = wxPyBeginAllowThreads();
13589 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13590 wxPyEndAllowThreads(__tstate);
13591 if (PyErr_Occurred()) SWIG_fail;
13592 }
13593 resultobj = result;
13594 {
13595 if (temp3)
13596 delete arg3;
13597 }
13598 return resultobj;
13599fail:
13600 {
13601 if (temp3)
13602 delete arg3;
13603 }
13604 return NULL;
13605}
13606
13607
13608SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13609 PyObject *resultobj = 0;
13610 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13611 wxFontEncoding arg2 ;
13612 wxString const &arg3_defvalue = wxPyEmptyString ;
13613 wxString *arg3 = (wxString *) &arg3_defvalue ;
13614 bool result;
13615 void *argp1 = 0 ;
13616 int res1 = 0 ;
13617 int val2 ;
13618 int ecode2 = 0 ;
13619 bool temp3 = false ;
13620 PyObject * obj0 = 0 ;
13621 PyObject * obj1 = 0 ;
13622 PyObject * obj2 = 0 ;
13623 char * kwnames[] = {
13624 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13625 };
13626
13627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13629 if (!SWIG_IsOK(res1)) {
13630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13631 }
13632 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13633 ecode2 = SWIG_AsVal_int(obj1, &val2);
13634 if (!SWIG_IsOK(ecode2)) {
13635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13636 }
13637 arg2 = static_cast< wxFontEncoding >(val2);
13638 if (obj2) {
36ed4f51 13639 {
1bd55598
RD
13640 arg3 = wxString_in_helper(obj2);
13641 if (arg3 == NULL) SWIG_fail;
13642 temp3 = true;
36ed4f51 13643 }
1bd55598
RD
13644 }
13645 {
13646 PyThreadState* __tstate = wxPyBeginAllowThreads();
13647 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13648 wxPyEndAllowThreads(__tstate);
13649 if (PyErr_Occurred()) SWIG_fail;
13650 }
13651 {
13652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13653 }
13654 {
13655 if (temp3)
13656 delete arg3;
13657 }
13658 return resultobj;
13659fail:
13660 {
13661 if (temp3)
13662 delete arg3;
13663 }
13664 return NULL;
13665}
13666
13667
13668SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13669 PyObject *resultobj = 0;
13670 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13671 wxWindow *arg2 = (wxWindow *) 0 ;
13672 void *argp1 = 0 ;
13673 int res1 = 0 ;
13674 void *argp2 = 0 ;
13675 int res2 = 0 ;
13676 PyObject * obj0 = 0 ;
13677 PyObject * obj1 = 0 ;
13678 char * kwnames[] = {
13679 (char *) "self",(char *) "parent", NULL
13680 };
13681
13682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13684 if (!SWIG_IsOK(res1)) {
13685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13686 }
13687 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13689 if (!SWIG_IsOK(res2)) {
13690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13691 }
13692 arg2 = reinterpret_cast< wxWindow * >(argp2);
13693 {
13694 PyThreadState* __tstate = wxPyBeginAllowThreads();
13695 (arg1)->SetDialogParent(arg2);
13696 wxPyEndAllowThreads(__tstate);
13697 if (PyErr_Occurred()) SWIG_fail;
13698 }
13699 resultobj = SWIG_Py_Void();
13700 return resultobj;
13701fail:
13702 return NULL;
13703}
13704
13705
13706SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13707 PyObject *resultobj = 0;
13708 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13709 wxString *arg2 = 0 ;
13710 void *argp1 = 0 ;
13711 int res1 = 0 ;
13712 bool temp2 = false ;
13713 PyObject * obj0 = 0 ;
13714 PyObject * obj1 = 0 ;
13715 char * kwnames[] = {
13716 (char *) "self",(char *) "title", NULL
13717 };
13718
13719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13721 if (!SWIG_IsOK(res1)) {
13722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13723 }
13724 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13725 {
13726 arg2 = wxString_in_helper(obj1);
13727 if (arg2 == NULL) SWIG_fail;
13728 temp2 = true;
13729 }
13730 {
13731 PyThreadState* __tstate = wxPyBeginAllowThreads();
13732 (arg1)->SetDialogTitle((wxString const &)*arg2);
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 resultobj = SWIG_Py_Void();
13737 {
13738 if (temp2)
13739 delete arg2;
13740 }
13741 return resultobj;
13742fail:
13743 {
13744 if (temp2)
13745 delete arg2;
13746 }
13747 return NULL;
13748}
13749
13750
13751SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13752 PyObject *obj;
13753 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13754 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13755 return SWIG_Py_Void();
13756}
13757
13758SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13759 return SWIG_Python_InitShadowInstance(args);
13760}
13761
13762SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj = 0;
13764 int arg1 ;
13765 int arg2 ;
13766 int arg3 ;
13767 int arg4 ;
13768 bool arg5 = (bool) false ;
13769 wxString const &arg6_defvalue = wxPyEmptyString ;
13770 wxString *arg6 = (wxString *) &arg6_defvalue ;
13771 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13772 wxFont *result = 0 ;
13773 int val1 ;
13774 int ecode1 = 0 ;
13775 int val2 ;
13776 int ecode2 = 0 ;
13777 int val3 ;
13778 int ecode3 = 0 ;
13779 int val4 ;
13780 int ecode4 = 0 ;
13781 bool val5 ;
13782 int ecode5 = 0 ;
13783 bool temp6 = false ;
13784 int val7 ;
13785 int ecode7 = 0 ;
13786 PyObject * obj0 = 0 ;
13787 PyObject * obj1 = 0 ;
13788 PyObject * obj2 = 0 ;
13789 PyObject * obj3 = 0 ;
13790 PyObject * obj4 = 0 ;
13791 PyObject * obj5 = 0 ;
13792 PyObject * obj6 = 0 ;
13793 char * kwnames[] = {
13794 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13795 };
13796
13797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13798 ecode1 = SWIG_AsVal_int(obj0, &val1);
13799 if (!SWIG_IsOK(ecode1)) {
13800 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13801 }
13802 arg1 = static_cast< int >(val1);
13803 ecode2 = SWIG_AsVal_int(obj1, &val2);
13804 if (!SWIG_IsOK(ecode2)) {
13805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13806 }
13807 arg2 = static_cast< int >(val2);
13808 ecode3 = SWIG_AsVal_int(obj2, &val3);
13809 if (!SWIG_IsOK(ecode3)) {
13810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13811 }
13812 arg3 = static_cast< int >(val3);
13813 ecode4 = SWIG_AsVal_int(obj3, &val4);
13814 if (!SWIG_IsOK(ecode4)) {
13815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13816 }
13817 arg4 = static_cast< int >(val4);
13818 if (obj4) {
13819 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13820 if (!SWIG_IsOK(ecode5)) {
13821 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13822 }
13823 arg5 = static_cast< bool >(val5);
13824 }
13825 if (obj5) {
d55e5bfc 13826 {
1bd55598
RD
13827 arg6 = wxString_in_helper(obj5);
13828 if (arg6 == NULL) SWIG_fail;
13829 temp6 = true;
d55e5bfc 13830 }
1bd55598
RD
13831 }
13832 if (obj6) {
13833 ecode7 = SWIG_AsVal_int(obj6, &val7);
13834 if (!SWIG_IsOK(ecode7)) {
13835 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13836 }
13837 arg7 = static_cast< wxFontEncoding >(val7);
13838 }
13839 {
13840 if (!wxPyCheckForApp()) SWIG_fail;
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13847 {
13848 if (temp6)
13849 delete arg6;
13850 }
13851 return resultobj;
13852fail:
13853 {
13854 if (temp6)
13855 delete arg6;
13856 }
13857 return NULL;
d55e5bfc
RD
13858}
13859
13860
1bd55598
RD
13861SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13862 PyObject *resultobj = 0;
13863 wxFont *arg1 = (wxFont *) 0 ;
13864 void *argp1 = 0 ;
13865 int res1 = 0 ;
13866 PyObject *swig_obj[1] ;
13867
13868 if (!args) SWIG_fail;
13869 swig_obj[0] = args;
13870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13871 if (!SWIG_IsOK(res1)) {
13872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13873 }
13874 arg1 = reinterpret_cast< wxFont * >(argp1);
13875 {
13876 PyThreadState* __tstate = wxPyBeginAllowThreads();
13877 delete arg1;
d55e5bfc 13878
1bd55598
RD
13879 wxPyEndAllowThreads(__tstate);
13880 if (PyErr_Occurred()) SWIG_fail;
13881 }
13882 resultobj = SWIG_Py_Void();
13883 return resultobj;
13884fail:
13885 return NULL;
13886}
13887
13888
13889SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13890 PyObject *resultobj = 0;
13891 wxNativeFontInfo *arg1 = 0 ;
13892 wxFont *result = 0 ;
13893 void *argp1 = 0 ;
13894 int res1 = 0 ;
13895 PyObject * obj0 = 0 ;
13896 char * kwnames[] = {
13897 (char *) "info", NULL
13898 };
13899
13900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13901 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13902 if (!SWIG_IsOK(res1)) {
13903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13904 }
13905 if (!argp1) {
13906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13907 }
13908 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13909 {
13910 if (!wxPyCheckForApp()) SWIG_fail;
13911 PyThreadState* __tstate = wxPyBeginAllowThreads();
13912 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13913 wxPyEndAllowThreads(__tstate);
13914 if (PyErr_Occurred()) SWIG_fail;
13915 }
13916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13917 return resultobj;
13918fail:
13919 return NULL;
d55e5bfc
RD
13920}
13921
13922
1bd55598
RD
13923SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13924 PyObject *resultobj = 0;
13925 wxString *arg1 = 0 ;
13926 wxFont *result = 0 ;
13927 bool temp1 = false ;
13928 PyObject * obj0 = 0 ;
13929 char * kwnames[] = {
13930 (char *) "info", NULL
13931 };
13932
13933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13934 {
13935 arg1 = wxString_in_helper(obj0);
13936 if (arg1 == NULL) SWIG_fail;
13937 temp1 = true;
13938 }
13939 {
13940 if (!wxPyCheckForApp()) SWIG_fail;
13941 PyThreadState* __tstate = wxPyBeginAllowThreads();
13942 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13943 wxPyEndAllowThreads(__tstate);
13944 if (PyErr_Occurred()) SWIG_fail;
13945 }
13946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13947 {
13948 if (temp1)
13949 delete arg1;
13950 }
13951 return resultobj;
13952fail:
13953 {
13954 if (temp1)
13955 delete arg1;
13956 }
13957 return NULL;
13958}
13959
13960
13961SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13962 PyObject *resultobj = 0;
13963 int arg1 ;
13964 wxFontFamily arg2 ;
13965 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13966 wxString const &arg4_defvalue = wxPyEmptyString ;
13967 wxString *arg4 = (wxString *) &arg4_defvalue ;
13968 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13969 wxFont *result = 0 ;
13970 int val1 ;
13971 int ecode1 = 0 ;
13972 int val2 ;
13973 int ecode2 = 0 ;
13974 int val3 ;
13975 int ecode3 = 0 ;
13976 bool temp4 = false ;
13977 int val5 ;
13978 int ecode5 = 0 ;
13979 PyObject * obj0 = 0 ;
13980 PyObject * obj1 = 0 ;
13981 PyObject * obj2 = 0 ;
13982 PyObject * obj3 = 0 ;
13983 PyObject * obj4 = 0 ;
13984 char * kwnames[] = {
13985 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13986 };
13987
13988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13989 ecode1 = SWIG_AsVal_int(obj0, &val1);
13990 if (!SWIG_IsOK(ecode1)) {
13991 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13992 }
13993 arg1 = static_cast< int >(val1);
13994 ecode2 = SWIG_AsVal_int(obj1, &val2);
13995 if (!SWIG_IsOK(ecode2)) {
13996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13997 }
13998 arg2 = static_cast< wxFontFamily >(val2);
13999 if (obj2) {
14000 ecode3 = SWIG_AsVal_int(obj2, &val3);
14001 if (!SWIG_IsOK(ecode3)) {
14002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14003 }
14004 arg3 = static_cast< int >(val3);
14005 }
14006 if (obj3) {
36ed4f51 14007 {
1bd55598
RD
14008 arg4 = wxString_in_helper(obj3);
14009 if (arg4 == NULL) SWIG_fail;
14010 temp4 = true;
36ed4f51 14011 }
1bd55598
RD
14012 }
14013 if (obj4) {
14014 ecode5 = SWIG_AsVal_int(obj4, &val5);
14015 if (!SWIG_IsOK(ecode5)) {
14016 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14017 }
14018 arg5 = static_cast< wxFontEncoding >(val5);
14019 }
14020 {
14021 if (!wxPyCheckForApp()) SWIG_fail;
14022 PyThreadState* __tstate = wxPyBeginAllowThreads();
14023 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14028 {
14029 if (temp4)
14030 delete arg4;
14031 }
14032 return resultobj;
14033fail:
14034 {
14035 if (temp4)
14036 delete arg4;
14037 }
14038 return NULL;
14039}
14040
14041
14042SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14043 PyObject *resultobj = 0;
14044 wxSize *arg1 = 0 ;
14045 int arg2 ;
14046 int arg3 ;
14047 int arg4 ;
14048 bool arg5 = (bool) false ;
14049 wxString const &arg6_defvalue = wxEmptyString ;
14050 wxString *arg6 = (wxString *) &arg6_defvalue ;
14051 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14052 wxFont *result = 0 ;
14053 wxSize temp1 ;
14054 int val2 ;
14055 int ecode2 = 0 ;
14056 int val3 ;
14057 int ecode3 = 0 ;
14058 int val4 ;
14059 int ecode4 = 0 ;
14060 bool val5 ;
14061 int ecode5 = 0 ;
14062 bool temp6 = false ;
14063 int val7 ;
14064 int ecode7 = 0 ;
14065 PyObject * obj0 = 0 ;
14066 PyObject * obj1 = 0 ;
14067 PyObject * obj2 = 0 ;
14068 PyObject * obj3 = 0 ;
14069 PyObject * obj4 = 0 ;
14070 PyObject * obj5 = 0 ;
14071 PyObject * obj6 = 0 ;
14072 char * kwnames[] = {
14073 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14074 };
14075
14076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14077 {
14078 arg1 = &temp1;
14079 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14080 }
14081 ecode2 = SWIG_AsVal_int(obj1, &val2);
14082 if (!SWIG_IsOK(ecode2)) {
14083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14084 }
14085 arg2 = static_cast< int >(val2);
14086 ecode3 = SWIG_AsVal_int(obj2, &val3);
14087 if (!SWIG_IsOK(ecode3)) {
14088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14089 }
14090 arg3 = static_cast< int >(val3);
14091 ecode4 = SWIG_AsVal_int(obj3, &val4);
14092 if (!SWIG_IsOK(ecode4)) {
14093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14094 }
14095 arg4 = static_cast< int >(val4);
14096 if (obj4) {
14097 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14098 if (!SWIG_IsOK(ecode5)) {
14099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14100 }
14101 arg5 = static_cast< bool >(val5);
14102 }
14103 if (obj5) {
d55e5bfc 14104 {
1bd55598
RD
14105 arg6 = wxString_in_helper(obj5);
14106 if (arg6 == NULL) SWIG_fail;
14107 temp6 = true;
d55e5bfc 14108 }
1bd55598
RD
14109 }
14110 if (obj6) {
14111 ecode7 = SWIG_AsVal_int(obj6, &val7);
14112 if (!SWIG_IsOK(ecode7)) {
14113 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14114 }
14115 arg7 = static_cast< wxFontEncoding >(val7);
14116 }
14117 {
14118 if (!wxPyCheckForApp()) SWIG_fail;
14119 PyThreadState* __tstate = wxPyBeginAllowThreads();
14120 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14125 {
14126 if (temp6)
14127 delete arg6;
14128 }
14129 return resultobj;
14130fail:
14131 {
14132 if (temp6)
14133 delete arg6;
14134 }
14135 return NULL;
14136}
14137
14138
14139SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14140 PyObject *resultobj = 0;
14141 wxSize *arg1 = 0 ;
14142 wxFontFamily arg2 ;
14143 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14144 wxString const &arg4_defvalue = wxEmptyString ;
14145 wxString *arg4 = (wxString *) &arg4_defvalue ;
14146 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14147 wxFont *result = 0 ;
14148 wxSize temp1 ;
14149 int val2 ;
14150 int ecode2 = 0 ;
14151 int val3 ;
14152 int ecode3 = 0 ;
14153 bool temp4 = false ;
14154 int val5 ;
14155 int ecode5 = 0 ;
14156 PyObject * obj0 = 0 ;
14157 PyObject * obj1 = 0 ;
14158 PyObject * obj2 = 0 ;
14159 PyObject * obj3 = 0 ;
14160 PyObject * obj4 = 0 ;
14161 char * kwnames[] = {
14162 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14163 };
14164
14165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14166 {
14167 arg1 = &temp1;
14168 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14169 }
14170 ecode2 = SWIG_AsVal_int(obj1, &val2);
14171 if (!SWIG_IsOK(ecode2)) {
14172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14173 }
14174 arg2 = static_cast< wxFontFamily >(val2);
14175 if (obj2) {
14176 ecode3 = SWIG_AsVal_int(obj2, &val3);
14177 if (!SWIG_IsOK(ecode3)) {
14178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14179 }
14180 arg3 = static_cast< int >(val3);
14181 }
14182 if (obj3) {
36ed4f51 14183 {
1bd55598
RD
14184 arg4 = wxString_in_helper(obj3);
14185 if (arg4 == NULL) SWIG_fail;
14186 temp4 = true;
36ed4f51 14187 }
1bd55598
RD
14188 }
14189 if (obj4) {
14190 ecode5 = SWIG_AsVal_int(obj4, &val5);
14191 if (!SWIG_IsOK(ecode5)) {
14192 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14193 }
14194 arg5 = static_cast< wxFontEncoding >(val5);
14195 }
14196 {
14197 if (!wxPyCheckForApp()) SWIG_fail;
14198 PyThreadState* __tstate = wxPyBeginAllowThreads();
14199 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14200 wxPyEndAllowThreads(__tstate);
14201 if (PyErr_Occurred()) SWIG_fail;
14202 }
14203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14204 {
14205 if (temp4)
14206 delete arg4;
14207 }
14208 return resultobj;
14209fail:
14210 {
14211 if (temp4)
14212 delete arg4;
14213 }
14214 return NULL;
d55e5bfc
RD
14215}
14216
14217
b39fe951 14218SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14219 PyObject *resultobj = 0;
14220 wxFont *arg1 = (wxFont *) 0 ;
14221 bool result;
14222 void *argp1 = 0 ;
14223 int res1 = 0 ;
14224 PyObject *swig_obj[1] ;
14225
14226 if (!args) SWIG_fail;
14227 swig_obj[0] = args;
14228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14229 if (!SWIG_IsOK(res1)) {
b39fe951 14230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14231 }
14232 arg1 = reinterpret_cast< wxFont * >(argp1);
14233 {
14234 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14235 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14236 wxPyEndAllowThreads(__tstate);
14237 if (PyErr_Occurred()) SWIG_fail;
14238 }
14239 {
14240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14241 }
14242 return resultobj;
14243fail:
14244 return NULL;
14245}
14246
14247
14248SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14249 PyObject *resultobj = 0;
14250 wxFont *arg1 = (wxFont *) 0 ;
14251 wxFont *arg2 = (wxFont *) 0 ;
14252 bool result;
14253 void *argp1 = 0 ;
14254 int res1 = 0 ;
14255 void *argp2 = 0 ;
14256 int res2 = 0 ;
14257 PyObject * obj0 = 0 ;
14258 PyObject * obj1 = 0 ;
14259 char * kwnames[] = {
14260 (char *) "self",(char *) "other", NULL
14261 };
14262
14263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14265 if (!SWIG_IsOK(res1)) {
14266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14267 }
14268 arg1 = reinterpret_cast< wxFont * >(argp1);
14269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14270 if (!SWIG_IsOK(res2)) {
14271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14272 }
14273 arg2 = reinterpret_cast< wxFont * >(argp2);
14274 {
14275 PyThreadState* __tstate = wxPyBeginAllowThreads();
14276 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14277 wxPyEndAllowThreads(__tstate);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 }
14280 {
14281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14282 }
14283 return resultobj;
14284fail:
14285 return NULL;
14286}
14287
14288
14289SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj = 0;
14291 wxFont *arg1 = (wxFont *) 0 ;
14292 wxFont *arg2 = (wxFont *) 0 ;
14293 bool result;
14294 void *argp1 = 0 ;
14295 int res1 = 0 ;
14296 void *argp2 = 0 ;
14297 int res2 = 0 ;
14298 PyObject * obj0 = 0 ;
14299 PyObject * obj1 = 0 ;
14300 char * kwnames[] = {
14301 (char *) "self",(char *) "other", NULL
14302 };
14303
14304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14306 if (!SWIG_IsOK(res1)) {
14307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14308 }
14309 arg1 = reinterpret_cast< wxFont * >(argp1);
14310 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14311 if (!SWIG_IsOK(res2)) {
14312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14313 }
14314 arg2 = reinterpret_cast< wxFont * >(argp2);
14315 {
14316 PyThreadState* __tstate = wxPyBeginAllowThreads();
14317 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14318 wxPyEndAllowThreads(__tstate);
14319 if (PyErr_Occurred()) SWIG_fail;
14320 }
14321 {
14322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14323 }
14324 return resultobj;
14325fail:
14326 return NULL;
d55e5bfc
RD
14327}
14328
14329
1bd55598
RD
14330SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14331 PyObject *resultobj = 0;
14332 wxFont *arg1 = (wxFont *) 0 ;
14333 int result;
14334 void *argp1 = 0 ;
14335 int res1 = 0 ;
14336 PyObject *swig_obj[1] ;
14337
14338 if (!args) SWIG_fail;
14339 swig_obj[0] = args;
14340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14341 if (!SWIG_IsOK(res1)) {
14342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14343 }
14344 arg1 = reinterpret_cast< wxFont * >(argp1);
14345 {
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 result = (int)((wxFont const *)arg1)->GetPointSize();
14348 wxPyEndAllowThreads(__tstate);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 }
14351 resultobj = SWIG_From_int(static_cast< int >(result));
14352 return resultobj;
14353fail:
14354 return NULL;
d55e5bfc
RD
14355}
14356
14357
1bd55598
RD
14358SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14359 PyObject *resultobj = 0;
14360 wxFont *arg1 = (wxFont *) 0 ;
14361 wxSize result;
14362 void *argp1 = 0 ;
14363 int res1 = 0 ;
14364 PyObject *swig_obj[1] ;
14365
14366 if (!args) SWIG_fail;
14367 swig_obj[0] = args;
14368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14369 if (!SWIG_IsOK(res1)) {
14370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14371 }
14372 arg1 = reinterpret_cast< wxFont * >(argp1);
14373 {
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 result = ((wxFont const *)arg1)->GetPixelSize();
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14380 return resultobj;
14381fail:
14382 return NULL;
d55e5bfc
RD
14383}
14384
14385
1bd55598
RD
14386SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14387 PyObject *resultobj = 0;
14388 wxFont *arg1 = (wxFont *) 0 ;
14389 bool result;
14390 void *argp1 = 0 ;
14391 int res1 = 0 ;
14392 PyObject *swig_obj[1] ;
14393
14394 if (!args) SWIG_fail;
14395 swig_obj[0] = args;
14396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14397 if (!SWIG_IsOK(res1)) {
14398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14399 }
14400 arg1 = reinterpret_cast< wxFont * >(argp1);
14401 {
14402 PyThreadState* __tstate = wxPyBeginAllowThreads();
14403 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14404 wxPyEndAllowThreads(__tstate);
14405 if (PyErr_Occurred()) SWIG_fail;
14406 }
14407 {
14408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14409 }
14410 return resultobj;
14411fail:
14412 return NULL;
d55e5bfc
RD
14413}
14414
14415
1bd55598
RD
14416SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14417 PyObject *resultobj = 0;
14418 wxFont *arg1 = (wxFont *) 0 ;
14419 int result;
14420 void *argp1 = 0 ;
14421 int res1 = 0 ;
14422 PyObject *swig_obj[1] ;
14423
14424 if (!args) SWIG_fail;
14425 swig_obj[0] = args;
14426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14427 if (!SWIG_IsOK(res1)) {
14428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14429 }
14430 arg1 = reinterpret_cast< wxFont * >(argp1);
14431 {
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 result = (int)((wxFont const *)arg1)->GetFamily();
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 resultobj = SWIG_From_int(static_cast< int >(result));
14438 return resultobj;
14439fail:
14440 return NULL;
d55e5bfc
RD
14441}
14442
14443
1bd55598
RD
14444SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14445 PyObject *resultobj = 0;
14446 wxFont *arg1 = (wxFont *) 0 ;
14447 int result;
14448 void *argp1 = 0 ;
14449 int res1 = 0 ;
14450 PyObject *swig_obj[1] ;
14451
14452 if (!args) SWIG_fail;
14453 swig_obj[0] = args;
14454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14455 if (!SWIG_IsOK(res1)) {
14456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14457 }
14458 arg1 = reinterpret_cast< wxFont * >(argp1);
14459 {
14460 PyThreadState* __tstate = wxPyBeginAllowThreads();
14461 result = (int)((wxFont const *)arg1)->GetStyle();
14462 wxPyEndAllowThreads(__tstate);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 resultobj = SWIG_From_int(static_cast< int >(result));
14466 return resultobj;
14467fail:
14468 return NULL;
d55e5bfc
RD
14469}
14470
14471
1bd55598
RD
14472SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14473 PyObject *resultobj = 0;
14474 wxFont *arg1 = (wxFont *) 0 ;
14475 int result;
14476 void *argp1 = 0 ;
14477 int res1 = 0 ;
14478 PyObject *swig_obj[1] ;
14479
14480 if (!args) SWIG_fail;
14481 swig_obj[0] = args;
14482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14483 if (!SWIG_IsOK(res1)) {
14484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14485 }
14486 arg1 = reinterpret_cast< wxFont * >(argp1);
14487 {
14488 PyThreadState* __tstate = wxPyBeginAllowThreads();
14489 result = (int)((wxFont const *)arg1)->GetWeight();
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 resultobj = SWIG_From_int(static_cast< int >(result));
14494 return resultobj;
14495fail:
14496 return NULL;
d55e5bfc
RD
14497}
14498
14499
1bd55598
RD
14500SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14501 PyObject *resultobj = 0;
14502 wxFont *arg1 = (wxFont *) 0 ;
14503 bool result;
14504 void *argp1 = 0 ;
14505 int res1 = 0 ;
14506 PyObject *swig_obj[1] ;
14507
14508 if (!args) SWIG_fail;
14509 swig_obj[0] = args;
14510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14511 if (!SWIG_IsOK(res1)) {
14512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14513 }
14514 arg1 = reinterpret_cast< wxFont * >(argp1);
14515 {
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 {
14522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14523 }
14524 return resultobj;
14525fail:
14526 return NULL;
d55e5bfc
RD
14527}
14528
14529
1bd55598
RD
14530SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14531 PyObject *resultobj = 0;
14532 wxFont *arg1 = (wxFont *) 0 ;
14533 wxString result;
14534 void *argp1 = 0 ;
14535 int res1 = 0 ;
14536 PyObject *swig_obj[1] ;
14537
14538 if (!args) SWIG_fail;
14539 swig_obj[0] = args;
14540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14541 if (!SWIG_IsOK(res1)) {
14542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14543 }
14544 arg1 = reinterpret_cast< wxFont * >(argp1);
14545 {
14546 PyThreadState* __tstate = wxPyBeginAllowThreads();
14547 result = ((wxFont const *)arg1)->GetFaceName();
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 {
14552#if wxUSE_UNICODE
14553 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14554#else
14555 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14556#endif
14557 }
14558 return resultobj;
14559fail:
14560 return NULL;
d55e5bfc
RD
14561}
14562
14563
1bd55598
RD
14564SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14565 PyObject *resultobj = 0;
14566 wxFont *arg1 = (wxFont *) 0 ;
14567 wxFontEncoding result;
14568 void *argp1 = 0 ;
14569 int res1 = 0 ;
14570 PyObject *swig_obj[1] ;
14571
14572 if (!args) SWIG_fail;
14573 swig_obj[0] = args;
14574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14575 if (!SWIG_IsOK(res1)) {
14576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14577 }
14578 arg1 = reinterpret_cast< wxFont * >(argp1);
14579 {
14580 PyThreadState* __tstate = wxPyBeginAllowThreads();
14581 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14582 wxPyEndAllowThreads(__tstate);
14583 if (PyErr_Occurred()) SWIG_fail;
14584 }
14585 resultobj = SWIG_From_int(static_cast< int >(result));
14586 return resultobj;
14587fail:
14588 return NULL;
d55e5bfc
RD
14589}
14590
14591
1bd55598
RD
14592SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14593 PyObject *resultobj = 0;
14594 wxFont *arg1 = (wxFont *) 0 ;
14595 wxNativeFontInfo *result = 0 ;
14596 void *argp1 = 0 ;
14597 int res1 = 0 ;
14598 PyObject *swig_obj[1] ;
14599
14600 if (!args) SWIG_fail;
14601 swig_obj[0] = args;
14602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14603 if (!SWIG_IsOK(res1)) {
14604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14605 }
14606 arg1 = reinterpret_cast< wxFont * >(argp1);
14607 {
14608 PyThreadState* __tstate = wxPyBeginAllowThreads();
14609 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14610 wxPyEndAllowThreads(__tstate);
14611 if (PyErr_Occurred()) SWIG_fail;
14612 }
14613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14614 return resultobj;
14615fail:
14616 return NULL;
d55e5bfc
RD
14617}
14618
14619
1bd55598
RD
14620SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14621 PyObject *resultobj = 0;
14622 wxFont *arg1 = (wxFont *) 0 ;
14623 bool result;
14624 void *argp1 = 0 ;
14625 int res1 = 0 ;
14626 PyObject *swig_obj[1] ;
14627
14628 if (!args) SWIG_fail;
14629 swig_obj[0] = args;
14630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14631 if (!SWIG_IsOK(res1)) {
14632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14633 }
14634 arg1 = reinterpret_cast< wxFont * >(argp1);
14635 {
14636 PyThreadState* __tstate = wxPyBeginAllowThreads();
14637 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14638 wxPyEndAllowThreads(__tstate);
14639 if (PyErr_Occurred()) SWIG_fail;
14640 }
14641 {
14642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14643 }
14644 return resultobj;
14645fail:
14646 return NULL;
d55e5bfc
RD
14647}
14648
14649
1bd55598
RD
14650SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14651 PyObject *resultobj = 0;
14652 wxFont *arg1 = (wxFont *) 0 ;
14653 wxString result;
14654 void *argp1 = 0 ;
14655 int res1 = 0 ;
14656 PyObject *swig_obj[1] ;
14657
14658 if (!args) SWIG_fail;
14659 swig_obj[0] = args;
14660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14661 if (!SWIG_IsOK(res1)) {
14662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14663 }
14664 arg1 = reinterpret_cast< wxFont * >(argp1);
14665 {
14666 PyThreadState* __tstate = wxPyBeginAllowThreads();
14667 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14668 wxPyEndAllowThreads(__tstate);
14669 if (PyErr_Occurred()) SWIG_fail;
14670 }
14671 {
14672#if wxUSE_UNICODE
14673 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14674#else
14675 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14676#endif
14677 }
14678 return resultobj;
14679fail:
14680 return NULL;
d55e5bfc
RD
14681}
14682
14683
1bd55598
RD
14684SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14685 PyObject *resultobj = 0;
14686 wxFont *arg1 = (wxFont *) 0 ;
14687 wxString result;
14688 void *argp1 = 0 ;
14689 int res1 = 0 ;
14690 PyObject *swig_obj[1] ;
14691
14692 if (!args) SWIG_fail;
14693 swig_obj[0] = args;
14694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14695 if (!SWIG_IsOK(res1)) {
14696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14697 }
14698 arg1 = reinterpret_cast< wxFont * >(argp1);
14699 {
14700 PyThreadState* __tstate = wxPyBeginAllowThreads();
14701 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14702 wxPyEndAllowThreads(__tstate);
14703 if (PyErr_Occurred()) SWIG_fail;
14704 }
14705 {
14706#if wxUSE_UNICODE
14707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14708#else
14709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14710#endif
14711 }
14712 return resultobj;
14713fail:
14714 return NULL;
14715}
14716
14717
14718SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14719 PyObject *resultobj = 0;
14720 wxFont *arg1 = (wxFont *) 0 ;
14721 int arg2 ;
14722 void *argp1 = 0 ;
14723 int res1 = 0 ;
14724 int val2 ;
14725 int ecode2 = 0 ;
14726 PyObject * obj0 = 0 ;
14727 PyObject * obj1 = 0 ;
14728 char * kwnames[] = {
14729 (char *) "self",(char *) "pointSize", NULL
14730 };
14731
14732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14734 if (!SWIG_IsOK(res1)) {
14735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14736 }
14737 arg1 = reinterpret_cast< wxFont * >(argp1);
14738 ecode2 = SWIG_AsVal_int(obj1, &val2);
14739 if (!SWIG_IsOK(ecode2)) {
14740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14741 }
14742 arg2 = static_cast< int >(val2);
14743 {
14744 PyThreadState* __tstate = wxPyBeginAllowThreads();
14745 (arg1)->SetPointSize(arg2);
14746 wxPyEndAllowThreads(__tstate);
14747 if (PyErr_Occurred()) SWIG_fail;
14748 }
14749 resultobj = SWIG_Py_Void();
14750 return resultobj;
14751fail:
14752 return NULL;
14753}
14754
14755
14756SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14757 PyObject *resultobj = 0;
14758 wxFont *arg1 = (wxFont *) 0 ;
14759 wxSize *arg2 = 0 ;
14760 void *argp1 = 0 ;
14761 int res1 = 0 ;
14762 wxSize temp2 ;
14763 PyObject * obj0 = 0 ;
14764 PyObject * obj1 = 0 ;
14765 char * kwnames[] = {
14766 (char *) "self",(char *) "pixelSize", NULL
14767 };
14768
14769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14771 if (!SWIG_IsOK(res1)) {
14772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14773 }
14774 arg1 = reinterpret_cast< wxFont * >(argp1);
14775 {
14776 arg2 = &temp2;
14777 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14778 }
14779 {
14780 PyThreadState* __tstate = wxPyBeginAllowThreads();
14781 (arg1)->SetPixelSize((wxSize const &)*arg2);
14782 wxPyEndAllowThreads(__tstate);
14783 if (PyErr_Occurred()) SWIG_fail;
14784 }
14785 resultobj = SWIG_Py_Void();
14786 return resultobj;
14787fail:
14788 return NULL;
14789}
14790
14791
14792SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14793 PyObject *resultobj = 0;
14794 wxFont *arg1 = (wxFont *) 0 ;
14795 int arg2 ;
14796 void *argp1 = 0 ;
14797 int res1 = 0 ;
14798 int val2 ;
14799 int ecode2 = 0 ;
14800 PyObject * obj0 = 0 ;
14801 PyObject * obj1 = 0 ;
14802 char * kwnames[] = {
14803 (char *) "self",(char *) "family", NULL
14804 };
14805
14806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14808 if (!SWIG_IsOK(res1)) {
14809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14810 }
14811 arg1 = reinterpret_cast< wxFont * >(argp1);
14812 ecode2 = SWIG_AsVal_int(obj1, &val2);
14813 if (!SWIG_IsOK(ecode2)) {
14814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14815 }
14816 arg2 = static_cast< int >(val2);
14817 {
14818 PyThreadState* __tstate = wxPyBeginAllowThreads();
14819 (arg1)->SetFamily(arg2);
14820 wxPyEndAllowThreads(__tstate);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
14823 resultobj = SWIG_Py_Void();
14824 return resultobj;
14825fail:
14826 return NULL;
14827}
14828
14829
14830SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14831 PyObject *resultobj = 0;
14832 wxFont *arg1 = (wxFont *) 0 ;
14833 int arg2 ;
14834 void *argp1 = 0 ;
14835 int res1 = 0 ;
14836 int val2 ;
14837 int ecode2 = 0 ;
14838 PyObject * obj0 = 0 ;
14839 PyObject * obj1 = 0 ;
14840 char * kwnames[] = {
14841 (char *) "self",(char *) "style", NULL
14842 };
14843
14844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14846 if (!SWIG_IsOK(res1)) {
14847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14848 }
14849 arg1 = reinterpret_cast< wxFont * >(argp1);
14850 ecode2 = SWIG_AsVal_int(obj1, &val2);
14851 if (!SWIG_IsOK(ecode2)) {
14852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14853 }
14854 arg2 = static_cast< int >(val2);
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 (arg1)->SetStyle(arg2);
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 resultobj = SWIG_Py_Void();
14862 return resultobj;
14863fail:
14864 return NULL;
14865}
14866
14867
14868SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14869 PyObject *resultobj = 0;
14870 wxFont *arg1 = (wxFont *) 0 ;
14871 int arg2 ;
14872 void *argp1 = 0 ;
14873 int res1 = 0 ;
14874 int val2 ;
14875 int ecode2 = 0 ;
14876 PyObject * obj0 = 0 ;
14877 PyObject * obj1 = 0 ;
14878 char * kwnames[] = {
14879 (char *) "self",(char *) "weight", NULL
14880 };
14881
14882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14884 if (!SWIG_IsOK(res1)) {
14885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14886 }
14887 arg1 = reinterpret_cast< wxFont * >(argp1);
14888 ecode2 = SWIG_AsVal_int(obj1, &val2);
14889 if (!SWIG_IsOK(ecode2)) {
14890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14891 }
14892 arg2 = static_cast< int >(val2);
14893 {
14894 PyThreadState* __tstate = wxPyBeginAllowThreads();
14895 (arg1)->SetWeight(arg2);
14896 wxPyEndAllowThreads(__tstate);
14897 if (PyErr_Occurred()) SWIG_fail;
14898 }
14899 resultobj = SWIG_Py_Void();
14900 return resultobj;
14901fail:
14902 return NULL;
14903}
14904
14905
14906SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14907 PyObject *resultobj = 0;
14908 wxFont *arg1 = (wxFont *) 0 ;
14909 wxString *arg2 = 0 ;
704eda0c 14910 bool result;
1bd55598
RD
14911 void *argp1 = 0 ;
14912 int res1 = 0 ;
14913 bool temp2 = false ;
14914 PyObject * obj0 = 0 ;
14915 PyObject * obj1 = 0 ;
14916 char * kwnames[] = {
14917 (char *) "self",(char *) "faceName", NULL
14918 };
14919
14920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14922 if (!SWIG_IsOK(res1)) {
14923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14924 }
14925 arg1 = reinterpret_cast< wxFont * >(argp1);
14926 {
14927 arg2 = wxString_in_helper(obj1);
14928 if (arg2 == NULL) SWIG_fail;
14929 temp2 = true;
14930 }
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14933 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14934 wxPyEndAllowThreads(__tstate);
14935 if (PyErr_Occurred()) SWIG_fail;
14936 }
704eda0c
RD
14937 {
14938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14939 }
1bd55598
RD
14940 {
14941 if (temp2)
14942 delete arg2;
14943 }
14944 return resultobj;
14945fail:
14946 {
14947 if (temp2)
14948 delete arg2;
14949 }
14950 return NULL;
14951}
14952
14953
14954SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14955 PyObject *resultobj = 0;
14956 wxFont *arg1 = (wxFont *) 0 ;
14957 bool arg2 ;
14958 void *argp1 = 0 ;
14959 int res1 = 0 ;
14960 bool val2 ;
14961 int ecode2 = 0 ;
14962 PyObject * obj0 = 0 ;
14963 PyObject * obj1 = 0 ;
14964 char * kwnames[] = {
14965 (char *) "self",(char *) "underlined", NULL
14966 };
14967
14968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14970 if (!SWIG_IsOK(res1)) {
14971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14972 }
14973 arg1 = reinterpret_cast< wxFont * >(argp1);
14974 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14975 if (!SWIG_IsOK(ecode2)) {
14976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14977 }
14978 arg2 = static_cast< bool >(val2);
14979 {
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 (arg1)->SetUnderlined(arg2);
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 resultobj = SWIG_Py_Void();
14986 return resultobj;
14987fail:
14988 return NULL;
14989}
14990
14991
14992SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14993 PyObject *resultobj = 0;
14994 wxFont *arg1 = (wxFont *) 0 ;
14995 wxFontEncoding arg2 ;
14996 void *argp1 = 0 ;
14997 int res1 = 0 ;
14998 int val2 ;
14999 int ecode2 = 0 ;
15000 PyObject * obj0 = 0 ;
15001 PyObject * obj1 = 0 ;
15002 char * kwnames[] = {
15003 (char *) "self",(char *) "encoding", NULL
15004 };
15005
15006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15008 if (!SWIG_IsOK(res1)) {
15009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15010 }
15011 arg1 = reinterpret_cast< wxFont * >(argp1);
15012 ecode2 = SWIG_AsVal_int(obj1, &val2);
15013 if (!SWIG_IsOK(ecode2)) {
15014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15015 }
15016 arg2 = static_cast< wxFontEncoding >(val2);
15017 {
15018 PyThreadState* __tstate = wxPyBeginAllowThreads();
15019 (arg1)->SetEncoding(arg2);
15020 wxPyEndAllowThreads(__tstate);
15021 if (PyErr_Occurred()) SWIG_fail;
15022 }
15023 resultobj = SWIG_Py_Void();
15024 return resultobj;
15025fail:
15026 return NULL;
15027}
15028
15029
15030SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15031 PyObject *resultobj = 0;
15032 wxFont *arg1 = (wxFont *) 0 ;
15033 wxNativeFontInfo *arg2 = 0 ;
15034 void *argp1 = 0 ;
15035 int res1 = 0 ;
15036 void *argp2 = 0 ;
15037 int res2 = 0 ;
15038 PyObject * obj0 = 0 ;
15039 PyObject * obj1 = 0 ;
15040 char * kwnames[] = {
15041 (char *) "self",(char *) "info", NULL
15042 };
15043
15044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15046 if (!SWIG_IsOK(res1)) {
15047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15048 }
15049 arg1 = reinterpret_cast< wxFont * >(argp1);
15050 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15051 if (!SWIG_IsOK(res2)) {
15052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15053 }
15054 if (!argp2) {
15055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15056 }
15057 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15058 {
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_Py_Void();
15065 return resultobj;
15066fail:
15067 return NULL;
15068}
15069
15070
15071SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15072 PyObject *resultobj = 0;
15073 wxFont *arg1 = (wxFont *) 0 ;
15074 wxString *arg2 = 0 ;
704eda0c 15075 bool result;
1bd55598
RD
15076 void *argp1 = 0 ;
15077 int res1 = 0 ;
15078 bool temp2 = false ;
15079 PyObject * obj0 = 0 ;
15080 PyObject * obj1 = 0 ;
15081 char * kwnames[] = {
15082 (char *) "self",(char *) "info", NULL
15083 };
15084
15085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15087 if (!SWIG_IsOK(res1)) {
15088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15089 }
15090 arg1 = reinterpret_cast< wxFont * >(argp1);
15091 {
15092 arg2 = wxString_in_helper(obj1);
15093 if (arg2 == NULL) SWIG_fail;
15094 temp2 = true;
15095 }
15096 {
15097 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15098 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15099 wxPyEndAllowThreads(__tstate);
15100 if (PyErr_Occurred()) SWIG_fail;
15101 }
704eda0c
RD
15102 {
15103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15104 }
1bd55598
RD
15105 {
15106 if (temp2)
15107 delete arg2;
15108 }
15109 return resultobj;
15110fail:
15111 {
15112 if (temp2)
15113 delete arg2;
15114 }
15115 return NULL;
d55e5bfc
RD
15116}
15117
15118
1bd55598
RD
15119SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15120 PyObject *resultobj = 0;
15121 wxFont *arg1 = (wxFont *) 0 ;
15122 wxString *arg2 = 0 ;
704eda0c 15123 bool result;
1bd55598
RD
15124 void *argp1 = 0 ;
15125 int res1 = 0 ;
15126 bool temp2 = false ;
15127 PyObject * obj0 = 0 ;
15128 PyObject * obj1 = 0 ;
15129 char * kwnames[] = {
15130 (char *) "self",(char *) "info", NULL
15131 };
15132
15133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15135 if (!SWIG_IsOK(res1)) {
15136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15137 }
15138 arg1 = reinterpret_cast< wxFont * >(argp1);
15139 {
15140 arg2 = wxString_in_helper(obj1);
15141 if (arg2 == NULL) SWIG_fail;
15142 temp2 = true;
15143 }
15144 {
15145 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15146 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15147 wxPyEndAllowThreads(__tstate);
15148 if (PyErr_Occurred()) SWIG_fail;
15149 }
704eda0c
RD
15150 {
15151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15152 }
1bd55598
RD
15153 {
15154 if (temp2)
15155 delete arg2;
15156 }
15157 return resultobj;
15158fail:
15159 {
15160 if (temp2)
15161 delete arg2;
15162 }
15163 return NULL;
d55e5bfc
RD
15164}
15165
15166
1bd55598
RD
15167SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15168 PyObject *resultobj = 0;
15169 wxFont *arg1 = (wxFont *) 0 ;
15170 wxString result;
15171 void *argp1 = 0 ;
15172 int res1 = 0 ;
15173 PyObject *swig_obj[1] ;
15174
15175 if (!args) SWIG_fail;
15176 swig_obj[0] = args;
15177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15178 if (!SWIG_IsOK(res1)) {
15179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15180 }
15181 arg1 = reinterpret_cast< wxFont * >(argp1);
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 result = ((wxFont const *)arg1)->GetFamilyString();
15185 wxPyEndAllowThreads(__tstate);
15186 if (PyErr_Occurred()) SWIG_fail;
15187 }
15188 {
15189#if wxUSE_UNICODE
15190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15191#else
15192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15193#endif
15194 }
15195 return resultobj;
15196fail:
15197 return NULL;
d55e5bfc
RD
15198}
15199
15200
1bd55598
RD
15201SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15202 PyObject *resultobj = 0;
15203 wxFont *arg1 = (wxFont *) 0 ;
15204 wxString result;
15205 void *argp1 = 0 ;
15206 int res1 = 0 ;
15207 PyObject *swig_obj[1] ;
15208
15209 if (!args) SWIG_fail;
15210 swig_obj[0] = args;
15211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15212 if (!SWIG_IsOK(res1)) {
15213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15214 }
15215 arg1 = reinterpret_cast< wxFont * >(argp1);
15216 {
15217 PyThreadState* __tstate = wxPyBeginAllowThreads();
15218 result = ((wxFont const *)arg1)->GetStyleString();
15219 wxPyEndAllowThreads(__tstate);
15220 if (PyErr_Occurred()) SWIG_fail;
15221 }
15222 {
15223#if wxUSE_UNICODE
15224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15225#else
15226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15227#endif
15228 }
15229 return resultobj;
15230fail:
15231 return NULL;
d55e5bfc
RD
15232}
15233
15234
1bd55598
RD
15235SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15236 PyObject *resultobj = 0;
15237 wxFont *arg1 = (wxFont *) 0 ;
15238 wxString result;
15239 void *argp1 = 0 ;
15240 int res1 = 0 ;
15241 PyObject *swig_obj[1] ;
15242
15243 if (!args) SWIG_fail;
15244 swig_obj[0] = args;
15245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15246 if (!SWIG_IsOK(res1)) {
15247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15248 }
15249 arg1 = reinterpret_cast< wxFont * >(argp1);
15250 {
15251 PyThreadState* __tstate = wxPyBeginAllowThreads();
15252 result = ((wxFont const *)arg1)->GetWeightString();
15253 wxPyEndAllowThreads(__tstate);
15254 if (PyErr_Occurred()) SWIG_fail;
15255 }
15256 {
15257#if wxUSE_UNICODE
15258 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15259#else
15260 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15261#endif
15262 }
15263 return resultobj;
15264fail:
15265 return NULL;
15266}
15267
15268
15269SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15270 PyObject *resultobj = 0;
15271 wxFont *arg1 = (wxFont *) 0 ;
15272 bool arg2 = (bool) true ;
15273 void *argp1 = 0 ;
15274 int res1 = 0 ;
15275 bool val2 ;
15276 int ecode2 = 0 ;
15277 PyObject * obj0 = 0 ;
15278 PyObject * obj1 = 0 ;
15279 char * kwnames[] = {
15280 (char *) "self",(char *) "no", NULL
15281 };
15282
15283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15285 if (!SWIG_IsOK(res1)) {
15286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15287 }
15288 arg1 = reinterpret_cast< wxFont * >(argp1);
15289 if (obj1) {
15290 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15291 if (!SWIG_IsOK(ecode2)) {
15292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15293 }
15294 arg2 = static_cast< bool >(val2);
15295 }
15296 {
15297 PyThreadState* __tstate = wxPyBeginAllowThreads();
15298 (arg1)->SetNoAntiAliasing(arg2);
15299 wxPyEndAllowThreads(__tstate);
15300 if (PyErr_Occurred()) SWIG_fail;
15301 }
15302 resultobj = SWIG_Py_Void();
15303 return resultobj;
15304fail:
15305 return NULL;
d55e5bfc
RD
15306}
15307
15308
1bd55598
RD
15309SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15310 PyObject *resultobj = 0;
15311 wxFont *arg1 = (wxFont *) 0 ;
15312 bool result;
15313 void *argp1 = 0 ;
15314 int res1 = 0 ;
15315 PyObject *swig_obj[1] ;
15316
15317 if (!args) SWIG_fail;
15318 swig_obj[0] = args;
15319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15320 if (!SWIG_IsOK(res1)) {
15321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15322 }
15323 arg1 = reinterpret_cast< wxFont * >(argp1);
15324 {
15325 PyThreadState* __tstate = wxPyBeginAllowThreads();
15326 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15327 wxPyEndAllowThreads(__tstate);
15328 if (PyErr_Occurred()) SWIG_fail;
15329 }
15330 {
15331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15332 }
15333 return resultobj;
15334fail:
15335 return NULL;
d55e5bfc
RD
15336}
15337
15338
1bd55598
RD
15339SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15340 PyObject *resultobj = 0;
15341 wxFontEncoding result;
15342
15343 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15344 {
15345 if (!wxPyCheckForApp()) SWIG_fail;
15346 PyThreadState* __tstate = wxPyBeginAllowThreads();
15347 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15348 wxPyEndAllowThreads(__tstate);
15349 if (PyErr_Occurred()) SWIG_fail;
15350 }
15351 resultobj = SWIG_From_int(static_cast< int >(result));
15352 return resultobj;
15353fail:
15354 return NULL;
d55e5bfc
RD
15355}
15356
15357
1bd55598
RD
15358SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15359 PyObject *resultobj = 0;
15360 wxFontEncoding arg1 ;
15361 int val1 ;
15362 int ecode1 = 0 ;
15363 PyObject * obj0 = 0 ;
15364 char * kwnames[] = {
15365 (char *) "encoding", NULL
15366 };
15367
15368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15369 ecode1 = SWIG_AsVal_int(obj0, &val1);
15370 if (!SWIG_IsOK(ecode1)) {
15371 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15372 }
15373 arg1 = static_cast< wxFontEncoding >(val1);
15374 {
15375 if (!wxPyCheckForApp()) SWIG_fail;
15376 PyThreadState* __tstate = wxPyBeginAllowThreads();
15377 wxFont::SetDefaultEncoding(arg1);
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 resultobj = SWIG_Py_Void();
15382 return resultobj;
15383fail:
15384 return NULL;
d55e5bfc
RD
15385}
15386
15387
1bd55598
RD
15388SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15389 PyObject *obj;
15390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15391 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15392 return SWIG_Py_Void();
d55e5bfc 15393}
d55e5bfc 15394
1bd55598
RD
15395SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15396 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15397}
15398
1bd55598
RD
15399SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15400 PyObject *resultobj = 0;
15401 wxPyFontEnumerator *result = 0 ;
15402
15403 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15404 {
15405 if (!wxPyCheckForApp()) SWIG_fail;
15406 PyThreadState* __tstate = wxPyBeginAllowThreads();
15407 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15408 wxPyEndAllowThreads(__tstate);
15409 if (PyErr_Occurred()) SWIG_fail;
15410 }
15411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15412 return resultobj;
15413fail:
15414 return NULL;
d55e5bfc
RD
15415}
15416
15417
1bd55598
RD
15418SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15419 PyObject *resultobj = 0;
15420 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15421 void *argp1 = 0 ;
15422 int res1 = 0 ;
15423 PyObject *swig_obj[1] ;
15424
15425 if (!args) SWIG_fail;
15426 swig_obj[0] = args;
15427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15428 if (!SWIG_IsOK(res1)) {
15429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15430 }
15431 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15432 {
15433 PyThreadState* __tstate = wxPyBeginAllowThreads();
15434 delete arg1;
d55e5bfc 15435
1bd55598
RD
15436 wxPyEndAllowThreads(__tstate);
15437 if (PyErr_Occurred()) SWIG_fail;
15438 }
15439 resultobj = SWIG_Py_Void();
15440 return resultobj;
15441fail:
15442 return NULL;
15443}
15444
15445
15446SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15447 PyObject *resultobj = 0;
15448 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15449 PyObject *arg2 = (PyObject *) 0 ;
15450 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 15451 int arg4 = (int) 0 ;
1bd55598
RD
15452 void *argp1 = 0 ;
15453 int res1 = 0 ;
c25f90f6 15454 int val4 ;
1bd55598
RD
15455 int ecode4 = 0 ;
15456 PyObject * obj0 = 0 ;
15457 PyObject * obj1 = 0 ;
15458 PyObject * obj2 = 0 ;
15459 PyObject * obj3 = 0 ;
15460 char * kwnames[] = {
15461 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15462 };
15463
c25f90f6 15464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
15465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15466 if (!SWIG_IsOK(res1)) {
15467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15468 }
15469 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15470 arg2 = obj1;
15471 arg3 = obj2;
c25f90f6
RD
15472 if (obj3) {
15473 ecode4 = SWIG_AsVal_int(obj3, &val4);
15474 if (!SWIG_IsOK(ecode4)) {
15475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15476 }
15477 arg4 = static_cast< int >(val4);
15478 }
1bd55598
RD
15479 {
15480 PyThreadState* __tstate = wxPyBeginAllowThreads();
15481 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
15485 resultobj = SWIG_Py_Void();
15486 return resultobj;
15487fail:
15488 return NULL;
15489}
15490
15491
15492SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15493 PyObject *resultobj = 0;
15494 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15495 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15496 bool arg3 = (bool) false ;
15497 bool result;
15498 void *argp1 = 0 ;
15499 int res1 = 0 ;
15500 int val2 ;
15501 int ecode2 = 0 ;
15502 bool val3 ;
15503 int ecode3 = 0 ;
15504 PyObject * obj0 = 0 ;
15505 PyObject * obj1 = 0 ;
15506 PyObject * obj2 = 0 ;
15507 char * kwnames[] = {
15508 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15509 };
15510
15511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15513 if (!SWIG_IsOK(res1)) {
15514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15515 }
15516 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15517 if (obj1) {
15518 ecode2 = SWIG_AsVal_int(obj1, &val2);
15519 if (!SWIG_IsOK(ecode2)) {
15520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15521 }
15522 arg2 = static_cast< wxFontEncoding >(val2);
15523 }
15524 if (obj2) {
15525 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15526 if (!SWIG_IsOK(ecode3)) {
15527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15528 }
15529 arg3 = static_cast< bool >(val3);
15530 }
15531 {
15532 PyThreadState* __tstate = wxPyBeginAllowThreads();
15533 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15534 wxPyEndAllowThreads(__tstate);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 {
15538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15539 }
15540 return resultobj;
15541fail:
15542 return NULL;
15543}
15544
15545
15546SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15547 PyObject *resultobj = 0;
15548 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15549 wxString const &arg2_defvalue = wxPyEmptyString ;
15550 wxString *arg2 = (wxString *) &arg2_defvalue ;
15551 bool result;
15552 void *argp1 = 0 ;
15553 int res1 = 0 ;
15554 bool temp2 = false ;
15555 PyObject * obj0 = 0 ;
15556 PyObject * obj1 = 0 ;
15557 char * kwnames[] = {
15558 (char *) "self",(char *) "facename", NULL
15559 };
15560
15561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15563 if (!SWIG_IsOK(res1)) {
15564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15565 }
15566 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15567 if (obj1) {
36ed4f51 15568 {
1bd55598
RD
15569 arg2 = wxString_in_helper(obj1);
15570 if (arg2 == NULL) SWIG_fail;
15571 temp2 = true;
36ed4f51 15572 }
1bd55598
RD
15573 }
15574 {
15575 PyThreadState* __tstate = wxPyBeginAllowThreads();
15576 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15577 wxPyEndAllowThreads(__tstate);
15578 if (PyErr_Occurred()) SWIG_fail;
15579 }
15580 {
15581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15582 }
15583 {
15584 if (temp2)
15585 delete arg2;
15586 }
15587 return resultobj;
15588fail:
15589 {
15590 if (temp2)
15591 delete arg2;
15592 }
15593 return NULL;
d55e5bfc
RD
15594}
15595
15596
1bd55598
RD
15597SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15598 PyObject *resultobj = 0;
1bd55598 15599 PyObject *result = 0 ;
1bd55598 15600
704eda0c 15601 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15602 {
15603 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15604 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15605 wxPyEndAllowThreads(__tstate);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 }
15608 resultobj = result;
15609 return resultobj;
15610fail:
15611 return NULL;
d55e5bfc
RD
15612}
15613
15614
1bd55598
RD
15615SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15616 PyObject *resultobj = 0;
1bd55598 15617 PyObject *result = 0 ;
1bd55598 15618
704eda0c 15619 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15620 {
15621 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15622 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15623 wxPyEndAllowThreads(__tstate);
15624 if (PyErr_Occurred()) SWIG_fail;
15625 }
15626 resultobj = result;
15627 return resultobj;
15628fail:
15629 return NULL;
d55e5bfc
RD
15630}
15631
15632
704eda0c
RD
15633SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15634 PyObject *resultobj = 0;
15635 wxString *arg1 = 0 ;
15636 bool result;
15637 bool temp1 = false ;
15638 PyObject * obj0 = 0 ;
15639 char * kwnames[] = {
15640 (char *) "str", NULL
15641 };
15642
15643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15644 {
15645 arg1 = wxString_in_helper(obj0);
15646 if (arg1 == NULL) SWIG_fail;
15647 temp1 = true;
15648 }
15649 {
15650 PyThreadState* __tstate = wxPyBeginAllowThreads();
15651 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15652 wxPyEndAllowThreads(__tstate);
15653 if (PyErr_Occurred()) SWIG_fail;
15654 }
15655 {
15656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15657 }
15658 {
15659 if (temp1)
15660 delete arg1;
15661 }
15662 return resultobj;
15663fail:
15664 {
15665 if (temp1)
15666 delete arg1;
15667 }
15668 return NULL;
15669}
15670
15671
1bd55598
RD
15672SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15673 PyObject *obj;
15674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15675 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15676 return SWIG_Py_Void();
d55e5bfc
RD
15677}
15678
1bd55598
RD
15679SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15680 return SWIG_Python_InitShadowInstance(args);
15681}
d55e5bfc 15682
1bd55598
RD
15683SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15684 PyObject *resultobj = 0;
15685 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15686 int arg2 ;
15687 void *argp1 = 0 ;
15688 int res1 = 0 ;
15689 int val2 ;
15690 int ecode2 = 0 ;
15691 PyObject *swig_obj[2] ;
15692
15693 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15695 if (!SWIG_IsOK(res1)) {
15696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15697 }
15698 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15699 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15700 if (!SWIG_IsOK(ecode2)) {
15701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15702 }
15703 arg2 = static_cast< int >(val2);
15704 if (arg1) (arg1)->Language = arg2;
15705
15706 resultobj = SWIG_Py_Void();
15707 return resultobj;
15708fail:
15709 return NULL;
d55e5bfc
RD
15710}
15711
15712
1bd55598
RD
15713SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15714 PyObject *resultobj = 0;
15715 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15716 int result;
15717 void *argp1 = 0 ;
15718 int res1 = 0 ;
15719 PyObject *swig_obj[1] ;
15720
15721 if (!args) SWIG_fail;
15722 swig_obj[0] = args;
15723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15724 if (!SWIG_IsOK(res1)) {
15725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15726 }
15727 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15728 result = (int) ((arg1)->Language);
15729 resultobj = SWIG_From_int(static_cast< int >(result));
15730 return resultobj;
15731fail:
15732 return NULL;
15733}
15734
15735
15736SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15737 PyObject *resultobj = 0;
15738 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15739 wxString *arg2 = (wxString *) 0 ;
15740 void *argp1 = 0 ;
15741 int res1 = 0 ;
15742 bool temp2 = false ;
15743 PyObject *swig_obj[2] ;
15744
15745 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15747 if (!SWIG_IsOK(res1)) {
15748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15749 }
15750 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15751 {
15752 arg2 = wxString_in_helper(swig_obj[1]);
15753 if (arg2 == NULL) SWIG_fail;
15754 temp2 = true;
15755 }
15756 if (arg1) (arg1)->CanonicalName = *arg2;
15757
15758 resultobj = SWIG_Py_Void();
15759 {
15760 if (temp2)
15761 delete arg2;
15762 }
15763 return resultobj;
15764fail:
15765 {
15766 if (temp2)
15767 delete arg2;
15768 }
15769 return NULL;
d55e5bfc
RD
15770}
15771
15772
1bd55598
RD
15773SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15774 PyObject *resultobj = 0;
15775 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15776 wxString *result = 0 ;
15777 void *argp1 = 0 ;
15778 int res1 = 0 ;
15779 PyObject *swig_obj[1] ;
15780
15781 if (!args) SWIG_fail;
15782 swig_obj[0] = args;
15783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15784 if (!SWIG_IsOK(res1)) {
15785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15786 }
15787 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15788 result = (wxString *)& ((arg1)->CanonicalName);
15789 {
15790#if wxUSE_UNICODE
15791 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15792#else
15793 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15794#endif
15795 }
15796 return resultobj;
15797fail:
15798 return NULL;
d55e5bfc
RD
15799}
15800
15801
1bd55598
RD
15802SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15803 PyObject *resultobj = 0;
15804 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15805 wxString *arg2 = (wxString *) 0 ;
15806 void *argp1 = 0 ;
15807 int res1 = 0 ;
15808 bool temp2 = false ;
15809 PyObject *swig_obj[2] ;
15810
15811 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15813 if (!SWIG_IsOK(res1)) {
15814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15815 }
15816 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15817 {
15818 arg2 = wxString_in_helper(swig_obj[1]);
15819 if (arg2 == NULL) SWIG_fail;
15820 temp2 = true;
15821 }
15822 if (arg1) (arg1)->Description = *arg2;
15823
15824 resultobj = SWIG_Py_Void();
15825 {
15826 if (temp2)
15827 delete arg2;
15828 }
15829 return resultobj;
15830fail:
15831 {
15832 if (temp2)
15833 delete arg2;
15834 }
15835 return NULL;
d55e5bfc
RD
15836}
15837
15838
1bd55598
RD
15839SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15840 PyObject *resultobj = 0;
15841 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15842 wxString *result = 0 ;
15843 void *argp1 = 0 ;
15844 int res1 = 0 ;
15845 PyObject *swig_obj[1] ;
15846
15847 if (!args) SWIG_fail;
15848 swig_obj[0] = args;
15849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15850 if (!SWIG_IsOK(res1)) {
15851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15852 }
15853 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15854 result = (wxString *)& ((arg1)->Description);
15855 {
15856#if wxUSE_UNICODE
15857 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15858#else
15859 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15860#endif
15861 }
15862 return resultobj;
15863fail:
15864 return NULL;
15865}
15866
15867
15868SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15869 PyObject *obj;
15870 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15871 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15872 return SWIG_Py_Void();
15873}
15874
15875SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj = 0;
15877 int arg1 = (int) -1 ;
15878 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15879 wxLocale *result = 0 ;
15880 int val1 ;
15881 int ecode1 = 0 ;
15882 int val2 ;
15883 int ecode2 = 0 ;
15884 PyObject * obj0 = 0 ;
15885 PyObject * obj1 = 0 ;
15886 char * kwnames[] = {
15887 (char *) "language",(char *) "flags", NULL
15888 };
15889
15890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15891 if (obj0) {
15892 ecode1 = SWIG_AsVal_int(obj0, &val1);
15893 if (!SWIG_IsOK(ecode1)) {
15894 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15895 }
15896 arg1 = static_cast< int >(val1);
15897 }
15898 if (obj1) {
15899 ecode2 = SWIG_AsVal_int(obj1, &val2);
15900 if (!SWIG_IsOK(ecode2)) {
15901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15902 }
15903 arg2 = static_cast< int >(val2);
15904 }
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 result = (wxLocale *)new_wxLocale(arg1,arg2);
15908 wxPyEndAllowThreads(__tstate);
15909 if (PyErr_Occurred()) SWIG_fail;
15910 }
15911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15912 return resultobj;
15913fail:
15914 return NULL;
d55e5bfc
RD
15915}
15916
15917
1bd55598
RD
15918SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15919 PyObject *resultobj = 0;
15920 wxLocale *arg1 = (wxLocale *) 0 ;
15921 void *argp1 = 0 ;
15922 int res1 = 0 ;
15923 PyObject *swig_obj[1] ;
15924
15925 if (!args) SWIG_fail;
15926 swig_obj[0] = args;
15927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15928 if (!SWIG_IsOK(res1)) {
15929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15930 }
15931 arg1 = reinterpret_cast< wxLocale * >(argp1);
15932 {
15933 PyThreadState* __tstate = wxPyBeginAllowThreads();
15934 delete arg1;
d55e5bfc 15935
1bd55598
RD
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 resultobj = SWIG_Py_Void();
15940 return resultobj;
15941fail:
15942 return NULL;
15943}
15944
15945
15946SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15947 PyObject *resultobj = 0;
15948 wxLocale *arg1 = (wxLocale *) 0 ;
15949 wxString *arg2 = 0 ;
15950 wxString const &arg3_defvalue = wxPyEmptyString ;
15951 wxString *arg3 = (wxString *) &arg3_defvalue ;
15952 wxString const &arg4_defvalue = wxPyEmptyString ;
15953 wxString *arg4 = (wxString *) &arg4_defvalue ;
15954 bool arg5 = (bool) true ;
15955 bool arg6 = (bool) false ;
15956 bool result;
15957 void *argp1 = 0 ;
15958 int res1 = 0 ;
15959 bool temp2 = false ;
15960 bool temp3 = false ;
15961 bool temp4 = false ;
15962 bool val5 ;
15963 int ecode5 = 0 ;
15964 bool val6 ;
15965 int ecode6 = 0 ;
15966 PyObject * obj0 = 0 ;
15967 PyObject * obj1 = 0 ;
15968 PyObject * obj2 = 0 ;
15969 PyObject * obj3 = 0 ;
15970 PyObject * obj4 = 0 ;
15971 PyObject * obj5 = 0 ;
15972 char * kwnames[] = {
15973 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15974 };
15975
15976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15978 if (!SWIG_IsOK(res1)) {
15979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15980 }
15981 arg1 = reinterpret_cast< wxLocale * >(argp1);
15982 {
15983 arg2 = wxString_in_helper(obj1);
15984 if (arg2 == NULL) SWIG_fail;
15985 temp2 = true;
15986 }
15987 if (obj2) {
d55e5bfc 15988 {
1bd55598
RD
15989 arg3 = wxString_in_helper(obj2);
15990 if (arg3 == NULL) SWIG_fail;
15991 temp3 = true;
d55e5bfc 15992 }
1bd55598
RD
15993 }
15994 if (obj3) {
36ed4f51 15995 {
1bd55598
RD
15996 arg4 = wxString_in_helper(obj3);
15997 if (arg4 == NULL) SWIG_fail;
15998 temp4 = true;
36ed4f51 15999 }
1bd55598
RD
16000 }
16001 if (obj4) {
16002 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16003 if (!SWIG_IsOK(ecode5)) {
16004 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16005 }
16006 arg5 = static_cast< bool >(val5);
16007 }
16008 if (obj5) {
16009 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16010 if (!SWIG_IsOK(ecode6)) {
16011 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16012 }
16013 arg6 = static_cast< bool >(val6);
16014 }
16015 {
16016 PyThreadState* __tstate = wxPyBeginAllowThreads();
16017 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16018 wxPyEndAllowThreads(__tstate);
16019 if (PyErr_Occurred()) SWIG_fail;
16020 }
16021 {
16022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16023 }
16024 {
16025 if (temp2)
16026 delete arg2;
16027 }
16028 {
16029 if (temp3)
16030 delete arg3;
16031 }
16032 {
16033 if (temp4)
16034 delete arg4;
16035 }
16036 return resultobj;
16037fail:
16038 {
16039 if (temp2)
16040 delete arg2;
16041 }
16042 {
16043 if (temp3)
16044 delete arg3;
16045 }
16046 {
16047 if (temp4)
16048 delete arg4;
16049 }
16050 return NULL;
16051}
16052
16053
16054SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16055 PyObject *resultobj = 0;
16056 wxLocale *arg1 = (wxLocale *) 0 ;
16057 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16058 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16059 bool result;
16060 void *argp1 = 0 ;
16061 int res1 = 0 ;
16062 int val2 ;
16063 int ecode2 = 0 ;
16064 int val3 ;
16065 int ecode3 = 0 ;
16066 PyObject * obj0 = 0 ;
16067 PyObject * obj1 = 0 ;
16068 PyObject * obj2 = 0 ;
16069 char * kwnames[] = {
16070 (char *) "self",(char *) "language",(char *) "flags", NULL
16071 };
16072
16073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16075 if (!SWIG_IsOK(res1)) {
16076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16077 }
16078 arg1 = reinterpret_cast< wxLocale * >(argp1);
16079 if (obj1) {
16080 ecode2 = SWIG_AsVal_int(obj1, &val2);
16081 if (!SWIG_IsOK(ecode2)) {
16082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16083 }
16084 arg2 = static_cast< int >(val2);
16085 }
16086 if (obj2) {
16087 ecode3 = SWIG_AsVal_int(obj2, &val3);
16088 if (!SWIG_IsOK(ecode3)) {
16089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16090 }
16091 arg3 = static_cast< int >(val3);
16092 }
16093 {
16094 PyThreadState* __tstate = wxPyBeginAllowThreads();
16095 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16096 wxPyEndAllowThreads(__tstate);
16097 if (PyErr_Occurred()) SWIG_fail;
16098 }
16099 {
16100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16101 }
16102 return resultobj;
16103fail:
16104 return NULL;
d55e5bfc
RD
16105}
16106
16107
1bd55598
RD
16108SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16109 PyObject *resultobj = 0;
16110 int result;
16111
16112 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16113 {
16114 PyThreadState* __tstate = wxPyBeginAllowThreads();
16115 result = (int)wxLocale::GetSystemLanguage();
16116 wxPyEndAllowThreads(__tstate);
16117 if (PyErr_Occurred()) SWIG_fail;
16118 }
16119 resultobj = SWIG_From_int(static_cast< int >(result));
16120 return resultobj;
16121fail:
16122 return NULL;
d55e5bfc
RD
16123}
16124
16125
1bd55598
RD
16126SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16127 PyObject *resultobj = 0;
16128 wxFontEncoding result;
16129
16130 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16131 {
16132 PyThreadState* __tstate = wxPyBeginAllowThreads();
16133 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16134 wxPyEndAllowThreads(__tstate);
16135 if (PyErr_Occurred()) SWIG_fail;
16136 }
16137 resultobj = SWIG_From_int(static_cast< int >(result));
16138 return resultobj;
16139fail:
16140 return NULL;
d55e5bfc
RD
16141}
16142
16143
1bd55598
RD
16144SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16145 PyObject *resultobj = 0;
16146 wxString result;
16147
16148 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16149 {
16150 PyThreadState* __tstate = wxPyBeginAllowThreads();
16151 result = wxLocale::GetSystemEncodingName();
16152 wxPyEndAllowThreads(__tstate);
16153 if (PyErr_Occurred()) SWIG_fail;
16154 }
16155 {
16156#if wxUSE_UNICODE
16157 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16158#else
16159 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16160#endif
16161 }
16162 return resultobj;
16163fail:
16164 return NULL;
d55e5bfc
RD
16165}
16166
16167
1bd55598
RD
16168SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16169 PyObject *resultobj = 0;
16170 wxLocale *arg1 = (wxLocale *) 0 ;
16171 bool result;
16172 void *argp1 = 0 ;
16173 int res1 = 0 ;
16174 PyObject *swig_obj[1] ;
16175
16176 if (!args) SWIG_fail;
16177 swig_obj[0] = args;
16178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16179 if (!SWIG_IsOK(res1)) {
16180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16181 }
16182 arg1 = reinterpret_cast< wxLocale * >(argp1);
16183 {
16184 PyThreadState* __tstate = wxPyBeginAllowThreads();
16185 result = (bool)((wxLocale const *)arg1)->IsOk();
16186 wxPyEndAllowThreads(__tstate);
16187 if (PyErr_Occurred()) SWIG_fail;
16188 }
16189 {
16190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16191 }
16192 return resultobj;
16193fail:
16194 return NULL;
d55e5bfc
RD
16195}
16196
16197
1bd55598
RD
16198SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16199 PyObject *resultobj = 0;
16200 wxLocale *arg1 = (wxLocale *) 0 ;
16201 wxString result;
16202 void *argp1 = 0 ;
16203 int res1 = 0 ;
16204 PyObject *swig_obj[1] ;
16205
16206 if (!args) SWIG_fail;
16207 swig_obj[0] = args;
16208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16209 if (!SWIG_IsOK(res1)) {
16210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16211 }
16212 arg1 = reinterpret_cast< wxLocale * >(argp1);
16213 {
16214 PyThreadState* __tstate = wxPyBeginAllowThreads();
16215 result = ((wxLocale const *)arg1)->GetLocale();
16216 wxPyEndAllowThreads(__tstate);
16217 if (PyErr_Occurred()) SWIG_fail;
16218 }
16219 {
16220#if wxUSE_UNICODE
16221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16222#else
16223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16224#endif
16225 }
16226 return resultobj;
16227fail:
16228 return NULL;
d55e5bfc
RD
16229}
16230
16231
1bd55598
RD
16232SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16233 PyObject *resultobj = 0;
16234 wxLocale *arg1 = (wxLocale *) 0 ;
16235 int result;
16236 void *argp1 = 0 ;
16237 int res1 = 0 ;
16238 PyObject *swig_obj[1] ;
16239
16240 if (!args) SWIG_fail;
16241 swig_obj[0] = args;
16242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16243 if (!SWIG_IsOK(res1)) {
16244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16245 }
16246 arg1 = reinterpret_cast< wxLocale * >(argp1);
16247 {
16248 PyThreadState* __tstate = wxPyBeginAllowThreads();
16249 result = (int)((wxLocale const *)arg1)->GetLanguage();
16250 wxPyEndAllowThreads(__tstate);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 resultobj = SWIG_From_int(static_cast< int >(result));
16254 return resultobj;
16255fail:
16256 return NULL;
d55e5bfc
RD
16257}
16258
16259
1bd55598
RD
16260SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16261 PyObject *resultobj = 0;
16262 wxLocale *arg1 = (wxLocale *) 0 ;
16263 wxString result;
16264 void *argp1 = 0 ;
16265 int res1 = 0 ;
16266 PyObject *swig_obj[1] ;
16267
16268 if (!args) SWIG_fail;
16269 swig_obj[0] = args;
16270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16271 if (!SWIG_IsOK(res1)) {
16272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16273 }
16274 arg1 = reinterpret_cast< wxLocale * >(argp1);
16275 {
16276 PyThreadState* __tstate = wxPyBeginAllowThreads();
16277 result = ((wxLocale const *)arg1)->GetSysName();
16278 wxPyEndAllowThreads(__tstate);
16279 if (PyErr_Occurred()) SWIG_fail;
16280 }
16281 {
36ed4f51 16282#if wxUSE_UNICODE
1bd55598 16283 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16284#else
1bd55598 16285 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16286#endif
1bd55598
RD
16287 }
16288 return resultobj;
16289fail:
16290 return NULL;
d55e5bfc
RD
16291}
16292
16293
1bd55598
RD
16294SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16295 PyObject *resultobj = 0;
16296 wxLocale *arg1 = (wxLocale *) 0 ;
16297 wxString result;
16298 void *argp1 = 0 ;
16299 int res1 = 0 ;
16300 PyObject *swig_obj[1] ;
16301
16302 if (!args) SWIG_fail;
16303 swig_obj[0] = args;
16304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16305 if (!SWIG_IsOK(res1)) {
16306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16307 }
16308 arg1 = reinterpret_cast< wxLocale * >(argp1);
16309 {
16310 PyThreadState* __tstate = wxPyBeginAllowThreads();
16311 result = ((wxLocale const *)arg1)->GetCanonicalName();
16312 wxPyEndAllowThreads(__tstate);
16313 if (PyErr_Occurred()) SWIG_fail;
16314 }
16315 {
16316#if wxUSE_UNICODE
16317 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16318#else
16319 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16320#endif
16321 }
16322 return resultobj;
16323fail:
16324 return NULL;
d55e5bfc
RD
16325}
16326
16327
1bd55598
RD
16328SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16329 PyObject *resultobj = 0;
16330 wxString *arg1 = 0 ;
16331 bool temp1 = false ;
16332 PyObject * obj0 = 0 ;
16333 char * kwnames[] = {
16334 (char *) "prefix", NULL
16335 };
16336
16337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16338 {
16339 arg1 = wxString_in_helper(obj0);
16340 if (arg1 == NULL) SWIG_fail;
16341 temp1 = true;
16342 }
16343 {
16344 PyThreadState* __tstate = wxPyBeginAllowThreads();
16345 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16346 wxPyEndAllowThreads(__tstate);
16347 if (PyErr_Occurred()) SWIG_fail;
16348 }
16349 resultobj = SWIG_Py_Void();
16350 {
16351 if (temp1)
16352 delete arg1;
16353 }
16354 return resultobj;
16355fail:
16356 {
16357 if (temp1)
16358 delete arg1;
16359 }
16360 return NULL;
16361}
16362
16363
16364SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16365 PyObject *resultobj = 0;
16366 wxLocale *arg1 = (wxLocale *) 0 ;
16367 wxString *arg2 = 0 ;
16368 bool result;
16369 void *argp1 = 0 ;
16370 int res1 = 0 ;
16371 bool temp2 = false ;
16372 PyObject * obj0 = 0 ;
16373 PyObject * obj1 = 0 ;
16374 char * kwnames[] = {
16375 (char *) "self",(char *) "szDomain", NULL
16376 };
16377
16378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16380 if (!SWIG_IsOK(res1)) {
16381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16382 }
16383 arg1 = reinterpret_cast< wxLocale * >(argp1);
16384 {
16385 arg2 = wxString_in_helper(obj1);
16386 if (arg2 == NULL) SWIG_fail;
16387 temp2 = true;
16388 }
16389 {
16390 PyThreadState* __tstate = wxPyBeginAllowThreads();
16391 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16392 wxPyEndAllowThreads(__tstate);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 }
16395 {
16396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16397 }
16398 {
16399 if (temp2)
16400 delete arg2;
16401 }
16402 return resultobj;
16403fail:
16404 {
16405 if (temp2)
16406 delete arg2;
16407 }
16408 return NULL;
16409}
16410
16411
33d6fd3b
RD
16412SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16413 PyObject *resultobj = 0;
16414 int arg1 ;
16415 bool result;
16416 int val1 ;
16417 int ecode1 = 0 ;
16418 PyObject * obj0 = 0 ;
16419 char * kwnames[] = {
16420 (char *) "lang", NULL
16421 };
16422
16423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16424 ecode1 = SWIG_AsVal_int(obj0, &val1);
16425 if (!SWIG_IsOK(ecode1)) {
16426 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16427 }
16428 arg1 = static_cast< int >(val1);
16429 {
16430 PyThreadState* __tstate = wxPyBeginAllowThreads();
16431 result = (bool)wxLocale::IsAvailable(arg1);
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 {
16436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16437 }
16438 return resultobj;
16439fail:
16440 return NULL;
16441}
16442
16443
1bd55598
RD
16444SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16445 PyObject *resultobj = 0;
16446 wxLocale *arg1 = (wxLocale *) 0 ;
16447 wxString *arg2 = 0 ;
16448 bool result;
16449 void *argp1 = 0 ;
16450 int res1 = 0 ;
16451 bool temp2 = false ;
16452 PyObject * obj0 = 0 ;
16453 PyObject * obj1 = 0 ;
16454 char * kwnames[] = {
16455 (char *) "self",(char *) "szDomain", NULL
16456 };
16457
16458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16460 if (!SWIG_IsOK(res1)) {
16461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16462 }
16463 arg1 = reinterpret_cast< wxLocale * >(argp1);
16464 {
16465 arg2 = wxString_in_helper(obj1);
16466 if (arg2 == NULL) SWIG_fail;
16467 temp2 = true;
16468 }
16469 {
16470 PyThreadState* __tstate = wxPyBeginAllowThreads();
16471 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16472 wxPyEndAllowThreads(__tstate);
16473 if (PyErr_Occurred()) SWIG_fail;
16474 }
16475 {
16476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16477 }
16478 {
16479 if (temp2)
16480 delete arg2;
16481 }
16482 return resultobj;
16483fail:
16484 {
16485 if (temp2)
16486 delete arg2;
16487 }
16488 return NULL;
d55e5bfc
RD
16489}
16490
16491
1bd55598
RD
16492SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16493 PyObject *resultobj = 0;
16494 int arg1 ;
16495 wxLanguageInfo *result = 0 ;
16496 int val1 ;
16497 int ecode1 = 0 ;
16498 PyObject * obj0 = 0 ;
16499 char * kwnames[] = {
16500 (char *) "lang", NULL
16501 };
16502
16503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16504 ecode1 = SWIG_AsVal_int(obj0, &val1);
16505 if (!SWIG_IsOK(ecode1)) {
16506 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16507 }
16508 arg1 = static_cast< int >(val1);
16509 {
16510 PyThreadState* __tstate = wxPyBeginAllowThreads();
16511 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16512 wxPyEndAllowThreads(__tstate);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 }
16515 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16516 return resultobj;
16517fail:
16518 return NULL;
16519}
16520
16521
16522SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16523 PyObject *resultobj = 0;
16524 int arg1 ;
16525 wxString result;
16526 int val1 ;
16527 int ecode1 = 0 ;
16528 PyObject * obj0 = 0 ;
16529 char * kwnames[] = {
16530 (char *) "lang", NULL
16531 };
16532
16533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16534 ecode1 = SWIG_AsVal_int(obj0, &val1);
16535 if (!SWIG_IsOK(ecode1)) {
16536 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16537 }
16538 arg1 = static_cast< int >(val1);
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 result = wxLocale::GetLanguageName(arg1);
16542 wxPyEndAllowThreads(__tstate);
16543 if (PyErr_Occurred()) SWIG_fail;
16544 }
16545 {
16546#if wxUSE_UNICODE
16547 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16548#else
16549 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16550#endif
16551 }
16552 return resultobj;
16553fail:
16554 return NULL;
d55e5bfc
RD
16555}
16556
16557
1bd55598
RD
16558SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16559 PyObject *resultobj = 0;
16560 wxString *arg1 = 0 ;
16561 wxLanguageInfo *result = 0 ;
16562 bool temp1 = false ;
16563 PyObject * obj0 = 0 ;
16564 char * kwnames[] = {
16565 (char *) "locale", NULL
16566 };
16567
16568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16569 {
16570 arg1 = wxString_in_helper(obj0);
16571 if (arg1 == NULL) SWIG_fail;
16572 temp1 = true;
16573 }
16574 {
16575 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16576 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16577 wxPyEndAllowThreads(__tstate);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 }
16580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16581 {
16582 if (temp1)
16583 delete arg1;
16584 }
16585 return resultobj;
16586fail:
16587 {
16588 if (temp1)
16589 delete arg1;
16590 }
16591 return NULL;
16592}
16593
16594
16595SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16596 PyObject *resultobj = 0;
16597 wxLanguageInfo *arg1 = 0 ;
16598 void *argp1 = 0 ;
16599 int res1 = 0 ;
16600 PyObject * obj0 = 0 ;
16601 char * kwnames[] = {
16602 (char *) "info", NULL
16603 };
16604
16605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16606 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16607 if (!SWIG_IsOK(res1)) {
16608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16609 }
16610 if (!argp1) {
16611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16612 }
16613 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16614 {
16615 PyThreadState* __tstate = wxPyBeginAllowThreads();
16616 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16617 wxPyEndAllowThreads(__tstate);
16618 if (PyErr_Occurred()) SWIG_fail;
16619 }
16620 resultobj = SWIG_Py_Void();
16621 return resultobj;
16622fail:
16623 return NULL;
16624}
16625
16626
16627SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16628 PyObject *resultobj = 0;
16629 wxLocale *arg1 = (wxLocale *) 0 ;
16630 wxString *arg2 = 0 ;
16631 wxString const &arg3_defvalue = wxPyEmptyString ;
16632 wxString *arg3 = (wxString *) &arg3_defvalue ;
16633 wxString result;
16634 void *argp1 = 0 ;
16635 int res1 = 0 ;
16636 bool temp2 = false ;
16637 bool temp3 = false ;
16638 PyObject * obj0 = 0 ;
16639 PyObject * obj1 = 0 ;
16640 PyObject * obj2 = 0 ;
16641 char * kwnames[] = {
16642 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16643 };
16644
16645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16647 if (!SWIG_IsOK(res1)) {
16648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16649 }
16650 arg1 = reinterpret_cast< wxLocale * >(argp1);
16651 {
16652 arg2 = wxString_in_helper(obj1);
16653 if (arg2 == NULL) SWIG_fail;
16654 temp2 = true;
16655 }
16656 if (obj2) {
16657 {
16658 arg3 = wxString_in_helper(obj2);
16659 if (arg3 == NULL) SWIG_fail;
16660 temp3 = true;
16661 }
16662 }
16663 {
16664 PyThreadState* __tstate = wxPyBeginAllowThreads();
16665 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16666 wxPyEndAllowThreads(__tstate);
16667 if (PyErr_Occurred()) SWIG_fail;
16668 }
16669 {
16670#if wxUSE_UNICODE
16671 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16672#else
16673 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16674#endif
16675 }
16676 {
16677 if (temp2)
16678 delete arg2;
16679 }
16680 {
16681 if (temp3)
16682 delete arg3;
16683 }
16684 return resultobj;
16685fail:
16686 {
16687 if (temp2)
16688 delete arg2;
16689 }
16690 {
16691 if (temp3)
16692 delete arg3;
16693 }
16694 return NULL;
16695}
16696
16697
16698SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16699 PyObject *resultobj = 0;
16700 wxLocale *arg1 = (wxLocale *) 0 ;
16701 wxString *result = 0 ;
16702 void *argp1 = 0 ;
16703 int res1 = 0 ;
16704 PyObject *swig_obj[1] ;
16705
16706 if (!args) SWIG_fail;
16707 swig_obj[0] = args;
16708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16709 if (!SWIG_IsOK(res1)) {
16710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16711 }
16712 arg1 = reinterpret_cast< wxLocale * >(argp1);
16713 {
16714 PyThreadState* __tstate = wxPyBeginAllowThreads();
16715 {
16716 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16717 result = (wxString *) &_result_ref;
16718 }
16719 wxPyEndAllowThreads(__tstate);
16720 if (PyErr_Occurred()) SWIG_fail;
16721 }
16722 {
16723#if wxUSE_UNICODE
16724 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16725#else
16726 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16727#endif
16728 }
16729 return resultobj;
16730fail:
16731 return NULL;
16732}
16733
16734
16735SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16736 PyObject *obj;
16737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16738 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16739 return SWIG_Py_Void();
16740}
16741
16742SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16743 return SWIG_Python_InitShadowInstance(args);
16744}
16745
16746SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16747 PyObject *resultobj = 0;
16748 int arg1 = (int) -1 ;
16749 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16750 wxPyLocale *result = 0 ;
16751 int val1 ;
16752 int ecode1 = 0 ;
16753 int val2 ;
16754 int ecode2 = 0 ;
16755 PyObject * obj0 = 0 ;
16756 PyObject * obj1 = 0 ;
16757 char * kwnames[] = {
16758 (char *) "language",(char *) "flags", NULL
16759 };
16760
16761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16762 if (obj0) {
16763 ecode1 = SWIG_AsVal_int(obj0, &val1);
16764 if (!SWIG_IsOK(ecode1)) {
16765 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16766 }
16767 arg1 = static_cast< int >(val1);
16768 }
16769 if (obj1) {
16770 ecode2 = SWIG_AsVal_int(obj1, &val2);
16771 if (!SWIG_IsOK(ecode2)) {
16772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16773 }
16774 arg2 = static_cast< int >(val2);
16775 }
16776 {
16777 PyThreadState* __tstate = wxPyBeginAllowThreads();
16778 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16779 wxPyEndAllowThreads(__tstate);
16780 if (PyErr_Occurred()) SWIG_fail;
16781 }
16782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16783 return resultobj;
16784fail:
16785 return NULL;
16786}
16787
16788
16789SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16790 PyObject *resultobj = 0;
16791 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16792 void *argp1 = 0 ;
16793 int res1 = 0 ;
16794 PyObject *swig_obj[1] ;
16795
16796 if (!args) SWIG_fail;
16797 swig_obj[0] = args;
16798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16799 if (!SWIG_IsOK(res1)) {
16800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16801 }
16802 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16803 {
16804 PyThreadState* __tstate = wxPyBeginAllowThreads();
16805 delete arg1;
16806
1bd55598
RD
16807 wxPyEndAllowThreads(__tstate);
16808 if (PyErr_Occurred()) SWIG_fail;
16809 }
fc46b7f3 16810 resultobj = SWIG_Py_Void();
1bd55598
RD
16811 return resultobj;
16812fail:
1bd55598 16813 return NULL;
d55e5bfc
RD
16814}
16815
16816
fc46b7f3 16817SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16818 PyObject *resultobj = 0;
fc46b7f3
RD
16819 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16820 PyObject *arg2 = (PyObject *) 0 ;
16821 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16822 void *argp1 = 0 ;
16823 int res1 = 0 ;
16824 PyObject * obj0 = 0 ;
fc46b7f3
RD
16825 PyObject * obj1 = 0 ;
16826 PyObject * obj2 = 0 ;
1bd55598 16827 char * kwnames[] = {
fc46b7f3 16828 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16829 };
16830
fc46b7f3
RD
16831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16833 if (!SWIG_IsOK(res1)) {
fc46b7f3 16834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16835 }
fc46b7f3
RD
16836 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16837 arg2 = obj1;
16838 arg3 = obj2;
1bd55598
RD
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16841 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16842 wxPyEndAllowThreads(__tstate);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 }
16845 resultobj = SWIG_Py_Void();
16846 return resultobj;
16847fail:
16848 return NULL;
16849}
16850
16851
fc46b7f3 16852SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16853 PyObject *resultobj = 0;
fc46b7f3
RD
16854 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16855 wxChar *arg2 = (wxChar *) 0 ;
16856 wxChar *arg3 = (wxChar *) NULL ;
16857 wxChar *result = 0 ;
1bd55598
RD
16858 void *argp1 = 0 ;
16859 int res1 = 0 ;
fc46b7f3
RD
16860 void *argp2 = 0 ;
16861 int res2 = 0 ;
16862 void *argp3 = 0 ;
16863 int res3 = 0 ;
1bd55598
RD
16864 PyObject * obj0 = 0 ;
16865 PyObject * obj1 = 0 ;
16866 PyObject * obj2 = 0 ;
16867 char * kwnames[] = {
16868 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16869 };
16870
fc46b7f3
RD
16871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16873 if (!SWIG_IsOK(res1)) {
fc46b7f3 16874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16875 }
fc46b7f3
RD
16876 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16877 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16878 if (!SWIG_IsOK(res2)) {
16879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16880 }
fc46b7f3 16881 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16882 if (obj2) {
fc46b7f3
RD
16883 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16884 if (!SWIG_IsOK(res3)) {
16885 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16886 }
fc46b7f3 16887 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16888 }
16889 {
16890 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16891 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16892 wxPyEndAllowThreads(__tstate);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
fc46b7f3 16895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16896 return resultobj;
16897fail:
1bd55598 16898 return NULL;
d55e5bfc
RD
16899}
16900
16901
fc46b7f3 16902SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16903 PyObject *resultobj = 0;
fc46b7f3
RD
16904 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16905 wxChar *arg2 = (wxChar *) 0 ;
16906 wxChar *arg3 = (wxChar *) 0 ;
16907 size_t arg4 ;
16908 wxChar *arg5 = (wxChar *) NULL ;
16909 wxChar *result = 0 ;
1bd55598
RD
16910 void *argp1 = 0 ;
16911 int res1 = 0 ;
fc46b7f3
RD
16912 void *argp2 = 0 ;
16913 int res2 = 0 ;
16914 void *argp3 = 0 ;
16915 int res3 = 0 ;
16916 size_t val4 ;
16917 int ecode4 = 0 ;
16918 void *argp5 = 0 ;
16919 int res5 = 0 ;
16920 PyObject * obj0 = 0 ;
16921 PyObject * obj1 = 0 ;
16922 PyObject * obj2 = 0 ;
16923 PyObject * obj3 = 0 ;
16924 PyObject * obj4 = 0 ;
16925 char * kwnames[] = {
16926 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16927 };
1bd55598 16928
fc46b7f3
RD
16929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16931 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16933 }
16934 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16935 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16936 if (!SWIG_IsOK(res2)) {
16937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16938 }
16939 arg2 = reinterpret_cast< wxChar * >(argp2);
16940 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16941 if (!SWIG_IsOK(res3)) {
16942 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16943 }
16944 arg3 = reinterpret_cast< wxChar * >(argp3);
16945 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16946 if (!SWIG_IsOK(ecode4)) {
16947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16948 }
16949 arg4 = static_cast< size_t >(val4);
16950 if (obj4) {
16951 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16952 if (!SWIG_IsOK(res5)) {
16953 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16954 }
16955 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16956 }
1bd55598
RD
16957 {
16958 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16959 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
fc46b7f3 16963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16964 return resultobj;
16965fail:
16966 return NULL;
d55e5bfc
RD
16967}
16968
16969
fc46b7f3 16970SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16971 PyObject *obj;
16972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16973 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16974 return SWIG_Py_Void();
d55e5bfc
RD
16975}
16976
fc46b7f3 16977SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16978 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16979}
16980
1bd55598
RD
16981SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16982 PyObject *resultobj = 0;
16983 wxLocale *result = 0 ;
16984
16985 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16986 {
16987 PyThreadState* __tstate = wxPyBeginAllowThreads();
16988 result = (wxLocale *)wxGetLocale();
16989 wxPyEndAllowThreads(__tstate);
16990 if (PyErr_Occurred()) SWIG_fail;
16991 }
16992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16993 return resultobj;
16994fail:
16995 return NULL;
d55e5bfc
RD
16996}
16997
16998
1bd55598
RD
16999SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17000 PyObject *resultobj = 0;
17001 wxString *arg1 = 0 ;
17002 wxString result;
17003 bool temp1 = false ;
17004
17005 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17006 {
17007 arg1 = wxString_in_helper(swig_obj[0]);
17008 if (arg1 == NULL) SWIG_fail;
17009 temp1 = true;
17010 }
17011 {
17012 PyThreadState* __tstate = wxPyBeginAllowThreads();
17013 result = wxGetTranslation((wxString const &)*arg1);
17014 wxPyEndAllowThreads(__tstate);
17015 if (PyErr_Occurred()) SWIG_fail;
17016 }
17017 {
36ed4f51 17018#if wxUSE_UNICODE
1bd55598 17019 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17020#else
1bd55598 17021 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17022#endif
1bd55598
RD
17023 }
17024 {
17025 if (temp1)
17026 delete arg1;
17027 }
17028 return resultobj;
17029fail:
17030 {
17031 if (temp1)
17032 delete arg1;
17033 }
17034 return NULL;
5e483524
RD
17035}
17036
17037
1bd55598 17038SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17039 PyObject *resultobj = 0;
17040 wxString *arg1 = 0 ;
17041 wxString *arg2 = 0 ;
17042 wxString result;
17043 bool temp1 = false ;
17044 bool temp2 = false ;
17045
17046 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17047 {
17048 arg1 = wxString_in_helper(swig_obj[0]);
17049 if (arg1 == NULL) SWIG_fail;
17050 temp1 = true;
17051 }
17052 {
17053 arg2 = wxString_in_helper(swig_obj[1]);
17054 if (arg2 == NULL) SWIG_fail;
17055 temp2 = true;
17056 }
17057 {
17058 PyThreadState* __tstate = wxPyBeginAllowThreads();
17059 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 {
17064#if wxUSE_UNICODE
17065 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17066#else
17067 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17068#endif
17069 }
17070 {
17071 if (temp1)
17072 delete arg1;
17073 }
17074 {
17075 if (temp2)
17076 delete arg2;
17077 }
17078 return resultobj;
17079fail:
17080 {
17081 if (temp1)
17082 delete arg1;
17083 }
17084 {
17085 if (temp2)
17086 delete arg2;
17087 }
17088 return NULL;
17089}
17090
17091
17092SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17093 PyObject *resultobj = 0;
17094 wxString *arg1 = 0 ;
17095 wxString *arg2 = 0 ;
17096 size_t arg3 ;
17097 wxString result;
17098 bool temp1 = false ;
17099 bool temp2 = false ;
17100 size_t val3 ;
17101 int ecode3 = 0 ;
17102
17103 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17104 {
17105 arg1 = wxString_in_helper(swig_obj[0]);
17106 if (arg1 == NULL) SWIG_fail;
17107 temp1 = true;
17108 }
17109 {
17110 arg2 = wxString_in_helper(swig_obj[1]);
17111 if (arg2 == NULL) SWIG_fail;
17112 temp2 = true;
17113 }
17114 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17115 if (!SWIG_IsOK(ecode3)) {
17116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17117 }
17118 arg3 = static_cast< size_t >(val3);
17119 {
17120 PyThreadState* __tstate = wxPyBeginAllowThreads();
17121 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17122 wxPyEndAllowThreads(__tstate);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
17125 {
36ed4f51 17126#if wxUSE_UNICODE
1bd55598 17127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17128#else
1bd55598 17129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17130#endif
1bd55598
RD
17131 }
17132 {
17133 if (temp1)
17134 delete arg1;
17135 }
17136 {
17137 if (temp2)
17138 delete arg2;
17139 }
17140 return resultobj;
17141fail:
17142 {
17143 if (temp1)
17144 delete arg1;
17145 }
17146 {
17147 if (temp2)
17148 delete arg2;
17149 }
17150 return NULL;
d55e5bfc
RD
17151}
17152
17153
fc46b7f3
RD
17154SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17155 PyObject *resultobj = 0;
17156 wxString *arg1 = 0 ;
17157 wxString *arg2 = 0 ;
17158 size_t arg3 ;
17159 wxString *arg4 = 0 ;
17160 wxString result;
17161 bool temp1 = false ;
17162 bool temp2 = false ;
17163 size_t val3 ;
17164 int ecode3 = 0 ;
17165 bool temp4 = false ;
17166
17167 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17168 {
17169 arg1 = wxString_in_helper(swig_obj[0]);
17170 if (arg1 == NULL) SWIG_fail;
17171 temp1 = true;
17172 }
17173 {
17174 arg2 = wxString_in_helper(swig_obj[1]);
17175 if (arg2 == NULL) SWIG_fail;
17176 temp2 = true;
17177 }
17178 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17179 if (!SWIG_IsOK(ecode3)) {
17180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17181 }
17182 arg3 = static_cast< size_t >(val3);
17183 {
17184 arg4 = wxString_in_helper(swig_obj[3]);
17185 if (arg4 == NULL) SWIG_fail;
17186 temp4 = true;
17187 }
17188 {
17189 PyThreadState* __tstate = wxPyBeginAllowThreads();
17190 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 {
17195#if wxUSE_UNICODE
17196 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17197#else
17198 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17199#endif
17200 }
17201 {
17202 if (temp1)
17203 delete arg1;
17204 }
17205 {
17206 if (temp2)
17207 delete arg2;
17208 }
17209 {
17210 if (temp4)
17211 delete arg4;
17212 }
17213 return resultobj;
17214fail:
17215 {
17216 if (temp1)
17217 delete arg1;
17218 }
17219 {
17220 if (temp2)
17221 delete arg2;
17222 }
17223 {
17224 if (temp4)
17225 delete arg4;
17226 }
17227 return NULL;
17228}
17229
17230
1bd55598
RD
17231SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17232 int argc;
fc46b7f3 17233 PyObject *argv[5];
1bd55598 17234
fc46b7f3 17235 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17236 --argc;
17237 if (argc == 1) {
17238 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17239 }
fc46b7f3 17240 if (argc == 2) {
1bd55598
RD
17241 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17242 }
fc46b7f3
RD
17243 if (argc == 3) {
17244 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17245 }
17246 if (argc == 4) {
17247 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17248 }
1bd55598
RD
17249
17250fail:
17251 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17252 return NULL;
d55e5bfc
RD
17253}
17254
17255
1bd55598
RD
17256SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17257 PyObject *resultobj = 0;
17258 wxEncodingConverter *result = 0 ;
17259
17260 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17261 {
17262 PyThreadState* __tstate = wxPyBeginAllowThreads();
17263 result = (wxEncodingConverter *)new wxEncodingConverter();
17264 wxPyEndAllowThreads(__tstate);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 }
17267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17268 return resultobj;
17269fail:
17270 return NULL;
d55e5bfc
RD
17271}
17272
17273
1bd55598
RD
17274SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17275 PyObject *resultobj = 0;
17276 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17277 void *argp1 = 0 ;
17278 int res1 = 0 ;
17279 PyObject *swig_obj[1] ;
17280
17281 if (!args) SWIG_fail;
17282 swig_obj[0] = args;
17283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17284 if (!SWIG_IsOK(res1)) {
17285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17286 }
17287 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 delete arg1;
d55e5bfc 17291
1bd55598
RD
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 resultobj = SWIG_Py_Void();
17296 return resultobj;
17297fail:
17298 return NULL;
17299}
17300
17301
17302SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17303 PyObject *resultobj = 0;
17304 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17305 wxFontEncoding arg2 ;
17306 wxFontEncoding arg3 ;
17307 int arg4 = (int) wxCONVERT_STRICT ;
17308 bool result;
17309 void *argp1 = 0 ;
17310 int res1 = 0 ;
17311 int val2 ;
17312 int ecode2 = 0 ;
17313 int val3 ;
17314 int ecode3 = 0 ;
17315 int val4 ;
17316 int ecode4 = 0 ;
17317 PyObject * obj0 = 0 ;
17318 PyObject * obj1 = 0 ;
17319 PyObject * obj2 = 0 ;
17320 PyObject * obj3 = 0 ;
17321 char * kwnames[] = {
17322 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17323 };
17324
17325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17327 if (!SWIG_IsOK(res1)) {
17328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17329 }
17330 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17331 ecode2 = SWIG_AsVal_int(obj1, &val2);
17332 if (!SWIG_IsOK(ecode2)) {
17333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17334 }
17335 arg2 = static_cast< wxFontEncoding >(val2);
17336 ecode3 = SWIG_AsVal_int(obj2, &val3);
17337 if (!SWIG_IsOK(ecode3)) {
17338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17339 }
17340 arg3 = static_cast< wxFontEncoding >(val3);
17341 if (obj3) {
17342 ecode4 = SWIG_AsVal_int(obj3, &val4);
17343 if (!SWIG_IsOK(ecode4)) {
17344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17345 }
17346 arg4 = static_cast< int >(val4);
17347 }
17348 {
17349 PyThreadState* __tstate = wxPyBeginAllowThreads();
17350 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17351 wxPyEndAllowThreads(__tstate);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 {
17355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17356 }
17357 return resultobj;
17358fail:
17359 return NULL;
17360}
17361
17362
17363SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17364 PyObject *resultobj = 0;
17365 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17366 wxString *arg2 = 0 ;
17367 wxString result;
17368 void *argp1 = 0 ;
17369 int res1 = 0 ;
17370 bool temp2 = false ;
17371 PyObject * obj0 = 0 ;
17372 PyObject * obj1 = 0 ;
17373 char * kwnames[] = {
17374 (char *) "self",(char *) "input", NULL
17375 };
17376
17377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17379 if (!SWIG_IsOK(res1)) {
17380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17381 }
17382 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17383 {
17384 arg2 = wxString_in_helper(obj1);
17385 if (arg2 == NULL) SWIG_fail;
17386 temp2 = true;
17387 }
17388 {
17389 PyThreadState* __tstate = wxPyBeginAllowThreads();
17390 result = (arg1)->Convert((wxString const &)*arg2);
17391 wxPyEndAllowThreads(__tstate);
17392 if (PyErr_Occurred()) SWIG_fail;
17393 }
17394 {
d55e5bfc 17395#if wxUSE_UNICODE
1bd55598 17396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17397#else
1bd55598 17398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17399#endif
1bd55598
RD
17400 }
17401 {
17402 if (temp2)
17403 delete arg2;
17404 }
17405 return resultobj;
17406fail:
17407 {
17408 if (temp2)
17409 delete arg2;
17410 }
17411 return NULL;
17412}
17413
17414
17415SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17416 PyObject *resultobj = 0;
17417 wxFontEncoding arg1 ;
17418 int arg2 = (int) wxPLATFORM_CURRENT ;
17419 wxFontEncodingArray result;
17420 int val1 ;
17421 int ecode1 = 0 ;
17422 int val2 ;
17423 int ecode2 = 0 ;
17424 PyObject * obj0 = 0 ;
17425 PyObject * obj1 = 0 ;
17426 char * kwnames[] = {
17427 (char *) "enc",(char *) "platform", NULL
17428 };
17429
17430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17431 ecode1 = SWIG_AsVal_int(obj0, &val1);
17432 if (!SWIG_IsOK(ecode1)) {
17433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17434 }
17435 arg1 = static_cast< wxFontEncoding >(val1);
17436 if (obj1) {
17437 ecode2 = SWIG_AsVal_int(obj1, &val2);
17438 if (!SWIG_IsOK(ecode2)) {
17439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17440 }
17441 arg2 = static_cast< int >(val2);
17442 }
17443 {
17444 PyThreadState* __tstate = wxPyBeginAllowThreads();
17445 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17446 wxPyEndAllowThreads(__tstate);
17447 if (PyErr_Occurred()) SWIG_fail;
17448 }
17449 {
17450 resultobj = PyList_New(0);
17451 for (size_t i=0; i < (&result)->GetCount(); i++) {
17452 PyObject* number = PyInt_FromLong((&result)->Item(i));
17453 PyList_Append(resultobj, number);
17454 Py_DECREF(number);
d55e5bfc 17455 }
1bd55598
RD
17456 }
17457 return resultobj;
17458fail:
17459 return NULL;
d55e5bfc
RD
17460}
17461
17462
1bd55598
RD
17463SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17464 PyObject *resultobj = 0;
17465 wxFontEncoding arg1 ;
17466 wxFontEncodingArray result;
17467 int val1 ;
17468 int ecode1 = 0 ;
17469 PyObject * obj0 = 0 ;
17470 char * kwnames[] = {
17471 (char *) "enc", NULL
17472 };
17473
17474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17475 ecode1 = SWIG_AsVal_int(obj0, &val1);
17476 if (!SWIG_IsOK(ecode1)) {
17477 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17478 }
17479 arg1 = static_cast< wxFontEncoding >(val1);
17480 {
17481 PyThreadState* __tstate = wxPyBeginAllowThreads();
17482 result = wxEncodingConverter::GetAllEquivalents(arg1);
17483 wxPyEndAllowThreads(__tstate);
17484 if (PyErr_Occurred()) SWIG_fail;
17485 }
17486 {
17487 resultobj = PyList_New(0);
17488 for (size_t i=0; i < (&result)->GetCount(); i++) {
17489 PyObject* number = PyInt_FromLong((&result)->Item(i));
17490 PyList_Append(resultobj, number);
17491 Py_DECREF(number);
d55e5bfc 17492 }
1bd55598
RD
17493 }
17494 return resultobj;
17495fail:
17496 return NULL;
17497}
17498
17499
17500SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17501 PyObject *resultobj = 0;
17502 wxFontEncoding arg1 ;
17503 wxFontEncoding arg2 ;
17504 bool result;
17505 int val1 ;
17506 int ecode1 = 0 ;
17507 int val2 ;
17508 int ecode2 = 0 ;
17509 PyObject * obj0 = 0 ;
17510 PyObject * obj1 = 0 ;
17511 char * kwnames[] = {
17512 (char *) "encIn",(char *) "encOut", NULL
17513 };
17514
17515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17516 ecode1 = SWIG_AsVal_int(obj0, &val1);
17517 if (!SWIG_IsOK(ecode1)) {
17518 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17519 }
17520 arg1 = static_cast< wxFontEncoding >(val1);
17521 ecode2 = SWIG_AsVal_int(obj1, &val2);
17522 if (!SWIG_IsOK(ecode2)) {
17523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17524 }
17525 arg2 = static_cast< wxFontEncoding >(val2);
17526 {
17527 PyThreadState* __tstate = wxPyBeginAllowThreads();
17528 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17529 wxPyEndAllowThreads(__tstate);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 }
17532 {
17533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17534 }
17535 return resultobj;
17536fail:
17537 return NULL;
d55e5bfc
RD
17538}
17539
17540
1bd55598
RD
17541SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17542 PyObject *obj;
17543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17544 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17545 return SWIG_Py_Void();
d55e5bfc
RD
17546}
17547
1bd55598
RD
17548SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17549 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17550}
17551
1bd55598
RD
17552SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17553 PyObject *resultobj = 0;
17554 wxDC *arg1 = (wxDC *) 0 ;
17555 void *argp1 = 0 ;
17556 int res1 = 0 ;
17557 PyObject *swig_obj[1] ;
17558
17559 if (!args) SWIG_fail;
17560 swig_obj[0] = args;
17561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17562 if (!SWIG_IsOK(res1)) {
17563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17564 }
17565 arg1 = reinterpret_cast< wxDC * >(argp1);
17566 {
17567 PyThreadState* __tstate = wxPyBeginAllowThreads();
17568 delete arg1;
d55e5bfc 17569
1bd55598
RD
17570 wxPyEndAllowThreads(__tstate);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 }
17573 resultobj = SWIG_Py_Void();
17574 return resultobj;
17575fail:
17576 return NULL;
17577}
17578
17579
17580SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17581 PyObject *resultobj = 0;
17582 wxDC *arg1 = (wxDC *) 0 ;
17583 int arg2 ;
17584 int arg3 ;
17585 wxColour *arg4 = 0 ;
17586 int arg5 = (int) wxFLOOD_SURFACE ;
17587 bool result;
17588 void *argp1 = 0 ;
17589 int res1 = 0 ;
17590 int val2 ;
17591 int ecode2 = 0 ;
17592 int val3 ;
17593 int ecode3 = 0 ;
17594 wxColour temp4 ;
17595 int val5 ;
17596 int ecode5 = 0 ;
17597 PyObject * obj0 = 0 ;
17598 PyObject * obj1 = 0 ;
17599 PyObject * obj2 = 0 ;
17600 PyObject * obj3 = 0 ;
17601 PyObject * obj4 = 0 ;
17602 char * kwnames[] = {
17603 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17604 };
17605
17606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17608 if (!SWIG_IsOK(res1)) {
17609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17610 }
17611 arg1 = reinterpret_cast< wxDC * >(argp1);
17612 ecode2 = SWIG_AsVal_int(obj1, &val2);
17613 if (!SWIG_IsOK(ecode2)) {
17614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17615 }
17616 arg2 = static_cast< int >(val2);
17617 ecode3 = SWIG_AsVal_int(obj2, &val3);
17618 if (!SWIG_IsOK(ecode3)) {
17619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17620 }
17621 arg3 = static_cast< int >(val3);
17622 {
17623 arg4 = &temp4;
17624 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17625 }
17626 if (obj4) {
17627 ecode5 = SWIG_AsVal_int(obj4, &val5);
17628 if (!SWIG_IsOK(ecode5)) {
17629 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17630 }
17631 arg5 = static_cast< int >(val5);
17632 }
17633 {
17634 PyThreadState* __tstate = wxPyBeginAllowThreads();
17635 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17636 wxPyEndAllowThreads(__tstate);
17637 if (PyErr_Occurred()) SWIG_fail;
17638 }
17639 {
17640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17641 }
17642 return resultobj;
17643fail:
17644 return NULL;
17645}
17646
17647
17648SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17649 PyObject *resultobj = 0;
17650 wxDC *arg1 = (wxDC *) 0 ;
17651 wxPoint *arg2 = 0 ;
17652 wxColour *arg3 = 0 ;
17653 int arg4 = (int) wxFLOOD_SURFACE ;
17654 bool result;
17655 void *argp1 = 0 ;
17656 int res1 = 0 ;
17657 wxPoint temp2 ;
17658 wxColour temp3 ;
17659 int val4 ;
17660 int ecode4 = 0 ;
17661 PyObject * obj0 = 0 ;
17662 PyObject * obj1 = 0 ;
17663 PyObject * obj2 = 0 ;
17664 PyObject * obj3 = 0 ;
17665 char * kwnames[] = {
17666 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17667 };
17668
17669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17671 if (!SWIG_IsOK(res1)) {
17672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17673 }
17674 arg1 = reinterpret_cast< wxDC * >(argp1);
17675 {
17676 arg2 = &temp2;
17677 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17678 }
17679 {
17680 arg3 = &temp3;
17681 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17682 }
17683 if (obj3) {
17684 ecode4 = SWIG_AsVal_int(obj3, &val4);
17685 if (!SWIG_IsOK(ecode4)) {
17686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17687 }
17688 arg4 = static_cast< int >(val4);
17689 }
17690 {
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17693 wxPyEndAllowThreads(__tstate);
17694 if (PyErr_Occurred()) SWIG_fail;
17695 }
17696 {
17697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17698 }
17699 return resultobj;
17700fail:
17701 return NULL;
17702}
17703
17704
17705SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17706 PyObject *resultobj = 0;
17707 wxDC *arg1 = (wxDC *) 0 ;
17708 wxRect *arg2 = 0 ;
17709 wxColour *arg3 = 0 ;
17710 wxColour *arg4 = 0 ;
17711 wxPoint *arg5 = 0 ;
17712 void *argp1 = 0 ;
17713 int res1 = 0 ;
17714 wxRect temp2 ;
17715 wxColour temp3 ;
17716 wxColour temp4 ;
17717 wxPoint temp5 ;
17718 PyObject * obj0 = 0 ;
17719 PyObject * obj1 = 0 ;
17720 PyObject * obj2 = 0 ;
17721 PyObject * obj3 = 0 ;
17722 PyObject * obj4 = 0 ;
17723 char * kwnames[] = {
17724 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17725 };
17726
17727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17729 if (!SWIG_IsOK(res1)) {
17730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17731 }
17732 arg1 = reinterpret_cast< wxDC * >(argp1);
17733 {
17734 arg2 = &temp2;
17735 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17736 }
17737 {
17738 arg3 = &temp3;
17739 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17740 }
17741 {
17742 arg4 = &temp4;
17743 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17744 }
17745 {
17746 arg5 = &temp5;
17747 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17748 }
17749 {
17750 PyThreadState* __tstate = wxPyBeginAllowThreads();
17751 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17752 wxPyEndAllowThreads(__tstate);
17753 if (PyErr_Occurred()) SWIG_fail;
17754 }
17755 resultobj = SWIG_Py_Void();
17756 return resultobj;
17757fail:
17758 return NULL;
17759}
17760
17761
17762SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17763 PyObject *resultobj = 0;
17764 wxDC *arg1 = (wxDC *) 0 ;
17765 wxRect *arg2 = 0 ;
17766 wxColour *arg3 = 0 ;
17767 wxColour *arg4 = 0 ;
17768 wxDirection arg5 = (wxDirection) wxEAST ;
17769 void *argp1 = 0 ;
17770 int res1 = 0 ;
17771 wxRect temp2 ;
17772 wxColour temp3 ;
17773 wxColour temp4 ;
17774 int val5 ;
17775 int ecode5 = 0 ;
17776 PyObject * obj0 = 0 ;
17777 PyObject * obj1 = 0 ;
17778 PyObject * obj2 = 0 ;
17779 PyObject * obj3 = 0 ;
17780 PyObject * obj4 = 0 ;
17781 char * kwnames[] = {
17782 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17783 };
17784
17785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17787 if (!SWIG_IsOK(res1)) {
17788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17789 }
17790 arg1 = reinterpret_cast< wxDC * >(argp1);
17791 {
17792 arg2 = &temp2;
17793 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17794 }
17795 {
17796 arg3 = &temp3;
17797 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17798 }
17799 {
17800 arg4 = &temp4;
17801 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17802 }
17803 if (obj4) {
17804 ecode5 = SWIG_AsVal_int(obj4, &val5);
17805 if (!SWIG_IsOK(ecode5)) {
17806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17807 }
17808 arg5 = static_cast< wxDirection >(val5);
17809 }
17810 {
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17813 wxPyEndAllowThreads(__tstate);
17814 if (PyErr_Occurred()) SWIG_fail;
17815 }
17816 resultobj = SWIG_Py_Void();
17817 return resultobj;
17818fail:
17819 return NULL;
17820}
17821
17822
17823SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17824 PyObject *resultobj = 0;
17825 wxDC *arg1 = (wxDC *) 0 ;
17826 int arg2 ;
17827 int arg3 ;
17828 wxColour result;
17829 void *argp1 = 0 ;
17830 int res1 = 0 ;
17831 int val2 ;
17832 int ecode2 = 0 ;
17833 int val3 ;
17834 int ecode3 = 0 ;
17835 PyObject * obj0 = 0 ;
17836 PyObject * obj1 = 0 ;
17837 PyObject * obj2 = 0 ;
17838 char * kwnames[] = {
17839 (char *) "self",(char *) "x",(char *) "y", NULL
17840 };
17841
17842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17844 if (!SWIG_IsOK(res1)) {
17845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17846 }
17847 arg1 = reinterpret_cast< wxDC * >(argp1);
17848 ecode2 = SWIG_AsVal_int(obj1, &val2);
17849 if (!SWIG_IsOK(ecode2)) {
17850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17851 }
17852 arg2 = static_cast< int >(val2);
17853 ecode3 = SWIG_AsVal_int(obj2, &val3);
17854 if (!SWIG_IsOK(ecode3)) {
17855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17856 }
17857 arg3 = static_cast< int >(val3);
17858 {
17859 PyThreadState* __tstate = wxPyBeginAllowThreads();
17860 result = wxDC_GetPixel(arg1,arg2,arg3);
17861 wxPyEndAllowThreads(__tstate);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 }
17864 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17865 return resultobj;
17866fail:
17867 return NULL;
17868}
17869
17870
17871SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17872 PyObject *resultobj = 0;
17873 wxDC *arg1 = (wxDC *) 0 ;
17874 wxPoint *arg2 = 0 ;
17875 wxColour result;
17876 void *argp1 = 0 ;
17877 int res1 = 0 ;
17878 wxPoint temp2 ;
17879 PyObject * obj0 = 0 ;
17880 PyObject * obj1 = 0 ;
17881 char * kwnames[] = {
17882 (char *) "self",(char *) "pt", NULL
17883 };
17884
17885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17887 if (!SWIG_IsOK(res1)) {
17888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17889 }
17890 arg1 = reinterpret_cast< wxDC * >(argp1);
17891 {
17892 arg2 = &temp2;
17893 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17894 }
17895 {
17896 PyThreadState* __tstate = wxPyBeginAllowThreads();
17897 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17902 return resultobj;
17903fail:
17904 return NULL;
17905}
17906
17907
17908SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj = 0;
17910 wxDC *arg1 = (wxDC *) 0 ;
17911 int arg2 ;
17912 int arg3 ;
17913 int arg4 ;
17914 int arg5 ;
17915 void *argp1 = 0 ;
17916 int res1 = 0 ;
17917 int val2 ;
17918 int ecode2 = 0 ;
17919 int val3 ;
17920 int ecode3 = 0 ;
17921 int val4 ;
17922 int ecode4 = 0 ;
17923 int val5 ;
17924 int ecode5 = 0 ;
17925 PyObject * obj0 = 0 ;
17926 PyObject * obj1 = 0 ;
17927 PyObject * obj2 = 0 ;
17928 PyObject * obj3 = 0 ;
17929 PyObject * obj4 = 0 ;
17930 char * kwnames[] = {
17931 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17932 };
17933
17934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17936 if (!SWIG_IsOK(res1)) {
17937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17938 }
17939 arg1 = reinterpret_cast< wxDC * >(argp1);
17940 ecode2 = SWIG_AsVal_int(obj1, &val2);
17941 if (!SWIG_IsOK(ecode2)) {
17942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17943 }
17944 arg2 = static_cast< int >(val2);
17945 ecode3 = SWIG_AsVal_int(obj2, &val3);
17946 if (!SWIG_IsOK(ecode3)) {
17947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17948 }
17949 arg3 = static_cast< int >(val3);
17950 ecode4 = SWIG_AsVal_int(obj3, &val4);
17951 if (!SWIG_IsOK(ecode4)) {
17952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17953 }
17954 arg4 = static_cast< int >(val4);
17955 ecode5 = SWIG_AsVal_int(obj4, &val5);
17956 if (!SWIG_IsOK(ecode5)) {
17957 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17958 }
17959 arg5 = static_cast< int >(val5);
17960 {
17961 PyThreadState* __tstate = wxPyBeginAllowThreads();
17962 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17963 wxPyEndAllowThreads(__tstate);
17964 if (PyErr_Occurred()) SWIG_fail;
17965 }
17966 resultobj = SWIG_Py_Void();
17967 return resultobj;
17968fail:
17969 return NULL;
17970}
17971
17972
17973SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17974 PyObject *resultobj = 0;
17975 wxDC *arg1 = (wxDC *) 0 ;
17976 wxPoint *arg2 = 0 ;
17977 wxPoint *arg3 = 0 ;
17978 void *argp1 = 0 ;
17979 int res1 = 0 ;
17980 wxPoint temp2 ;
17981 wxPoint temp3 ;
17982 PyObject * obj0 = 0 ;
17983 PyObject * obj1 = 0 ;
17984 PyObject * obj2 = 0 ;
17985 char * kwnames[] = {
17986 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17987 };
17988
17989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17991 if (!SWIG_IsOK(res1)) {
17992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17993 }
17994 arg1 = reinterpret_cast< wxDC * >(argp1);
17995 {
17996 arg2 = &temp2;
17997 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17998 }
17999 {
18000 arg3 = &temp3;
18001 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18002 }
18003 {
18004 PyThreadState* __tstate = wxPyBeginAllowThreads();
18005 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18006 wxPyEndAllowThreads(__tstate);
18007 if (PyErr_Occurred()) SWIG_fail;
18008 }
18009 resultobj = SWIG_Py_Void();
18010 return resultobj;
18011fail:
18012 return NULL;
18013}
18014
18015
18016SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18017 PyObject *resultobj = 0;
18018 wxDC *arg1 = (wxDC *) 0 ;
18019 int arg2 ;
18020 int arg3 ;
18021 void *argp1 = 0 ;
18022 int res1 = 0 ;
18023 int val2 ;
18024 int ecode2 = 0 ;
18025 int val3 ;
18026 int ecode3 = 0 ;
18027 PyObject * obj0 = 0 ;
18028 PyObject * obj1 = 0 ;
18029 PyObject * obj2 = 0 ;
18030 char * kwnames[] = {
18031 (char *) "self",(char *) "x",(char *) "y", NULL
18032 };
18033
18034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18036 if (!SWIG_IsOK(res1)) {
18037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18038 }
18039 arg1 = reinterpret_cast< wxDC * >(argp1);
18040 ecode2 = SWIG_AsVal_int(obj1, &val2);
18041 if (!SWIG_IsOK(ecode2)) {
18042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18043 }
18044 arg2 = static_cast< int >(val2);
18045 ecode3 = SWIG_AsVal_int(obj2, &val3);
18046 if (!SWIG_IsOK(ecode3)) {
18047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18048 }
18049 arg3 = static_cast< int >(val3);
18050 {
18051 PyThreadState* __tstate = wxPyBeginAllowThreads();
18052 (arg1)->CrossHair(arg2,arg3);
18053 wxPyEndAllowThreads(__tstate);
18054 if (PyErr_Occurred()) SWIG_fail;
18055 }
18056 resultobj = SWIG_Py_Void();
18057 return resultobj;
18058fail:
18059 return NULL;
18060}
18061
18062
18063SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18064 PyObject *resultobj = 0;
18065 wxDC *arg1 = (wxDC *) 0 ;
18066 wxPoint *arg2 = 0 ;
18067 void *argp1 = 0 ;
18068 int res1 = 0 ;
18069 wxPoint temp2 ;
18070 PyObject * obj0 = 0 ;
18071 PyObject * obj1 = 0 ;
18072 char * kwnames[] = {
18073 (char *) "self",(char *) "pt", NULL
18074 };
18075
18076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18078 if (!SWIG_IsOK(res1)) {
18079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18080 }
18081 arg1 = reinterpret_cast< wxDC * >(argp1);
18082 {
18083 arg2 = &temp2;
18084 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18085 }
18086 {
18087 PyThreadState* __tstate = wxPyBeginAllowThreads();
18088 (arg1)->CrossHair((wxPoint const &)*arg2);
18089 wxPyEndAllowThreads(__tstate);
18090 if (PyErr_Occurred()) SWIG_fail;
18091 }
18092 resultobj = SWIG_Py_Void();
18093 return resultobj;
18094fail:
18095 return NULL;
18096}
18097
18098
18099SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18100 PyObject *resultobj = 0;
18101 wxDC *arg1 = (wxDC *) 0 ;
18102 int arg2 ;
18103 int arg3 ;
18104 int arg4 ;
18105 int arg5 ;
18106 int arg6 ;
18107 int arg7 ;
18108 void *argp1 = 0 ;
18109 int res1 = 0 ;
18110 int val2 ;
18111 int ecode2 = 0 ;
18112 int val3 ;
18113 int ecode3 = 0 ;
18114 int val4 ;
18115 int ecode4 = 0 ;
18116 int val5 ;
18117 int ecode5 = 0 ;
18118 int val6 ;
18119 int ecode6 = 0 ;
18120 int val7 ;
18121 int ecode7 = 0 ;
18122 PyObject * obj0 = 0 ;
18123 PyObject * obj1 = 0 ;
18124 PyObject * obj2 = 0 ;
18125 PyObject * obj3 = 0 ;
18126 PyObject * obj4 = 0 ;
18127 PyObject * obj5 = 0 ;
18128 PyObject * obj6 = 0 ;
18129 char * kwnames[] = {
18130 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18131 };
18132
18133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18135 if (!SWIG_IsOK(res1)) {
18136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18137 }
18138 arg1 = reinterpret_cast< wxDC * >(argp1);
18139 ecode2 = SWIG_AsVal_int(obj1, &val2);
18140 if (!SWIG_IsOK(ecode2)) {
18141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18142 }
18143 arg2 = static_cast< int >(val2);
18144 ecode3 = SWIG_AsVal_int(obj2, &val3);
18145 if (!SWIG_IsOK(ecode3)) {
18146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18147 }
18148 arg3 = static_cast< int >(val3);
18149 ecode4 = SWIG_AsVal_int(obj3, &val4);
18150 if (!SWIG_IsOK(ecode4)) {
18151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18152 }
18153 arg4 = static_cast< int >(val4);
18154 ecode5 = SWIG_AsVal_int(obj4, &val5);
18155 if (!SWIG_IsOK(ecode5)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18157 }
18158 arg5 = static_cast< int >(val5);
18159 ecode6 = SWIG_AsVal_int(obj5, &val6);
18160 if (!SWIG_IsOK(ecode6)) {
18161 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18162 }
18163 arg6 = static_cast< int >(val6);
18164 ecode7 = SWIG_AsVal_int(obj6, &val7);
18165 if (!SWIG_IsOK(ecode7)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18167 }
18168 arg7 = static_cast< int >(val7);
18169 {
18170 PyThreadState* __tstate = wxPyBeginAllowThreads();
18171 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18172 wxPyEndAllowThreads(__tstate);
18173 if (PyErr_Occurred()) SWIG_fail;
18174 }
18175 resultobj = SWIG_Py_Void();
18176 return resultobj;
18177fail:
18178 return NULL;
18179}
18180
18181
18182SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18183 PyObject *resultobj = 0;
18184 wxDC *arg1 = (wxDC *) 0 ;
18185 wxPoint *arg2 = 0 ;
18186 wxPoint *arg3 = 0 ;
18187 wxPoint *arg4 = 0 ;
18188 void *argp1 = 0 ;
18189 int res1 = 0 ;
18190 wxPoint temp2 ;
18191 wxPoint temp3 ;
18192 wxPoint temp4 ;
18193 PyObject * obj0 = 0 ;
18194 PyObject * obj1 = 0 ;
18195 PyObject * obj2 = 0 ;
18196 PyObject * obj3 = 0 ;
18197 char * kwnames[] = {
18198 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18199 };
18200
18201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18203 if (!SWIG_IsOK(res1)) {
18204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18205 }
18206 arg1 = reinterpret_cast< wxDC * >(argp1);
18207 {
18208 arg2 = &temp2;
18209 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18210 }
18211 {
18212 arg3 = &temp3;
18213 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18214 }
18215 {
18216 arg4 = &temp4;
18217 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18218 }
18219 {
18220 PyThreadState* __tstate = wxPyBeginAllowThreads();
18221 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18222 wxPyEndAllowThreads(__tstate);
18223 if (PyErr_Occurred()) SWIG_fail;
18224 }
18225 resultobj = SWIG_Py_Void();
18226 return resultobj;
18227fail:
18228 return NULL;
18229}
18230
18231
18232SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18233 PyObject *resultobj = 0;
18234 wxDC *arg1 = (wxDC *) 0 ;
18235 int arg2 ;
18236 int arg3 ;
18237 int arg4 ;
18238 int arg5 ;
18239 void *argp1 = 0 ;
18240 int res1 = 0 ;
18241 int val2 ;
18242 int ecode2 = 0 ;
18243 int val3 ;
18244 int ecode3 = 0 ;
18245 int val4 ;
18246 int ecode4 = 0 ;
18247 int val5 ;
18248 int ecode5 = 0 ;
18249 PyObject * obj0 = 0 ;
18250 PyObject * obj1 = 0 ;
18251 PyObject * obj2 = 0 ;
18252 PyObject * obj3 = 0 ;
18253 PyObject * obj4 = 0 ;
18254 char * kwnames[] = {
18255 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18256 };
18257
18258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18260 if (!SWIG_IsOK(res1)) {
18261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18262 }
18263 arg1 = reinterpret_cast< wxDC * >(argp1);
18264 ecode2 = SWIG_AsVal_int(obj1, &val2);
18265 if (!SWIG_IsOK(ecode2)) {
18266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18267 }
18268 arg2 = static_cast< int >(val2);
18269 ecode3 = SWIG_AsVal_int(obj2, &val3);
18270 if (!SWIG_IsOK(ecode3)) {
18271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18272 }
18273 arg3 = static_cast< int >(val3);
18274 ecode4 = SWIG_AsVal_int(obj3, &val4);
18275 if (!SWIG_IsOK(ecode4)) {
18276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18277 }
18278 arg4 = static_cast< int >(val4);
18279 ecode5 = SWIG_AsVal_int(obj4, &val5);
18280 if (!SWIG_IsOK(ecode5)) {
18281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18282 }
18283 arg5 = static_cast< int >(val5);
18284 {
18285 PyThreadState* __tstate = wxPyBeginAllowThreads();
18286 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18287 wxPyEndAllowThreads(__tstate);
18288 if (PyErr_Occurred()) SWIG_fail;
18289 }
18290 resultobj = SWIG_Py_Void();
18291 return resultobj;
18292fail:
18293 return NULL;
18294}
18295
18296
18297SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18298 PyObject *resultobj = 0;
18299 wxDC *arg1 = (wxDC *) 0 ;
18300 wxRect *arg2 = 0 ;
18301 void *argp1 = 0 ;
18302 int res1 = 0 ;
18303 wxRect temp2 ;
18304 PyObject * obj0 = 0 ;
18305 PyObject * obj1 = 0 ;
18306 char * kwnames[] = {
18307 (char *) "self",(char *) "rect", NULL
18308 };
18309
18310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18312 if (!SWIG_IsOK(res1)) {
18313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18314 }
18315 arg1 = reinterpret_cast< wxDC * >(argp1);
18316 {
18317 arg2 = &temp2;
18318 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18319 }
18320 {
18321 PyThreadState* __tstate = wxPyBeginAllowThreads();
18322 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18323 wxPyEndAllowThreads(__tstate);
18324 if (PyErr_Occurred()) SWIG_fail;
18325 }
18326 resultobj = SWIG_Py_Void();
18327 return resultobj;
18328fail:
18329 return NULL;
18330}
18331
18332
18333SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18334 PyObject *resultobj = 0;
18335 wxDC *arg1 = (wxDC *) 0 ;
18336 int arg2 ;
18337 int arg3 ;
18338 int arg4 ;
18339 int arg5 ;
18340 double arg6 ;
18341 double arg7 ;
18342 void *argp1 = 0 ;
18343 int res1 = 0 ;
18344 int val2 ;
18345 int ecode2 = 0 ;
18346 int val3 ;
18347 int ecode3 = 0 ;
18348 int val4 ;
18349 int ecode4 = 0 ;
18350 int val5 ;
18351 int ecode5 = 0 ;
18352 double val6 ;
18353 int ecode6 = 0 ;
18354 double val7 ;
18355 int ecode7 = 0 ;
18356 PyObject * obj0 = 0 ;
18357 PyObject * obj1 = 0 ;
18358 PyObject * obj2 = 0 ;
18359 PyObject * obj3 = 0 ;
18360 PyObject * obj4 = 0 ;
18361 PyObject * obj5 = 0 ;
18362 PyObject * obj6 = 0 ;
18363 char * kwnames[] = {
18364 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18365 };
18366
18367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18369 if (!SWIG_IsOK(res1)) {
18370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18371 }
18372 arg1 = reinterpret_cast< wxDC * >(argp1);
18373 ecode2 = SWIG_AsVal_int(obj1, &val2);
18374 if (!SWIG_IsOK(ecode2)) {
18375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18376 }
18377 arg2 = static_cast< int >(val2);
18378 ecode3 = SWIG_AsVal_int(obj2, &val3);
18379 if (!SWIG_IsOK(ecode3)) {
18380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18381 }
18382 arg3 = static_cast< int >(val3);
18383 ecode4 = SWIG_AsVal_int(obj3, &val4);
18384 if (!SWIG_IsOK(ecode4)) {
18385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18386 }
18387 arg4 = static_cast< int >(val4);
18388 ecode5 = SWIG_AsVal_int(obj4, &val5);
18389 if (!SWIG_IsOK(ecode5)) {
18390 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18391 }
18392 arg5 = static_cast< int >(val5);
18393 ecode6 = SWIG_AsVal_double(obj5, &val6);
18394 if (!SWIG_IsOK(ecode6)) {
18395 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18396 }
18397 arg6 = static_cast< double >(val6);
18398 ecode7 = SWIG_AsVal_double(obj6, &val7);
18399 if (!SWIG_IsOK(ecode7)) {
18400 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18401 }
18402 arg7 = static_cast< double >(val7);
18403 {
18404 PyThreadState* __tstate = wxPyBeginAllowThreads();
18405 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18406 wxPyEndAllowThreads(__tstate);
18407 if (PyErr_Occurred()) SWIG_fail;
18408 }
18409 resultobj = SWIG_Py_Void();
18410 return resultobj;
18411fail:
18412 return NULL;
18413}
18414
18415
18416SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18417 PyObject *resultobj = 0;
18418 wxDC *arg1 = (wxDC *) 0 ;
18419 wxPoint *arg2 = 0 ;
18420 wxSize *arg3 = 0 ;
18421 double arg4 ;
18422 double arg5 ;
18423 void *argp1 = 0 ;
18424 int res1 = 0 ;
18425 wxPoint temp2 ;
18426 wxSize temp3 ;
18427 double val4 ;
18428 int ecode4 = 0 ;
18429 double val5 ;
18430 int ecode5 = 0 ;
18431 PyObject * obj0 = 0 ;
18432 PyObject * obj1 = 0 ;
18433 PyObject * obj2 = 0 ;
18434 PyObject * obj3 = 0 ;
18435 PyObject * obj4 = 0 ;
18436 char * kwnames[] = {
18437 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18438 };
18439
18440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18442 if (!SWIG_IsOK(res1)) {
18443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18444 }
18445 arg1 = reinterpret_cast< wxDC * >(argp1);
18446 {
18447 arg2 = &temp2;
18448 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18449 }
18450 {
18451 arg3 = &temp3;
18452 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18453 }
18454 ecode4 = SWIG_AsVal_double(obj3, &val4);
18455 if (!SWIG_IsOK(ecode4)) {
18456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18457 }
18458 arg4 = static_cast< double >(val4);
18459 ecode5 = SWIG_AsVal_double(obj4, &val5);
18460 if (!SWIG_IsOK(ecode5)) {
18461 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18462 }
18463 arg5 = static_cast< double >(val5);
18464 {
18465 PyThreadState* __tstate = wxPyBeginAllowThreads();
18466 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18467 wxPyEndAllowThreads(__tstate);
18468 if (PyErr_Occurred()) SWIG_fail;
18469 }
18470 resultobj = SWIG_Py_Void();
18471 return resultobj;
18472fail:
18473 return NULL;
18474}
18475
18476
18477SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18478 PyObject *resultobj = 0;
18479 wxDC *arg1 = (wxDC *) 0 ;
18480 int arg2 ;
18481 int arg3 ;
18482 void *argp1 = 0 ;
18483 int res1 = 0 ;
18484 int val2 ;
18485 int ecode2 = 0 ;
18486 int val3 ;
18487 int ecode3 = 0 ;
18488 PyObject * obj0 = 0 ;
18489 PyObject * obj1 = 0 ;
18490 PyObject * obj2 = 0 ;
18491 char * kwnames[] = {
18492 (char *) "self",(char *) "x",(char *) "y", NULL
18493 };
18494
18495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18497 if (!SWIG_IsOK(res1)) {
18498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18499 }
18500 arg1 = reinterpret_cast< wxDC * >(argp1);
18501 ecode2 = SWIG_AsVal_int(obj1, &val2);
18502 if (!SWIG_IsOK(ecode2)) {
18503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18504 }
18505 arg2 = static_cast< int >(val2);
18506 ecode3 = SWIG_AsVal_int(obj2, &val3);
18507 if (!SWIG_IsOK(ecode3)) {
18508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18509 }
18510 arg3 = static_cast< int >(val3);
18511 {
18512 PyThreadState* __tstate = wxPyBeginAllowThreads();
18513 (arg1)->DrawPoint(arg2,arg3);
18514 wxPyEndAllowThreads(__tstate);
18515 if (PyErr_Occurred()) SWIG_fail;
18516 }
18517 resultobj = SWIG_Py_Void();
18518 return resultobj;
18519fail:
18520 return NULL;
18521}
18522
18523
18524SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18525 PyObject *resultobj = 0;
18526 wxDC *arg1 = (wxDC *) 0 ;
18527 wxPoint *arg2 = 0 ;
18528 void *argp1 = 0 ;
18529 int res1 = 0 ;
18530 wxPoint temp2 ;
18531 PyObject * obj0 = 0 ;
18532 PyObject * obj1 = 0 ;
18533 char * kwnames[] = {
18534 (char *) "self",(char *) "pt", NULL
18535 };
18536
18537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18539 if (!SWIG_IsOK(res1)) {
18540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18541 }
18542 arg1 = reinterpret_cast< wxDC * >(argp1);
18543 {
18544 arg2 = &temp2;
18545 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18546 }
18547 {
18548 PyThreadState* __tstate = wxPyBeginAllowThreads();
18549 (arg1)->DrawPoint((wxPoint const &)*arg2);
18550 wxPyEndAllowThreads(__tstate);
18551 if (PyErr_Occurred()) SWIG_fail;
18552 }
18553 resultobj = SWIG_Py_Void();
18554 return resultobj;
18555fail:
18556 return NULL;
18557}
18558
18559
18560SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18561 PyObject *resultobj = 0;
18562 wxDC *arg1 = (wxDC *) 0 ;
18563 int arg2 ;
18564 int arg3 ;
18565 int arg4 ;
18566 int arg5 ;
18567 void *argp1 = 0 ;
18568 int res1 = 0 ;
18569 int val2 ;
18570 int ecode2 = 0 ;
18571 int val3 ;
18572 int ecode3 = 0 ;
18573 int val4 ;
18574 int ecode4 = 0 ;
18575 int val5 ;
18576 int ecode5 = 0 ;
18577 PyObject * obj0 = 0 ;
18578 PyObject * obj1 = 0 ;
18579 PyObject * obj2 = 0 ;
18580 PyObject * obj3 = 0 ;
18581 PyObject * obj4 = 0 ;
18582 char * kwnames[] = {
18583 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18584 };
18585
18586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18588 if (!SWIG_IsOK(res1)) {
18589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18590 }
18591 arg1 = reinterpret_cast< wxDC * >(argp1);
18592 ecode2 = SWIG_AsVal_int(obj1, &val2);
18593 if (!SWIG_IsOK(ecode2)) {
18594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18595 }
18596 arg2 = static_cast< int >(val2);
18597 ecode3 = SWIG_AsVal_int(obj2, &val3);
18598 if (!SWIG_IsOK(ecode3)) {
18599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18600 }
18601 arg3 = static_cast< int >(val3);
18602 ecode4 = SWIG_AsVal_int(obj3, &val4);
18603 if (!SWIG_IsOK(ecode4)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18605 }
18606 arg4 = static_cast< int >(val4);
18607 ecode5 = SWIG_AsVal_int(obj4, &val5);
18608 if (!SWIG_IsOK(ecode5)) {
18609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18610 }
18611 arg5 = static_cast< int >(val5);
18612 {
18613 PyThreadState* __tstate = wxPyBeginAllowThreads();
18614 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18615 wxPyEndAllowThreads(__tstate);
18616 if (PyErr_Occurred()) SWIG_fail;
18617 }
18618 resultobj = SWIG_Py_Void();
18619 return resultobj;
18620fail:
18621 return NULL;
18622}
18623
18624
18625SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18626 PyObject *resultobj = 0;
18627 wxDC *arg1 = (wxDC *) 0 ;
18628 wxRect *arg2 = 0 ;
18629 void *argp1 = 0 ;
18630 int res1 = 0 ;
18631 wxRect temp2 ;
18632 PyObject * obj0 = 0 ;
18633 PyObject * obj1 = 0 ;
18634 char * kwnames[] = {
18635 (char *) "self",(char *) "rect", NULL
18636 };
18637
18638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18640 if (!SWIG_IsOK(res1)) {
18641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18642 }
18643 arg1 = reinterpret_cast< wxDC * >(argp1);
18644 {
18645 arg2 = &temp2;
18646 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18647 }
18648 {
18649 PyThreadState* __tstate = wxPyBeginAllowThreads();
18650 (arg1)->DrawRectangle((wxRect const &)*arg2);
18651 wxPyEndAllowThreads(__tstate);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 resultobj = SWIG_Py_Void();
18655 return resultobj;
18656fail:
18657 return NULL;
18658}
18659
18660
18661SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18662 PyObject *resultobj = 0;
18663 wxDC *arg1 = (wxDC *) 0 ;
18664 wxPoint *arg2 = 0 ;
18665 wxSize *arg3 = 0 ;
18666 void *argp1 = 0 ;
18667 int res1 = 0 ;
18668 wxPoint temp2 ;
18669 wxSize temp3 ;
18670 PyObject * obj0 = 0 ;
18671 PyObject * obj1 = 0 ;
18672 PyObject * obj2 = 0 ;
18673 char * kwnames[] = {
18674 (char *) "self",(char *) "pt",(char *) "sz", NULL
18675 };
18676
18677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18679 if (!SWIG_IsOK(res1)) {
18680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18681 }
18682 arg1 = reinterpret_cast< wxDC * >(argp1);
18683 {
18684 arg2 = &temp2;
18685 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18686 }
18687 {
18688 arg3 = &temp3;
18689 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18690 }
18691 {
18692 PyThreadState* __tstate = wxPyBeginAllowThreads();
18693 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18694 wxPyEndAllowThreads(__tstate);
18695 if (PyErr_Occurred()) SWIG_fail;
18696 }
18697 resultobj = SWIG_Py_Void();
18698 return resultobj;
18699fail:
18700 return NULL;
18701}
18702
18703
18704SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18705 PyObject *resultobj = 0;
18706 wxDC *arg1 = (wxDC *) 0 ;
18707 int arg2 ;
18708 int arg3 ;
18709 int arg4 ;
18710 int arg5 ;
18711 double arg6 ;
18712 void *argp1 = 0 ;
18713 int res1 = 0 ;
18714 int val2 ;
18715 int ecode2 = 0 ;
18716 int val3 ;
18717 int ecode3 = 0 ;
18718 int val4 ;
18719 int ecode4 = 0 ;
18720 int val5 ;
18721 int ecode5 = 0 ;
18722 double val6 ;
18723 int ecode6 = 0 ;
18724 PyObject * obj0 = 0 ;
18725 PyObject * obj1 = 0 ;
18726 PyObject * obj2 = 0 ;
18727 PyObject * obj3 = 0 ;
18728 PyObject * obj4 = 0 ;
18729 PyObject * obj5 = 0 ;
18730 char * kwnames[] = {
18731 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18732 };
18733
18734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18736 if (!SWIG_IsOK(res1)) {
18737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18738 }
18739 arg1 = reinterpret_cast< wxDC * >(argp1);
18740 ecode2 = SWIG_AsVal_int(obj1, &val2);
18741 if (!SWIG_IsOK(ecode2)) {
18742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18743 }
18744 arg2 = static_cast< int >(val2);
18745 ecode3 = SWIG_AsVal_int(obj2, &val3);
18746 if (!SWIG_IsOK(ecode3)) {
18747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18748 }
18749 arg3 = static_cast< int >(val3);
18750 ecode4 = SWIG_AsVal_int(obj3, &val4);
18751 if (!SWIG_IsOK(ecode4)) {
18752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18753 }
18754 arg4 = static_cast< int >(val4);
18755 ecode5 = SWIG_AsVal_int(obj4, &val5);
18756 if (!SWIG_IsOK(ecode5)) {
18757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18758 }
18759 arg5 = static_cast< int >(val5);
18760 ecode6 = SWIG_AsVal_double(obj5, &val6);
18761 if (!SWIG_IsOK(ecode6)) {
18762 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18763 }
18764 arg6 = static_cast< double >(val6);
18765 {
18766 PyThreadState* __tstate = wxPyBeginAllowThreads();
18767 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18768 wxPyEndAllowThreads(__tstate);
18769 if (PyErr_Occurred()) SWIG_fail;
18770 }
18771 resultobj = SWIG_Py_Void();
18772 return resultobj;
18773fail:
18774 return NULL;
18775}
18776
18777
18778SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18779 PyObject *resultobj = 0;
18780 wxDC *arg1 = (wxDC *) 0 ;
18781 wxRect *arg2 = 0 ;
18782 double arg3 ;
18783 void *argp1 = 0 ;
18784 int res1 = 0 ;
18785 wxRect temp2 ;
18786 double val3 ;
18787 int ecode3 = 0 ;
18788 PyObject * obj0 = 0 ;
18789 PyObject * obj1 = 0 ;
18790 PyObject * obj2 = 0 ;
18791 char * kwnames[] = {
18792 (char *) "self",(char *) "r",(char *) "radius", NULL
18793 };
18794
18795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18797 if (!SWIG_IsOK(res1)) {
18798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18799 }
18800 arg1 = reinterpret_cast< wxDC * >(argp1);
18801 {
18802 arg2 = &temp2;
18803 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18804 }
18805 ecode3 = SWIG_AsVal_double(obj2, &val3);
18806 if (!SWIG_IsOK(ecode3)) {
18807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18808 }
18809 arg3 = static_cast< double >(val3);
18810 {
18811 PyThreadState* __tstate = wxPyBeginAllowThreads();
18812 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18813 wxPyEndAllowThreads(__tstate);
18814 if (PyErr_Occurred()) SWIG_fail;
18815 }
18816 resultobj = SWIG_Py_Void();
18817 return resultobj;
18818fail:
18819 return NULL;
18820}
18821
18822
18823SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18824 PyObject *resultobj = 0;
18825 wxDC *arg1 = (wxDC *) 0 ;
18826 wxPoint *arg2 = 0 ;
18827 wxSize *arg3 = 0 ;
18828 double arg4 ;
18829 void *argp1 = 0 ;
18830 int res1 = 0 ;
18831 wxPoint temp2 ;
18832 wxSize temp3 ;
18833 double val4 ;
18834 int ecode4 = 0 ;
18835 PyObject * obj0 = 0 ;
18836 PyObject * obj1 = 0 ;
18837 PyObject * obj2 = 0 ;
18838 PyObject * obj3 = 0 ;
18839 char * kwnames[] = {
18840 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18841 };
18842
18843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18845 if (!SWIG_IsOK(res1)) {
18846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18847 }
18848 arg1 = reinterpret_cast< wxDC * >(argp1);
18849 {
18850 arg2 = &temp2;
18851 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18852 }
18853 {
18854 arg3 = &temp3;
18855 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18856 }
18857 ecode4 = SWIG_AsVal_double(obj3, &val4);
18858 if (!SWIG_IsOK(ecode4)) {
18859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18860 }
18861 arg4 = static_cast< double >(val4);
18862 {
18863 PyThreadState* __tstate = wxPyBeginAllowThreads();
18864 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18865 wxPyEndAllowThreads(__tstate);
18866 if (PyErr_Occurred()) SWIG_fail;
18867 }
18868 resultobj = SWIG_Py_Void();
18869 return resultobj;
18870fail:
18871 return NULL;
18872}
18873
18874
18875SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18876 PyObject *resultobj = 0;
18877 wxDC *arg1 = (wxDC *) 0 ;
18878 int arg2 ;
18879 int arg3 ;
18880 int arg4 ;
18881 void *argp1 = 0 ;
18882 int res1 = 0 ;
18883 int val2 ;
18884 int ecode2 = 0 ;
18885 int val3 ;
18886 int ecode3 = 0 ;
18887 int val4 ;
18888 int ecode4 = 0 ;
18889 PyObject * obj0 = 0 ;
18890 PyObject * obj1 = 0 ;
18891 PyObject * obj2 = 0 ;
18892 PyObject * obj3 = 0 ;
18893 char * kwnames[] = {
18894 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18895 };
18896
18897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18899 if (!SWIG_IsOK(res1)) {
18900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18901 }
18902 arg1 = reinterpret_cast< wxDC * >(argp1);
18903 ecode2 = SWIG_AsVal_int(obj1, &val2);
18904 if (!SWIG_IsOK(ecode2)) {
18905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18906 }
18907 arg2 = static_cast< int >(val2);
18908 ecode3 = SWIG_AsVal_int(obj2, &val3);
18909 if (!SWIG_IsOK(ecode3)) {
18910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18911 }
18912 arg3 = static_cast< int >(val3);
18913 ecode4 = SWIG_AsVal_int(obj3, &val4);
18914 if (!SWIG_IsOK(ecode4)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18916 }
18917 arg4 = static_cast< int >(val4);
18918 {
18919 PyThreadState* __tstate = wxPyBeginAllowThreads();
18920 (arg1)->DrawCircle(arg2,arg3,arg4);
18921 wxPyEndAllowThreads(__tstate);
18922 if (PyErr_Occurred()) SWIG_fail;
18923 }
18924 resultobj = SWIG_Py_Void();
18925 return resultobj;
18926fail:
18927 return NULL;
18928}
18929
18930
18931SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18932 PyObject *resultobj = 0;
18933 wxDC *arg1 = (wxDC *) 0 ;
18934 wxPoint *arg2 = 0 ;
18935 int arg3 ;
18936 void *argp1 = 0 ;
18937 int res1 = 0 ;
18938 wxPoint temp2 ;
18939 int val3 ;
18940 int ecode3 = 0 ;
18941 PyObject * obj0 = 0 ;
18942 PyObject * obj1 = 0 ;
18943 PyObject * obj2 = 0 ;
18944 char * kwnames[] = {
18945 (char *) "self",(char *) "pt",(char *) "radius", NULL
18946 };
18947
18948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18950 if (!SWIG_IsOK(res1)) {
18951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18952 }
18953 arg1 = reinterpret_cast< wxDC * >(argp1);
18954 {
18955 arg2 = &temp2;
18956 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18957 }
18958 ecode3 = SWIG_AsVal_int(obj2, &val3);
18959 if (!SWIG_IsOK(ecode3)) {
18960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18961 }
18962 arg3 = static_cast< int >(val3);
18963 {
18964 PyThreadState* __tstate = wxPyBeginAllowThreads();
18965 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18966 wxPyEndAllowThreads(__tstate);
18967 if (PyErr_Occurred()) SWIG_fail;
18968 }
18969 resultobj = SWIG_Py_Void();
18970 return resultobj;
18971fail:
18972 return NULL;
18973}
18974
18975
18976SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18977 PyObject *resultobj = 0;
18978 wxDC *arg1 = (wxDC *) 0 ;
18979 int arg2 ;
18980 int arg3 ;
18981 int arg4 ;
18982 int arg5 ;
18983 void *argp1 = 0 ;
18984 int res1 = 0 ;
18985 int val2 ;
18986 int ecode2 = 0 ;
18987 int val3 ;
18988 int ecode3 = 0 ;
18989 int val4 ;
18990 int ecode4 = 0 ;
18991 int val5 ;
18992 int ecode5 = 0 ;
18993 PyObject * obj0 = 0 ;
18994 PyObject * obj1 = 0 ;
18995 PyObject * obj2 = 0 ;
18996 PyObject * obj3 = 0 ;
18997 PyObject * obj4 = 0 ;
18998 char * kwnames[] = {
18999 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19000 };
19001
19002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19004 if (!SWIG_IsOK(res1)) {
19005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19006 }
19007 arg1 = reinterpret_cast< wxDC * >(argp1);
19008 ecode2 = SWIG_AsVal_int(obj1, &val2);
19009 if (!SWIG_IsOK(ecode2)) {
19010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19011 }
19012 arg2 = static_cast< int >(val2);
19013 ecode3 = SWIG_AsVal_int(obj2, &val3);
19014 if (!SWIG_IsOK(ecode3)) {
19015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19016 }
19017 arg3 = static_cast< int >(val3);
19018 ecode4 = SWIG_AsVal_int(obj3, &val4);
19019 if (!SWIG_IsOK(ecode4)) {
19020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19021 }
19022 arg4 = static_cast< int >(val4);
19023 ecode5 = SWIG_AsVal_int(obj4, &val5);
19024 if (!SWIG_IsOK(ecode5)) {
19025 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19026 }
19027 arg5 = static_cast< int >(val5);
19028 {
19029 PyThreadState* __tstate = wxPyBeginAllowThreads();
19030 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19031 wxPyEndAllowThreads(__tstate);
19032 if (PyErr_Occurred()) SWIG_fail;
19033 }
19034 resultobj = SWIG_Py_Void();
19035 return resultobj;
19036fail:
19037 return NULL;
19038}
19039
19040
19041SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19042 PyObject *resultobj = 0;
19043 wxDC *arg1 = (wxDC *) 0 ;
19044 wxRect *arg2 = 0 ;
19045 void *argp1 = 0 ;
19046 int res1 = 0 ;
19047 wxRect temp2 ;
19048 PyObject * obj0 = 0 ;
19049 PyObject * obj1 = 0 ;
19050 char * kwnames[] = {
19051 (char *) "self",(char *) "rect", NULL
19052 };
19053
19054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19056 if (!SWIG_IsOK(res1)) {
19057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19058 }
19059 arg1 = reinterpret_cast< wxDC * >(argp1);
19060 {
19061 arg2 = &temp2;
19062 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19063 }
19064 {
19065 PyThreadState* __tstate = wxPyBeginAllowThreads();
19066 (arg1)->DrawEllipse((wxRect const &)*arg2);
19067 wxPyEndAllowThreads(__tstate);
19068 if (PyErr_Occurred()) SWIG_fail;
19069 }
19070 resultobj = SWIG_Py_Void();
19071 return resultobj;
19072fail:
19073 return NULL;
19074}
19075
19076
19077SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19078 PyObject *resultobj = 0;
19079 wxDC *arg1 = (wxDC *) 0 ;
19080 wxPoint *arg2 = 0 ;
19081 wxSize *arg3 = 0 ;
19082 void *argp1 = 0 ;
19083 int res1 = 0 ;
19084 wxPoint temp2 ;
19085 wxSize temp3 ;
19086 PyObject * obj0 = 0 ;
19087 PyObject * obj1 = 0 ;
19088 PyObject * obj2 = 0 ;
19089 char * kwnames[] = {
19090 (char *) "self",(char *) "pt",(char *) "sz", NULL
19091 };
19092
19093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19095 if (!SWIG_IsOK(res1)) {
19096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19097 }
19098 arg1 = reinterpret_cast< wxDC * >(argp1);
19099 {
19100 arg2 = &temp2;
19101 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19102 }
19103 {
19104 arg3 = &temp3;
19105 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19106 }
19107 {
19108 PyThreadState* __tstate = wxPyBeginAllowThreads();
19109 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19110 wxPyEndAllowThreads(__tstate);
19111 if (PyErr_Occurred()) SWIG_fail;
19112 }
19113 resultobj = SWIG_Py_Void();
19114 return resultobj;
19115fail:
19116 return NULL;
19117}
19118
19119
19120SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19121 PyObject *resultobj = 0;
19122 wxDC *arg1 = (wxDC *) 0 ;
19123 wxIcon *arg2 = 0 ;
19124 int arg3 ;
19125 int arg4 ;
19126 void *argp1 = 0 ;
19127 int res1 = 0 ;
19128 void *argp2 = 0 ;
19129 int res2 = 0 ;
19130 int val3 ;
19131 int ecode3 = 0 ;
19132 int val4 ;
19133 int ecode4 = 0 ;
19134 PyObject * obj0 = 0 ;
19135 PyObject * obj1 = 0 ;
19136 PyObject * obj2 = 0 ;
19137 PyObject * obj3 = 0 ;
19138 char * kwnames[] = {
19139 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19140 };
19141
19142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19144 if (!SWIG_IsOK(res1)) {
19145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19146 }
19147 arg1 = reinterpret_cast< wxDC * >(argp1);
19148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19149 if (!SWIG_IsOK(res2)) {
19150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19151 }
19152 if (!argp2) {
19153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19154 }
19155 arg2 = reinterpret_cast< wxIcon * >(argp2);
19156 ecode3 = SWIG_AsVal_int(obj2, &val3);
19157 if (!SWIG_IsOK(ecode3)) {
19158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19159 }
19160 arg3 = static_cast< int >(val3);
19161 ecode4 = SWIG_AsVal_int(obj3, &val4);
19162 if (!SWIG_IsOK(ecode4)) {
19163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19164 }
19165 arg4 = static_cast< int >(val4);
19166 {
19167 PyThreadState* __tstate = wxPyBeginAllowThreads();
19168 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19169 wxPyEndAllowThreads(__tstate);
19170 if (PyErr_Occurred()) SWIG_fail;
19171 }
19172 resultobj = SWIG_Py_Void();
19173 return resultobj;
19174fail:
19175 return NULL;
19176}
19177
19178
19179SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19180 PyObject *resultobj = 0;
19181 wxDC *arg1 = (wxDC *) 0 ;
19182 wxIcon *arg2 = 0 ;
19183 wxPoint *arg3 = 0 ;
19184 void *argp1 = 0 ;
19185 int res1 = 0 ;
19186 void *argp2 = 0 ;
19187 int res2 = 0 ;
19188 wxPoint temp3 ;
19189 PyObject * obj0 = 0 ;
19190 PyObject * obj1 = 0 ;
19191 PyObject * obj2 = 0 ;
19192 char * kwnames[] = {
19193 (char *) "self",(char *) "icon",(char *) "pt", NULL
19194 };
19195
19196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19198 if (!SWIG_IsOK(res1)) {
19199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19200 }
19201 arg1 = reinterpret_cast< wxDC * >(argp1);
19202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19203 if (!SWIG_IsOK(res2)) {
19204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19205 }
19206 if (!argp2) {
19207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19208 }
19209 arg2 = reinterpret_cast< wxIcon * >(argp2);
19210 {
19211 arg3 = &temp3;
19212 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19213 }
19214 {
19215 PyThreadState* __tstate = wxPyBeginAllowThreads();
19216 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19217 wxPyEndAllowThreads(__tstate);
19218 if (PyErr_Occurred()) SWIG_fail;
19219 }
19220 resultobj = SWIG_Py_Void();
19221 return resultobj;
19222fail:
19223 return NULL;
19224}
19225
19226
19227SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19228 PyObject *resultobj = 0;
19229 wxDC *arg1 = (wxDC *) 0 ;
19230 wxBitmap *arg2 = 0 ;
19231 int arg3 ;
19232 int arg4 ;
19233 bool arg5 = (bool) false ;
19234 void *argp1 = 0 ;
19235 int res1 = 0 ;
19236 void *argp2 = 0 ;
19237 int res2 = 0 ;
19238 int val3 ;
19239 int ecode3 = 0 ;
19240 int val4 ;
19241 int ecode4 = 0 ;
19242 bool val5 ;
19243 int ecode5 = 0 ;
19244 PyObject * obj0 = 0 ;
19245 PyObject * obj1 = 0 ;
19246 PyObject * obj2 = 0 ;
19247 PyObject * obj3 = 0 ;
19248 PyObject * obj4 = 0 ;
19249 char * kwnames[] = {
19250 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19251 };
19252
19253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19255 if (!SWIG_IsOK(res1)) {
19256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19257 }
19258 arg1 = reinterpret_cast< wxDC * >(argp1);
19259 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19260 if (!SWIG_IsOK(res2)) {
19261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19262 }
19263 if (!argp2) {
19264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19265 }
19266 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19267 ecode3 = SWIG_AsVal_int(obj2, &val3);
19268 if (!SWIG_IsOK(ecode3)) {
19269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19270 }
19271 arg3 = static_cast< int >(val3);
19272 ecode4 = SWIG_AsVal_int(obj3, &val4);
19273 if (!SWIG_IsOK(ecode4)) {
19274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19275 }
19276 arg4 = static_cast< int >(val4);
19277 if (obj4) {
19278 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19279 if (!SWIG_IsOK(ecode5)) {
19280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19281 }
19282 arg5 = static_cast< bool >(val5);
19283 }
19284 {
19285 PyThreadState* __tstate = wxPyBeginAllowThreads();
19286 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19287 wxPyEndAllowThreads(__tstate);
19288 if (PyErr_Occurred()) SWIG_fail;
19289 }
19290 resultobj = SWIG_Py_Void();
19291 return resultobj;
19292fail:
19293 return NULL;
19294}
19295
19296
19297SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19298 PyObject *resultobj = 0;
19299 wxDC *arg1 = (wxDC *) 0 ;
19300 wxBitmap *arg2 = 0 ;
19301 wxPoint *arg3 = 0 ;
19302 bool arg4 = (bool) false ;
19303 void *argp1 = 0 ;
19304 int res1 = 0 ;
19305 void *argp2 = 0 ;
19306 int res2 = 0 ;
19307 wxPoint temp3 ;
19308 bool val4 ;
19309 int ecode4 = 0 ;
19310 PyObject * obj0 = 0 ;
19311 PyObject * obj1 = 0 ;
19312 PyObject * obj2 = 0 ;
19313 PyObject * obj3 = 0 ;
19314 char * kwnames[] = {
19315 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19316 };
19317
19318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19320 if (!SWIG_IsOK(res1)) {
19321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19322 }
19323 arg1 = reinterpret_cast< wxDC * >(argp1);
19324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19325 if (!SWIG_IsOK(res2)) {
19326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19327 }
19328 if (!argp2) {
19329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19330 }
19331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19332 {
19333 arg3 = &temp3;
19334 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19335 }
19336 if (obj3) {
19337 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19338 if (!SWIG_IsOK(ecode4)) {
19339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19340 }
19341 arg4 = static_cast< bool >(val4);
19342 }
19343 {
19344 PyThreadState* __tstate = wxPyBeginAllowThreads();
19345 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19346 wxPyEndAllowThreads(__tstate);
19347 if (PyErr_Occurred()) SWIG_fail;
19348 }
19349 resultobj = SWIG_Py_Void();
19350 return resultobj;
19351fail:
19352 return NULL;
19353}
19354
19355
19356SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19357 PyObject *resultobj = 0;
19358 wxDC *arg1 = (wxDC *) 0 ;
19359 wxString *arg2 = 0 ;
19360 int arg3 ;
19361 int arg4 ;
19362 void *argp1 = 0 ;
19363 int res1 = 0 ;
19364 bool temp2 = false ;
19365 int val3 ;
19366 int ecode3 = 0 ;
19367 int val4 ;
19368 int ecode4 = 0 ;
19369 PyObject * obj0 = 0 ;
19370 PyObject * obj1 = 0 ;
19371 PyObject * obj2 = 0 ;
19372 PyObject * obj3 = 0 ;
19373 char * kwnames[] = {
19374 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19375 };
19376
19377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19379 if (!SWIG_IsOK(res1)) {
19380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19381 }
19382 arg1 = reinterpret_cast< wxDC * >(argp1);
19383 {
19384 arg2 = wxString_in_helper(obj1);
19385 if (arg2 == NULL) SWIG_fail;
19386 temp2 = true;
19387 }
19388 ecode3 = SWIG_AsVal_int(obj2, &val3);
19389 if (!SWIG_IsOK(ecode3)) {
19390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19391 }
19392 arg3 = static_cast< int >(val3);
19393 ecode4 = SWIG_AsVal_int(obj3, &val4);
19394 if (!SWIG_IsOK(ecode4)) {
19395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19396 }
19397 arg4 = static_cast< int >(val4);
19398 {
19399 PyThreadState* __tstate = wxPyBeginAllowThreads();
19400 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19401 wxPyEndAllowThreads(__tstate);
19402 if (PyErr_Occurred()) SWIG_fail;
19403 }
19404 resultobj = SWIG_Py_Void();
19405 {
19406 if (temp2)
19407 delete arg2;
19408 }
19409 return resultobj;
19410fail:
19411 {
19412 if (temp2)
19413 delete arg2;
19414 }
19415 return NULL;
19416}
19417
19418
19419SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19420 PyObject *resultobj = 0;
19421 wxDC *arg1 = (wxDC *) 0 ;
19422 wxString *arg2 = 0 ;
19423 wxPoint *arg3 = 0 ;
19424 void *argp1 = 0 ;
19425 int res1 = 0 ;
19426 bool temp2 = false ;
19427 wxPoint temp3 ;
19428 PyObject * obj0 = 0 ;
19429 PyObject * obj1 = 0 ;
19430 PyObject * obj2 = 0 ;
19431 char * kwnames[] = {
19432 (char *) "self",(char *) "text",(char *) "pt", NULL
19433 };
19434
19435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19437 if (!SWIG_IsOK(res1)) {
19438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19439 }
19440 arg1 = reinterpret_cast< wxDC * >(argp1);
19441 {
19442 arg2 = wxString_in_helper(obj1);
19443 if (arg2 == NULL) SWIG_fail;
19444 temp2 = true;
19445 }
19446 {
19447 arg3 = &temp3;
19448 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19449 }
19450 {
19451 PyThreadState* __tstate = wxPyBeginAllowThreads();
19452 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19453 wxPyEndAllowThreads(__tstate);
19454 if (PyErr_Occurred()) SWIG_fail;
19455 }
19456 resultobj = SWIG_Py_Void();
19457 {
19458 if (temp2)
19459 delete arg2;
19460 }
19461 return resultobj;
19462fail:
19463 {
19464 if (temp2)
19465 delete arg2;
19466 }
19467 return NULL;
19468}
19469
19470
19471SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19472 PyObject *resultobj = 0;
19473 wxDC *arg1 = (wxDC *) 0 ;
19474 wxString *arg2 = 0 ;
19475 int arg3 ;
19476 int arg4 ;
19477 double arg5 ;
19478 void *argp1 = 0 ;
19479 int res1 = 0 ;
19480 bool temp2 = false ;
19481 int val3 ;
19482 int ecode3 = 0 ;
19483 int val4 ;
19484 int ecode4 = 0 ;
19485 double val5 ;
19486 int ecode5 = 0 ;
19487 PyObject * obj0 = 0 ;
19488 PyObject * obj1 = 0 ;
19489 PyObject * obj2 = 0 ;
19490 PyObject * obj3 = 0 ;
19491 PyObject * obj4 = 0 ;
19492 char * kwnames[] = {
19493 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19494 };
19495
19496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19498 if (!SWIG_IsOK(res1)) {
19499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19500 }
19501 arg1 = reinterpret_cast< wxDC * >(argp1);
19502 {
19503 arg2 = wxString_in_helper(obj1);
19504 if (arg2 == NULL) SWIG_fail;
19505 temp2 = true;
19506 }
19507 ecode3 = SWIG_AsVal_int(obj2, &val3);
19508 if (!SWIG_IsOK(ecode3)) {
19509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19510 }
19511 arg3 = static_cast< int >(val3);
19512 ecode4 = SWIG_AsVal_int(obj3, &val4);
19513 if (!SWIG_IsOK(ecode4)) {
19514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19515 }
19516 arg4 = static_cast< int >(val4);
19517 ecode5 = SWIG_AsVal_double(obj4, &val5);
19518 if (!SWIG_IsOK(ecode5)) {
19519 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19520 }
19521 arg5 = static_cast< double >(val5);
19522 {
19523 PyThreadState* __tstate = wxPyBeginAllowThreads();
19524 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19525 wxPyEndAllowThreads(__tstate);
19526 if (PyErr_Occurred()) SWIG_fail;
19527 }
19528 resultobj = SWIG_Py_Void();
19529 {
19530 if (temp2)
19531 delete arg2;
19532 }
19533 return resultobj;
19534fail:
19535 {
19536 if (temp2)
19537 delete arg2;
19538 }
19539 return NULL;
19540}
19541
19542
19543SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19544 PyObject *resultobj = 0;
19545 wxDC *arg1 = (wxDC *) 0 ;
19546 wxString *arg2 = 0 ;
19547 wxPoint *arg3 = 0 ;
19548 double arg4 ;
19549 void *argp1 = 0 ;
19550 int res1 = 0 ;
19551 bool temp2 = false ;
19552 wxPoint temp3 ;
19553 double val4 ;
19554 int ecode4 = 0 ;
19555 PyObject * obj0 = 0 ;
19556 PyObject * obj1 = 0 ;
19557 PyObject * obj2 = 0 ;
19558 PyObject * obj3 = 0 ;
19559 char * kwnames[] = {
19560 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19561 };
19562
19563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19565 if (!SWIG_IsOK(res1)) {
19566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19567 }
19568 arg1 = reinterpret_cast< wxDC * >(argp1);
19569 {
19570 arg2 = wxString_in_helper(obj1);
19571 if (arg2 == NULL) SWIG_fail;
19572 temp2 = true;
19573 }
19574 {
19575 arg3 = &temp3;
19576 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19577 }
19578 ecode4 = SWIG_AsVal_double(obj3, &val4);
19579 if (!SWIG_IsOK(ecode4)) {
19580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19581 }
19582 arg4 = static_cast< double >(val4);
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19586 wxPyEndAllowThreads(__tstate);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 }
19589 resultobj = SWIG_Py_Void();
19590 {
19591 if (temp2)
19592 delete arg2;
19593 }
19594 return resultobj;
19595fail:
19596 {
19597 if (temp2)
19598 delete arg2;
19599 }
19600 return NULL;
19601}
19602
19603
19604SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19605 PyObject *resultobj = 0;
19606 wxDC *arg1 = (wxDC *) 0 ;
19607 int arg2 ;
19608 int arg3 ;
19609 int arg4 ;
19610 int arg5 ;
19611 wxDC *arg6 = (wxDC *) 0 ;
19612 int arg7 ;
19613 int arg8 ;
19614 int arg9 = (int) wxCOPY ;
19615 bool arg10 = (bool) false ;
19616 int arg11 = (int) -1 ;
19617 int arg12 = (int) -1 ;
19618 bool result;
19619 void *argp1 = 0 ;
19620 int res1 = 0 ;
19621 int val2 ;
19622 int ecode2 = 0 ;
19623 int val3 ;
19624 int ecode3 = 0 ;
19625 int val4 ;
19626 int ecode4 = 0 ;
19627 int val5 ;
19628 int ecode5 = 0 ;
19629 void *argp6 = 0 ;
19630 int res6 = 0 ;
19631 int val7 ;
19632 int ecode7 = 0 ;
19633 int val8 ;
19634 int ecode8 = 0 ;
19635 int val9 ;
19636 int ecode9 = 0 ;
19637 bool val10 ;
19638 int ecode10 = 0 ;
19639 int val11 ;
19640 int ecode11 = 0 ;
19641 int val12 ;
19642 int ecode12 = 0 ;
19643 PyObject * obj0 = 0 ;
19644 PyObject * obj1 = 0 ;
19645 PyObject * obj2 = 0 ;
19646 PyObject * obj3 = 0 ;
19647 PyObject * obj4 = 0 ;
19648 PyObject * obj5 = 0 ;
19649 PyObject * obj6 = 0 ;
19650 PyObject * obj7 = 0 ;
19651 PyObject * obj8 = 0 ;
19652 PyObject * obj9 = 0 ;
19653 PyObject * obj10 = 0 ;
19654 PyObject * obj11 = 0 ;
19655 char * kwnames[] = {
19656 (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
19657 };
19658
19659 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;
19660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19661 if (!SWIG_IsOK(res1)) {
19662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19663 }
19664 arg1 = reinterpret_cast< wxDC * >(argp1);
19665 ecode2 = SWIG_AsVal_int(obj1, &val2);
19666 if (!SWIG_IsOK(ecode2)) {
19667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19668 }
19669 arg2 = static_cast< int >(val2);
19670 ecode3 = SWIG_AsVal_int(obj2, &val3);
19671 if (!SWIG_IsOK(ecode3)) {
19672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19673 }
19674 arg3 = static_cast< int >(val3);
19675 ecode4 = SWIG_AsVal_int(obj3, &val4);
19676 if (!SWIG_IsOK(ecode4)) {
19677 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19678 }
19679 arg4 = static_cast< int >(val4);
19680 ecode5 = SWIG_AsVal_int(obj4, &val5);
19681 if (!SWIG_IsOK(ecode5)) {
19682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19683 }
19684 arg5 = static_cast< int >(val5);
19685 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19686 if (!SWIG_IsOK(res6)) {
19687 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19688 }
19689 arg6 = reinterpret_cast< wxDC * >(argp6);
19690 ecode7 = SWIG_AsVal_int(obj6, &val7);
19691 if (!SWIG_IsOK(ecode7)) {
19692 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19693 }
19694 arg7 = static_cast< int >(val7);
19695 ecode8 = SWIG_AsVal_int(obj7, &val8);
19696 if (!SWIG_IsOK(ecode8)) {
19697 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19698 }
19699 arg8 = static_cast< int >(val8);
19700 if (obj8) {
19701 ecode9 = SWIG_AsVal_int(obj8, &val9);
19702 if (!SWIG_IsOK(ecode9)) {
19703 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19704 }
19705 arg9 = static_cast< int >(val9);
19706 }
19707 if (obj9) {
19708 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19709 if (!SWIG_IsOK(ecode10)) {
19710 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19711 }
19712 arg10 = static_cast< bool >(val10);
19713 }
19714 if (obj10) {
19715 ecode11 = SWIG_AsVal_int(obj10, &val11);
19716 if (!SWIG_IsOK(ecode11)) {
19717 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19718 }
19719 arg11 = static_cast< int >(val11);
19720 }
19721 if (obj11) {
19722 ecode12 = SWIG_AsVal_int(obj11, &val12);
19723 if (!SWIG_IsOK(ecode12)) {
19724 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19725 }
19726 arg12 = static_cast< int >(val12);
19727 }
19728 {
19729 PyThreadState* __tstate = wxPyBeginAllowThreads();
19730 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19731 wxPyEndAllowThreads(__tstate);
19732 if (PyErr_Occurred()) SWIG_fail;
19733 }
19734 {
19735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19736 }
19737 return resultobj;
19738fail:
19739 return NULL;
19740}
19741
19742
19743SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19744 PyObject *resultobj = 0;
19745 wxDC *arg1 = (wxDC *) 0 ;
19746 wxPoint *arg2 = 0 ;
19747 wxSize *arg3 = 0 ;
19748 wxDC *arg4 = (wxDC *) 0 ;
19749 wxPoint *arg5 = 0 ;
19750 int arg6 = (int) wxCOPY ;
19751 bool arg7 = (bool) false ;
19752 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19753 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19754 bool result;
19755 void *argp1 = 0 ;
19756 int res1 = 0 ;
19757 wxPoint temp2 ;
19758 wxSize temp3 ;
19759 void *argp4 = 0 ;
19760 int res4 = 0 ;
19761 wxPoint temp5 ;
19762 int val6 ;
19763 int ecode6 = 0 ;
19764 bool val7 ;
19765 int ecode7 = 0 ;
19766 wxPoint temp8 ;
19767 PyObject * obj0 = 0 ;
19768 PyObject * obj1 = 0 ;
19769 PyObject * obj2 = 0 ;
19770 PyObject * obj3 = 0 ;
19771 PyObject * obj4 = 0 ;
19772 PyObject * obj5 = 0 ;
19773 PyObject * obj6 = 0 ;
19774 PyObject * obj7 = 0 ;
19775 char * kwnames[] = {
19776 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19777 };
19778
19779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19781 if (!SWIG_IsOK(res1)) {
19782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19783 }
19784 arg1 = reinterpret_cast< wxDC * >(argp1);
19785 {
19786 arg2 = &temp2;
19787 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19788 }
19789 {
19790 arg3 = &temp3;
19791 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19792 }
19793 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19794 if (!SWIG_IsOK(res4)) {
19795 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19796 }
19797 arg4 = reinterpret_cast< wxDC * >(argp4);
19798 {
19799 arg5 = &temp5;
19800 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19801 }
19802 if (obj5) {
19803 ecode6 = SWIG_AsVal_int(obj5, &val6);
19804 if (!SWIG_IsOK(ecode6)) {
19805 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19806 }
19807 arg6 = static_cast< int >(val6);
19808 }
19809 if (obj6) {
19810 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19811 if (!SWIG_IsOK(ecode7)) {
19812 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19813 }
19814 arg7 = static_cast< bool >(val7);
19815 }
19816 if (obj7) {
36ed4f51 19817 {
1bd55598
RD
19818 arg8 = &temp8;
19819 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19820 }
1bd55598
RD
19821 }
19822 {
19823 PyThreadState* __tstate = wxPyBeginAllowThreads();
19824 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19825 wxPyEndAllowThreads(__tstate);
19826 if (PyErr_Occurred()) SWIG_fail;
19827 }
19828 {
19829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19830 }
19831 return resultobj;
19832fail:
19833 return NULL;
19834}
19835
19836
8f514ab4
RD
19837SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19838 PyObject *resultobj = 0;
19839 wxDC *arg1 = (wxDC *) 0 ;
19840 wxRect *arg2 = (wxRect *) NULL ;
19841 SwigValueWrapper<wxBitmap > result;
19842 void *argp1 = 0 ;
19843 int res1 = 0 ;
19844 void *argp2 = 0 ;
19845 int res2 = 0 ;
19846 PyObject * obj0 = 0 ;
19847 PyObject * obj1 = 0 ;
19848 char * kwnames[] = {
19849 (char *) "self",(char *) "subrect", NULL
19850 };
19851
19852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19854 if (!SWIG_IsOK(res1)) {
19855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19856 }
19857 arg1 = reinterpret_cast< wxDC * >(argp1);
19858 if (obj1) {
19859 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19860 if (!SWIG_IsOK(res2)) {
19861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19862 }
19863 arg2 = reinterpret_cast< wxRect * >(argp2);
19864 }
19865 {
19866 PyThreadState* __tstate = wxPyBeginAllowThreads();
19867 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19868 wxPyEndAllowThreads(__tstate);
19869 if (PyErr_Occurred()) SWIG_fail;
19870 }
19871 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19872 return resultobj;
19873fail:
19874 return NULL;
19875}
19876
19877
1bd55598
RD
19878SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19879 PyObject *resultobj = 0;
19880 wxDC *arg1 = (wxDC *) 0 ;
19881 int arg2 ;
19882 int arg3 ;
19883 int arg4 ;
19884 int arg5 ;
19885 void *argp1 = 0 ;
19886 int res1 = 0 ;
19887 int val2 ;
19888 int ecode2 = 0 ;
19889 int val3 ;
19890 int ecode3 = 0 ;
19891 int val4 ;
19892 int ecode4 = 0 ;
19893 int val5 ;
19894 int ecode5 = 0 ;
19895 PyObject * obj0 = 0 ;
19896 PyObject * obj1 = 0 ;
19897 PyObject * obj2 = 0 ;
19898 PyObject * obj3 = 0 ;
19899 PyObject * obj4 = 0 ;
19900 char * kwnames[] = {
19901 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19902 };
19903
19904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19906 if (!SWIG_IsOK(res1)) {
19907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19908 }
19909 arg1 = reinterpret_cast< wxDC * >(argp1);
19910 ecode2 = SWIG_AsVal_int(obj1, &val2);
19911 if (!SWIG_IsOK(ecode2)) {
19912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19913 }
19914 arg2 = static_cast< int >(val2);
19915 ecode3 = SWIG_AsVal_int(obj2, &val3);
19916 if (!SWIG_IsOK(ecode3)) {
19917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19918 }
19919 arg3 = static_cast< int >(val3);
19920 ecode4 = SWIG_AsVal_int(obj3, &val4);
19921 if (!SWIG_IsOK(ecode4)) {
19922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19923 }
19924 arg4 = static_cast< int >(val4);
19925 ecode5 = SWIG_AsVal_int(obj4, &val5);
19926 if (!SWIG_IsOK(ecode5)) {
19927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19928 }
19929 arg5 = static_cast< int >(val5);
19930 {
19931 PyThreadState* __tstate = wxPyBeginAllowThreads();
19932 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19933 wxPyEndAllowThreads(__tstate);
19934 if (PyErr_Occurred()) SWIG_fail;
19935 }
19936 resultobj = SWIG_Py_Void();
19937 return resultobj;
19938fail:
19939 return NULL;
19940}
19941
19942
19943SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19944 PyObject *resultobj = 0;
19945 wxDC *arg1 = (wxDC *) 0 ;
19946 wxPoint *arg2 = 0 ;
19947 wxSize *arg3 = 0 ;
19948 void *argp1 = 0 ;
19949 int res1 = 0 ;
19950 wxPoint temp2 ;
19951 wxSize temp3 ;
19952 PyObject * obj0 = 0 ;
19953 PyObject * obj1 = 0 ;
19954 PyObject * obj2 = 0 ;
19955 char * kwnames[] = {
19956 (char *) "self",(char *) "pt",(char *) "sz", NULL
19957 };
19958
19959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19961 if (!SWIG_IsOK(res1)) {
19962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19963 }
19964 arg1 = reinterpret_cast< wxDC * >(argp1);
19965 {
19966 arg2 = &temp2;
19967 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19968 }
19969 {
19970 arg3 = &temp3;
19971 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19972 }
19973 {
19974 PyThreadState* __tstate = wxPyBeginAllowThreads();
19975 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19976 wxPyEndAllowThreads(__tstate);
19977 if (PyErr_Occurred()) SWIG_fail;
19978 }
19979 resultobj = SWIG_Py_Void();
19980 return resultobj;
19981fail:
19982 return NULL;
19983}
19984
19985
19986SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19987 PyObject *resultobj = 0;
19988 wxDC *arg1 = (wxDC *) 0 ;
19989 wxRegion *arg2 = 0 ;
19990 void *argp1 = 0 ;
19991 int res1 = 0 ;
19992 void *argp2 = 0 ;
19993 int res2 = 0 ;
19994 PyObject * obj0 = 0 ;
19995 PyObject * obj1 = 0 ;
19996 char * kwnames[] = {
19997 (char *) "self",(char *) "region", NULL
19998 };
19999
20000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20002 if (!SWIG_IsOK(res1)) {
20003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20004 }
20005 arg1 = reinterpret_cast< wxDC * >(argp1);
20006 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20007 if (!SWIG_IsOK(res2)) {
20008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20009 }
20010 if (!argp2) {
20011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20012 }
20013 arg2 = reinterpret_cast< wxRegion * >(argp2);
20014 {
20015 PyThreadState* __tstate = wxPyBeginAllowThreads();
20016 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 resultobj = SWIG_Py_Void();
20021 return resultobj;
20022fail:
20023 return NULL;
20024}
20025
20026
20027SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20028 PyObject *resultobj = 0;
20029 wxDC *arg1 = (wxDC *) 0 ;
20030 wxRect *arg2 = 0 ;
20031 void *argp1 = 0 ;
20032 int res1 = 0 ;
20033 wxRect temp2 ;
20034 PyObject * obj0 = 0 ;
20035 PyObject * obj1 = 0 ;
20036 char * kwnames[] = {
20037 (char *) "self",(char *) "rect", NULL
20038 };
20039
20040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20042 if (!SWIG_IsOK(res1)) {
20043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20044 }
20045 arg1 = reinterpret_cast< wxDC * >(argp1);
20046 {
20047 arg2 = &temp2;
20048 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20049 }
20050 {
20051 PyThreadState* __tstate = wxPyBeginAllowThreads();
20052 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20053 wxPyEndAllowThreads(__tstate);
20054 if (PyErr_Occurred()) SWIG_fail;
20055 }
20056 resultobj = SWIG_Py_Void();
20057 return resultobj;
20058fail:
20059 return NULL;
20060}
20061
20062
20063SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20064 PyObject *resultobj = 0;
20065 wxDC *arg1 = (wxDC *) 0 ;
20066 int arg2 ;
20067 wxPoint *arg3 = (wxPoint *) 0 ;
20068 int arg4 = (int) 0 ;
20069 int arg5 = (int) 0 ;
20070 void *argp1 = 0 ;
20071 int res1 = 0 ;
20072 int val4 ;
20073 int ecode4 = 0 ;
20074 int val5 ;
20075 int ecode5 = 0 ;
20076 PyObject * obj0 = 0 ;
20077 PyObject * obj1 = 0 ;
20078 PyObject * obj2 = 0 ;
20079 PyObject * obj3 = 0 ;
20080 char * kwnames[] = {
20081 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20082 };
20083
20084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20086 if (!SWIG_IsOK(res1)) {
20087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20088 }
20089 arg1 = reinterpret_cast< wxDC * >(argp1);
20090 {
20091 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20092 if (arg3 == NULL) SWIG_fail;
20093 }
20094 if (obj2) {
20095 ecode4 = SWIG_AsVal_int(obj2, &val4);
20096 if (!SWIG_IsOK(ecode4)) {
20097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20098 }
20099 arg4 = static_cast< int >(val4);
20100 }
20101 if (obj3) {
20102 ecode5 = SWIG_AsVal_int(obj3, &val5);
20103 if (!SWIG_IsOK(ecode5)) {
20104 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20105 }
20106 arg5 = static_cast< int >(val5);
20107 }
20108 {
20109 PyThreadState* __tstate = wxPyBeginAllowThreads();
20110 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20111 wxPyEndAllowThreads(__tstate);
20112 if (PyErr_Occurred()) SWIG_fail;
20113 }
20114 resultobj = SWIG_Py_Void();
20115 {
20116 if (arg3) delete [] arg3;
20117 }
20118 return resultobj;
20119fail:
20120 {
20121 if (arg3) delete [] arg3;
20122 }
20123 return NULL;
20124}
20125
20126
20127SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20128 PyObject *resultobj = 0;
20129 wxDC *arg1 = (wxDC *) 0 ;
20130 int arg2 ;
20131 wxPoint *arg3 = (wxPoint *) 0 ;
20132 int arg4 = (int) 0 ;
20133 int arg5 = (int) 0 ;
20134 int arg6 = (int) wxODDEVEN_RULE ;
20135 void *argp1 = 0 ;
20136 int res1 = 0 ;
20137 int val4 ;
20138 int ecode4 = 0 ;
20139 int val5 ;
20140 int ecode5 = 0 ;
20141 int val6 ;
20142 int ecode6 = 0 ;
20143 PyObject * obj0 = 0 ;
20144 PyObject * obj1 = 0 ;
20145 PyObject * obj2 = 0 ;
20146 PyObject * obj3 = 0 ;
20147 PyObject * obj4 = 0 ;
20148 char * kwnames[] = {
20149 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20150 };
20151
20152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20154 if (!SWIG_IsOK(res1)) {
20155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20156 }
20157 arg1 = reinterpret_cast< wxDC * >(argp1);
20158 {
20159 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20160 if (arg3 == NULL) SWIG_fail;
20161 }
20162 if (obj2) {
20163 ecode4 = SWIG_AsVal_int(obj2, &val4);
20164 if (!SWIG_IsOK(ecode4)) {
20165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20166 }
20167 arg4 = static_cast< int >(val4);
20168 }
20169 if (obj3) {
20170 ecode5 = SWIG_AsVal_int(obj3, &val5);
20171 if (!SWIG_IsOK(ecode5)) {
20172 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20173 }
20174 arg5 = static_cast< int >(val5);
20175 }
20176 if (obj4) {
20177 ecode6 = SWIG_AsVal_int(obj4, &val6);
20178 if (!SWIG_IsOK(ecode6)) {
20179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20180 }
20181 arg6 = static_cast< int >(val6);
20182 }
20183 {
20184 PyThreadState* __tstate = wxPyBeginAllowThreads();
20185 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20186 wxPyEndAllowThreads(__tstate);
20187 if (PyErr_Occurred()) SWIG_fail;
20188 }
20189 resultobj = SWIG_Py_Void();
20190 {
20191 if (arg3) delete [] arg3;
20192 }
20193 return resultobj;
20194fail:
20195 {
20196 if (arg3) delete [] arg3;
20197 }
20198 return NULL;
20199}
20200
20201
20202SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20203 PyObject *resultobj = 0;
20204 wxDC *arg1 = (wxDC *) 0 ;
20205 wxString *arg2 = 0 ;
20206 wxRect *arg3 = 0 ;
20207 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20208 int arg5 = (int) -1 ;
20209 void *argp1 = 0 ;
20210 int res1 = 0 ;
20211 bool temp2 = false ;
20212 wxRect temp3 ;
20213 int val4 ;
20214 int ecode4 = 0 ;
20215 int val5 ;
20216 int ecode5 = 0 ;
20217 PyObject * obj0 = 0 ;
20218 PyObject * obj1 = 0 ;
20219 PyObject * obj2 = 0 ;
20220 PyObject * obj3 = 0 ;
20221 PyObject * obj4 = 0 ;
20222 char * kwnames[] = {
20223 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20224 };
20225
20226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20228 if (!SWIG_IsOK(res1)) {
20229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20230 }
20231 arg1 = reinterpret_cast< wxDC * >(argp1);
20232 {
20233 arg2 = wxString_in_helper(obj1);
20234 if (arg2 == NULL) SWIG_fail;
20235 temp2 = true;
20236 }
20237 {
20238 arg3 = &temp3;
20239 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20240 }
20241 if (obj3) {
20242 ecode4 = SWIG_AsVal_int(obj3, &val4);
20243 if (!SWIG_IsOK(ecode4)) {
20244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20245 }
20246 arg4 = static_cast< int >(val4);
20247 }
20248 if (obj4) {
20249 ecode5 = SWIG_AsVal_int(obj4, &val5);
20250 if (!SWIG_IsOK(ecode5)) {
20251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20252 }
20253 arg5 = static_cast< int >(val5);
20254 }
20255 {
20256 PyThreadState* __tstate = wxPyBeginAllowThreads();
20257 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20258 wxPyEndAllowThreads(__tstate);
20259 if (PyErr_Occurred()) SWIG_fail;
20260 }
20261 resultobj = SWIG_Py_Void();
20262 {
20263 if (temp2)
20264 delete arg2;
20265 }
20266 return resultobj;
20267fail:
20268 {
20269 if (temp2)
20270 delete arg2;
20271 }
20272 return NULL;
20273}
20274
20275
20276SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20277 PyObject *resultobj = 0;
20278 wxDC *arg1 = (wxDC *) 0 ;
20279 wxString *arg2 = 0 ;
20280 wxBitmap *arg3 = 0 ;
20281 wxRect *arg4 = 0 ;
20282 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20283 int arg6 = (int) -1 ;
20284 wxRect result;
20285 void *argp1 = 0 ;
20286 int res1 = 0 ;
20287 bool temp2 = false ;
20288 void *argp3 = 0 ;
20289 int res3 = 0 ;
20290 wxRect temp4 ;
20291 int val5 ;
20292 int ecode5 = 0 ;
20293 int val6 ;
20294 int ecode6 = 0 ;
20295 PyObject * obj0 = 0 ;
20296 PyObject * obj1 = 0 ;
20297 PyObject * obj2 = 0 ;
20298 PyObject * obj3 = 0 ;
20299 PyObject * obj4 = 0 ;
20300 PyObject * obj5 = 0 ;
20301 char * kwnames[] = {
20302 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20303 };
20304
20305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20307 if (!SWIG_IsOK(res1)) {
20308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20309 }
20310 arg1 = reinterpret_cast< wxDC * >(argp1);
20311 {
20312 arg2 = wxString_in_helper(obj1);
20313 if (arg2 == NULL) SWIG_fail;
20314 temp2 = true;
20315 }
20316 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20317 if (!SWIG_IsOK(res3)) {
20318 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20319 }
20320 if (!argp3) {
20321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20322 }
20323 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20324 {
20325 arg4 = &temp4;
20326 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20327 }
20328 if (obj4) {
20329 ecode5 = SWIG_AsVal_int(obj4, &val5);
20330 if (!SWIG_IsOK(ecode5)) {
20331 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20332 }
20333 arg5 = static_cast< int >(val5);
20334 }
20335 if (obj5) {
20336 ecode6 = SWIG_AsVal_int(obj5, &val6);
20337 if (!SWIG_IsOK(ecode6)) {
20338 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20339 }
20340 arg6 = static_cast< int >(val6);
20341 }
20342 {
20343 PyThreadState* __tstate = wxPyBeginAllowThreads();
20344 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20345 wxPyEndAllowThreads(__tstate);
20346 if (PyErr_Occurred()) SWIG_fail;
20347 }
20348 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20349 {
20350 if (temp2)
20351 delete arg2;
20352 }
20353 return resultobj;
20354fail:
20355 {
20356 if (temp2)
20357 delete arg2;
20358 }
20359 return NULL;
20360}
20361
20362
20363SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20364 PyObject *resultobj = 0;
20365 wxDC *arg1 = (wxDC *) 0 ;
20366 int arg2 ;
20367 wxPoint *arg3 = (wxPoint *) 0 ;
20368 void *argp1 = 0 ;
20369 int res1 = 0 ;
20370 PyObject * obj0 = 0 ;
20371 PyObject * obj1 = 0 ;
20372 char * kwnames[] = {
20373 (char *) "self",(char *) "points", NULL
20374 };
20375
20376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20378 if (!SWIG_IsOK(res1)) {
20379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20380 }
20381 arg1 = reinterpret_cast< wxDC * >(argp1);
20382 {
20383 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20384 if (arg3 == NULL) SWIG_fail;
20385 }
20386 {
20387 PyThreadState* __tstate = wxPyBeginAllowThreads();
20388 (arg1)->DrawSpline(arg2,arg3);
20389 wxPyEndAllowThreads(__tstate);
20390 if (PyErr_Occurred()) SWIG_fail;
20391 }
20392 resultobj = SWIG_Py_Void();
20393 {
20394 if (arg3) delete [] arg3;
20395 }
20396 return resultobj;
20397fail:
20398 {
20399 if (arg3) delete [] arg3;
20400 }
20401 return NULL;
20402}
20403
20404
20405SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20406 PyObject *resultobj = 0;
20407 wxDC *arg1 = (wxDC *) 0 ;
20408 void *argp1 = 0 ;
20409 int res1 = 0 ;
20410 PyObject *swig_obj[1] ;
20411
20412 if (!args) SWIG_fail;
20413 swig_obj[0] = args;
20414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20415 if (!SWIG_IsOK(res1)) {
20416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20417 }
20418 arg1 = reinterpret_cast< wxDC * >(argp1);
20419 {
20420 PyThreadState* __tstate = wxPyBeginAllowThreads();
20421 (arg1)->Clear();
20422 wxPyEndAllowThreads(__tstate);
20423 if (PyErr_Occurred()) SWIG_fail;
20424 }
20425 resultobj = SWIG_Py_Void();
20426 return resultobj;
20427fail:
20428 return NULL;
20429}
20430
20431
20432SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20433 PyObject *resultobj = 0;
20434 wxDC *arg1 = (wxDC *) 0 ;
20435 wxString *arg2 = 0 ;
20436 bool result;
20437 void *argp1 = 0 ;
20438 int res1 = 0 ;
20439 bool temp2 = false ;
20440 PyObject * obj0 = 0 ;
20441 PyObject * obj1 = 0 ;
20442 char * kwnames[] = {
20443 (char *) "self",(char *) "message", NULL
20444 };
20445
20446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20448 if (!SWIG_IsOK(res1)) {
20449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20450 }
20451 arg1 = reinterpret_cast< wxDC * >(argp1);
20452 {
20453 arg2 = wxString_in_helper(obj1);
20454 if (arg2 == NULL) SWIG_fail;
20455 temp2 = true;
20456 }
20457 {
20458 PyThreadState* __tstate = wxPyBeginAllowThreads();
20459 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20460 wxPyEndAllowThreads(__tstate);
20461 if (PyErr_Occurred()) SWIG_fail;
20462 }
20463 {
20464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20465 }
20466 {
20467 if (temp2)
20468 delete arg2;
20469 }
20470 return resultobj;
20471fail:
20472 {
20473 if (temp2)
20474 delete arg2;
20475 }
20476 return NULL;
20477}
20478
20479
20480SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20481 PyObject *resultobj = 0;
20482 wxDC *arg1 = (wxDC *) 0 ;
20483 void *argp1 = 0 ;
20484 int res1 = 0 ;
20485 PyObject *swig_obj[1] ;
20486
20487 if (!args) SWIG_fail;
20488 swig_obj[0] = args;
20489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20490 if (!SWIG_IsOK(res1)) {
20491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20492 }
20493 arg1 = reinterpret_cast< wxDC * >(argp1);
20494 {
20495 PyThreadState* __tstate = wxPyBeginAllowThreads();
20496 (arg1)->EndDoc();
20497 wxPyEndAllowThreads(__tstate);
20498 if (PyErr_Occurred()) SWIG_fail;
20499 }
20500 resultobj = SWIG_Py_Void();
20501 return resultobj;
20502fail:
20503 return NULL;
20504}
20505
20506
20507SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20508 PyObject *resultobj = 0;
20509 wxDC *arg1 = (wxDC *) 0 ;
20510 void *argp1 = 0 ;
20511 int res1 = 0 ;
20512 PyObject *swig_obj[1] ;
20513
20514 if (!args) SWIG_fail;
20515 swig_obj[0] = args;
20516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20517 if (!SWIG_IsOK(res1)) {
20518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20519 }
20520 arg1 = reinterpret_cast< wxDC * >(argp1);
20521 {
20522 PyThreadState* __tstate = wxPyBeginAllowThreads();
20523 (arg1)->StartPage();
20524 wxPyEndAllowThreads(__tstate);
20525 if (PyErr_Occurred()) SWIG_fail;
20526 }
20527 resultobj = SWIG_Py_Void();
20528 return resultobj;
20529fail:
20530 return NULL;
20531}
20532
20533
20534SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20535 PyObject *resultobj = 0;
20536 wxDC *arg1 = (wxDC *) 0 ;
20537 void *argp1 = 0 ;
20538 int res1 = 0 ;
20539 PyObject *swig_obj[1] ;
20540
20541 if (!args) SWIG_fail;
20542 swig_obj[0] = args;
20543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20544 if (!SWIG_IsOK(res1)) {
20545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20546 }
20547 arg1 = reinterpret_cast< wxDC * >(argp1);
20548 {
20549 PyThreadState* __tstate = wxPyBeginAllowThreads();
20550 (arg1)->EndPage();
20551 wxPyEndAllowThreads(__tstate);
20552 if (PyErr_Occurred()) SWIG_fail;
20553 }
20554 resultobj = SWIG_Py_Void();
20555 return resultobj;
20556fail:
20557 return NULL;
20558}
20559
20560
20561SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20562 PyObject *resultobj = 0;
20563 wxDC *arg1 = (wxDC *) 0 ;
20564 wxFont *arg2 = 0 ;
20565 void *argp1 = 0 ;
20566 int res1 = 0 ;
20567 void *argp2 = 0 ;
20568 int res2 = 0 ;
20569 PyObject * obj0 = 0 ;
20570 PyObject * obj1 = 0 ;
20571 char * kwnames[] = {
20572 (char *) "self",(char *) "font", NULL
20573 };
20574
20575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20577 if (!SWIG_IsOK(res1)) {
20578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20579 }
20580 arg1 = reinterpret_cast< wxDC * >(argp1);
20581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20582 if (!SWIG_IsOK(res2)) {
20583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20584 }
20585 if (!argp2) {
20586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20587 }
20588 arg2 = reinterpret_cast< wxFont * >(argp2);
20589 {
20590 PyThreadState* __tstate = wxPyBeginAllowThreads();
20591 (arg1)->SetFont((wxFont const &)*arg2);
20592 wxPyEndAllowThreads(__tstate);
20593 if (PyErr_Occurred()) SWIG_fail;
20594 }
20595 resultobj = SWIG_Py_Void();
20596 return resultobj;
20597fail:
20598 return NULL;
20599}
20600
20601
20602SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20603 PyObject *resultobj = 0;
20604 wxDC *arg1 = (wxDC *) 0 ;
20605 wxPen *arg2 = 0 ;
20606 void *argp1 = 0 ;
20607 int res1 = 0 ;
20608 void *argp2 = 0 ;
20609 int res2 = 0 ;
20610 PyObject * obj0 = 0 ;
20611 PyObject * obj1 = 0 ;
20612 char * kwnames[] = {
20613 (char *) "self",(char *) "pen", NULL
20614 };
20615
20616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20618 if (!SWIG_IsOK(res1)) {
20619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20620 }
20621 arg1 = reinterpret_cast< wxDC * >(argp1);
20622 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20623 if (!SWIG_IsOK(res2)) {
20624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20625 }
20626 if (!argp2) {
20627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20628 }
20629 arg2 = reinterpret_cast< wxPen * >(argp2);
20630 {
20631 PyThreadState* __tstate = wxPyBeginAllowThreads();
20632 (arg1)->SetPen((wxPen const &)*arg2);
20633 wxPyEndAllowThreads(__tstate);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 }
20636 resultobj = SWIG_Py_Void();
20637 return resultobj;
20638fail:
20639 return NULL;
20640}
20641
20642
20643SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20644 PyObject *resultobj = 0;
20645 wxDC *arg1 = (wxDC *) 0 ;
20646 wxBrush *arg2 = 0 ;
20647 void *argp1 = 0 ;
20648 int res1 = 0 ;
20649 void *argp2 = 0 ;
20650 int res2 = 0 ;
20651 PyObject * obj0 = 0 ;
20652 PyObject * obj1 = 0 ;
20653 char * kwnames[] = {
20654 (char *) "self",(char *) "brush", NULL
20655 };
20656
20657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20659 if (!SWIG_IsOK(res1)) {
20660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20661 }
20662 arg1 = reinterpret_cast< wxDC * >(argp1);
20663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20664 if (!SWIG_IsOK(res2)) {
20665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20666 }
20667 if (!argp2) {
20668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20669 }
20670 arg2 = reinterpret_cast< wxBrush * >(argp2);
20671 {
20672 PyThreadState* __tstate = wxPyBeginAllowThreads();
20673 (arg1)->SetBrush((wxBrush const &)*arg2);
20674 wxPyEndAllowThreads(__tstate);
20675 if (PyErr_Occurred()) SWIG_fail;
20676 }
20677 resultobj = SWIG_Py_Void();
20678 return resultobj;
20679fail:
20680 return NULL;
20681}
20682
20683
20684SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20685 PyObject *resultobj = 0;
20686 wxDC *arg1 = (wxDC *) 0 ;
20687 wxBrush *arg2 = 0 ;
20688 void *argp1 = 0 ;
20689 int res1 = 0 ;
20690 void *argp2 = 0 ;
20691 int res2 = 0 ;
20692 PyObject * obj0 = 0 ;
20693 PyObject * obj1 = 0 ;
20694 char * kwnames[] = {
20695 (char *) "self",(char *) "brush", NULL
20696 };
20697
20698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20700 if (!SWIG_IsOK(res1)) {
20701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20702 }
20703 arg1 = reinterpret_cast< wxDC * >(argp1);
20704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20705 if (!SWIG_IsOK(res2)) {
20706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20707 }
20708 if (!argp2) {
20709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20710 }
20711 arg2 = reinterpret_cast< wxBrush * >(argp2);
20712 {
20713 PyThreadState* __tstate = wxPyBeginAllowThreads();
20714 (arg1)->SetBackground((wxBrush const &)*arg2);
20715 wxPyEndAllowThreads(__tstate);
20716 if (PyErr_Occurred()) SWIG_fail;
20717 }
20718 resultobj = SWIG_Py_Void();
20719 return resultobj;
20720fail:
20721 return NULL;
20722}
20723
20724
20725SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20726 PyObject *resultobj = 0;
20727 wxDC *arg1 = (wxDC *) 0 ;
20728 int arg2 ;
20729 void *argp1 = 0 ;
20730 int res1 = 0 ;
20731 int val2 ;
20732 int ecode2 = 0 ;
20733 PyObject * obj0 = 0 ;
20734 PyObject * obj1 = 0 ;
20735 char * kwnames[] = {
20736 (char *) "self",(char *) "mode", NULL
20737 };
20738
20739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20741 if (!SWIG_IsOK(res1)) {
20742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20743 }
20744 arg1 = reinterpret_cast< wxDC * >(argp1);
20745 ecode2 = SWIG_AsVal_int(obj1, &val2);
20746 if (!SWIG_IsOK(ecode2)) {
20747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20748 }
20749 arg2 = static_cast< int >(val2);
20750 {
20751 PyThreadState* __tstate = wxPyBeginAllowThreads();
20752 (arg1)->SetBackgroundMode(arg2);
20753 wxPyEndAllowThreads(__tstate);
20754 if (PyErr_Occurred()) SWIG_fail;
20755 }
20756 resultobj = SWIG_Py_Void();
20757 return resultobj;
20758fail:
20759 return NULL;
20760}
20761
20762
20763SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20764 PyObject *resultobj = 0;
20765 wxDC *arg1 = (wxDC *) 0 ;
20766 wxPalette *arg2 = 0 ;
20767 void *argp1 = 0 ;
20768 int res1 = 0 ;
20769 void *argp2 = 0 ;
20770 int res2 = 0 ;
20771 PyObject * obj0 = 0 ;
20772 PyObject * obj1 = 0 ;
20773 char * kwnames[] = {
20774 (char *) "self",(char *) "palette", NULL
20775 };
20776
20777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20779 if (!SWIG_IsOK(res1)) {
20780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20781 }
20782 arg1 = reinterpret_cast< wxDC * >(argp1);
20783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20784 if (!SWIG_IsOK(res2)) {
20785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20786 }
20787 if (!argp2) {
20788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20789 }
20790 arg2 = reinterpret_cast< wxPalette * >(argp2);
20791 {
20792 PyThreadState* __tstate = wxPyBeginAllowThreads();
20793 (arg1)->SetPalette((wxPalette const &)*arg2);
20794 wxPyEndAllowThreads(__tstate);
20795 if (PyErr_Occurred()) SWIG_fail;
20796 }
20797 resultobj = SWIG_Py_Void();
20798 return resultobj;
20799fail:
20800 return NULL;
20801}
20802
20803
20804SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20805 PyObject *resultobj = 0;
20806 wxDC *arg1 = (wxDC *) 0 ;
20807 void *argp1 = 0 ;
20808 int res1 = 0 ;
20809 PyObject *swig_obj[1] ;
20810
20811 if (!args) SWIG_fail;
20812 swig_obj[0] = args;
20813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20814 if (!SWIG_IsOK(res1)) {
20815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20816 }
20817 arg1 = reinterpret_cast< wxDC * >(argp1);
20818 {
20819 PyThreadState* __tstate = wxPyBeginAllowThreads();
20820 (arg1)->DestroyClippingRegion();
20821 wxPyEndAllowThreads(__tstate);
20822 if (PyErr_Occurred()) SWIG_fail;
20823 }
20824 resultobj = SWIG_Py_Void();
20825 return resultobj;
20826fail:
20827 return NULL;
20828}
20829
20830
20831SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20832 PyObject *resultobj = 0;
20833 wxDC *arg1 = (wxDC *) 0 ;
20834 int *arg2 = (int *) 0 ;
20835 int *arg3 = (int *) 0 ;
20836 int *arg4 = (int *) 0 ;
20837 int *arg5 = (int *) 0 ;
20838 void *argp1 = 0 ;
20839 int res1 = 0 ;
20840 int temp2 ;
20841 int res2 = SWIG_TMPOBJ ;
20842 int temp3 ;
20843 int res3 = SWIG_TMPOBJ ;
20844 int temp4 ;
20845 int res4 = SWIG_TMPOBJ ;
20846 int temp5 ;
20847 int res5 = SWIG_TMPOBJ ;
20848 PyObject *swig_obj[1] ;
20849
20850 arg2 = &temp2;
20851 arg3 = &temp3;
20852 arg4 = &temp4;
20853 arg5 = &temp5;
20854 if (!args) SWIG_fail;
20855 swig_obj[0] = args;
20856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20857 if (!SWIG_IsOK(res1)) {
20858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20859 }
20860 arg1 = reinterpret_cast< wxDC * >(argp1);
20861 {
20862 PyThreadState* __tstate = wxPyBeginAllowThreads();
20863 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20864 wxPyEndAllowThreads(__tstate);
20865 if (PyErr_Occurred()) SWIG_fail;
20866 }
20867 resultobj = SWIG_Py_Void();
20868 if (SWIG_IsTmpObj(res2)) {
20869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20870 } else {
20871 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20873 }
20874 if (SWIG_IsTmpObj(res3)) {
20875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20876 } else {
20877 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20879 }
20880 if (SWIG_IsTmpObj(res4)) {
20881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20882 } else {
20883 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20885 }
20886 if (SWIG_IsTmpObj(res5)) {
20887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20888 } else {
20889 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20891 }
20892 return resultobj;
20893fail:
20894 return NULL;
20895}
20896
20897
20898SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20899 PyObject *resultobj = 0;
20900 wxDC *arg1 = (wxDC *) 0 ;
20901 wxRect result;
20902 void *argp1 = 0 ;
20903 int res1 = 0 ;
20904 PyObject *swig_obj[1] ;
20905
20906 if (!args) SWIG_fail;
20907 swig_obj[0] = args;
20908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20909 if (!SWIG_IsOK(res1)) {
20910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20911 }
20912 arg1 = reinterpret_cast< wxDC * >(argp1);
20913 {
20914 PyThreadState* __tstate = wxPyBeginAllowThreads();
20915 result = wxDC_GetClippingRect(arg1);
20916 wxPyEndAllowThreads(__tstate);
20917 if (PyErr_Occurred()) SWIG_fail;
20918 }
20919 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20920 return resultobj;
20921fail:
20922 return NULL;
20923}
20924
20925
20926SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20927 PyObject *resultobj = 0;
20928 wxDC *arg1 = (wxDC *) 0 ;
20929 int result;
20930 void *argp1 = 0 ;
20931 int res1 = 0 ;
20932 PyObject *swig_obj[1] ;
20933
20934 if (!args) SWIG_fail;
20935 swig_obj[0] = args;
20936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20937 if (!SWIG_IsOK(res1)) {
20938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20939 }
20940 arg1 = reinterpret_cast< wxDC * >(argp1);
20941 {
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 result = (int)((wxDC const *)arg1)->GetCharHeight();
20944 wxPyEndAllowThreads(__tstate);
20945 if (PyErr_Occurred()) SWIG_fail;
20946 }
20947 resultobj = SWIG_From_int(static_cast< int >(result));
20948 return resultobj;
20949fail:
20950 return NULL;
20951}
20952
20953
20954SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20955 PyObject *resultobj = 0;
20956 wxDC *arg1 = (wxDC *) 0 ;
20957 int result;
20958 void *argp1 = 0 ;
20959 int res1 = 0 ;
20960 PyObject *swig_obj[1] ;
20961
20962 if (!args) SWIG_fail;
20963 swig_obj[0] = args;
20964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20965 if (!SWIG_IsOK(res1)) {
20966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20967 }
20968 arg1 = reinterpret_cast< wxDC * >(argp1);
20969 {
20970 PyThreadState* __tstate = wxPyBeginAllowThreads();
20971 result = (int)((wxDC const *)arg1)->GetCharWidth();
20972 wxPyEndAllowThreads(__tstate);
20973 if (PyErr_Occurred()) SWIG_fail;
20974 }
20975 resultobj = SWIG_From_int(static_cast< int >(result));
20976 return resultobj;
20977fail:
20978 return NULL;
20979}
20980
20981
20982SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20983 PyObject *resultobj = 0;
20984 wxDC *arg1 = (wxDC *) 0 ;
20985 wxString *arg2 = 0 ;
20986 int *arg3 = (int *) 0 ;
20987 int *arg4 = (int *) 0 ;
20988 void *argp1 = 0 ;
20989 int res1 = 0 ;
20990 bool temp2 = false ;
20991 int temp3 ;
20992 int res3 = SWIG_TMPOBJ ;
20993 int temp4 ;
20994 int res4 = SWIG_TMPOBJ ;
20995 PyObject * obj0 = 0 ;
20996 PyObject * obj1 = 0 ;
20997 char * kwnames[] = {
20998 (char *) "self",(char *) "string", NULL
20999 };
21000
21001 arg3 = &temp3;
21002 arg4 = &temp4;
21003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21005 if (!SWIG_IsOK(res1)) {
21006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21007 }
21008 arg1 = reinterpret_cast< wxDC * >(argp1);
21009 {
21010 arg2 = wxString_in_helper(obj1);
21011 if (arg2 == NULL) SWIG_fail;
21012 temp2 = true;
21013 }
21014 {
21015 PyThreadState* __tstate = wxPyBeginAllowThreads();
21016 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21017 wxPyEndAllowThreads(__tstate);
21018 if (PyErr_Occurred()) SWIG_fail;
21019 }
21020 resultobj = SWIG_Py_Void();
21021 if (SWIG_IsTmpObj(res3)) {
21022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21023 } else {
21024 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21026 }
21027 if (SWIG_IsTmpObj(res4)) {
21028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21029 } else {
21030 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21032 }
21033 {
21034 if (temp2)
21035 delete arg2;
21036 }
21037 return resultobj;
21038fail:
21039 {
21040 if (temp2)
21041 delete arg2;
21042 }
21043 return NULL;
21044}
21045
21046
21047SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21048 PyObject *resultobj = 0;
21049 wxDC *arg1 = (wxDC *) 0 ;
21050 wxString *arg2 = 0 ;
21051 int *arg3 = (int *) 0 ;
21052 int *arg4 = (int *) 0 ;
21053 int *arg5 = (int *) 0 ;
21054 int *arg6 = (int *) 0 ;
21055 wxFont *arg7 = (wxFont *) NULL ;
21056 void *argp1 = 0 ;
21057 int res1 = 0 ;
21058 bool temp2 = false ;
21059 int temp3 ;
21060 int res3 = SWIG_TMPOBJ ;
21061 int temp4 ;
21062 int res4 = SWIG_TMPOBJ ;
21063 int temp5 ;
21064 int res5 = SWIG_TMPOBJ ;
21065 int temp6 ;
21066 int res6 = SWIG_TMPOBJ ;
21067 void *argp7 = 0 ;
21068 int res7 = 0 ;
21069 PyObject * obj0 = 0 ;
21070 PyObject * obj1 = 0 ;
21071 PyObject * obj2 = 0 ;
21072 char * kwnames[] = {
21073 (char *) "self",(char *) "string",(char *) "font", NULL
21074 };
21075
21076 arg3 = &temp3;
21077 arg4 = &temp4;
21078 arg5 = &temp5;
21079 arg6 = &temp6;
21080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21082 if (!SWIG_IsOK(res1)) {
21083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21084 }
21085 arg1 = reinterpret_cast< wxDC * >(argp1);
21086 {
21087 arg2 = wxString_in_helper(obj1);
21088 if (arg2 == NULL) SWIG_fail;
21089 temp2 = true;
21090 }
21091 if (obj2) {
21092 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21093 if (!SWIG_IsOK(res7)) {
21094 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21095 }
1bd55598
RD
21096 arg7 = reinterpret_cast< wxFont * >(argp7);
21097 }
21098 {
21099 PyThreadState* __tstate = wxPyBeginAllowThreads();
21100 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21101 wxPyEndAllowThreads(__tstate);
21102 if (PyErr_Occurred()) SWIG_fail;
21103 }
21104 resultobj = SWIG_Py_Void();
21105 if (SWIG_IsTmpObj(res3)) {
21106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21107 } else {
21108 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21110 }
21111 if (SWIG_IsTmpObj(res4)) {
21112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21113 } else {
21114 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21116 }
21117 if (SWIG_IsTmpObj(res5)) {
21118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21119 } else {
21120 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21122 }
21123 if (SWIG_IsTmpObj(res6)) {
21124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21125 } else {
21126 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21128 }
21129 {
21130 if (temp2)
21131 delete arg2;
21132 }
21133 return resultobj;
21134fail:
21135 {
21136 if (temp2)
21137 delete arg2;
21138 }
21139 return NULL;
21140}
21141
21142
21143SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21144 PyObject *resultobj = 0;
21145 wxDC *arg1 = (wxDC *) 0 ;
21146 wxString *arg2 = 0 ;
21147 int *arg3 = (int *) 0 ;
21148 int *arg4 = (int *) 0 ;
21149 int *arg5 = (int *) 0 ;
21150 wxFont *arg6 = (wxFont *) NULL ;
21151 void *argp1 = 0 ;
21152 int res1 = 0 ;
21153 bool temp2 = false ;
21154 int temp3 ;
21155 int res3 = SWIG_TMPOBJ ;
21156 int temp4 ;
21157 int res4 = SWIG_TMPOBJ ;
21158 int temp5 ;
21159 int res5 = SWIG_TMPOBJ ;
21160 void *argp6 = 0 ;
21161 int res6 = 0 ;
21162 PyObject * obj0 = 0 ;
21163 PyObject * obj1 = 0 ;
21164 PyObject * obj2 = 0 ;
21165 char * kwnames[] = {
21166 (char *) "self",(char *) "text",(char *) "font", NULL
21167 };
21168
21169 arg3 = &temp3;
21170 arg4 = &temp4;
21171 arg5 = &temp5;
21172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21174 if (!SWIG_IsOK(res1)) {
21175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21176 }
21177 arg1 = reinterpret_cast< wxDC * >(argp1);
21178 {
21179 arg2 = wxString_in_helper(obj1);
21180 if (arg2 == NULL) SWIG_fail;
21181 temp2 = true;
21182 }
21183 if (obj2) {
21184 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21185 if (!SWIG_IsOK(res6)) {
21186 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21187 }
1bd55598
RD
21188 arg6 = reinterpret_cast< wxFont * >(argp6);
21189 }
21190 {
21191 PyThreadState* __tstate = wxPyBeginAllowThreads();
21192 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21193 wxPyEndAllowThreads(__tstate);
21194 if (PyErr_Occurred()) SWIG_fail;
21195 }
21196 resultobj = SWIG_Py_Void();
21197 if (SWIG_IsTmpObj(res3)) {
21198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21199 } else {
21200 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21201 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21202 }
21203 if (SWIG_IsTmpObj(res4)) {
21204 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21205 } else {
21206 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21207 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21208 }
21209 if (SWIG_IsTmpObj(res5)) {
21210 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21211 } else {
21212 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21213 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21214 }
21215 {
21216 if (temp2)
21217 delete arg2;
21218 }
21219 return resultobj;
21220fail:
21221 {
21222 if (temp2)
21223 delete arg2;
21224 }
21225 return NULL;
21226}
21227
21228
21229SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21230 PyObject *resultobj = 0;
21231 wxDC *arg1 = (wxDC *) 0 ;
21232 wxString *arg2 = 0 ;
21233 wxArrayInt result;
21234 void *argp1 = 0 ;
21235 int res1 = 0 ;
21236 bool temp2 = false ;
21237 PyObject * obj0 = 0 ;
21238 PyObject * obj1 = 0 ;
21239 char * kwnames[] = {
21240 (char *) "self",(char *) "text", NULL
21241 };
21242
21243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21245 if (!SWIG_IsOK(res1)) {
21246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21247 }
21248 arg1 = reinterpret_cast< wxDC * >(argp1);
21249 {
21250 arg2 = wxString_in_helper(obj1);
21251 if (arg2 == NULL) SWIG_fail;
21252 temp2 = true;
21253 }
21254 {
21255 PyThreadState* __tstate = wxPyBeginAllowThreads();
21256 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21257 wxPyEndAllowThreads(__tstate);
21258 if (PyErr_Occurred()) SWIG_fail;
21259 }
21260 {
b39fe951 21261 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21262 }
21263 {
21264 if (temp2)
21265 delete arg2;
21266 }
21267 return resultobj;
21268fail:
21269 {
21270 if (temp2)
21271 delete arg2;
21272 }
21273 return NULL;
21274}
21275
21276
21277SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21278 PyObject *resultobj = 0;
21279 wxDC *arg1 = (wxDC *) 0 ;
21280 wxSize result;
21281 void *argp1 = 0 ;
21282 int res1 = 0 ;
21283 PyObject *swig_obj[1] ;
21284
21285 if (!args) SWIG_fail;
21286 swig_obj[0] = args;
21287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21288 if (!SWIG_IsOK(res1)) {
21289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21290 }
21291 arg1 = reinterpret_cast< wxDC * >(argp1);
21292 {
21293 PyThreadState* __tstate = wxPyBeginAllowThreads();
21294 result = (arg1)->GetSize();
21295 wxPyEndAllowThreads(__tstate);
21296 if (PyErr_Occurred()) SWIG_fail;
21297 }
21298 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21299 return resultobj;
21300fail:
21301 return NULL;
21302}
21303
21304
21305SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21306 PyObject *resultobj = 0;
21307 wxDC *arg1 = (wxDC *) 0 ;
21308 int *arg2 = (int *) 0 ;
21309 int *arg3 = (int *) 0 ;
21310 void *argp1 = 0 ;
21311 int res1 = 0 ;
21312 int temp2 ;
21313 int res2 = SWIG_TMPOBJ ;
21314 int temp3 ;
21315 int res3 = SWIG_TMPOBJ ;
21316 PyObject *swig_obj[1] ;
21317
21318 arg2 = &temp2;
21319 arg3 = &temp3;
21320 if (!args) SWIG_fail;
21321 swig_obj[0] = args;
21322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21323 if (!SWIG_IsOK(res1)) {
21324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21325 }
21326 arg1 = reinterpret_cast< wxDC * >(argp1);
21327 {
21328 PyThreadState* __tstate = wxPyBeginAllowThreads();
21329 (arg1)->GetSize(arg2,arg3);
21330 wxPyEndAllowThreads(__tstate);
21331 if (PyErr_Occurred()) SWIG_fail;
21332 }
21333 resultobj = SWIG_Py_Void();
21334 if (SWIG_IsTmpObj(res2)) {
21335 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21336 } else {
21337 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21338 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21339 }
21340 if (SWIG_IsTmpObj(res3)) {
21341 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21342 } else {
21343 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21344 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21345 }
21346 return resultobj;
21347fail:
21348 return NULL;
21349}
21350
21351
21352SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21353 PyObject *resultobj = 0;
21354 wxDC *arg1 = (wxDC *) 0 ;
21355 wxSize result;
21356 void *argp1 = 0 ;
21357 int res1 = 0 ;
21358 PyObject *swig_obj[1] ;
21359
21360 if (!args) SWIG_fail;
21361 swig_obj[0] = args;
21362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21363 if (!SWIG_IsOK(res1)) {
21364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21365 }
21366 arg1 = reinterpret_cast< wxDC * >(argp1);
21367 {
21368 PyThreadState* __tstate = wxPyBeginAllowThreads();
21369 result = ((wxDC const *)arg1)->GetSizeMM();
21370 wxPyEndAllowThreads(__tstate);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
21373 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21374 return resultobj;
21375fail:
21376 return NULL;
21377}
21378
21379
21380SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21381 PyObject *resultobj = 0;
21382 wxDC *arg1 = (wxDC *) 0 ;
21383 int *arg2 = (int *) 0 ;
21384 int *arg3 = (int *) 0 ;
21385 void *argp1 = 0 ;
21386 int res1 = 0 ;
21387 int temp2 ;
21388 int res2 = SWIG_TMPOBJ ;
21389 int temp3 ;
21390 int res3 = SWIG_TMPOBJ ;
21391 PyObject *swig_obj[1] ;
21392
21393 arg2 = &temp2;
21394 arg3 = &temp3;
21395 if (!args) SWIG_fail;
21396 swig_obj[0] = args;
21397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21398 if (!SWIG_IsOK(res1)) {
21399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21400 }
21401 arg1 = reinterpret_cast< wxDC * >(argp1);
21402 {
21403 PyThreadState* __tstate = wxPyBeginAllowThreads();
21404 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21405 wxPyEndAllowThreads(__tstate);
21406 if (PyErr_Occurred()) SWIG_fail;
21407 }
21408 resultobj = SWIG_Py_Void();
21409 if (SWIG_IsTmpObj(res2)) {
21410 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21411 } else {
21412 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21413 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21414 }
21415 if (SWIG_IsTmpObj(res3)) {
21416 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21417 } else {
21418 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21419 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21420 }
21421 return resultobj;
21422fail:
21423 return NULL;
21424}
21425
21426
21427SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21428 PyObject *resultobj = 0;
21429 wxDC *arg1 = (wxDC *) 0 ;
21430 int arg2 ;
21431 int result;
21432 void *argp1 = 0 ;
21433 int res1 = 0 ;
21434 int val2 ;
21435 int ecode2 = 0 ;
21436 PyObject * obj0 = 0 ;
21437 PyObject * obj1 = 0 ;
21438 char * kwnames[] = {
21439 (char *) "self",(char *) "x", NULL
21440 };
21441
21442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21444 if (!SWIG_IsOK(res1)) {
21445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21446 }
21447 arg1 = reinterpret_cast< wxDC * >(argp1);
21448 ecode2 = SWIG_AsVal_int(obj1, &val2);
21449 if (!SWIG_IsOK(ecode2)) {
21450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21451 }
21452 arg2 = static_cast< int >(val2);
21453 {
21454 PyThreadState* __tstate = wxPyBeginAllowThreads();
21455 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21456 wxPyEndAllowThreads(__tstate);
21457 if (PyErr_Occurred()) SWIG_fail;
21458 }
21459 resultobj = SWIG_From_int(static_cast< int >(result));
21460 return resultobj;
21461fail:
21462 return NULL;
21463}
21464
21465
21466SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21467 PyObject *resultobj = 0;
21468 wxDC *arg1 = (wxDC *) 0 ;
21469 int arg2 ;
21470 int result;
21471 void *argp1 = 0 ;
21472 int res1 = 0 ;
21473 int val2 ;
21474 int ecode2 = 0 ;
21475 PyObject * obj0 = 0 ;
21476 PyObject * obj1 = 0 ;
21477 char * kwnames[] = {
21478 (char *) "self",(char *) "y", NULL
21479 };
21480
21481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21483 if (!SWIG_IsOK(res1)) {
21484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21485 }
21486 arg1 = reinterpret_cast< wxDC * >(argp1);
21487 ecode2 = SWIG_AsVal_int(obj1, &val2);
21488 if (!SWIG_IsOK(ecode2)) {
21489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21490 }
21491 arg2 = static_cast< int >(val2);
21492 {
21493 PyThreadState* __tstate = wxPyBeginAllowThreads();
21494 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21495 wxPyEndAllowThreads(__tstate);
21496 if (PyErr_Occurred()) SWIG_fail;
21497 }
21498 resultobj = SWIG_From_int(static_cast< int >(result));
21499 return resultobj;
21500fail:
21501 return NULL;
21502}
21503
21504
21505SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21506 PyObject *resultobj = 0;
21507 wxDC *arg1 = (wxDC *) 0 ;
21508 int arg2 ;
21509 int result;
21510 void *argp1 = 0 ;
21511 int res1 = 0 ;
21512 int val2 ;
21513 int ecode2 = 0 ;
21514 PyObject * obj0 = 0 ;
21515 PyObject * obj1 = 0 ;
21516 char * kwnames[] = {
21517 (char *) "self",(char *) "x", NULL
21518 };
21519
21520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21522 if (!SWIG_IsOK(res1)) {
21523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21524 }
21525 arg1 = reinterpret_cast< wxDC * >(argp1);
21526 ecode2 = SWIG_AsVal_int(obj1, &val2);
21527 if (!SWIG_IsOK(ecode2)) {
21528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21529 }
21530 arg2 = static_cast< int >(val2);
21531 {
21532 PyThreadState* __tstate = wxPyBeginAllowThreads();
21533 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21534 wxPyEndAllowThreads(__tstate);
21535 if (PyErr_Occurred()) SWIG_fail;
21536 }
21537 resultobj = SWIG_From_int(static_cast< int >(result));
21538 return resultobj;
21539fail:
21540 return NULL;
21541}
21542
21543
21544SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21545 PyObject *resultobj = 0;
21546 wxDC *arg1 = (wxDC *) 0 ;
21547 int arg2 ;
21548 int result;
21549 void *argp1 = 0 ;
21550 int res1 = 0 ;
21551 int val2 ;
21552 int ecode2 = 0 ;
21553 PyObject * obj0 = 0 ;
21554 PyObject * obj1 = 0 ;
21555 char * kwnames[] = {
21556 (char *) "self",(char *) "y", NULL
21557 };
21558
21559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21561 if (!SWIG_IsOK(res1)) {
21562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21563 }
21564 arg1 = reinterpret_cast< wxDC * >(argp1);
21565 ecode2 = SWIG_AsVal_int(obj1, &val2);
21566 if (!SWIG_IsOK(ecode2)) {
21567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21568 }
21569 arg2 = static_cast< int >(val2);
21570 {
21571 PyThreadState* __tstate = wxPyBeginAllowThreads();
21572 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21573 wxPyEndAllowThreads(__tstate);
21574 if (PyErr_Occurred()) SWIG_fail;
21575 }
21576 resultobj = SWIG_From_int(static_cast< int >(result));
21577 return resultobj;
21578fail:
21579 return NULL;
21580}
21581
21582
21583SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21584 PyObject *resultobj = 0;
21585 wxDC *arg1 = (wxDC *) 0 ;
21586 int arg2 ;
21587 int result;
21588 void *argp1 = 0 ;
21589 int res1 = 0 ;
21590 int val2 ;
21591 int ecode2 = 0 ;
21592 PyObject * obj0 = 0 ;
21593 PyObject * obj1 = 0 ;
21594 char * kwnames[] = {
21595 (char *) "self",(char *) "x", NULL
21596 };
21597
21598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21600 if (!SWIG_IsOK(res1)) {
21601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21602 }
21603 arg1 = reinterpret_cast< wxDC * >(argp1);
21604 ecode2 = SWIG_AsVal_int(obj1, &val2);
21605 if (!SWIG_IsOK(ecode2)) {
21606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21607 }
21608 arg2 = static_cast< int >(val2);
21609 {
21610 PyThreadState* __tstate = wxPyBeginAllowThreads();
21611 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21612 wxPyEndAllowThreads(__tstate);
21613 if (PyErr_Occurred()) SWIG_fail;
21614 }
21615 resultobj = SWIG_From_int(static_cast< int >(result));
21616 return resultobj;
21617fail:
21618 return NULL;
21619}
21620
21621
21622SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21623 PyObject *resultobj = 0;
21624 wxDC *arg1 = (wxDC *) 0 ;
21625 int arg2 ;
21626 int result;
21627 void *argp1 = 0 ;
21628 int res1 = 0 ;
21629 int val2 ;
21630 int ecode2 = 0 ;
21631 PyObject * obj0 = 0 ;
21632 PyObject * obj1 = 0 ;
21633 char * kwnames[] = {
21634 (char *) "self",(char *) "y", NULL
21635 };
21636
21637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21639 if (!SWIG_IsOK(res1)) {
21640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21641 }
21642 arg1 = reinterpret_cast< wxDC * >(argp1);
21643 ecode2 = SWIG_AsVal_int(obj1, &val2);
21644 if (!SWIG_IsOK(ecode2)) {
21645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21646 }
21647 arg2 = static_cast< int >(val2);
21648 {
21649 PyThreadState* __tstate = wxPyBeginAllowThreads();
21650 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21651 wxPyEndAllowThreads(__tstate);
21652 if (PyErr_Occurred()) SWIG_fail;
21653 }
21654 resultobj = SWIG_From_int(static_cast< int >(result));
21655 return resultobj;
21656fail:
21657 return NULL;
21658}
21659
21660
21661SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21662 PyObject *resultobj = 0;
21663 wxDC *arg1 = (wxDC *) 0 ;
21664 int arg2 ;
21665 int result;
21666 void *argp1 = 0 ;
21667 int res1 = 0 ;
21668 int val2 ;
21669 int ecode2 = 0 ;
21670 PyObject * obj0 = 0 ;
21671 PyObject * obj1 = 0 ;
21672 char * kwnames[] = {
21673 (char *) "self",(char *) "x", NULL
21674 };
21675
21676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21678 if (!SWIG_IsOK(res1)) {
21679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21680 }
21681 arg1 = reinterpret_cast< wxDC * >(argp1);
21682 ecode2 = SWIG_AsVal_int(obj1, &val2);
21683 if (!SWIG_IsOK(ecode2)) {
21684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21685 }
21686 arg2 = static_cast< int >(val2);
21687 {
21688 PyThreadState* __tstate = wxPyBeginAllowThreads();
21689 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21690 wxPyEndAllowThreads(__tstate);
21691 if (PyErr_Occurred()) SWIG_fail;
21692 }
21693 resultobj = SWIG_From_int(static_cast< int >(result));
21694 return resultobj;
21695fail:
21696 return NULL;
21697}
21698
21699
21700SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21701 PyObject *resultobj = 0;
21702 wxDC *arg1 = (wxDC *) 0 ;
21703 int arg2 ;
21704 int result;
21705 void *argp1 = 0 ;
21706 int res1 = 0 ;
21707 int val2 ;
21708 int ecode2 = 0 ;
21709 PyObject * obj0 = 0 ;
21710 PyObject * obj1 = 0 ;
21711 char * kwnames[] = {
21712 (char *) "self",(char *) "y", NULL
21713 };
21714
21715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21717 if (!SWIG_IsOK(res1)) {
21718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21719 }
21720 arg1 = reinterpret_cast< wxDC * >(argp1);
21721 ecode2 = SWIG_AsVal_int(obj1, &val2);
21722 if (!SWIG_IsOK(ecode2)) {
21723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21724 }
21725 arg2 = static_cast< int >(val2);
21726 {
21727 PyThreadState* __tstate = wxPyBeginAllowThreads();
21728 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21729 wxPyEndAllowThreads(__tstate);
21730 if (PyErr_Occurred()) SWIG_fail;
21731 }
21732 resultobj = SWIG_From_int(static_cast< int >(result));
21733 return resultobj;
21734fail:
21735 return NULL;
21736}
21737
21738
21739SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21740 PyObject *resultobj = 0;
21741 wxDC *arg1 = (wxDC *) 0 ;
21742 bool result;
21743 void *argp1 = 0 ;
21744 int res1 = 0 ;
21745 PyObject *swig_obj[1] ;
21746
21747 if (!args) SWIG_fail;
21748 swig_obj[0] = args;
21749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21750 if (!SWIG_IsOK(res1)) {
21751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21752 }
21753 arg1 = reinterpret_cast< wxDC * >(argp1);
21754 {
21755 PyThreadState* __tstate = wxPyBeginAllowThreads();
21756 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21757 wxPyEndAllowThreads(__tstate);
21758 if (PyErr_Occurred()) SWIG_fail;
21759 }
21760 {
21761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21762 }
21763 return resultobj;
21764fail:
21765 return NULL;
21766}
21767
21768
21769SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21770 PyObject *resultobj = 0;
21771 wxDC *arg1 = (wxDC *) 0 ;
21772 bool result;
21773 void *argp1 = 0 ;
21774 int res1 = 0 ;
21775 PyObject *swig_obj[1] ;
21776
21777 if (!args) SWIG_fail;
21778 swig_obj[0] = args;
21779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21780 if (!SWIG_IsOK(res1)) {
21781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21782 }
21783 arg1 = reinterpret_cast< wxDC * >(argp1);
21784 {
21785 PyThreadState* __tstate = wxPyBeginAllowThreads();
21786 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21787 wxPyEndAllowThreads(__tstate);
21788 if (PyErr_Occurred()) SWIG_fail;
21789 }
21790 {
21791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21792 }
21793 return resultobj;
21794fail:
21795 return NULL;
21796}
21797
21798
21799SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21800 PyObject *resultobj = 0;
21801 wxDC *arg1 = (wxDC *) 0 ;
21802 int result;
21803 void *argp1 = 0 ;
21804 int res1 = 0 ;
21805 PyObject *swig_obj[1] ;
21806
21807 if (!args) SWIG_fail;
21808 swig_obj[0] = args;
21809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21810 if (!SWIG_IsOK(res1)) {
21811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21812 }
21813 arg1 = reinterpret_cast< wxDC * >(argp1);
21814 {
21815 PyThreadState* __tstate = wxPyBeginAllowThreads();
21816 result = (int)((wxDC const *)arg1)->GetDepth();
21817 wxPyEndAllowThreads(__tstate);
21818 if (PyErr_Occurred()) SWIG_fail;
21819 }
21820 resultobj = SWIG_From_int(static_cast< int >(result));
21821 return resultobj;
21822fail:
21823 return NULL;
21824}
21825
21826
21827SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21828 PyObject *resultobj = 0;
21829 wxDC *arg1 = (wxDC *) 0 ;
21830 wxSize result;
21831 void *argp1 = 0 ;
21832 int res1 = 0 ;
21833 PyObject *swig_obj[1] ;
21834
21835 if (!args) SWIG_fail;
21836 swig_obj[0] = args;
21837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21838 if (!SWIG_IsOK(res1)) {
21839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21840 }
21841 arg1 = reinterpret_cast< wxDC * >(argp1);
21842 {
21843 PyThreadState* __tstate = wxPyBeginAllowThreads();
21844 result = ((wxDC const *)arg1)->GetPPI();
21845 wxPyEndAllowThreads(__tstate);
21846 if (PyErr_Occurred()) SWIG_fail;
21847 }
21848 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21849 return resultobj;
21850fail:
21851 return NULL;
21852}
21853
21854
b39fe951 21855SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21856 PyObject *resultobj = 0;
21857 wxDC *arg1 = (wxDC *) 0 ;
21858 bool result;
21859 void *argp1 = 0 ;
21860 int res1 = 0 ;
21861 PyObject *swig_obj[1] ;
21862
21863 if (!args) SWIG_fail;
21864 swig_obj[0] = args;
21865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21866 if (!SWIG_IsOK(res1)) {
b39fe951 21867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21868 }
21869 arg1 = reinterpret_cast< wxDC * >(argp1);
21870 {
21871 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21872 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21873 wxPyEndAllowThreads(__tstate);
21874 if (PyErr_Occurred()) SWIG_fail;
21875 }
21876 {
21877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21878 }
21879 return resultobj;
21880fail:
21881 return NULL;
21882}
21883
21884
21885SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21886 PyObject *resultobj = 0;
21887 wxDC *arg1 = (wxDC *) 0 ;
21888 int result;
21889 void *argp1 = 0 ;
21890 int res1 = 0 ;
21891 PyObject *swig_obj[1] ;
21892
21893 if (!args) SWIG_fail;
21894 swig_obj[0] = args;
21895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21896 if (!SWIG_IsOK(res1)) {
21897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21898 }
21899 arg1 = reinterpret_cast< wxDC * >(argp1);
21900 {
21901 PyThreadState* __tstate = wxPyBeginAllowThreads();
21902 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21903 wxPyEndAllowThreads(__tstate);
21904 if (PyErr_Occurred()) SWIG_fail;
21905 }
21906 resultobj = SWIG_From_int(static_cast< int >(result));
21907 return resultobj;
21908fail:
21909 return NULL;
21910}
21911
21912
21913SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21914 PyObject *resultobj = 0;
21915 wxDC *arg1 = (wxDC *) 0 ;
21916 wxBrush *result = 0 ;
21917 void *argp1 = 0 ;
21918 int res1 = 0 ;
21919 PyObject *swig_obj[1] ;
21920
21921 if (!args) SWIG_fail;
21922 swig_obj[0] = args;
21923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21924 if (!SWIG_IsOK(res1)) {
21925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21926 }
21927 arg1 = reinterpret_cast< wxDC * >(argp1);
21928 {
21929 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21930 {
1bd55598
RD
21931 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21932 result = (wxBrush *) &_result_ref;
36ed4f51 21933 }
1bd55598
RD
21934 wxPyEndAllowThreads(__tstate);
21935 if (PyErr_Occurred()) SWIG_fail;
21936 }
21937 {
21938 wxBrush* resultptr = new wxBrush(*result);
21939 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21940 }
21941 return resultobj;
21942fail:
21943 return NULL;
21944}
21945
21946
21947SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21948 PyObject *resultobj = 0;
21949 wxDC *arg1 = (wxDC *) 0 ;
21950 wxBrush *result = 0 ;
21951 void *argp1 = 0 ;
21952 int res1 = 0 ;
21953 PyObject *swig_obj[1] ;
21954
21955 if (!args) SWIG_fail;
21956 swig_obj[0] = args;
21957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21958 if (!SWIG_IsOK(res1)) {
21959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21960 }
21961 arg1 = reinterpret_cast< wxDC * >(argp1);
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21964 {
1bd55598
RD
21965 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21966 result = (wxBrush *) &_result_ref;
36ed4f51 21967 }
1bd55598
RD
21968 wxPyEndAllowThreads(__tstate);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 }
21971 {
21972 wxBrush* resultptr = new wxBrush(*result);
21973 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21974 }
21975 return resultobj;
21976fail:
21977 return NULL;
21978}
21979
21980
21981SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21982 PyObject *resultobj = 0;
21983 wxDC *arg1 = (wxDC *) 0 ;
21984 wxFont *result = 0 ;
21985 void *argp1 = 0 ;
21986 int res1 = 0 ;
21987 PyObject *swig_obj[1] ;
21988
21989 if (!args) SWIG_fail;
21990 swig_obj[0] = args;
21991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21992 if (!SWIG_IsOK(res1)) {
21993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21994 }
21995 arg1 = reinterpret_cast< wxDC * >(argp1);
21996 {
21997 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21998 {
1bd55598
RD
21999 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22000 result = (wxFont *) &_result_ref;
36ed4f51 22001 }
1bd55598
RD
22002 wxPyEndAllowThreads(__tstate);
22003 if (PyErr_Occurred()) SWIG_fail;
22004 }
22005 {
22006 wxFont* resultptr = new wxFont(*result);
22007 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22008 }
22009 return resultobj;
22010fail:
22011 return NULL;
22012}
22013
22014
22015SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22016 PyObject *resultobj = 0;
22017 wxDC *arg1 = (wxDC *) 0 ;
22018 wxPen *result = 0 ;
22019 void *argp1 = 0 ;
22020 int res1 = 0 ;
22021 PyObject *swig_obj[1] ;
22022
22023 if (!args) SWIG_fail;
22024 swig_obj[0] = args;
22025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22026 if (!SWIG_IsOK(res1)) {
22027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22028 }
22029 arg1 = reinterpret_cast< wxDC * >(argp1);
22030 {
22031 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22032 {
1bd55598
RD
22033 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22034 result = (wxPen *) &_result_ref;
36ed4f51 22035 }
1bd55598
RD
22036 wxPyEndAllowThreads(__tstate);
22037 if (PyErr_Occurred()) SWIG_fail;
22038 }
22039 {
22040 wxPen* resultptr = new wxPen(*result);
22041 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22042 }
22043 return resultobj;
22044fail:
22045 return NULL;
22046}
22047
22048
22049SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22050 PyObject *resultobj = 0;
22051 wxDC *arg1 = (wxDC *) 0 ;
22052 wxColour *result = 0 ;
22053 void *argp1 = 0 ;
22054 int res1 = 0 ;
22055 PyObject *swig_obj[1] ;
22056
22057 if (!args) SWIG_fail;
22058 swig_obj[0] = args;
22059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22060 if (!SWIG_IsOK(res1)) {
22061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22062 }
22063 arg1 = reinterpret_cast< wxDC * >(argp1);
22064 {
22065 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22066 {
1bd55598
RD
22067 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22068 result = (wxColour *) &_result_ref;
36ed4f51 22069 }
1bd55598
RD
22070 wxPyEndAllowThreads(__tstate);
22071 if (PyErr_Occurred()) SWIG_fail;
22072 }
22073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22074 return resultobj;
22075fail:
22076 return NULL;
22077}
22078
22079
22080SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22081 PyObject *resultobj = 0;
22082 wxDC *arg1 = (wxDC *) 0 ;
22083 wxColour *result = 0 ;
22084 void *argp1 = 0 ;
22085 int res1 = 0 ;
22086 PyObject *swig_obj[1] ;
22087
22088 if (!args) SWIG_fail;
22089 swig_obj[0] = args;
22090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22091 if (!SWIG_IsOK(res1)) {
22092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22093 }
22094 arg1 = reinterpret_cast< wxDC * >(argp1);
22095 {
22096 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22097 {
1bd55598
RD
22098 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22099 result = (wxColour *) &_result_ref;
36ed4f51 22100 }
1bd55598
RD
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22105 return resultobj;
22106fail:
22107 return NULL;
22108}
22109
22110
22111SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22112 PyObject *resultobj = 0;
22113 wxDC *arg1 = (wxDC *) 0 ;
22114 wxColour *arg2 = 0 ;
22115 void *argp1 = 0 ;
22116 int res1 = 0 ;
22117 wxColour temp2 ;
22118 PyObject * obj0 = 0 ;
22119 PyObject * obj1 = 0 ;
22120 char * kwnames[] = {
22121 (char *) "self",(char *) "colour", NULL
22122 };
22123
22124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22126 if (!SWIG_IsOK(res1)) {
22127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22128 }
22129 arg1 = reinterpret_cast< wxDC * >(argp1);
22130 {
22131 arg2 = &temp2;
22132 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22133 }
22134 {
22135 PyThreadState* __tstate = wxPyBeginAllowThreads();
22136 (arg1)->SetTextForeground((wxColour const &)*arg2);
22137 wxPyEndAllowThreads(__tstate);
22138 if (PyErr_Occurred()) SWIG_fail;
22139 }
22140 resultobj = SWIG_Py_Void();
22141 return resultobj;
22142fail:
22143 return NULL;
22144}
22145
22146
22147SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22148 PyObject *resultobj = 0;
22149 wxDC *arg1 = (wxDC *) 0 ;
22150 wxColour *arg2 = 0 ;
22151 void *argp1 = 0 ;
22152 int res1 = 0 ;
22153 wxColour temp2 ;
22154 PyObject * obj0 = 0 ;
22155 PyObject * obj1 = 0 ;
22156 char * kwnames[] = {
22157 (char *) "self",(char *) "colour", NULL
22158 };
22159
22160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22162 if (!SWIG_IsOK(res1)) {
22163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22164 }
22165 arg1 = reinterpret_cast< wxDC * >(argp1);
22166 {
22167 arg2 = &temp2;
22168 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22169 }
22170 {
22171 PyThreadState* __tstate = wxPyBeginAllowThreads();
22172 (arg1)->SetTextBackground((wxColour const &)*arg2);
22173 wxPyEndAllowThreads(__tstate);
22174 if (PyErr_Occurred()) SWIG_fail;
22175 }
22176 resultobj = SWIG_Py_Void();
22177 return resultobj;
22178fail:
22179 return NULL;
22180}
22181
22182
22183SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22184 PyObject *resultobj = 0;
22185 wxDC *arg1 = (wxDC *) 0 ;
22186 int result;
22187 void *argp1 = 0 ;
22188 int res1 = 0 ;
22189 PyObject *swig_obj[1] ;
22190
22191 if (!args) SWIG_fail;
22192 swig_obj[0] = args;
22193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22194 if (!SWIG_IsOK(res1)) {
22195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22196 }
22197 arg1 = reinterpret_cast< wxDC * >(argp1);
22198 {
22199 PyThreadState* __tstate = wxPyBeginAllowThreads();
22200 result = (int)((wxDC const *)arg1)->GetMapMode();
22201 wxPyEndAllowThreads(__tstate);
22202 if (PyErr_Occurred()) SWIG_fail;
22203 }
22204 resultobj = SWIG_From_int(static_cast< int >(result));
22205 return resultobj;
22206fail:
22207 return NULL;
22208}
22209
22210
22211SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22212 PyObject *resultobj = 0;
22213 wxDC *arg1 = (wxDC *) 0 ;
22214 int arg2 ;
22215 void *argp1 = 0 ;
22216 int res1 = 0 ;
22217 int val2 ;
22218 int ecode2 = 0 ;
22219 PyObject * obj0 = 0 ;
22220 PyObject * obj1 = 0 ;
22221 char * kwnames[] = {
22222 (char *) "self",(char *) "mode", NULL
22223 };
22224
22225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22227 if (!SWIG_IsOK(res1)) {
22228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22229 }
22230 arg1 = reinterpret_cast< wxDC * >(argp1);
22231 ecode2 = SWIG_AsVal_int(obj1, &val2);
22232 if (!SWIG_IsOK(ecode2)) {
22233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22234 }
22235 arg2 = static_cast< int >(val2);
22236 {
22237 PyThreadState* __tstate = wxPyBeginAllowThreads();
22238 (arg1)->SetMapMode(arg2);
22239 wxPyEndAllowThreads(__tstate);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 }
22242 resultobj = SWIG_Py_Void();
22243 return resultobj;
22244fail:
22245 return NULL;
22246}
22247
22248
22249SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22250 PyObject *resultobj = 0;
22251 wxDC *arg1 = (wxDC *) 0 ;
22252 double *arg2 = (double *) 0 ;
22253 double *arg3 = (double *) 0 ;
22254 void *argp1 = 0 ;
22255 int res1 = 0 ;
22256 double temp2 ;
22257 int res2 = SWIG_TMPOBJ ;
22258 double temp3 ;
22259 int res3 = SWIG_TMPOBJ ;
22260 PyObject *swig_obj[1] ;
22261
22262 arg2 = &temp2;
22263 arg3 = &temp3;
22264 if (!args) SWIG_fail;
22265 swig_obj[0] = args;
22266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22267 if (!SWIG_IsOK(res1)) {
22268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22269 }
22270 arg1 = reinterpret_cast< wxDC * >(argp1);
22271 {
22272 PyThreadState* __tstate = wxPyBeginAllowThreads();
22273 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22274 wxPyEndAllowThreads(__tstate);
22275 if (PyErr_Occurred()) SWIG_fail;
22276 }
22277 resultobj = SWIG_Py_Void();
22278 if (SWIG_IsTmpObj(res2)) {
22279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22280 } else {
22281 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22283 }
22284 if (SWIG_IsTmpObj(res3)) {
22285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22286 } else {
22287 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22289 }
22290 return resultobj;
22291fail:
22292 return NULL;
22293}
22294
22295
22296SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22297 PyObject *resultobj = 0;
22298 wxDC *arg1 = (wxDC *) 0 ;
22299 double arg2 ;
22300 double arg3 ;
22301 void *argp1 = 0 ;
22302 int res1 = 0 ;
22303 double val2 ;
22304 int ecode2 = 0 ;
22305 double val3 ;
22306 int ecode3 = 0 ;
22307 PyObject * obj0 = 0 ;
22308 PyObject * obj1 = 0 ;
22309 PyObject * obj2 = 0 ;
22310 char * kwnames[] = {
22311 (char *) "self",(char *) "x",(char *) "y", NULL
22312 };
22313
22314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22316 if (!SWIG_IsOK(res1)) {
22317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22318 }
22319 arg1 = reinterpret_cast< wxDC * >(argp1);
22320 ecode2 = SWIG_AsVal_double(obj1, &val2);
22321 if (!SWIG_IsOK(ecode2)) {
22322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22323 }
22324 arg2 = static_cast< double >(val2);
22325 ecode3 = SWIG_AsVal_double(obj2, &val3);
22326 if (!SWIG_IsOK(ecode3)) {
22327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22328 }
22329 arg3 = static_cast< double >(val3);
22330 {
22331 PyThreadState* __tstate = wxPyBeginAllowThreads();
22332 (arg1)->SetUserScale(arg2,arg3);
22333 wxPyEndAllowThreads(__tstate);
22334 if (PyErr_Occurred()) SWIG_fail;
22335 }
22336 resultobj = SWIG_Py_Void();
22337 return resultobj;
22338fail:
22339 return NULL;
22340}
22341
22342
22343SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22344 PyObject *resultobj = 0;
22345 wxDC *arg1 = (wxDC *) 0 ;
22346 double *arg2 = (double *) 0 ;
22347 double *arg3 = (double *) 0 ;
22348 void *argp1 = 0 ;
22349 int res1 = 0 ;
22350 double temp2 ;
22351 int res2 = SWIG_TMPOBJ ;
22352 double temp3 ;
22353 int res3 = SWIG_TMPOBJ ;
22354 PyObject *swig_obj[1] ;
22355
22356 arg2 = &temp2;
22357 arg3 = &temp3;
22358 if (!args) SWIG_fail;
22359 swig_obj[0] = args;
22360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22361 if (!SWIG_IsOK(res1)) {
22362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22363 }
22364 arg1 = reinterpret_cast< wxDC * >(argp1);
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 (arg1)->GetLogicalScale(arg2,arg3);
22368 wxPyEndAllowThreads(__tstate);
22369 if (PyErr_Occurred()) SWIG_fail;
22370 }
22371 resultobj = SWIG_Py_Void();
22372 if (SWIG_IsTmpObj(res2)) {
22373 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22374 } else {
22375 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22377 }
22378 if (SWIG_IsTmpObj(res3)) {
22379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22380 } else {
22381 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22382 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22383 }
22384 return resultobj;
22385fail:
22386 return NULL;
22387}
22388
22389
22390SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22391 PyObject *resultobj = 0;
22392 wxDC *arg1 = (wxDC *) 0 ;
22393 double arg2 ;
22394 double arg3 ;
22395 void *argp1 = 0 ;
22396 int res1 = 0 ;
22397 double val2 ;
22398 int ecode2 = 0 ;
22399 double val3 ;
22400 int ecode3 = 0 ;
22401 PyObject * obj0 = 0 ;
22402 PyObject * obj1 = 0 ;
22403 PyObject * obj2 = 0 ;
22404 char * kwnames[] = {
22405 (char *) "self",(char *) "x",(char *) "y", NULL
22406 };
22407
22408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22410 if (!SWIG_IsOK(res1)) {
22411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22412 }
22413 arg1 = reinterpret_cast< wxDC * >(argp1);
22414 ecode2 = SWIG_AsVal_double(obj1, &val2);
22415 if (!SWIG_IsOK(ecode2)) {
22416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22417 }
22418 arg2 = static_cast< double >(val2);
22419 ecode3 = SWIG_AsVal_double(obj2, &val3);
22420 if (!SWIG_IsOK(ecode3)) {
22421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22422 }
22423 arg3 = static_cast< double >(val3);
22424 {
22425 PyThreadState* __tstate = wxPyBeginAllowThreads();
22426 (arg1)->SetLogicalScale(arg2,arg3);
22427 wxPyEndAllowThreads(__tstate);
22428 if (PyErr_Occurred()) SWIG_fail;
22429 }
22430 resultobj = SWIG_Py_Void();
22431 return resultobj;
22432fail:
22433 return NULL;
22434}
22435
22436
22437SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22438 PyObject *resultobj = 0;
22439 wxDC *arg1 = (wxDC *) 0 ;
22440 wxPoint result;
22441 void *argp1 = 0 ;
22442 int res1 = 0 ;
22443 PyObject *swig_obj[1] ;
22444
22445 if (!args) SWIG_fail;
22446 swig_obj[0] = args;
22447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22448 if (!SWIG_IsOK(res1)) {
22449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22450 }
22451 arg1 = reinterpret_cast< wxDC * >(argp1);
22452 {
22453 PyThreadState* __tstate = wxPyBeginAllowThreads();
22454 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22455 wxPyEndAllowThreads(__tstate);
22456 if (PyErr_Occurred()) SWIG_fail;
22457 }
22458 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22459 return resultobj;
22460fail:
22461 return NULL;
22462}
22463
22464
22465SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22466 PyObject *resultobj = 0;
22467 wxDC *arg1 = (wxDC *) 0 ;
22468 int *arg2 = (int *) 0 ;
22469 int *arg3 = (int *) 0 ;
22470 void *argp1 = 0 ;
22471 int res1 = 0 ;
22472 int temp2 ;
22473 int res2 = SWIG_TMPOBJ ;
22474 int temp3 ;
22475 int res3 = SWIG_TMPOBJ ;
22476 PyObject *swig_obj[1] ;
22477
22478 arg2 = &temp2;
22479 arg3 = &temp3;
22480 if (!args) SWIG_fail;
22481 swig_obj[0] = args;
22482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22483 if (!SWIG_IsOK(res1)) {
22484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22485 }
22486 arg1 = reinterpret_cast< wxDC * >(argp1);
22487 {
22488 PyThreadState* __tstate = wxPyBeginAllowThreads();
22489 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22490 wxPyEndAllowThreads(__tstate);
22491 if (PyErr_Occurred()) SWIG_fail;
22492 }
22493 resultobj = SWIG_Py_Void();
22494 if (SWIG_IsTmpObj(res2)) {
22495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22496 } else {
22497 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22499 }
22500 if (SWIG_IsTmpObj(res3)) {
22501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22502 } else {
22503 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22505 }
22506 return resultobj;
22507fail:
22508 return NULL;
22509}
22510
22511
22512SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22513 PyObject *resultobj = 0;
22514 wxDC *arg1 = (wxDC *) 0 ;
22515 int arg2 ;
22516 int arg3 ;
22517 void *argp1 = 0 ;
22518 int res1 = 0 ;
22519 int val2 ;
22520 int ecode2 = 0 ;
22521 int val3 ;
22522 int ecode3 = 0 ;
22523 PyObject * obj0 = 0 ;
22524 PyObject * obj1 = 0 ;
22525 PyObject * obj2 = 0 ;
22526 char * kwnames[] = {
22527 (char *) "self",(char *) "x",(char *) "y", NULL
22528 };
22529
22530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22532 if (!SWIG_IsOK(res1)) {
22533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22534 }
22535 arg1 = reinterpret_cast< wxDC * >(argp1);
22536 ecode2 = SWIG_AsVal_int(obj1, &val2);
22537 if (!SWIG_IsOK(ecode2)) {
22538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22539 }
22540 arg2 = static_cast< int >(val2);
22541 ecode3 = SWIG_AsVal_int(obj2, &val3);
22542 if (!SWIG_IsOK(ecode3)) {
22543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22544 }
22545 arg3 = static_cast< int >(val3);
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 (arg1)->SetLogicalOrigin(arg2,arg3);
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 resultobj = SWIG_Py_Void();
22553 return resultobj;
22554fail:
22555 return NULL;
22556}
22557
22558
22559SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22560 PyObject *resultobj = 0;
22561 wxDC *arg1 = (wxDC *) 0 ;
22562 wxPoint *arg2 = 0 ;
22563 void *argp1 = 0 ;
22564 int res1 = 0 ;
22565 wxPoint temp2 ;
22566 PyObject * obj0 = 0 ;
22567 PyObject * obj1 = 0 ;
22568 char * kwnames[] = {
22569 (char *) "self",(char *) "point", NULL
22570 };
22571
22572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22574 if (!SWIG_IsOK(res1)) {
22575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22576 }
22577 arg1 = reinterpret_cast< wxDC * >(argp1);
22578 {
22579 arg2 = &temp2;
22580 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22581 }
22582 {
22583 PyThreadState* __tstate = wxPyBeginAllowThreads();
22584 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22585 wxPyEndAllowThreads(__tstate);
22586 if (PyErr_Occurred()) SWIG_fail;
22587 }
22588 resultobj = SWIG_Py_Void();
22589 return resultobj;
22590fail:
22591 return NULL;
22592}
22593
22594
22595SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22596 PyObject *resultobj = 0;
22597 wxDC *arg1 = (wxDC *) 0 ;
22598 wxPoint result;
22599 void *argp1 = 0 ;
22600 int res1 = 0 ;
22601 PyObject *swig_obj[1] ;
22602
22603 if (!args) SWIG_fail;
22604 swig_obj[0] = args;
22605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22606 if (!SWIG_IsOK(res1)) {
22607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22608 }
22609 arg1 = reinterpret_cast< wxDC * >(argp1);
22610 {
22611 PyThreadState* __tstate = wxPyBeginAllowThreads();
22612 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22613 wxPyEndAllowThreads(__tstate);
22614 if (PyErr_Occurred()) SWIG_fail;
22615 }
22616 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22617 return resultobj;
22618fail:
22619 return NULL;
22620}
22621
22622
22623SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22624 PyObject *resultobj = 0;
22625 wxDC *arg1 = (wxDC *) 0 ;
22626 int *arg2 = (int *) 0 ;
22627 int *arg3 = (int *) 0 ;
22628 void *argp1 = 0 ;
22629 int res1 = 0 ;
22630 int temp2 ;
22631 int res2 = SWIG_TMPOBJ ;
22632 int temp3 ;
22633 int res3 = SWIG_TMPOBJ ;
22634 PyObject *swig_obj[1] ;
22635
22636 arg2 = &temp2;
22637 arg3 = &temp3;
22638 if (!args) SWIG_fail;
22639 swig_obj[0] = args;
22640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22641 if (!SWIG_IsOK(res1)) {
22642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22643 }
22644 arg1 = reinterpret_cast< wxDC * >(argp1);
22645 {
22646 PyThreadState* __tstate = wxPyBeginAllowThreads();
22647 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22648 wxPyEndAllowThreads(__tstate);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 }
22651 resultobj = SWIG_Py_Void();
22652 if (SWIG_IsTmpObj(res2)) {
22653 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22654 } else {
22655 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22657 }
22658 if (SWIG_IsTmpObj(res3)) {
22659 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22660 } else {
22661 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22662 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22663 }
22664 return resultobj;
22665fail:
22666 return NULL;
22667}
22668
22669
22670SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22671 PyObject *resultobj = 0;
22672 wxDC *arg1 = (wxDC *) 0 ;
22673 int arg2 ;
22674 int arg3 ;
22675 void *argp1 = 0 ;
22676 int res1 = 0 ;
22677 int val2 ;
22678 int ecode2 = 0 ;
22679 int val3 ;
22680 int ecode3 = 0 ;
22681 PyObject * obj0 = 0 ;
22682 PyObject * obj1 = 0 ;
22683 PyObject * obj2 = 0 ;
22684 char * kwnames[] = {
22685 (char *) "self",(char *) "x",(char *) "y", NULL
22686 };
22687
22688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22690 if (!SWIG_IsOK(res1)) {
22691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22692 }
22693 arg1 = reinterpret_cast< wxDC * >(argp1);
22694 ecode2 = SWIG_AsVal_int(obj1, &val2);
22695 if (!SWIG_IsOK(ecode2)) {
22696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22697 }
22698 arg2 = static_cast< int >(val2);
22699 ecode3 = SWIG_AsVal_int(obj2, &val3);
22700 if (!SWIG_IsOK(ecode3)) {
22701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22702 }
22703 arg3 = static_cast< int >(val3);
22704 {
22705 PyThreadState* __tstate = wxPyBeginAllowThreads();
22706 (arg1)->SetDeviceOrigin(arg2,arg3);
22707 wxPyEndAllowThreads(__tstate);
22708 if (PyErr_Occurred()) SWIG_fail;
22709 }
22710 resultobj = SWIG_Py_Void();
22711 return resultobj;
22712fail:
22713 return NULL;
22714}
22715
22716
22717SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22718 PyObject *resultobj = 0;
22719 wxDC *arg1 = (wxDC *) 0 ;
22720 wxPoint *arg2 = 0 ;
22721 void *argp1 = 0 ;
22722 int res1 = 0 ;
22723 wxPoint temp2 ;
22724 PyObject * obj0 = 0 ;
22725 PyObject * obj1 = 0 ;
22726 char * kwnames[] = {
22727 (char *) "self",(char *) "point", NULL
22728 };
22729
22730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22732 if (!SWIG_IsOK(res1)) {
22733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22734 }
22735 arg1 = reinterpret_cast< wxDC * >(argp1);
22736 {
22737 arg2 = &temp2;
22738 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22739 }
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 resultobj = SWIG_Py_Void();
22747 return resultobj;
22748fail:
22749 return NULL;
22750}
22751
22752
22753SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22754 PyObject *resultobj = 0;
22755 wxDC *arg1 = (wxDC *) 0 ;
22756 bool arg2 ;
22757 bool arg3 ;
22758 void *argp1 = 0 ;
22759 int res1 = 0 ;
22760 bool val2 ;
22761 int ecode2 = 0 ;
22762 bool val3 ;
22763 int ecode3 = 0 ;
22764 PyObject * obj0 = 0 ;
22765 PyObject * obj1 = 0 ;
22766 PyObject * obj2 = 0 ;
22767 char * kwnames[] = {
22768 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22769 };
22770
22771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22773 if (!SWIG_IsOK(res1)) {
22774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22775 }
22776 arg1 = reinterpret_cast< wxDC * >(argp1);
22777 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22778 if (!SWIG_IsOK(ecode2)) {
22779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22780 }
22781 arg2 = static_cast< bool >(val2);
22782 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22783 if (!SWIG_IsOK(ecode3)) {
22784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22785 }
22786 arg3 = static_cast< bool >(val3);
22787 {
22788 PyThreadState* __tstate = wxPyBeginAllowThreads();
22789 (arg1)->SetAxisOrientation(arg2,arg3);
22790 wxPyEndAllowThreads(__tstate);
22791 if (PyErr_Occurred()) SWIG_fail;
22792 }
22793 resultobj = SWIG_Py_Void();
22794 return resultobj;
22795fail:
22796 return NULL;
22797}
22798
22799
22800SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22801 PyObject *resultobj = 0;
22802 wxDC *arg1 = (wxDC *) 0 ;
22803 int result;
22804 void *argp1 = 0 ;
22805 int res1 = 0 ;
22806 PyObject *swig_obj[1] ;
22807
22808 if (!args) SWIG_fail;
22809 swig_obj[0] = args;
22810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22811 if (!SWIG_IsOK(res1)) {
22812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22813 }
22814 arg1 = reinterpret_cast< wxDC * >(argp1);
22815 {
22816 PyThreadState* __tstate = wxPyBeginAllowThreads();
22817 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22818 wxPyEndAllowThreads(__tstate);
22819 if (PyErr_Occurred()) SWIG_fail;
22820 }
22821 resultobj = SWIG_From_int(static_cast< int >(result));
22822 return resultobj;
22823fail:
22824 return NULL;
22825}
22826
22827
22828SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22829 PyObject *resultobj = 0;
22830 wxDC *arg1 = (wxDC *) 0 ;
22831 int arg2 ;
22832 void *argp1 = 0 ;
22833 int res1 = 0 ;
22834 int val2 ;
22835 int ecode2 = 0 ;
22836 PyObject * obj0 = 0 ;
22837 PyObject * obj1 = 0 ;
22838 char * kwnames[] = {
22839 (char *) "self",(char *) "function", NULL
22840 };
22841
22842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22844 if (!SWIG_IsOK(res1)) {
22845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22846 }
22847 arg1 = reinterpret_cast< wxDC * >(argp1);
22848 ecode2 = SWIG_AsVal_int(obj1, &val2);
22849 if (!SWIG_IsOK(ecode2)) {
22850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22851 }
22852 arg2 = static_cast< int >(val2);
22853 {
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 (arg1)->SetLogicalFunction(arg2);
22856 wxPyEndAllowThreads(__tstate);
22857 if (PyErr_Occurred()) SWIG_fail;
22858 }
22859 resultobj = SWIG_Py_Void();
22860 return resultobj;
22861fail:
22862 return NULL;
22863}
22864
22865
22866SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22867 PyObject *resultobj = 0;
22868 wxDC *arg1 = (wxDC *) 0 ;
22869 void *argp1 = 0 ;
22870 int res1 = 0 ;
22871 PyObject *swig_obj[1] ;
22872
22873 if (!args) SWIG_fail;
22874 swig_obj[0] = args;
22875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22876 if (!SWIG_IsOK(res1)) {
22877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22878 }
22879 arg1 = reinterpret_cast< wxDC * >(argp1);
22880 {
22881 PyThreadState* __tstate = wxPyBeginAllowThreads();
22882 (arg1)->ComputeScaleAndOrigin();
22883 wxPyEndAllowThreads(__tstate);
22884 if (PyErr_Occurred()) SWIG_fail;
22885 }
22886 resultobj = SWIG_Py_Void();
22887 return resultobj;
22888fail:
22889 return NULL;
22890}
22891
22892
22893SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22894 PyObject *resultobj = 0;
22895 wxDC *arg1 = (wxDC *) 0 ;
22896 int arg2 ;
22897 int arg3 ;
22898 void *argp1 = 0 ;
22899 int res1 = 0 ;
22900 int val2 ;
22901 int ecode2 = 0 ;
22902 int val3 ;
22903 int ecode3 = 0 ;
22904 PyObject * obj0 = 0 ;
22905 PyObject * obj1 = 0 ;
22906 PyObject * obj2 = 0 ;
22907 char * kwnames[] = {
22908 (char *) "self",(char *) "x",(char *) "y", NULL
22909 };
22910
22911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22913 if (!SWIG_IsOK(res1)) {
22914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22915 }
22916 arg1 = reinterpret_cast< wxDC * >(argp1);
22917 ecode2 = SWIG_AsVal_int(obj1, &val2);
22918 if (!SWIG_IsOK(ecode2)) {
22919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22920 }
22921 arg2 = static_cast< int >(val2);
22922 ecode3 = SWIG_AsVal_int(obj2, &val3);
22923 if (!SWIG_IsOK(ecode3)) {
22924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22925 }
22926 arg3 = static_cast< int >(val3);
22927 {
22928 PyThreadState* __tstate = wxPyBeginAllowThreads();
22929 (arg1)->CalcBoundingBox(arg2,arg3);
22930 wxPyEndAllowThreads(__tstate);
22931 if (PyErr_Occurred()) SWIG_fail;
22932 }
22933 resultobj = SWIG_Py_Void();
22934 return resultobj;
22935fail:
22936 return NULL;
22937}
22938
22939
22940SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22941 PyObject *resultobj = 0;
22942 wxDC *arg1 = (wxDC *) 0 ;
22943 wxPoint *arg2 = 0 ;
22944 void *argp1 = 0 ;
22945 int res1 = 0 ;
22946 wxPoint temp2 ;
22947 PyObject * obj0 = 0 ;
22948 PyObject * obj1 = 0 ;
22949 char * kwnames[] = {
22950 (char *) "self",(char *) "point", NULL
22951 };
22952
22953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22955 if (!SWIG_IsOK(res1)) {
22956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22957 }
22958 arg1 = reinterpret_cast< wxDC * >(argp1);
22959 {
22960 arg2 = &temp2;
22961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22962 }
22963 {
22964 PyThreadState* __tstate = wxPyBeginAllowThreads();
22965 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22966 wxPyEndAllowThreads(__tstate);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 }
22969 resultobj = SWIG_Py_Void();
22970 return resultobj;
22971fail:
22972 return NULL;
22973}
22974
22975
22976SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22977 PyObject *resultobj = 0;
22978 wxDC *arg1 = (wxDC *) 0 ;
22979 void *argp1 = 0 ;
22980 int res1 = 0 ;
22981 PyObject *swig_obj[1] ;
22982
22983 if (!args) SWIG_fail;
22984 swig_obj[0] = args;
22985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22986 if (!SWIG_IsOK(res1)) {
22987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22988 }
22989 arg1 = reinterpret_cast< wxDC * >(argp1);
22990 {
22991 PyThreadState* __tstate = wxPyBeginAllowThreads();
22992 (arg1)->ResetBoundingBox();
22993 wxPyEndAllowThreads(__tstate);
22994 if (PyErr_Occurred()) SWIG_fail;
22995 }
22996 resultobj = SWIG_Py_Void();
22997 return resultobj;
22998fail:
22999 return NULL;
23000}
23001
23002
23003SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23004 PyObject *resultobj = 0;
23005 wxDC *arg1 = (wxDC *) 0 ;
23006 int result;
23007 void *argp1 = 0 ;
23008 int res1 = 0 ;
23009 PyObject *swig_obj[1] ;
23010
23011 if (!args) SWIG_fail;
23012 swig_obj[0] = args;
23013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23014 if (!SWIG_IsOK(res1)) {
23015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23016 }
23017 arg1 = reinterpret_cast< wxDC * >(argp1);
23018 {
23019 PyThreadState* __tstate = wxPyBeginAllowThreads();
23020 result = (int)((wxDC const *)arg1)->MinX();
23021 wxPyEndAllowThreads(__tstate);
23022 if (PyErr_Occurred()) SWIG_fail;
23023 }
23024 resultobj = SWIG_From_int(static_cast< int >(result));
23025 return resultobj;
23026fail:
23027 return NULL;
23028}
23029
23030
23031SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23032 PyObject *resultobj = 0;
23033 wxDC *arg1 = (wxDC *) 0 ;
23034 int result;
23035 void *argp1 = 0 ;
23036 int res1 = 0 ;
23037 PyObject *swig_obj[1] ;
23038
23039 if (!args) SWIG_fail;
23040 swig_obj[0] = args;
23041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23042 if (!SWIG_IsOK(res1)) {
23043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23044 }
23045 arg1 = reinterpret_cast< wxDC * >(argp1);
23046 {
23047 PyThreadState* __tstate = wxPyBeginAllowThreads();
23048 result = (int)((wxDC const *)arg1)->MaxX();
23049 wxPyEndAllowThreads(__tstate);
23050 if (PyErr_Occurred()) SWIG_fail;
23051 }
23052 resultobj = SWIG_From_int(static_cast< int >(result));
23053 return resultobj;
23054fail:
23055 return NULL;
23056}
23057
23058
23059SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23060 PyObject *resultobj = 0;
23061 wxDC *arg1 = (wxDC *) 0 ;
23062 int result;
23063 void *argp1 = 0 ;
23064 int res1 = 0 ;
23065 PyObject *swig_obj[1] ;
23066
23067 if (!args) SWIG_fail;
23068 swig_obj[0] = args;
23069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23070 if (!SWIG_IsOK(res1)) {
23071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23072 }
23073 arg1 = reinterpret_cast< wxDC * >(argp1);
23074 {
23075 PyThreadState* __tstate = wxPyBeginAllowThreads();
23076 result = (int)((wxDC const *)arg1)->MinY();
23077 wxPyEndAllowThreads(__tstate);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 }
23080 resultobj = SWIG_From_int(static_cast< int >(result));
23081 return resultobj;
23082fail:
23083 return NULL;
23084}
23085
23086
23087SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23088 PyObject *resultobj = 0;
23089 wxDC *arg1 = (wxDC *) 0 ;
23090 int result;
23091 void *argp1 = 0 ;
23092 int res1 = 0 ;
23093 PyObject *swig_obj[1] ;
23094
23095 if (!args) SWIG_fail;
23096 swig_obj[0] = args;
23097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23098 if (!SWIG_IsOK(res1)) {
23099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23100 }
23101 arg1 = reinterpret_cast< wxDC * >(argp1);
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 result = (int)((wxDC const *)arg1)->MaxY();
23105 wxPyEndAllowThreads(__tstate);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 resultobj = SWIG_From_int(static_cast< int >(result));
23109 return resultobj;
23110fail:
23111 return NULL;
23112}
23113
23114
23115SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23116 PyObject *resultobj = 0;
23117 wxDC *arg1 = (wxDC *) 0 ;
23118 int *arg2 = (int *) 0 ;
23119 int *arg3 = (int *) 0 ;
23120 int *arg4 = (int *) 0 ;
23121 int *arg5 = (int *) 0 ;
23122 void *argp1 = 0 ;
23123 int res1 = 0 ;
23124 int temp2 ;
23125 int res2 = SWIG_TMPOBJ ;
23126 int temp3 ;
23127 int res3 = SWIG_TMPOBJ ;
23128 int temp4 ;
23129 int res4 = SWIG_TMPOBJ ;
23130 int temp5 ;
23131 int res5 = SWIG_TMPOBJ ;
23132 PyObject *swig_obj[1] ;
23133
23134 arg2 = &temp2;
23135 arg3 = &temp3;
23136 arg4 = &temp4;
23137 arg5 = &temp5;
23138 if (!args) SWIG_fail;
23139 swig_obj[0] = args;
23140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23141 if (!SWIG_IsOK(res1)) {
23142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23143 }
23144 arg1 = reinterpret_cast< wxDC * >(argp1);
23145 {
23146 PyThreadState* __tstate = wxPyBeginAllowThreads();
23147 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23148 wxPyEndAllowThreads(__tstate);
23149 if (PyErr_Occurred()) SWIG_fail;
23150 }
23151 resultobj = SWIG_Py_Void();
23152 if (SWIG_IsTmpObj(res2)) {
23153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23154 } else {
23155 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23157 }
23158 if (SWIG_IsTmpObj(res3)) {
23159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23160 } else {
23161 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23163 }
23164 if (SWIG_IsTmpObj(res4)) {
23165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23166 } else {
23167 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23169 }
23170 if (SWIG_IsTmpObj(res5)) {
23171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23172 } else {
23173 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23175 }
23176 return resultobj;
23177fail:
23178 return NULL;
23179}
23180
23181
b39fe951
RD
23182SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23183 PyObject *resultobj = 0;
23184 wxDC *arg1 = (wxDC *) 0 ;
23185 wxLayoutDirection result;
23186 void *argp1 = 0 ;
23187 int res1 = 0 ;
23188 PyObject *swig_obj[1] ;
23189
23190 if (!args) SWIG_fail;
23191 swig_obj[0] = args;
23192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23193 if (!SWIG_IsOK(res1)) {
23194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23195 }
23196 arg1 = reinterpret_cast< wxDC * >(argp1);
23197 {
23198 PyThreadState* __tstate = wxPyBeginAllowThreads();
23199 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23200 wxPyEndAllowThreads(__tstate);
23201 if (PyErr_Occurred()) SWIG_fail;
23202 }
23203 resultobj = SWIG_From_int(static_cast< int >(result));
23204 return resultobj;
23205fail:
23206 return NULL;
23207}
23208
23209
23210SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23211 PyObject *resultobj = 0;
23212 wxDC *arg1 = (wxDC *) 0 ;
23213 wxLayoutDirection arg2 ;
23214 void *argp1 = 0 ;
23215 int res1 = 0 ;
23216 int val2 ;
23217 int ecode2 = 0 ;
23218 PyObject * obj0 = 0 ;
23219 PyObject * obj1 = 0 ;
23220 char * kwnames[] = {
23221 (char *) "self",(char *) "dir", NULL
23222 };
23223
23224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23226 if (!SWIG_IsOK(res1)) {
23227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23228 }
23229 arg1 = reinterpret_cast< wxDC * >(argp1);
23230 ecode2 = SWIG_AsVal_int(obj1, &val2);
23231 if (!SWIG_IsOK(ecode2)) {
23232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23233 }
23234 arg2 = static_cast< wxLayoutDirection >(val2);
23235 {
23236 PyThreadState* __tstate = wxPyBeginAllowThreads();
23237 (arg1)->SetLayoutDirection(arg2);
23238 wxPyEndAllowThreads(__tstate);
23239 if (PyErr_Occurred()) SWIG_fail;
23240 }
23241 resultobj = SWIG_Py_Void();
23242 return resultobj;
23243fail:
23244 return NULL;
23245}
23246
23247
1bd55598
RD
23248SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23249 PyObject *resultobj = 0;
23250 wxDC *arg1 = (wxDC *) 0 ;
23251 PyObject *arg2 = (PyObject *) 0 ;
23252 PyObject *arg3 = (PyObject *) 0 ;
23253 PyObject *arg4 = (PyObject *) 0 ;
23254 PyObject *result = 0 ;
23255 void *argp1 = 0 ;
23256 int res1 = 0 ;
23257 PyObject * obj0 = 0 ;
23258 PyObject * obj1 = 0 ;
23259 PyObject * obj2 = 0 ;
23260 PyObject * obj3 = 0 ;
23261 char * kwnames[] = {
23262 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23263 };
23264
23265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23267 if (!SWIG_IsOK(res1)) {
23268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23269 }
23270 arg1 = reinterpret_cast< wxDC * >(argp1);
23271 arg2 = obj1;
23272 arg3 = obj2;
23273 arg4 = obj3;
23274 {
23275 PyThreadState* __tstate = wxPyBeginAllowThreads();
23276 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23277 wxPyEndAllowThreads(__tstate);
23278 if (PyErr_Occurred()) SWIG_fail;
23279 }
23280 resultobj = result;
23281 return resultobj;
23282fail:
23283 return NULL;
23284}
23285
23286
23287SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23288 PyObject *resultobj = 0;
23289 wxDC *arg1 = (wxDC *) 0 ;
23290 PyObject *arg2 = (PyObject *) 0 ;
23291 PyObject *arg3 = (PyObject *) 0 ;
23292 PyObject *arg4 = (PyObject *) 0 ;
23293 PyObject *result = 0 ;
23294 void *argp1 = 0 ;
23295 int res1 = 0 ;
23296 PyObject * obj0 = 0 ;
23297 PyObject * obj1 = 0 ;
23298 PyObject * obj2 = 0 ;
23299 PyObject * obj3 = 0 ;
23300 char * kwnames[] = {
23301 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23302 };
23303
23304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23306 if (!SWIG_IsOK(res1)) {
23307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23308 }
23309 arg1 = reinterpret_cast< wxDC * >(argp1);
23310 arg2 = obj1;
23311 arg3 = obj2;
23312 arg4 = obj3;
23313 {
23314 PyThreadState* __tstate = wxPyBeginAllowThreads();
23315 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23316 wxPyEndAllowThreads(__tstate);
23317 if (PyErr_Occurred()) SWIG_fail;
23318 }
23319 resultobj = result;
23320 return resultobj;
23321fail:
23322 return NULL;
23323}
23324
23325
23326SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23327 PyObject *resultobj = 0;
23328 wxDC *arg1 = (wxDC *) 0 ;
23329 PyObject *arg2 = (PyObject *) 0 ;
23330 PyObject *arg3 = (PyObject *) 0 ;
23331 PyObject *arg4 = (PyObject *) 0 ;
23332 PyObject *result = 0 ;
23333 void *argp1 = 0 ;
23334 int res1 = 0 ;
23335 PyObject * obj0 = 0 ;
23336 PyObject * obj1 = 0 ;
23337 PyObject * obj2 = 0 ;
23338 PyObject * obj3 = 0 ;
23339 char * kwnames[] = {
23340 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23341 };
23342
23343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23345 if (!SWIG_IsOK(res1)) {
23346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23347 }
23348 arg1 = reinterpret_cast< wxDC * >(argp1);
23349 arg2 = obj1;
23350 arg3 = obj2;
23351 arg4 = obj3;
23352 {
23353 PyThreadState* __tstate = wxPyBeginAllowThreads();
23354 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23355 wxPyEndAllowThreads(__tstate);
23356 if (PyErr_Occurred()) SWIG_fail;
23357 }
23358 resultobj = result;
23359 return resultobj;
23360fail:
23361 return NULL;
23362}
23363
23364
23365SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23366 PyObject *resultobj = 0;
23367 wxDC *arg1 = (wxDC *) 0 ;
23368 PyObject *arg2 = (PyObject *) 0 ;
23369 PyObject *arg3 = (PyObject *) 0 ;
23370 PyObject *arg4 = (PyObject *) 0 ;
23371 PyObject *result = 0 ;
23372 void *argp1 = 0 ;
23373 int res1 = 0 ;
23374 PyObject * obj0 = 0 ;
23375 PyObject * obj1 = 0 ;
23376 PyObject * obj2 = 0 ;
23377 PyObject * obj3 = 0 ;
23378 char * kwnames[] = {
23379 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23380 };
23381
23382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23384 if (!SWIG_IsOK(res1)) {
23385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23386 }
23387 arg1 = reinterpret_cast< wxDC * >(argp1);
23388 arg2 = obj1;
23389 arg3 = obj2;
23390 arg4 = obj3;
23391 {
23392 PyThreadState* __tstate = wxPyBeginAllowThreads();
23393 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23394 wxPyEndAllowThreads(__tstate);
23395 if (PyErr_Occurred()) SWIG_fail;
23396 }
23397 resultobj = result;
23398 return resultobj;
23399fail:
23400 return NULL;
23401}
23402
23403
23404SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23405 PyObject *resultobj = 0;
23406 wxDC *arg1 = (wxDC *) 0 ;
23407 PyObject *arg2 = (PyObject *) 0 ;
23408 PyObject *arg3 = (PyObject *) 0 ;
23409 PyObject *arg4 = (PyObject *) 0 ;
23410 PyObject *result = 0 ;
23411 void *argp1 = 0 ;
23412 int res1 = 0 ;
23413 PyObject * obj0 = 0 ;
23414 PyObject * obj1 = 0 ;
23415 PyObject * obj2 = 0 ;
23416 PyObject * obj3 = 0 ;
23417 char * kwnames[] = {
23418 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23419 };
23420
23421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23423 if (!SWIG_IsOK(res1)) {
23424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23425 }
23426 arg1 = reinterpret_cast< wxDC * >(argp1);
23427 arg2 = obj1;
23428 arg3 = obj2;
23429 arg4 = obj3;
23430 {
23431 PyThreadState* __tstate = wxPyBeginAllowThreads();
23432 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23433 wxPyEndAllowThreads(__tstate);
23434 if (PyErr_Occurred()) SWIG_fail;
23435 }
23436 resultobj = result;
23437 return resultobj;
23438fail:
23439 return NULL;
23440}
23441
23442
23443SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23444 PyObject *resultobj = 0;
23445 wxDC *arg1 = (wxDC *) 0 ;
23446 PyObject *arg2 = (PyObject *) 0 ;
23447 PyObject *arg3 = (PyObject *) 0 ;
23448 PyObject *arg4 = (PyObject *) 0 ;
23449 PyObject *arg5 = (PyObject *) 0 ;
23450 PyObject *result = 0 ;
23451 void *argp1 = 0 ;
23452 int res1 = 0 ;
23453 PyObject * obj0 = 0 ;
23454 PyObject * obj1 = 0 ;
23455 PyObject * obj2 = 0 ;
23456 PyObject * obj3 = 0 ;
23457 PyObject * obj4 = 0 ;
23458 char * kwnames[] = {
23459 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23460 };
23461
23462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23464 if (!SWIG_IsOK(res1)) {
23465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23466 }
23467 arg1 = reinterpret_cast< wxDC * >(argp1);
23468 arg2 = obj1;
23469 arg3 = obj2;
23470 arg4 = obj3;
23471 arg5 = obj4;
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 resultobj = result;
23479 return resultobj;
23480fail:
23481 return NULL;
23482}
23483
23484
23485SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23486 PyObject *obj;
23487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23488 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23489 return SWIG_Py_Void();
23490}
23491
70d7cb34
RD
23492SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23493 PyObject *resultobj = 0;
23494 wxDC *arg1 = 0 ;
23495 wxColour *arg2 = 0 ;
23496 wxDCTextColourChanger *result = 0 ;
23497 void *argp1 = 0 ;
23498 int res1 = 0 ;
23499 wxColour temp2 ;
23500 PyObject * obj0 = 0 ;
23501 PyObject * obj1 = 0 ;
23502 char * kwnames[] = {
23503 (char *) "dc",(char *) "col", NULL
23504 };
23505
23506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23507 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23508 if (!SWIG_IsOK(res1)) {
23509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23510 }
23511 if (!argp1) {
23512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23513 }
23514 arg1 = reinterpret_cast< wxDC * >(argp1);
23515 {
23516 arg2 = &temp2;
23517 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23518 }
23519 {
23520 PyThreadState* __tstate = wxPyBeginAllowThreads();
23521 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23526 return resultobj;
23527fail:
23528 return NULL;
23529}
23530
23531
23532SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23533 PyObject *resultobj = 0;
23534 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23535 void *argp1 = 0 ;
23536 int res1 = 0 ;
23537 PyObject *swig_obj[1] ;
23538
23539 if (!args) SWIG_fail;
23540 swig_obj[0] = args;
23541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23542 if (!SWIG_IsOK(res1)) {
23543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23544 }
23545 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23546 {
23547 PyThreadState* __tstate = wxPyBeginAllowThreads();
23548 delete arg1;
23549
23550 wxPyEndAllowThreads(__tstate);
23551 if (PyErr_Occurred()) SWIG_fail;
23552 }
23553 resultobj = SWIG_Py_Void();
23554 return resultobj;
23555fail:
23556 return NULL;
23557}
23558
23559
23560SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23561 PyObject *obj;
23562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23563 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23564 return SWIG_Py_Void();
23565}
23566
23567SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23568 return SWIG_Python_InitShadowInstance(args);
23569}
23570
23571SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23572 PyObject *resultobj = 0;
23573 wxDC *arg1 = 0 ;
23574 wxPen *arg2 = 0 ;
23575 wxDCPenChanger *result = 0 ;
23576 void *argp1 = 0 ;
23577 int res1 = 0 ;
23578 void *argp2 = 0 ;
23579 int res2 = 0 ;
23580 PyObject * obj0 = 0 ;
23581 PyObject * obj1 = 0 ;
23582 char * kwnames[] = {
23583 (char *) "dc",(char *) "pen", NULL
23584 };
23585
23586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23587 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23588 if (!SWIG_IsOK(res1)) {
23589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23590 }
23591 if (!argp1) {
23592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23593 }
23594 arg1 = reinterpret_cast< wxDC * >(argp1);
23595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23596 if (!SWIG_IsOK(res2)) {
23597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23598 }
23599 if (!argp2) {
23600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23601 }
23602 arg2 = reinterpret_cast< wxPen * >(argp2);
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23606 wxPyEndAllowThreads(__tstate);
23607 if (PyErr_Occurred()) SWIG_fail;
23608 }
23609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23610 return resultobj;
23611fail:
23612 return NULL;
23613}
23614
23615
23616SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23617 PyObject *resultobj = 0;
23618 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23619 void *argp1 = 0 ;
23620 int res1 = 0 ;
23621 PyObject *swig_obj[1] ;
23622
23623 if (!args) SWIG_fail;
23624 swig_obj[0] = args;
23625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23626 if (!SWIG_IsOK(res1)) {
23627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23628 }
23629 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23630 {
23631 PyThreadState* __tstate = wxPyBeginAllowThreads();
23632 delete arg1;
23633
23634 wxPyEndAllowThreads(__tstate);
23635 if (PyErr_Occurred()) SWIG_fail;
23636 }
23637 resultobj = SWIG_Py_Void();
23638 return resultobj;
23639fail:
23640 return NULL;
23641}
23642
23643
23644SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23645 PyObject *obj;
23646 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23647 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23648 return SWIG_Py_Void();
23649}
23650
23651SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23652 return SWIG_Python_InitShadowInstance(args);
23653}
23654
23655SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23656 PyObject *resultobj = 0;
23657 wxDC *arg1 = 0 ;
23658 wxBrush *arg2 = 0 ;
23659 wxDCBrushChanger *result = 0 ;
23660 void *argp1 = 0 ;
23661 int res1 = 0 ;
23662 void *argp2 = 0 ;
23663 int res2 = 0 ;
23664 PyObject * obj0 = 0 ;
23665 PyObject * obj1 = 0 ;
23666 char * kwnames[] = {
23667 (char *) "dc",(char *) "brush", NULL
23668 };
23669
23670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23671 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23672 if (!SWIG_IsOK(res1)) {
23673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23674 }
23675 if (!argp1) {
23676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23677 }
23678 arg1 = reinterpret_cast< wxDC * >(argp1);
23679 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23680 if (!SWIG_IsOK(res2)) {
23681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23682 }
23683 if (!argp2) {
23684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23685 }
23686 arg2 = reinterpret_cast< wxBrush * >(argp2);
23687 {
23688 PyThreadState* __tstate = wxPyBeginAllowThreads();
23689 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23690 wxPyEndAllowThreads(__tstate);
23691 if (PyErr_Occurred()) SWIG_fail;
23692 }
23693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23694 return resultobj;
23695fail:
23696 return NULL;
23697}
23698
23699
23700SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23701 PyObject *resultobj = 0;
23702 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23703 void *argp1 = 0 ;
23704 int res1 = 0 ;
23705 PyObject *swig_obj[1] ;
23706
23707 if (!args) SWIG_fail;
23708 swig_obj[0] = args;
23709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23710 if (!SWIG_IsOK(res1)) {
23711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23712 }
23713 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23714 {
23715 PyThreadState* __tstate = wxPyBeginAllowThreads();
23716 delete arg1;
23717
23718 wxPyEndAllowThreads(__tstate);
23719 if (PyErr_Occurred()) SWIG_fail;
23720 }
23721 resultobj = SWIG_Py_Void();
23722 return resultobj;
23723fail:
23724 return NULL;
23725}
23726
23727
23728SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23729 PyObject *obj;
23730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23731 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23732 return SWIG_Py_Void();
23733}
23734
23735SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23736 return SWIG_Python_InitShadowInstance(args);
23737}
23738
23739SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23740 PyObject *resultobj = 0;
23741 wxDC *arg1 = 0 ;
23742 wxRegion *arg2 = 0 ;
23743 wxDCClipper *result = 0 ;
23744 void *argp1 = 0 ;
23745 int res1 = 0 ;
23746 void *argp2 = 0 ;
23747 int res2 = 0 ;
23748
23749 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23751 if (!SWIG_IsOK(res1)) {
23752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23753 }
23754 if (!argp1) {
23755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23756 }
23757 arg1 = reinterpret_cast< wxDC * >(argp1);
23758 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23759 if (!SWIG_IsOK(res2)) {
23760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23761 }
23762 if (!argp2) {
23763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23764 }
23765 arg2 = reinterpret_cast< wxRegion * >(argp2);
23766 {
23767 PyThreadState* __tstate = wxPyBeginAllowThreads();
23768 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23769 wxPyEndAllowThreads(__tstate);
23770 if (PyErr_Occurred()) SWIG_fail;
23771 }
23772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23773 return resultobj;
23774fail:
23775 return NULL;
23776}
23777
23778
23779SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23780 PyObject *resultobj = 0;
23781 wxDC *arg1 = 0 ;
23782 wxRect *arg2 = 0 ;
23783 wxDCClipper *result = 0 ;
23784 void *argp1 = 0 ;
23785 int res1 = 0 ;
23786 wxRect temp2 ;
23787
23788 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23790 if (!SWIG_IsOK(res1)) {
23791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23792 }
23793 if (!argp1) {
23794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23795 }
23796 arg1 = reinterpret_cast< wxDC * >(argp1);
23797 {
23798 arg2 = &temp2;
23799 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23800 }
23801 {
23802 PyThreadState* __tstate = wxPyBeginAllowThreads();
23803 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23804 wxPyEndAllowThreads(__tstate);
23805 if (PyErr_Occurred()) SWIG_fail;
23806 }
23807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23808 return resultobj;
23809fail:
23810 return NULL;
23811}
23812
23813
23814SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23815 PyObject *resultobj = 0;
23816 wxDC *arg1 = 0 ;
23817 int arg2 ;
23818 int arg3 ;
23819 int arg4 ;
23820 int arg5 ;
23821 wxDCClipper *result = 0 ;
23822 void *argp1 = 0 ;
23823 int res1 = 0 ;
23824 int val2 ;
23825 int ecode2 = 0 ;
23826 int val3 ;
23827 int ecode3 = 0 ;
23828 int val4 ;
23829 int ecode4 = 0 ;
23830 int val5 ;
23831 int ecode5 = 0 ;
23832
23833 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23835 if (!SWIG_IsOK(res1)) {
23836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23837 }
23838 if (!argp1) {
23839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23840 }
23841 arg1 = reinterpret_cast< wxDC * >(argp1);
23842 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23843 if (!SWIG_IsOK(ecode2)) {
23844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23845 }
23846 arg2 = static_cast< int >(val2);
23847 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23848 if (!SWIG_IsOK(ecode3)) {
23849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23850 }
23851 arg3 = static_cast< int >(val3);
23852 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23853 if (!SWIG_IsOK(ecode4)) {
23854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23855 }
23856 arg4 = static_cast< int >(val4);
23857 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23858 if (!SWIG_IsOK(ecode5)) {
23859 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23860 }
23861 arg5 = static_cast< int >(val5);
23862 {
23863 PyThreadState* __tstate = wxPyBeginAllowThreads();
23864 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23865 wxPyEndAllowThreads(__tstate);
23866 if (PyErr_Occurred()) SWIG_fail;
23867 }
23868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23869 return resultobj;
23870fail:
23871 return NULL;
23872}
23873
23874
23875SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23876 int argc;
23877 PyObject *argv[6];
23878
23879 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23880 --argc;
23881 if (argc == 2) {
23882 int _v = 0;
23883 {
23884 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23885 _v = SWIG_CheckState(res);
23886 }
23887 if (!_v) goto check_1;
23888 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23889 }
23890check_1:
23891
23892 if (argc == 2) {
23893 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23894 }
23895 if (argc == 5) {
23896 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23897 }
23898
23899fail:
23900 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23901 return NULL;
23902}
23903
23904
23905SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23906 PyObject *resultobj = 0;
23907 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23908 void *argp1 = 0 ;
23909 int res1 = 0 ;
23910 PyObject *swig_obj[1] ;
23911
23912 if (!args) SWIG_fail;
23913 swig_obj[0] = args;
23914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23915 if (!SWIG_IsOK(res1)) {
23916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23917 }
23918 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23919 {
23920 PyThreadState* __tstate = wxPyBeginAllowThreads();
23921 delete arg1;
23922
23923 wxPyEndAllowThreads(__tstate);
23924 if (PyErr_Occurred()) SWIG_fail;
23925 }
23926 resultobj = SWIG_Py_Void();
23927 return resultobj;
23928fail:
23929 return NULL;
23930}
23931
23932
23933SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23934 PyObject *obj;
23935 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23936 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23937 return SWIG_Py_Void();
23938}
23939
23940SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23941 return SWIG_Python_InitShadowInstance(args);
23942}
23943
24f6c4e8
RD
23944SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23945 PyObject *resultobj = 0;
23946 wxScreenDC *result = 0 ;
23947
23948 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23949 {
23950 if (!wxPyCheckForApp()) SWIG_fail;
23951 PyThreadState* __tstate = wxPyBeginAllowThreads();
23952 result = (wxScreenDC *)new wxScreenDC();
23953 wxPyEndAllowThreads(__tstate);
23954 if (PyErr_Occurred()) SWIG_fail;
23955 }
23956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23957 return resultobj;
23958fail:
23959 return NULL;
23960}
23961
23962
23963SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23964 PyObject *resultobj = 0;
23965 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23966 wxWindow *arg2 = (wxWindow *) 0 ;
23967 bool result;
23968 void *argp1 = 0 ;
23969 int res1 = 0 ;
23970 void *argp2 = 0 ;
23971 int res2 = 0 ;
23972 PyObject * obj0 = 0 ;
23973 PyObject * obj1 = 0 ;
23974 char * kwnames[] = {
23975 (char *) "self",(char *) "window", NULL
23976 };
23977
23978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23980 if (!SWIG_IsOK(res1)) {
23981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23982 }
23983 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23984 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23985 if (!SWIG_IsOK(res2)) {
23986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23987 }
23988 arg2 = reinterpret_cast< wxWindow * >(argp2);
23989 {
23990 PyThreadState* __tstate = wxPyBeginAllowThreads();
23991 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23992 wxPyEndAllowThreads(__tstate);
23993 if (PyErr_Occurred()) SWIG_fail;
23994 }
23995 {
23996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23997 }
23998 return resultobj;
23999fail:
24000 return NULL;
24001}
24002
24003
24004SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24005 PyObject *resultobj = 0;
24006 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24007 wxRect *arg2 = (wxRect *) NULL ;
24008 bool result;
24009 void *argp1 = 0 ;
24010 int res1 = 0 ;
24011 void *argp2 = 0 ;
24012 int res2 = 0 ;
24013 PyObject * obj0 = 0 ;
24014 PyObject * obj1 = 0 ;
24015 char * kwnames[] = {
24016 (char *) "self",(char *) "rect", NULL
24017 };
24018
24019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24021 if (!SWIG_IsOK(res1)) {
24022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24023 }
24024 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24025 if (obj1) {
24026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24027 if (!SWIG_IsOK(res2)) {
24028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24029 }
24030 arg2 = reinterpret_cast< wxRect * >(argp2);
24031 }
24032 {
24033 PyThreadState* __tstate = wxPyBeginAllowThreads();
24034 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24035 wxPyEndAllowThreads(__tstate);
24036 if (PyErr_Occurred()) SWIG_fail;
24037 }
24038 {
24039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24040 }
24041 return resultobj;
24042fail:
24043 return NULL;
24044}
24045
24046
24047SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24048 PyObject *resultobj = 0;
24049 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24050 bool result;
24051 void *argp1 = 0 ;
24052 int res1 = 0 ;
24053 PyObject *swig_obj[1] ;
24054
24055 if (!args) SWIG_fail;
24056 swig_obj[0] = args;
24057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24058 if (!SWIG_IsOK(res1)) {
24059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24060 }
24061 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24062 {
24063 PyThreadState* __tstate = wxPyBeginAllowThreads();
24064 result = (bool)(arg1)->EndDrawingOnTop();
24065 wxPyEndAllowThreads(__tstate);
24066 if (PyErr_Occurred()) SWIG_fail;
24067 }
24068 {
24069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24070 }
24071 return resultobj;
24072fail:
24073 return NULL;
24074}
24075
24076
24077SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24078 PyObject *obj;
24079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24080 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24081 return SWIG_Py_Void();
24082}
24083
24084SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24085 return SWIG_Python_InitShadowInstance(args);
24086}
24087
24088SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24089 PyObject *resultobj = 0;
24090 wxWindow *arg1 = (wxWindow *) 0 ;
24091 wxWindowDC *result = 0 ;
24092 void *argp1 = 0 ;
24093 int res1 = 0 ;
24094 PyObject * obj0 = 0 ;
24095 char * kwnames[] = {
24096 (char *) "win", NULL
24097 };
24098
24099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24101 if (!SWIG_IsOK(res1)) {
24102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24103 }
24104 arg1 = reinterpret_cast< wxWindow * >(argp1);
24105 {
24106 if (!wxPyCheckForApp()) SWIG_fail;
24107 PyThreadState* __tstate = wxPyBeginAllowThreads();
24108 result = (wxWindowDC *)new wxWindowDC(arg1);
24109 wxPyEndAllowThreads(__tstate);
24110 if (PyErr_Occurred()) SWIG_fail;
24111 }
24112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24113 return resultobj;
24114fail:
24115 return NULL;
24116}
24117
24118
24119SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24120 PyObject *obj;
24121 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24122 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24123 return SWIG_Py_Void();
24124}
24125
24126SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24127 return SWIG_Python_InitShadowInstance(args);
24128}
24129
24130SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24131 PyObject *resultobj = 0;
24132 wxWindow *arg1 = (wxWindow *) 0 ;
24133 wxClientDC *result = 0 ;
24134 void *argp1 = 0 ;
24135 int res1 = 0 ;
24136 PyObject * obj0 = 0 ;
24137 char * kwnames[] = {
24138 (char *) "win", NULL
24139 };
24140
24141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24143 if (!SWIG_IsOK(res1)) {
24144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24145 }
24146 arg1 = reinterpret_cast< wxWindow * >(argp1);
24147 {
24148 if (!wxPyCheckForApp()) SWIG_fail;
24149 PyThreadState* __tstate = wxPyBeginAllowThreads();
24150 result = (wxClientDC *)new wxClientDC(arg1);
24151 wxPyEndAllowThreads(__tstate);
24152 if (PyErr_Occurred()) SWIG_fail;
24153 }
24154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24155 return resultobj;
24156fail:
24157 return NULL;
24158}
24159
24160
24161SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24162 PyObject *obj;
24163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24164 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24165 return SWIG_Py_Void();
24166}
24167
24168SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24169 return SWIG_Python_InitShadowInstance(args);
24170}
24171
24172SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24173 PyObject *resultobj = 0;
24174 wxWindow *arg1 = (wxWindow *) 0 ;
24175 wxPaintDC *result = 0 ;
24176 void *argp1 = 0 ;
24177 int res1 = 0 ;
24178 PyObject * obj0 = 0 ;
24179 char * kwnames[] = {
24180 (char *) "win", NULL
24181 };
24182
24183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24185 if (!SWIG_IsOK(res1)) {
24186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24187 }
24188 arg1 = reinterpret_cast< wxWindow * >(argp1);
24189 {
24190 if (!wxPyCheckForApp()) SWIG_fail;
24191 PyThreadState* __tstate = wxPyBeginAllowThreads();
24192 result = (wxPaintDC *)new wxPaintDC(arg1);
24193 wxPyEndAllowThreads(__tstate);
24194 if (PyErr_Occurred()) SWIG_fail;
24195 }
24196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24197 return resultobj;
24198fail:
24199 return NULL;
24200}
24201
24202
24203SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24204 PyObject *obj;
24205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24206 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24207 return SWIG_Py_Void();
24208}
24209
24210SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24211 return SWIG_Python_InitShadowInstance(args);
24212}
24213
26c4d26f
RD
24214SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24215 PyObject *resultobj = 0;
24216 wxBitmap &arg1_defvalue = wxNullBitmap ;
24217 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24218 wxMemoryDC *result = 0 ;
24219 void *argp1 = 0 ;
24220 int res1 = 0 ;
24221 PyObject * obj0 = 0 ;
24222 char * kwnames[] = {
24223 (char *) "bitmap", NULL
24224 };
24225
24226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24227 if (obj0) {
24228 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24229 if (!SWIG_IsOK(res1)) {
24230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24231 }
24232 if (!argp1) {
24233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24234 }
24235 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24236 }
24237 {
24238 if (!wxPyCheckForApp()) SWIG_fail;
24239 PyThreadState* __tstate = wxPyBeginAllowThreads();
24240 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24241 wxPyEndAllowThreads(__tstate);
24242 if (PyErr_Occurred()) SWIG_fail;
24243 }
24244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24245 return resultobj;
24246fail:
24247 return NULL;
24248}
24249
24250
24251SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24252 PyObject *resultobj = 0;
24253 wxDC *arg1 = (wxDC *) 0 ;
24254 wxMemoryDC *result = 0 ;
24255 void *argp1 = 0 ;
24256 int res1 = 0 ;
24257 PyObject * obj0 = 0 ;
24258 char * kwnames[] = {
24259 (char *) "oldDC", NULL
24260 };
24261
24262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24264 if (!SWIG_IsOK(res1)) {
24265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24266 }
24267 arg1 = reinterpret_cast< wxDC * >(argp1);
24268 {
24269 if (!wxPyCheckForApp()) SWIG_fail;
24270 PyThreadState* __tstate = wxPyBeginAllowThreads();
24271 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24272 wxPyEndAllowThreads(__tstate);
24273 if (PyErr_Occurred()) SWIG_fail;
24274 }
24275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24276 return resultobj;
24277fail:
24278 return NULL;
24279}
24280
24281
24282SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24283 PyObject *resultobj = 0;
24284 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24285 wxBitmap *arg2 = 0 ;
24286 void *argp1 = 0 ;
24287 int res1 = 0 ;
24288 void *argp2 = 0 ;
24289 int res2 = 0 ;
24290 PyObject * obj0 = 0 ;
24291 PyObject * obj1 = 0 ;
24292 char * kwnames[] = {
24293 (char *) "self",(char *) "bitmap", NULL
24294 };
24295
24296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24298 if (!SWIG_IsOK(res1)) {
24299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24300 }
24301 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24303 if (!SWIG_IsOK(res2)) {
24304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24305 }
24306 if (!argp2) {
24307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24308 }
24309 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24310 {
24311 PyThreadState* __tstate = wxPyBeginAllowThreads();
24312 (arg1)->SelectObject(*arg2);
24313 wxPyEndAllowThreads(__tstate);
24314 if (PyErr_Occurred()) SWIG_fail;
24315 }
24316 resultobj = SWIG_Py_Void();
24317 return resultobj;
24318fail:
24319 return NULL;
24320}
24321
24322
24323SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24324 PyObject *resultobj = 0;
24325 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24326 wxBitmap *arg2 = 0 ;
24327 void *argp1 = 0 ;
24328 int res1 = 0 ;
24329 void *argp2 = 0 ;
24330 int res2 = 0 ;
24331 PyObject * obj0 = 0 ;
24332 PyObject * obj1 = 0 ;
24333 char * kwnames[] = {
24334 (char *) "self",(char *) "bmp", NULL
24335 };
24336
24337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24339 if (!SWIG_IsOK(res1)) {
24340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24341 }
24342 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24343 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24344 if (!SWIG_IsOK(res2)) {
24345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24346 }
24347 if (!argp2) {
24348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24349 }
24350 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24351 {
24352 PyThreadState* __tstate = wxPyBeginAllowThreads();
24353 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24354 wxPyEndAllowThreads(__tstate);
24355 if (PyErr_Occurred()) SWIG_fail;
24356 }
24357 resultobj = SWIG_Py_Void();
24358 return resultobj;
24359fail:
24360 return NULL;
24361}
24362
24363
24364SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24365 PyObject *obj;
24366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24367 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24368 return SWIG_Py_Void();
24369}
24370
24371SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24372 return SWIG_Python_InitShadowInstance(args);
24373}
24374
1bd55598
RD
24375SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24376 PyObject *resultobj = 0;
24377 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24378 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24379 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24380 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24381 wxBufferedDC *result = 0 ;
24382 void *argp1 = 0 ;
24383 int res1 = 0 ;
24384 void *argp2 = 0 ;
24385 int res2 = 0 ;
24386 int val3 ;
24387 int ecode3 = 0 ;
24388
24389 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24391 if (!SWIG_IsOK(res1)) {
24392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24393 }
24394 arg1 = reinterpret_cast< wxDC * >(argp1);
24395 if (swig_obj[1]) {
b6df5cf9 24396 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24397 if (!SWIG_IsOK(res2)) {
b6df5cf9 24398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24399 }
1bd55598 24400 if (!argp2) {
b6df5cf9 24401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24402 }
1bd55598
RD
24403 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24404 }
24405 if (swig_obj[2]) {
24406 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24407 if (!SWIG_IsOK(ecode3)) {
24408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24409 }
24410 arg3 = static_cast< int >(val3);
24411 }
24412 {
24413 if (!wxPyCheckForApp()) SWIG_fail;
24414 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24415 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
1bd55598
RD
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24420 return resultobj;
24421fail:
24422 return NULL;
24423}
24424
24425
24426SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24427 PyObject *resultobj = 0;
24428 wxDC *arg1 = (wxDC *) 0 ;
24429 wxSize *arg2 = 0 ;
24430 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24431 wxBufferedDC *result = 0 ;
24432 void *argp1 = 0 ;
24433 int res1 = 0 ;
24434 wxSize temp2 ;
24435 int val3 ;
24436 int ecode3 = 0 ;
24437
24438 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24440 if (!SWIG_IsOK(res1)) {
24441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24442 }
24443 arg1 = reinterpret_cast< wxDC * >(argp1);
24444 {
24445 arg2 = &temp2;
24446 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24447 }
24448 if (swig_obj[2]) {
24449 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24450 if (!SWIG_IsOK(ecode3)) {
24451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24452 }
24453 arg3 = static_cast< int >(val3);
24454 }
24455 {
24456 if (!wxPyCheckForApp()) SWIG_fail;
24457 PyThreadState* __tstate = wxPyBeginAllowThreads();
24458 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24459 wxPyEndAllowThreads(__tstate);
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
24462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24463 return resultobj;
24464fail:
24465 return NULL;
24466}
24467
24468
24469SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24470 int argc;
8e99bda9 24471 PyObject *argv[4];
1bd55598 24472
8e99bda9 24473 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24474 --argc;
24475 if ((argc >= 1) && (argc <= 3)) {
24476 int _v = 0;
24477 if (argc > 1) {
24478 {
b6df5cf9
RD
24479 void *vptr = 0;
24480 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
1bd55598
RD
24481 _v = SWIG_CheckState(res);
24482 }
24483 if (!_v) goto check_1;
36ed4f51 24484 }
1bd55598
RD
24485 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24486 }
24487check_1:
24488
24489 if ((argc >= 2) && (argc <= 3)) {
24490 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24491 }
24492
24493fail:
24494 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24495 return NULL;
24496}
24497
24498
24499SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24500 PyObject *resultobj = 0;
24501 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24502 void *argp1 = 0 ;
24503 int res1 = 0 ;
24504 PyObject *swig_obj[1] ;
24505
24506 if (!args) SWIG_fail;
24507 swig_obj[0] = args;
24508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24509 if (!SWIG_IsOK(res1)) {
24510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24511 }
24512 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24513 {
24514 PyThreadState* __tstate = wxPyBeginAllowThreads();
24515 delete arg1;
24516
24517 wxPyEndAllowThreads(__tstate);
24518 if (PyErr_Occurred()) SWIG_fail;
24519 }
24520 resultobj = SWIG_Py_Void();
24521 return resultobj;
24522fail:
24523 return NULL;
24524}
24525
24526
24527SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24528 PyObject *resultobj = 0;
24529 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24530 void *argp1 = 0 ;
24531 int res1 = 0 ;
24532 PyObject *swig_obj[1] ;
24533
24534 if (!args) SWIG_fail;
24535 swig_obj[0] = args;
24536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24537 if (!SWIG_IsOK(res1)) {
24538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24539 }
24540 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24541 {
24542 PyThreadState* __tstate = wxPyBeginAllowThreads();
24543 (arg1)->UnMask();
24544 wxPyEndAllowThreads(__tstate);
24545 if (PyErr_Occurred()) SWIG_fail;
24546 }
24547 resultobj = SWIG_Py_Void();
24548 return resultobj;
24549fail:
24550 return NULL;
24551}
24552
24553
b6df5cf9
RD
24554SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24555 PyObject *resultobj = 0;
24556 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24557 int arg2 ;
24558 void *argp1 = 0 ;
24559 int res1 = 0 ;
24560 int val2 ;
24561 int ecode2 = 0 ;
24562 PyObject * obj0 = 0 ;
24563 PyObject * obj1 = 0 ;
24564 char * kwnames[] = {
24565 (char *) "self",(char *) "style", NULL
24566 };
24567
24568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24570 if (!SWIG_IsOK(res1)) {
24571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24572 }
24573 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24574 ecode2 = SWIG_AsVal_int(obj1, &val2);
24575 if (!SWIG_IsOK(ecode2)) {
24576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24577 }
24578 arg2 = static_cast< int >(val2);
24579 {
24580 PyThreadState* __tstate = wxPyBeginAllowThreads();
24581 (arg1)->SetStyle(arg2);
24582 wxPyEndAllowThreads(__tstate);
24583 if (PyErr_Occurred()) SWIG_fail;
24584 }
24585 resultobj = SWIG_Py_Void();
24586 return resultobj;
24587fail:
24588 return NULL;
24589}
24590
24591
24592SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24593 PyObject *resultobj = 0;
24594 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24595 int result;
24596 void *argp1 = 0 ;
24597 int res1 = 0 ;
24598 PyObject *swig_obj[1] ;
24599
24600 if (!args) SWIG_fail;
24601 swig_obj[0] = args;
24602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24603 if (!SWIG_IsOK(res1)) {
24604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24605 }
24606 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24607 {
24608 PyThreadState* __tstate = wxPyBeginAllowThreads();
24609 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24610 wxPyEndAllowThreads(__tstate);
24611 if (PyErr_Occurred()) SWIG_fail;
24612 }
24613 resultobj = SWIG_From_int(static_cast< int >(result));
24614 return resultobj;
24615fail:
24616 return NULL;
24617}
24618
24619
1bd55598
RD
24620SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24621 PyObject *obj;
24622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24623 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24624 return SWIG_Py_Void();
24625}
24626
24627SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24628 return SWIG_Python_InitShadowInstance(args);
24629}
24630
24631SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24632 PyObject *resultobj = 0;
24633 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24634 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24635 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24636 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24637 wxBufferedPaintDC *result = 0 ;
24638 void *argp1 = 0 ;
24639 int res1 = 0 ;
24640 void *argp2 = 0 ;
24641 int res2 = 0 ;
24642 int val3 ;
24643 int ecode3 = 0 ;
24644 PyObject * obj0 = 0 ;
24645 PyObject * obj1 = 0 ;
24646 PyObject * obj2 = 0 ;
24647 char * kwnames[] = {
24648 (char *) "window",(char *) "buffer",(char *) "style", NULL
24649 };
24650
24651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24653 if (!SWIG_IsOK(res1)) {
24654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24655 }
24656 arg1 = reinterpret_cast< wxWindow * >(argp1);
24657 if (obj1) {
b6df5cf9 24658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24659 if (!SWIG_IsOK(res2)) {
b6df5cf9 24660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24661 }
1bd55598 24662 if (!argp2) {
b6df5cf9 24663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24664 }
1bd55598
RD
24665 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24666 }
24667 if (obj2) {
24668 ecode3 = SWIG_AsVal_int(obj2, &val3);
24669 if (!SWIG_IsOK(ecode3)) {
24670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24671 }
24672 arg3 = static_cast< int >(val3);
24673 }
24674 {
24675 if (!wxPyCheckForApp()) SWIG_fail;
24676 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24677 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
1bd55598
RD
24678 wxPyEndAllowThreads(__tstate);
24679 if (PyErr_Occurred()) SWIG_fail;
24680 }
24681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24682 return resultobj;
24683fail:
24684 return NULL;
24685}
24686
24687
24688SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24689 PyObject *obj;
24690 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24691 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24692 return SWIG_Py_Void();
24693}
24694
24695SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24696 return SWIG_Python_InitShadowInstance(args);
24697}
24698
24f6c4e8 24699SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24700 PyObject *resultobj = 0;
24701 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24702 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24703 void *argp1 = 0 ;
24704 int res1 = 0 ;
24705 PyObject * obj0 = 0 ;
24706 char * kwnames[] = {
24707 (char *) "win", NULL
24708 };
24709
24f6c4e8 24710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24712 if (!SWIG_IsOK(res1)) {
24f6c4e8 24713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24714 }
24715 arg1 = reinterpret_cast< wxWindow * >(argp1);
24716 {
1bd55598 24717 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24718 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24719 wxPyEndAllowThreads(__tstate);
24720 if (PyErr_Occurred()) SWIG_fail;
24721 }
24f6c4e8 24722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24723 return resultobj;
24724fail:
24725 return NULL;
24726}
24727
24728
24f6c4e8 24729SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24730 PyObject *obj;
24731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24732 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24733 return SWIG_Py_Void();
24734}
24735
24f6c4e8 24736SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24737 return SWIG_Python_InitShadowInstance(args);
24738}
24739
8e99bda9
RD
24740SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24741 PyObject *resultobj = 0;
24742 wxWindow *arg1 = (wxWindow *) 0 ;
24743 wxDC *result = 0 ;
24744 void *argp1 = 0 ;
24745 int res1 = 0 ;
24746 PyObject * obj0 = 0 ;
24747 char * kwnames[] = {
24748 (char *) "window", NULL
24749 };
24750
24751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24753 if (!SWIG_IsOK(res1)) {
24754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24755 }
24756 arg1 = reinterpret_cast< wxWindow * >(argp1);
24757 {
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 {
24764 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24765 }
24766 return resultobj;
24767fail:
24768 return NULL;
24769}
24770
24771
1bd55598
RD
24772SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24773 PyObject *resultobj = 0;
24774 wxDC *arg1 = 0 ;
24775 bool arg2 ;
24776 wxMirrorDC *result = 0 ;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 bool val2 ;
24780 int ecode2 = 0 ;
24781 PyObject * obj0 = 0 ;
24782 PyObject * obj1 = 0 ;
24783 char * kwnames[] = {
24784 (char *) "dc",(char *) "mirror", NULL
24785 };
24786
24787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24788 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24789 if (!SWIG_IsOK(res1)) {
24790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24791 }
24792 if (!argp1) {
24793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24794 }
24795 arg1 = reinterpret_cast< wxDC * >(argp1);
24796 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24797 if (!SWIG_IsOK(ecode2)) {
24798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24799 }
24800 arg2 = static_cast< bool >(val2);
24801 {
24802 if (!wxPyCheckForApp()) SWIG_fail;
24803 PyThreadState* __tstate = wxPyBeginAllowThreads();
24804 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24805 wxPyEndAllowThreads(__tstate);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24809 return resultobj;
24810fail:
24811 return NULL;
24812}
24813
24814
24815SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24816 PyObject *obj;
24817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24818 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24819 return SWIG_Py_Void();
24820}
24821
24822SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24823 return SWIG_Python_InitShadowInstance(args);
24824}
24825
24826SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24827 PyObject *resultobj = 0;
24828 wxPrintData *arg1 = 0 ;
24829 wxPostScriptDC *result = 0 ;
24830 void *argp1 = 0 ;
24831 int res1 = 0 ;
24832 PyObject * obj0 = 0 ;
24833 char * kwnames[] = {
24834 (char *) "printData", NULL
24835 };
24836
24837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24838 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24839 if (!SWIG_IsOK(res1)) {
24840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24841 }
24842 if (!argp1) {
24843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24844 }
24845 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24846 {
24847 if (!wxPyCheckForApp()) SWIG_fail;
24848 PyThreadState* __tstate = wxPyBeginAllowThreads();
24849 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24850 wxPyEndAllowThreads(__tstate);
24851 if (PyErr_Occurred()) SWIG_fail;
24852 }
24853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24854 return resultobj;
24855fail:
24856 return NULL;
24857}
24858
24859
24860SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24861 PyObject *resultobj = 0;
24862 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24863 wxPrintData *result = 0 ;
24864 void *argp1 = 0 ;
24865 int res1 = 0 ;
24866 PyObject *swig_obj[1] ;
24867
24868 if (!args) SWIG_fail;
24869 swig_obj[0] = args;
24870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24871 if (!SWIG_IsOK(res1)) {
24872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24873 }
24874 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24875 {
24876 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24877 {
1bd55598
RD
24878 wxPrintData &_result_ref = (arg1)->GetPrintData();
24879 result = (wxPrintData *) &_result_ref;
e2950dbb 24880 }
1bd55598
RD
24881 wxPyEndAllowThreads(__tstate);
24882 if (PyErr_Occurred()) SWIG_fail;
24883 }
24884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24885 return resultobj;
24886fail:
24887 return NULL;
24888}
24889
24890
24891SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24892 PyObject *resultobj = 0;
24893 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24894 wxPrintData *arg2 = 0 ;
24895 void *argp1 = 0 ;
24896 int res1 = 0 ;
24897 void *argp2 = 0 ;
24898 int res2 = 0 ;
24899 PyObject * obj0 = 0 ;
24900 PyObject * obj1 = 0 ;
24901 char * kwnames[] = {
24902 (char *) "self",(char *) "data", NULL
24903 };
24904
24905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24907 if (!SWIG_IsOK(res1)) {
24908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24909 }
24910 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24911 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24912 if (!SWIG_IsOK(res2)) {
24913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24914 }
24915 if (!argp2) {
24916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24917 }
24918 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24919 {
24920 PyThreadState* __tstate = wxPyBeginAllowThreads();
24921 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24922 wxPyEndAllowThreads(__tstate);
24923 if (PyErr_Occurred()) SWIG_fail;
24924 }
24925 resultobj = SWIG_Py_Void();
24926 return resultobj;
24927fail:
24928 return NULL;
24929}
24930
24931
24932SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24933 PyObject *resultobj = 0;
24934 int arg1 ;
24935 int val1 ;
24936 int ecode1 = 0 ;
24937 PyObject * obj0 = 0 ;
24938 char * kwnames[] = {
24939 (char *) "ppi", NULL
24940 };
24941
24942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24943 ecode1 = SWIG_AsVal_int(obj0, &val1);
24944 if (!SWIG_IsOK(ecode1)) {
24945 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24946 }
24947 arg1 = static_cast< int >(val1);
24948 {
24949 PyThreadState* __tstate = wxPyBeginAllowThreads();
24950 wxPostScriptDC::SetResolution(arg1);
24951 wxPyEndAllowThreads(__tstate);
24952 if (PyErr_Occurred()) SWIG_fail;
24953 }
24954 resultobj = SWIG_Py_Void();
24955 return resultobj;
24956fail:
24957 return NULL;
24958}
24959
24960
24961SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24962 PyObject *resultobj = 0;
24963 int result;
24964
24965 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24966 {
24967 PyThreadState* __tstate = wxPyBeginAllowThreads();
24968 result = (int)wxPostScriptDC::GetResolution();
24969 wxPyEndAllowThreads(__tstate);
24970 if (PyErr_Occurred()) SWIG_fail;
24971 }
24972 resultobj = SWIG_From_int(static_cast< int >(result));
24973 return resultobj;
24974fail:
24975 return NULL;
24976}
24977
24978
24979SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24980 PyObject *obj;
24981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24982 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24983 return SWIG_Py_Void();
24984}
24985
24986SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24987 return SWIG_Python_InitShadowInstance(args);
24988}
24989
24990SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24991 PyObject *resultobj = 0;
24992 wxString const &arg1_defvalue = wxPyEmptyString ;
24993 wxString *arg1 = (wxString *) &arg1_defvalue ;
24994 wxMetaFile *result = 0 ;
24995 bool temp1 = false ;
24996 PyObject * obj0 = 0 ;
24997 char * kwnames[] = {
24998 (char *) "filename", NULL
24999 };
25000
25001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25002 if (obj0) {
36ed4f51 25003 {
1bd55598
RD
25004 arg1 = wxString_in_helper(obj0);
25005 if (arg1 == NULL) SWIG_fail;
25006 temp1 = true;
36ed4f51 25007 }
1bd55598
RD
25008 }
25009 {
25010 if (!wxPyCheckForApp()) SWIG_fail;
25011 PyThreadState* __tstate = wxPyBeginAllowThreads();
25012 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25013 wxPyEndAllowThreads(__tstate);
25014 if (PyErr_Occurred()) SWIG_fail;
25015 }
25016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25017 {
25018 if (temp1)
25019 delete arg1;
25020 }
25021 return resultobj;
25022fail:
25023 {
25024 if (temp1)
25025 delete arg1;
25026 }
25027 return NULL;
25028}
25029
25030
25031SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25032 PyObject *resultobj = 0;
25033 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25034 void *argp1 = 0 ;
25035 int res1 = 0 ;
25036 PyObject *swig_obj[1] ;
25037
25038 if (!args) SWIG_fail;
25039 swig_obj[0] = args;
25040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25041 if (!SWIG_IsOK(res1)) {
25042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25043 }
25044 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25045 {
25046 PyThreadState* __tstate = wxPyBeginAllowThreads();
25047 delete arg1;
25048
25049 wxPyEndAllowThreads(__tstate);
25050 if (PyErr_Occurred()) SWIG_fail;
25051 }
25052 resultobj = SWIG_Py_Void();
25053 return resultobj;
25054fail:
25055 return NULL;
25056}
25057
25058
b39fe951 25059SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25060 PyObject *resultobj = 0;
25061 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25062 bool result;
25063 void *argp1 = 0 ;
25064 int res1 = 0 ;
25065 PyObject *swig_obj[1] ;
25066
25067 if (!args) SWIG_fail;
25068 swig_obj[0] = args;
25069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25070 if (!SWIG_IsOK(res1)) {
b39fe951 25071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
25072 }
25073 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25074 {
25075 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25076 result = (bool)(arg1)->IsOk();
1bd55598
RD
25077 wxPyEndAllowThreads(__tstate);
25078 if (PyErr_Occurred()) SWIG_fail;
25079 }
25080 {
25081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25082 }
25083 return resultobj;
25084fail:
25085 return NULL;
25086}
25087
25088
25089SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25090 PyObject *resultobj = 0;
25091 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25092 int arg2 = (int) 0 ;
25093 int arg3 = (int) 0 ;
25094 bool result;
25095 void *argp1 = 0 ;
25096 int res1 = 0 ;
25097 int val2 ;
25098 int ecode2 = 0 ;
25099 int val3 ;
25100 int ecode3 = 0 ;
25101 PyObject * obj0 = 0 ;
25102 PyObject * obj1 = 0 ;
25103 PyObject * obj2 = 0 ;
25104 char * kwnames[] = {
25105 (char *) "self",(char *) "width",(char *) "height", NULL
25106 };
25107
25108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25110 if (!SWIG_IsOK(res1)) {
25111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25112 }
25113 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25114 if (obj1) {
25115 ecode2 = SWIG_AsVal_int(obj1, &val2);
25116 if (!SWIG_IsOK(ecode2)) {
25117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25118 }
25119 arg2 = static_cast< int >(val2);
25120 }
25121 if (obj2) {
25122 ecode3 = SWIG_AsVal_int(obj2, &val3);
25123 if (!SWIG_IsOK(ecode3)) {
25124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25125 }
25126 arg3 = static_cast< int >(val3);
25127 }
25128 {
25129 PyThreadState* __tstate = wxPyBeginAllowThreads();
25130 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25131 wxPyEndAllowThreads(__tstate);
25132 if (PyErr_Occurred()) SWIG_fail;
25133 }
25134 {
25135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25136 }
25137 return resultobj;
25138fail:
25139 return NULL;
25140}
25141
25142
25143SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25144 PyObject *resultobj = 0;
25145 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25146 wxSize result;
25147 void *argp1 = 0 ;
25148 int res1 = 0 ;
25149 PyObject *swig_obj[1] ;
25150
25151 if (!args) SWIG_fail;
25152 swig_obj[0] = args;
25153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25154 if (!SWIG_IsOK(res1)) {
25155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25156 }
25157 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25158 {
25159 PyThreadState* __tstate = wxPyBeginAllowThreads();
25160 result = (arg1)->GetSize();
25161 wxPyEndAllowThreads(__tstate);
25162 if (PyErr_Occurred()) SWIG_fail;
25163 }
25164 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25165 return resultobj;
25166fail:
25167 return NULL;
25168}
25169
25170
25171SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25172 PyObject *resultobj = 0;
25173 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25174 int result;
25175 void *argp1 = 0 ;
25176 int res1 = 0 ;
25177 PyObject *swig_obj[1] ;
25178
25179 if (!args) SWIG_fail;
25180 swig_obj[0] = args;
25181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25182 if (!SWIG_IsOK(res1)) {
25183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25184 }
25185 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25186 {
25187 PyThreadState* __tstate = wxPyBeginAllowThreads();
25188 result = (int)(arg1)->GetWidth();
25189 wxPyEndAllowThreads(__tstate);
25190 if (PyErr_Occurred()) SWIG_fail;
25191 }
25192 resultobj = SWIG_From_int(static_cast< int >(result));
25193 return resultobj;
25194fail:
25195 return NULL;
25196}
25197
25198
25199SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25200 PyObject *resultobj = 0;
25201 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25202 int result;
25203 void *argp1 = 0 ;
25204 int res1 = 0 ;
25205 PyObject *swig_obj[1] ;
25206
25207 if (!args) SWIG_fail;
25208 swig_obj[0] = args;
25209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25210 if (!SWIG_IsOK(res1)) {
25211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25212 }
25213 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25214 {
25215 PyThreadState* __tstate = wxPyBeginAllowThreads();
25216 result = (int)(arg1)->GetHeight();
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 resultobj = SWIG_From_int(static_cast< int >(result));
25221 return resultobj;
25222fail:
25223 return NULL;
25224}
25225
25226
25227SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25228 PyObject *obj;
25229 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25230 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25231 return SWIG_Py_Void();
25232}
25233
25234SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25235 return SWIG_Python_InitShadowInstance(args);
25236}
25237
25238SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25239 PyObject *resultobj = 0;
25240 wxString const &arg1_defvalue = wxPyEmptyString ;
25241 wxString *arg1 = (wxString *) &arg1_defvalue ;
25242 int arg2 = (int) 0 ;
25243 int arg3 = (int) 0 ;
25244 wxString const &arg4_defvalue = wxPyEmptyString ;
25245 wxString *arg4 = (wxString *) &arg4_defvalue ;
25246 wxMetaFileDC *result = 0 ;
25247 bool temp1 = false ;
25248 int val2 ;
25249 int ecode2 = 0 ;
25250 int val3 ;
25251 int ecode3 = 0 ;
25252 bool temp4 = false ;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 PyObject * obj2 = 0 ;
25256 PyObject * obj3 = 0 ;
25257 char * kwnames[] = {
25258 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25259 };
25260
25261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25262 if (obj0) {
36ed4f51 25263 {
1bd55598
RD
25264 arg1 = wxString_in_helper(obj0);
25265 if (arg1 == NULL) SWIG_fail;
25266 temp1 = true;
36ed4f51 25267 }
1bd55598
RD
25268 }
25269 if (obj1) {
25270 ecode2 = SWIG_AsVal_int(obj1, &val2);
25271 if (!SWIG_IsOK(ecode2)) {
25272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25273 }
25274 arg2 = static_cast< int >(val2);
25275 }
25276 if (obj2) {
25277 ecode3 = SWIG_AsVal_int(obj2, &val3);
25278 if (!SWIG_IsOK(ecode3)) {
25279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25280 }
25281 arg3 = static_cast< int >(val3);
25282 }
25283 if (obj3) {
36ed4f51 25284 {
1bd55598
RD
25285 arg4 = wxString_in_helper(obj3);
25286 if (arg4 == NULL) SWIG_fail;
25287 temp4 = true;
36ed4f51 25288 }
1bd55598
RD
25289 }
25290 {
25291 if (!wxPyCheckForApp()) SWIG_fail;
25292 PyThreadState* __tstate = wxPyBeginAllowThreads();
25293 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25294 wxPyEndAllowThreads(__tstate);
25295 if (PyErr_Occurred()) SWIG_fail;
25296 }
25297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25298 {
25299 if (temp1)
25300 delete arg1;
25301 }
25302 {
25303 if (temp4)
25304 delete arg4;
25305 }
25306 return resultobj;
25307fail:
25308 {
25309 if (temp1)
25310 delete arg1;
25311 }
25312 {
25313 if (temp4)
25314 delete arg4;
25315 }
25316 return NULL;
25317}
25318
25319
25320SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25321 PyObject *resultobj = 0;
25322 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25323 wxMetaFile *result = 0 ;
25324 void *argp1 = 0 ;
25325 int res1 = 0 ;
25326 PyObject *swig_obj[1] ;
25327
25328 if (!args) SWIG_fail;
25329 swig_obj[0] = args;
25330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25331 if (!SWIG_IsOK(res1)) {
25332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25333 }
25334 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25335 {
25336 PyThreadState* __tstate = wxPyBeginAllowThreads();
25337 result = (wxMetaFile *)(arg1)->Close();
25338 wxPyEndAllowThreads(__tstate);
25339 if (PyErr_Occurred()) SWIG_fail;
25340 }
25341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25342 return resultobj;
25343fail:
25344 return NULL;
25345}
25346
25347
25348SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25349 PyObject *obj;
25350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25351 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25352 return SWIG_Py_Void();
25353}
25354
25355SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25356 return SWIG_Python_InitShadowInstance(args);
25357}
25358
25359SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25360 PyObject *resultobj = 0;
25361 wxPrintData *arg1 = 0 ;
25362 wxPrinterDC *result = 0 ;
25363 void *argp1 = 0 ;
25364 int res1 = 0 ;
25365 PyObject * obj0 = 0 ;
25366 char * kwnames[] = {
25367 (char *) "printData", NULL
25368 };
25369
25370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25371 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25372 if (!SWIG_IsOK(res1)) {
25373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25374 }
25375 if (!argp1) {
25376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25377 }
25378 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25379 {
25380 if (!wxPyCheckForApp()) SWIG_fail;
25381 PyThreadState* __tstate = wxPyBeginAllowThreads();
25382 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25383 wxPyEndAllowThreads(__tstate);
25384 if (PyErr_Occurred()) SWIG_fail;
25385 }
25386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25387 return resultobj;
25388fail:
25389 return NULL;
25390}
25391
25392
25393SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25394 PyObject *obj;
25395 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25396 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25397 return SWIG_Py_Void();
25398}
25399
25400SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25401 return SWIG_Python_InitShadowInstance(args);
25402}
25403
70d7cb34
RD
25404SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25405 PyObject *resultobj = 0;
25406 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25407 wxGraphicsObject *result = 0 ;
25408 void *argp1 = 0 ;
25409 int res1 = 0 ;
25410 PyObject * obj0 = 0 ;
25411 char * kwnames[] = {
25412 (char *) "renderer", NULL
25413 };
25414
25415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25416 if (obj0) {
25417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25418 if (!SWIG_IsOK(res1)) {
25419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25420 }
25421 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25422 }
25423 {
25424 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25425 if (PyErr_Occurred()) SWIG_fail;
25426 }
25427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25428 return resultobj;
25429fail:
25430 return NULL;
25431}
25432
25433
25434SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25435 PyObject *resultobj = 0;
25436 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25437 void *argp1 = 0 ;
25438 int res1 = 0 ;
25439 PyObject *swig_obj[1] ;
25440
25441 if (!args) SWIG_fail;
25442 swig_obj[0] = args;
25443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25444 if (!SWIG_IsOK(res1)) {
25445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25446 }
25447 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25448 {
25449 delete arg1;
25450
25451 if (PyErr_Occurred()) SWIG_fail;
25452 }
25453 resultobj = SWIG_Py_Void();
25454 return resultobj;
25455fail:
25456 return NULL;
25457}
25458
25459
25460SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25461 PyObject *resultobj = 0;
25462 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25463 bool result;
25464 void *argp1 = 0 ;
25465 int res1 = 0 ;
25466 PyObject *swig_obj[1] ;
25467
25468 if (!args) SWIG_fail;
25469 swig_obj[0] = args;
25470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25471 if (!SWIG_IsOK(res1)) {
25472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25473 }
25474 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25475 {
25476 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25477 if (PyErr_Occurred()) SWIG_fail;
25478 }
25479 {
25480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25481 }
25482 return resultobj;
25483fail:
25484 return NULL;
25485}
25486
25487
25488SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25489 PyObject *resultobj = 0;
25490 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25491 wxGraphicsRenderer *result = 0 ;
25492 void *argp1 = 0 ;
25493 int res1 = 0 ;
25494 PyObject *swig_obj[1] ;
25495
25496 if (!args) SWIG_fail;
25497 swig_obj[0] = args;
25498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25499 if (!SWIG_IsOK(res1)) {
25500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25501 }
25502 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25503 {
25504 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25505 if (PyErr_Occurred()) SWIG_fail;
25506 }
25507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25508 return resultobj;
25509fail:
25510 return NULL;
25511}
25512
25513
25514SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25515 PyObject *obj;
25516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25517 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25518 return SWIG_Py_Void();
25519}
25520
25521SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25522 return SWIG_Python_InitShadowInstance(args);
25523}
25524
25525SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25526 PyObject *resultobj = 0;
25527 wxGraphicsPen *result = 0 ;
25528
25529 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25530 {
25531 result = (wxGraphicsPen *)new wxGraphicsPen();
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25535 return resultobj;
25536fail:
25537 return NULL;
25538}
25539
25540
25541SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25542 PyObject *resultobj = 0;
25543 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25544 void *argp1 = 0 ;
25545 int res1 = 0 ;
25546 PyObject *swig_obj[1] ;
25547
25548 if (!args) SWIG_fail;
25549 swig_obj[0] = args;
25550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25551 if (!SWIG_IsOK(res1)) {
25552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25553 }
25554 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25555 {
25556 delete arg1;
25557
25558 if (PyErr_Occurred()) SWIG_fail;
25559 }
25560 resultobj = SWIG_Py_Void();
25561 return resultobj;
25562fail:
25563 return NULL;
25564}
25565
25566
25567SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25568 PyObject *obj;
25569 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25570 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25571 return SWIG_Py_Void();
25572}
25573
25574SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25575 return SWIG_Python_InitShadowInstance(args);
25576}
25577
25578SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25579 PyObject *resultobj = 0;
25580 wxGraphicsBrush *result = 0 ;
25581
25582 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25583 {
25584 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25585 if (PyErr_Occurred()) SWIG_fail;
25586 }
25587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25588 return resultobj;
25589fail:
25590 return NULL;
25591}
25592
25593
25594SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25595 PyObject *resultobj = 0;
25596 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25597 void *argp1 = 0 ;
25598 int res1 = 0 ;
25599 PyObject *swig_obj[1] ;
25600
25601 if (!args) SWIG_fail;
25602 swig_obj[0] = args;
25603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25604 if (!SWIG_IsOK(res1)) {
25605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25606 }
25607 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25608 {
25609 delete arg1;
25610
25611 if (PyErr_Occurred()) SWIG_fail;
25612 }
25613 resultobj = SWIG_Py_Void();
25614 return resultobj;
25615fail:
25616 return NULL;
25617}
25618
25619
25620SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25621 PyObject *obj;
25622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25623 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25624 return SWIG_Py_Void();
25625}
25626
25627SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25628 return SWIG_Python_InitShadowInstance(args);
25629}
25630
25631SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25632 PyObject *resultobj = 0;
25633 wxGraphicsFont *result = 0 ;
25634
25635 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25636 {
25637 result = (wxGraphicsFont *)new wxGraphicsFont();
25638 if (PyErr_Occurred()) SWIG_fail;
25639 }
25640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25641 return resultobj;
25642fail:
25643 return NULL;
25644}
25645
25646
25647SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25648 PyObject *resultobj = 0;
25649 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25650 void *argp1 = 0 ;
25651 int res1 = 0 ;
25652 PyObject *swig_obj[1] ;
25653
25654 if (!args) SWIG_fail;
25655 swig_obj[0] = args;
25656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25657 if (!SWIG_IsOK(res1)) {
25658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25659 }
25660 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25661 {
25662 delete arg1;
25663
25664 if (PyErr_Occurred()) SWIG_fail;
25665 }
25666 resultobj = SWIG_Py_Void();
25667 return resultobj;
25668fail:
25669 return NULL;
25670}
25671
25672
25673SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25674 PyObject *obj;
25675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25676 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25677 return SWIG_Py_Void();
25678}
25679
25680SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25681 return SWIG_Python_InitShadowInstance(args);
25682}
25683
8f514ab4
RD
25684SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25685 PyObject *resultobj = 0;
25686 wxGraphicsMatrix *result = 0 ;
25687
25688 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25689 {
25690 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25691 if (PyErr_Occurred()) SWIG_fail;
25692 }
25693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25694 return resultobj;
25695fail:
25696 return NULL;
25697}
25698
25699
5c8c7dd3 25700SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25701 PyObject *resultobj = 0;
5c8c7dd3 25702 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25703 void *argp1 = 0 ;
25704 int res1 = 0 ;
25705 PyObject *swig_obj[1] ;
25706
25707 if (!args) SWIG_fail;
25708 swig_obj[0] = args;
5c8c7dd3 25709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 25710 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25712 }
5c8c7dd3 25713 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25714 {
1bd55598
RD
25715 delete arg1;
25716
1bd55598
RD
25717 if (PyErr_Occurred()) SWIG_fail;
25718 }
25719 resultobj = SWIG_Py_Void();
25720 return resultobj;
25721fail:
25722 return NULL;
25723}
25724
25725
5c8c7dd3 25726SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25727 PyObject *resultobj = 0;
5c8c7dd3
RD
25728 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25729 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25730 void *argp1 = 0 ;
25731 int res1 = 0 ;
5c8c7dd3
RD
25732 void *argp2 = 0 ;
25733 int res2 = 0 ;
25734 PyObject * obj0 = 0 ;
25735 PyObject * obj1 = 0 ;
25736 char * kwnames[] = {
25737 (char *) "self",(char *) "t", NULL
25738 };
70d7cb34 25739
5c8c7dd3
RD
25740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25742 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25744 }
5c8c7dd3
RD
25745 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25746 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25747 if (!SWIG_IsOK(res2)) {
25748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25749 }
25750 if (!argp2) {
25751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25752 }
25753 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25754 {
5c8c7dd3 25755 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25756 if (PyErr_Occurred()) SWIG_fail;
25757 }
5c8c7dd3 25758 resultobj = SWIG_Py_Void();
70d7cb34
RD
25759 return resultobj;
25760fail:
25761 return NULL;
25762}
25763
25764
5c8c7dd3 25765SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25766 PyObject *resultobj = 0;
5c8c7dd3
RD
25767 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25768 wxDouble arg2 = (wxDouble) 1.0 ;
25769 wxDouble arg3 = (wxDouble) 0.0 ;
25770 wxDouble arg4 = (wxDouble) 0.0 ;
25771 wxDouble arg5 = (wxDouble) 1.0 ;
25772 wxDouble arg6 = (wxDouble) 0.0 ;
25773 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25774 void *argp1 = 0 ;
25775 int res1 = 0 ;
5c8c7dd3
RD
25776 double val2 ;
25777 int ecode2 = 0 ;
25778 double val3 ;
25779 int ecode3 = 0 ;
25780 double val4 ;
25781 int ecode4 = 0 ;
25782 double val5 ;
25783 int ecode5 = 0 ;
25784 double val6 ;
25785 int ecode6 = 0 ;
25786 double val7 ;
25787 int ecode7 = 0 ;
25788 PyObject * obj0 = 0 ;
25789 PyObject * obj1 = 0 ;
25790 PyObject * obj2 = 0 ;
25791 PyObject * obj3 = 0 ;
25792 PyObject * obj4 = 0 ;
25793 PyObject * obj5 = 0 ;
25794 PyObject * obj6 = 0 ;
25795 char * kwnames[] = {
25796 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25797 };
70d7cb34 25798
5c8c7dd3
RD
25799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25801 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25803 }
5c8c7dd3
RD
25804 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25805 if (obj1) {
25806 ecode2 = SWIG_AsVal_double(obj1, &val2);
25807 if (!SWIG_IsOK(ecode2)) {
25808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25809 }
25810 arg2 = static_cast< wxDouble >(val2);
25811 }
25812 if (obj2) {
25813 ecode3 = SWIG_AsVal_double(obj2, &val3);
25814 if (!SWIG_IsOK(ecode3)) {
25815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25816 }
25817 arg3 = static_cast< wxDouble >(val3);
25818 }
25819 if (obj3) {
25820 ecode4 = SWIG_AsVal_double(obj3, &val4);
25821 if (!SWIG_IsOK(ecode4)) {
25822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25823 }
25824 arg4 = static_cast< wxDouble >(val4);
25825 }
25826 if (obj4) {
25827 ecode5 = SWIG_AsVal_double(obj4, &val5);
25828 if (!SWIG_IsOK(ecode5)) {
25829 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25830 }
25831 arg5 = static_cast< wxDouble >(val5);
25832 }
25833 if (obj5) {
25834 ecode6 = SWIG_AsVal_double(obj5, &val6);
25835 if (!SWIG_IsOK(ecode6)) {
25836 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25837 }
25838 arg6 = static_cast< wxDouble >(val6);
25839 }
25840 if (obj6) {
25841 ecode7 = SWIG_AsVal_double(obj6, &val7);
25842 if (!SWIG_IsOK(ecode7)) {
25843 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25844 }
25845 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25846 }
25847 {
5c8c7dd3 25848 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25849 if (PyErr_Occurred()) SWIG_fail;
25850 }
25851 resultobj = SWIG_Py_Void();
25852 return resultobj;
25853fail:
25854 return NULL;
25855}
25856
25857
248802d0
RD
25858SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25859 PyObject *resultobj = 0;
25860 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25861 wxDouble *arg2 = (wxDouble *) 0 ;
25862 wxDouble *arg3 = (wxDouble *) 0 ;
25863 wxDouble *arg4 = (wxDouble *) 0 ;
25864 wxDouble *arg5 = (wxDouble *) 0 ;
25865 wxDouble *arg6 = (wxDouble *) 0 ;
25866 wxDouble *arg7 = (wxDouble *) 0 ;
25867 void *argp1 = 0 ;
25868 int res1 = 0 ;
25869 wxDouble temp2 ;
25870 int res2 = SWIG_TMPOBJ ;
25871 wxDouble temp3 ;
25872 int res3 = SWIG_TMPOBJ ;
25873 wxDouble temp4 ;
25874 int res4 = SWIG_TMPOBJ ;
25875 wxDouble temp5 ;
25876 int res5 = SWIG_TMPOBJ ;
25877 wxDouble temp6 ;
25878 int res6 = SWIG_TMPOBJ ;
25879 wxDouble temp7 ;
25880 int res7 = SWIG_TMPOBJ ;
25881 PyObject *swig_obj[1] ;
25882
25883 arg2 = &temp2;
25884 arg3 = &temp3;
25885 arg4 = &temp4;
25886 arg5 = &temp5;
25887 arg6 = &temp6;
25888 arg7 = &temp7;
25889 if (!args) SWIG_fail;
25890 swig_obj[0] = args;
25891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25892 if (!SWIG_IsOK(res1)) {
25893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25894 }
25895 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25896 {
25897 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
25898 if (PyErr_Occurred()) SWIG_fail;
25899 }
25900 resultobj = SWIG_Py_Void();
25901 if (SWIG_IsTmpObj(res2)) {
25902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25903 } else {
25904 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25906 }
25907 if (SWIG_IsTmpObj(res3)) {
25908 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25909 } else {
25910 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25912 }
25913 if (SWIG_IsTmpObj(res4)) {
25914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25915 } else {
25916 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25918 }
25919 if (SWIG_IsTmpObj(res5)) {
25920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25921 } else {
25922 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25924 }
25925 if (SWIG_IsTmpObj(res6)) {
25926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25927 } else {
25928 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25930 }
25931 if (SWIG_IsTmpObj(res7)) {
25932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
25933 } else {
25934 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
25936 }
25937 return resultobj;
25938fail:
25939 return NULL;
25940}
25941
25942
5c8c7dd3 25943SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25944 PyObject *resultobj = 0;
5c8c7dd3 25945 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25946 void *argp1 = 0 ;
25947 int res1 = 0 ;
5c8c7dd3 25948 PyObject *swig_obj[1] ;
1bd55598 25949
5c8c7dd3
RD
25950 if (!args) SWIG_fail;
25951 swig_obj[0] = args;
25952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25953 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25955 }
5c8c7dd3 25956 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25957 {
5c8c7dd3 25958 (arg1)->Invert();
1bd55598
RD
25959 if (PyErr_Occurred()) SWIG_fail;
25960 }
72ef6efb 25961 resultobj = SWIG_Py_Void();
1bd55598
RD
25962 return resultobj;
25963fail:
25964 return NULL;
25965}
25966
25967
5c8c7dd3 25968SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25969 PyObject *resultobj = 0;
5c8c7dd3
RD
25970 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25971 wxGraphicsMatrix *arg2 = 0 ;
25972 bool result;
70d7cb34
RD
25973 void *argp1 = 0 ;
25974 int res1 = 0 ;
5c8c7dd3
RD
25975 void *argp2 = 0 ;
25976 int res2 = 0 ;
25977 PyObject * obj0 = 0 ;
25978 PyObject * obj1 = 0 ;
25979 char * kwnames[] = {
25980 (char *) "self",(char *) "t", NULL
25981 };
70d7cb34 25982
5c8c7dd3
RD
25983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25985 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25987 }
5c8c7dd3
RD
25988 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25989 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25990 if (!SWIG_IsOK(res2)) {
25991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25992 }
25993 if (!argp2) {
25994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25995 }
5c8c7dd3 25996 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25997 {
5c8c7dd3 25998 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25999 if (PyErr_Occurred()) SWIG_fail;
26000 }
5c8c7dd3
RD
26001 {
26002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26003 }
70d7cb34
RD
26004 return resultobj;
26005fail:
26006 return NULL;
26007}
26008
26009
5c8c7dd3
RD
26010SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26011 PyObject *resultobj = 0;
26012 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26013 bool result;
26014 void *argp1 = 0 ;
26015 int res1 = 0 ;
26016 PyObject *swig_obj[1] ;
70d7cb34 26017
5c8c7dd3
RD
26018 if (!args) SWIG_fail;
26019 swig_obj[0] = args;
26020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26021 if (!SWIG_IsOK(res1)) {
8f514ab4 26022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26023 }
5c8c7dd3
RD
26024 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26025 {
8f514ab4 26026 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 26027 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26028 }
5c8c7dd3
RD
26029 {
26030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26031 }
26032 return resultobj;
70d7cb34 26033fail:
70d7cb34
RD
26034 return NULL;
26035}
26036
26037
5c8c7dd3 26038SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 26039 PyObject *resultobj = 0;
5c8c7dd3 26040 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
26041 wxDouble arg2 ;
26042 wxDouble arg3 ;
1bd55598
RD
26043 void *argp1 = 0 ;
26044 int res1 = 0 ;
72ef6efb
RD
26045 double val2 ;
26046 int ecode2 = 0 ;
26047 double val3 ;
26048 int ecode3 = 0 ;
5c8c7dd3
RD
26049 PyObject * obj0 = 0 ;
26050 PyObject * obj1 = 0 ;
26051 PyObject * obj2 = 0 ;
26052 char * kwnames[] = {
26053 (char *) "self",(char *) "dx",(char *) "dy", NULL
26054 };
72ef6efb 26055
5c8c7dd3
RD
26056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26058 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26060 }
5c8c7dd3
RD
26061 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26062 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 26063 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
26065 }
26066 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26067 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26068 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26070 }
26071 arg3 = static_cast< wxDouble >(val3);
72ef6efb 26072 {
5c8c7dd3 26073 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26074 if (PyErr_Occurred()) SWIG_fail;
26075 }
26076 resultobj = SWIG_Py_Void();
26077 return resultobj;
26078fail:
26079 return NULL;
26080}
26081
26082
5c8c7dd3 26083SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26084 PyObject *resultobj = 0;
5c8c7dd3
RD
26085 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26086 wxDouble arg2 ;
26087 wxDouble arg3 ;
70d7cb34
RD
26088 void *argp1 = 0 ;
26089 int res1 = 0 ;
5c8c7dd3
RD
26090 double val2 ;
26091 int ecode2 = 0 ;
26092 double val3 ;
26093 int ecode3 = 0 ;
26094 PyObject * obj0 = 0 ;
26095 PyObject * obj1 = 0 ;
26096 PyObject * obj2 = 0 ;
26097 char * kwnames[] = {
26098 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26099 };
70d7cb34 26100
5c8c7dd3
RD
26101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26103 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26105 }
5c8c7dd3
RD
26106 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26107 ecode2 = SWIG_AsVal_double(obj1, &val2);
26108 if (!SWIG_IsOK(ecode2)) {
26109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26110 }
26111 arg2 = static_cast< wxDouble >(val2);
26112 ecode3 = SWIG_AsVal_double(obj2, &val3);
26113 if (!SWIG_IsOK(ecode3)) {
26114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26115 }
26116 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26117 {
5c8c7dd3 26118 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26119 if (PyErr_Occurred()) SWIG_fail;
26120 }
26121 resultobj = SWIG_Py_Void();
26122 return resultobj;
26123fail:
26124 return NULL;
26125}
26126
26127
5c8c7dd3 26128SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26129 PyObject *resultobj = 0;
5c8c7dd3
RD
26130 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26131 wxDouble arg2 ;
70d7cb34
RD
26132 void *argp1 = 0 ;
26133 int res1 = 0 ;
5c8c7dd3
RD
26134 double val2 ;
26135 int ecode2 = 0 ;
70d7cb34
RD
26136 PyObject * obj0 = 0 ;
26137 PyObject * obj1 = 0 ;
26138 char * kwnames[] = {
5c8c7dd3 26139 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26140 };
26141
5c8c7dd3
RD
26142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26144 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26146 }
5c8c7dd3
RD
26147 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26148 ecode2 = SWIG_AsVal_double(obj1, &val2);
26149 if (!SWIG_IsOK(ecode2)) {
26150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26151 }
26152 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26153 {
5c8c7dd3 26154 (arg1)->Rotate(arg2);
70d7cb34
RD
26155 if (PyErr_Occurred()) SWIG_fail;
26156 }
26157 resultobj = SWIG_Py_Void();
26158 return resultobj;
26159fail:
26160 return NULL;
26161}
26162
26163
5c8c7dd3 26164SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26165 PyObject *resultobj = 0;
5c8c7dd3
RD
26166 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26167 wxDouble *arg2 = (wxDouble *) 0 ;
26168 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26169 void *argp1 = 0 ;
26170 int res1 = 0 ;
5c8c7dd3
RD
26171 wxDouble temp2 ;
26172 int res2 = 0 ;
26173 wxDouble temp3 ;
26174 int res3 = 0 ;
26175 PyObject * obj0 = 0 ;
26176 PyObject * obj1 = 0 ;
26177 PyObject * obj2 = 0 ;
26178 char * kwnames[] = {
26179 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26180 };
72ef6efb 26181
5c8c7dd3
RD
26182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26184 if (!SWIG_IsOK(res1)) {
8f514ab4 26185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26186 }
5c8c7dd3
RD
26187 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26188 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26189 double val;
26190 int ecode = SWIG_AsVal_double(obj1, &val);
26191 if (!SWIG_IsOK(ecode)) {
26192 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26193 }
26194 temp2 = static_cast< wxDouble >(val);
26195 arg2 = &temp2;
26196 res2 = SWIG_AddTmpMask(ecode);
26197 }
26198 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26199 double val;
26200 int ecode = SWIG_AsVal_double(obj2, &val);
26201 if (!SWIG_IsOK(ecode)) {
26202 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26203 }
26204 temp3 = static_cast< wxDouble >(val);
26205 arg3 = &temp3;
26206 res3 = SWIG_AddTmpMask(ecode);
26207 }
26208 {
8f514ab4 26209 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26210 if (PyErr_Occurred()) SWIG_fail;
26211 }
26212 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26213 if (SWIG_IsTmpObj(res2)) {
26214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26215 } else {
26216 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26218 }
26219 if (SWIG_IsTmpObj(res3)) {
26220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26221 } else {
26222 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26223 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26224 }
72ef6efb
RD
26225 return resultobj;
26226fail:
26227 return NULL;
26228}
26229
26230
5c8c7dd3
RD
26231SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26232 PyObject *resultobj = 0;
26233 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26234 wxDouble *arg2 = (wxDouble *) 0 ;
26235 wxDouble *arg3 = (wxDouble *) 0 ;
26236 void *argp1 = 0 ;
26237 int res1 = 0 ;
26238 wxDouble temp2 ;
26239 int res2 = 0 ;
26240 wxDouble temp3 ;
26241 int res3 = 0 ;
26242 PyObject * obj0 = 0 ;
26243 PyObject * obj1 = 0 ;
26244 PyObject * obj2 = 0 ;
26245 char * kwnames[] = {
26246 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26247 };
26248
26249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26251 if (!SWIG_IsOK(res1)) {
8f514ab4 26252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26253 }
26254 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26255 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26256 double val;
26257 int ecode = SWIG_AsVal_double(obj1, &val);
26258 if (!SWIG_IsOK(ecode)) {
26259 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26260 }
26261 temp2 = static_cast< wxDouble >(val);
26262 arg2 = &temp2;
26263 res2 = SWIG_AddTmpMask(ecode);
26264 }
26265 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26266 double val;
26267 int ecode = SWIG_AsVal_double(obj2, &val);
26268 if (!SWIG_IsOK(ecode)) {
26269 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26270 }
26271 temp3 = static_cast< wxDouble >(val);
26272 arg3 = &temp3;
26273 res3 = SWIG_AddTmpMask(ecode);
26274 }
26275 {
8f514ab4 26276 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26277 if (PyErr_Occurred()) SWIG_fail;
26278 }
26279 resultobj = SWIG_Py_Void();
26280 if (SWIG_IsTmpObj(res2)) {
26281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26282 } else {
26283 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26285 }
26286 if (SWIG_IsTmpObj(res3)) {
26287 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26288 } else {
26289 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26290 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26291 }
26292 return resultobj;
26293fail:
26294 return NULL;
26295}
26296
26297
26298SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26299 PyObject *resultobj = 0;
26300 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26301 void *result = 0 ;
26302 void *argp1 = 0 ;
26303 int res1 = 0 ;
26304 PyObject *swig_obj[1] ;
26305
26306 if (!args) SWIG_fail;
26307 swig_obj[0] = args;
26308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26309 if (!SWIG_IsOK(res1)) {
26310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26311 }
26312 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26313 {
26314 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26315 if (PyErr_Occurred()) SWIG_fail;
26316 }
26317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26318 return resultobj;
26319fail:
26320 return NULL;
26321}
26322
26323
26324SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26325 PyObject *obj;
26326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26327 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26328 return SWIG_Py_Void();
26329}
26330
8f514ab4
RD
26331SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26332 return SWIG_Python_InitShadowInstance(args);
26333}
26334
26335SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26336 PyObject *resultobj = 0;
26337 wxGraphicsPath *result = 0 ;
26338
26339 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26340 {
26341 if (!wxPyCheckForApp()) SWIG_fail;
26342 PyThreadState* __tstate = wxPyBeginAllowThreads();
26343 result = (wxGraphicsPath *)new wxGraphicsPath();
26344 wxPyEndAllowThreads(__tstate);
26345 if (PyErr_Occurred()) SWIG_fail;
26346 }
26347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26348 return resultobj;
26349fail:
26350 return NULL;
26351}
26352
26353
5c8c7dd3 26354SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26355 PyObject *resultobj = 0;
26356 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26357 void *argp1 = 0 ;
26358 int res1 = 0 ;
26359 PyObject *swig_obj[1] ;
26360
26361 if (!args) SWIG_fail;
26362 swig_obj[0] = args;
5c8c7dd3 26363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26364 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26366 }
26367 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26368 {
5c8c7dd3
RD
26369 delete arg1;
26370
72ef6efb
RD
26371 if (PyErr_Occurred()) SWIG_fail;
26372 }
5c8c7dd3 26373 resultobj = SWIG_Py_Void();
70d7cb34
RD
26374 return resultobj;
26375fail:
26376 return NULL;
26377}
26378
26379
5c8c7dd3 26380SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26381 PyObject *resultobj = 0;
26382 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26383 wxDouble arg2 ;
26384 wxDouble arg3 ;
70d7cb34
RD
26385 void *argp1 = 0 ;
26386 int res1 = 0 ;
26387 double val2 ;
26388 int ecode2 = 0 ;
26389 double val3 ;
26390 int ecode3 = 0 ;
70d7cb34 26391
5c8c7dd3 26392 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26394 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26396 }
26397 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26398 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26399 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26401 }
26402 arg2 = static_cast< wxDouble >(val2);
26403 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26404 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26406 }
26407 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26408 {
5c8c7dd3 26409 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26410 if (PyErr_Occurred()) SWIG_fail;
26411 }
26412 resultobj = SWIG_Py_Void();
26413 return resultobj;
26414fail:
26415 return NULL;
26416}
26417
26418
5c8c7dd3 26419SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26420 PyObject *resultobj = 0;
26421 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26422 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26423 void *argp1 = 0 ;
26424 int res1 = 0 ;
26425 wxPoint2D temp2 ;
70d7cb34 26426
5c8c7dd3 26427 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26429 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26431 }
26432 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26433 {
26434 arg2 = &temp2;
26435 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26436 }
70d7cb34 26437 {
5c8c7dd3 26438 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26439 if (PyErr_Occurred()) SWIG_fail;
26440 }
26441 resultobj = SWIG_Py_Void();
26442 return resultobj;
26443fail:
26444 return NULL;
26445}
26446
26447
5c8c7dd3 26448SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26449 int argc;
5c8c7dd3 26450 PyObject *argv[4];
70d7cb34 26451
5c8c7dd3 26452 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26453 --argc;
5c8c7dd3
RD
26454 if (argc == 2) {
26455 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26456 }
5c8c7dd3
RD
26457 if (argc == 3) {
26458 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26459 }
26460
26461fail:
5c8c7dd3 26462 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26463 return NULL;
26464}
26465
26466
5c8c7dd3 26467SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26468 PyObject *resultobj = 0;
26469 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26470 wxDouble arg2 ;
26471 wxDouble arg3 ;
70d7cb34
RD
26472 void *argp1 = 0 ;
26473 int res1 = 0 ;
26474 double val2 ;
26475 int ecode2 = 0 ;
26476 double val3 ;
26477 int ecode3 = 0 ;
70d7cb34 26478
5c8c7dd3
RD
26479 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26481 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26483 }
26484 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26485 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26486 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26488 }
26489 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26490 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26491 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26493 }
26494 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26495 {
5c8c7dd3 26496 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26497 if (PyErr_Occurred()) SWIG_fail;
26498 }
26499 resultobj = SWIG_Py_Void();
26500 return resultobj;
26501fail:
26502 return NULL;
26503}
26504
26505
5c8c7dd3 26506SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26507 PyObject *resultobj = 0;
26508 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26509 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26510 void *argp1 = 0 ;
26511 int res1 = 0 ;
5c8c7dd3 26512 wxPoint2D temp2 ;
70d7cb34 26513
5c8c7dd3
RD
26514 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26516 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26518 }
26519 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26520 {
5c8c7dd3
RD
26521 arg2 = &temp2;
26522 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26523 }
26524 {
26525 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
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
RD
26535SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26536 int argc;
26537 PyObject *argv[4];
70d7cb34 26538
5c8c7dd3
RD
26539 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26540 --argc;
26541 if (argc == 2) {
26542 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26543 }
5c8c7dd3
RD
26544 if (argc == 3) {
26545 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26546 }
5c8c7dd3 26547
70d7cb34 26548fail:
5c8c7dd3 26549 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26550 return NULL;
26551}
26552
26553
5c8c7dd3 26554SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26555 PyObject *resultobj = 0;
26556 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26557 wxDouble arg2 ;
26558 wxDouble arg3 ;
26559 wxDouble arg4 ;
26560 wxDouble arg5 ;
26561 wxDouble arg6 ;
5c8c7dd3 26562 wxDouble arg7 ;
70d7cb34
RD
26563 void *argp1 = 0 ;
26564 int res1 = 0 ;
26565 double val2 ;
26566 int ecode2 = 0 ;
26567 double val3 ;
26568 int ecode3 = 0 ;
26569 double val4 ;
26570 int ecode4 = 0 ;
26571 double val5 ;
26572 int ecode5 = 0 ;
26573 double val6 ;
26574 int ecode6 = 0 ;
5c8c7dd3
RD
26575 double val7 ;
26576 int ecode7 = 0 ;
70d7cb34 26577
5c8c7dd3
RD
26578 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26580 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26582 }
26583 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26584 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26585 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26587 }
26588 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26589 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26590 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26592 }
26593 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26594 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26595 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26597 }
26598 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26599 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26600 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26601 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26602 }
26603 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26604 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26605 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26606 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26607 }
26608 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26609 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26610 if (!SWIG_IsOK(ecode7)) {
26611 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26612 }
26613 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26614 {
5c8c7dd3 26615 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 resultobj = SWIG_Py_Void();
26619 return resultobj;
26620fail:
26621 return NULL;
26622}
26623
26624
5c8c7dd3 26625SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26626 PyObject *resultobj = 0;
26627 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26628 wxPoint2D *arg2 = 0 ;
26629 wxPoint2D *arg3 = 0 ;
26630 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26631 void *argp1 = 0 ;
26632 int res1 = 0 ;
5c8c7dd3
RD
26633 wxPoint2D temp2 ;
26634 wxPoint2D temp3 ;
26635 wxPoint2D temp4 ;
70d7cb34 26636
5c8c7dd3
RD
26637 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26639 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26641 }
26642 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26643 {
5c8c7dd3
RD
26644 arg2 = &temp2;
26645 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26646 }
5c8c7dd3
RD
26647 {
26648 arg3 = &temp3;
26649 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26650 }
70d7cb34 26651 {
5c8c7dd3
RD
26652 arg4 = &temp4;
26653 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26654 }
26655 {
26656 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26657 if (PyErr_Occurred()) SWIG_fail;
26658 }
26659 resultobj = SWIG_Py_Void();
26660 return resultobj;
26661fail:
26662 return NULL;
26663}
26664
26665
5c8c7dd3
RD
26666SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26667 int argc;
26668 PyObject *argv[8];
70d7cb34 26669
5c8c7dd3
RD
26670 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26671 --argc;
26672 if (argc == 4) {
26673 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26674 }
5c8c7dd3
RD
26675 if (argc == 7) {
26676 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26677 }
5c8c7dd3 26678
70d7cb34 26679fail:
5c8c7dd3 26680 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26681 return NULL;
26682}
26683
26684
5c8c7dd3 26685SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26686 PyObject *resultobj = 0;
26687 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26688 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26689 void *argp1 = 0 ;
26690 int res1 = 0 ;
5c8c7dd3
RD
26691 void *argp2 = 0 ;
26692 int res2 = 0 ;
70d7cb34
RD
26693 PyObject * obj0 = 0 ;
26694 PyObject * obj1 = 0 ;
26695 char * kwnames[] = {
5c8c7dd3 26696 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26697 };
26698
5c8c7dd3 26699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26701 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26703 }
26704 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26706 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26708 }
26709 if (!argp2) {
26710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26711 }
5c8c7dd3 26712 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26713 {
5c8c7dd3 26714 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26715 if (PyErr_Occurred()) SWIG_fail;
26716 }
26717 resultobj = SWIG_Py_Void();
26718 return resultobj;
26719fail:
26720 return NULL;
26721}
26722
26723
5c8c7dd3 26724SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26725 PyObject *resultobj = 0;
26726 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26727 void *argp1 = 0 ;
26728 int res1 = 0 ;
5c8c7dd3 26729 PyObject *swig_obj[1] ;
70d7cb34 26730
5c8c7dd3
RD
26731 if (!args) SWIG_fail;
26732 swig_obj[0] = args;
26733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26734 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26736 }
26737 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26738 {
5c8c7dd3 26739 (arg1)->CloseSubpath();
70d7cb34
RD
26740 if (PyErr_Occurred()) SWIG_fail;
26741 }
26742 resultobj = SWIG_Py_Void();
26743 return resultobj;
26744fail:
26745 return NULL;
26746}
26747
26748
5c8c7dd3 26749SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26750 PyObject *resultobj = 0;
26751 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26752 wxPoint2D result;
70d7cb34
RD
26753 void *argp1 = 0 ;
26754 int res1 = 0 ;
26755 PyObject *swig_obj[1] ;
26756
26757 if (!args) SWIG_fail;
26758 swig_obj[0] = args;
26759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26760 if (!SWIG_IsOK(res1)) {
8f514ab4 26761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26762 }
26763 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26764 {
8f514ab4 26765 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26766 if (PyErr_Occurred()) SWIG_fail;
26767 }
5c8c7dd3 26768 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26769 return resultobj;
26770fail:
26771 return NULL;
26772}
26773
26774
5c8c7dd3 26775SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26776 PyObject *resultobj = 0;
26777 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26778 wxDouble arg2 ;
26779 wxDouble arg3 ;
5c8c7dd3
RD
26780 wxDouble arg4 ;
26781 wxDouble arg5 ;
26782 wxDouble arg6 ;
26783 bool arg7 ;
70d7cb34
RD
26784 void *argp1 = 0 ;
26785 int res1 = 0 ;
26786 double val2 ;
26787 int ecode2 = 0 ;
26788 double val3 ;
26789 int ecode3 = 0 ;
5c8c7dd3 26790 double val4 ;
70d7cb34 26791 int ecode4 = 0 ;
5c8c7dd3
RD
26792 double val5 ;
26793 int ecode5 = 0 ;
26794 double val6 ;
26795 int ecode6 = 0 ;
26796 bool val7 ;
26797 int ecode7 = 0 ;
70d7cb34 26798
5c8c7dd3 26799 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26801 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26803 }
26804 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26805 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26806 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26808 }
26809 arg2 = static_cast< wxDouble >(val2);
26810 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26811 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26813 }
26814 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26815 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26816 if (!SWIG_IsOK(ecode4)) {
26817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26818 }
26819 arg4 = static_cast< wxDouble >(val4);
26820 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26821 if (!SWIG_IsOK(ecode5)) {
26822 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26823 }
26824 arg5 = static_cast< wxDouble >(val5);
26825 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26826 if (!SWIG_IsOK(ecode6)) {
26827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26828 }
26829 arg6 = static_cast< wxDouble >(val6);
26830 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26831 if (!SWIG_IsOK(ecode7)) {
26832 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26833 }
26834 arg7 = static_cast< bool >(val7);
70d7cb34 26835 {
5c8c7dd3 26836 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
5c8c7dd3 26839 resultobj = SWIG_Py_Void();
70d7cb34
RD
26840 return resultobj;
26841fail:
26842 return NULL;
26843}
26844
26845
5c8c7dd3 26846SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26847 PyObject *resultobj = 0;
26848 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26849 wxPoint2D *arg2 = 0 ;
26850 wxDouble arg3 ;
26851 wxDouble arg4 ;
26852 wxDouble arg5 ;
26853 bool arg6 ;
70d7cb34
RD
26854 void *argp1 = 0 ;
26855 int res1 = 0 ;
5c8c7dd3
RD
26856 wxPoint2D temp2 ;
26857 double val3 ;
70d7cb34 26858 int ecode3 = 0 ;
5c8c7dd3
RD
26859 double val4 ;
26860 int ecode4 = 0 ;
26861 double val5 ;
26862 int ecode5 = 0 ;
26863 bool val6 ;
26864 int ecode6 = 0 ;
70d7cb34 26865
5c8c7dd3 26866 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26868 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26870 }
26871 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26872 {
5c8c7dd3
RD
26873 arg2 = &temp2;
26874 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26875 }
5c8c7dd3
RD
26876 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26877 if (!SWIG_IsOK(ecode3)) {
26878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26879 }
26880 arg3 = static_cast< wxDouble >(val3);
26881 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26882 if (!SWIG_IsOK(ecode4)) {
26883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26884 }
26885 arg4 = static_cast< wxDouble >(val4);
26886 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26887 if (!SWIG_IsOK(ecode5)) {
26888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26889 }
26890 arg5 = static_cast< wxDouble >(val5);
26891 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26892 if (!SWIG_IsOK(ecode6)) {
26893 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26894 }
26895 arg6 = static_cast< bool >(val6);
70d7cb34 26896 {
5c8c7dd3
RD
26897 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26898 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26899 }
5c8c7dd3 26900 resultobj = SWIG_Py_Void();
70d7cb34
RD
26901 return resultobj;
26902fail:
26903 return NULL;
26904}
26905
26906
5c8c7dd3 26907SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26908 int argc;
5c8c7dd3 26909 PyObject *argv[8];
70d7cb34 26910
5c8c7dd3 26911 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26912 --argc;
5c8c7dd3
RD
26913 if (argc == 6) {
26914 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26915 }
5c8c7dd3
RD
26916 if (argc == 7) {
26917 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26918 }
26919
26920fail:
5c8c7dd3 26921 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26922 return NULL;
26923}
26924
26925
5c8c7dd3 26926SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26927 PyObject *resultobj = 0;
5c8c7dd3
RD
26928 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26929 wxDouble arg2 ;
26930 wxDouble arg3 ;
26931 wxDouble arg4 ;
26932 wxDouble arg5 ;
70d7cb34
RD
26933 void *argp1 = 0 ;
26934 int res1 = 0 ;
5c8c7dd3
RD
26935 double val2 ;
26936 int ecode2 = 0 ;
26937 double val3 ;
26938 int ecode3 = 0 ;
26939 double val4 ;
26940 int ecode4 = 0 ;
26941 double val5 ;
26942 int ecode5 = 0 ;
26943 PyObject * obj0 = 0 ;
26944 PyObject * obj1 = 0 ;
26945 PyObject * obj2 = 0 ;
26946 PyObject * obj3 = 0 ;
26947 PyObject * obj4 = 0 ;
26948 char * kwnames[] = {
26949 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26950 };
70d7cb34 26951
5c8c7dd3
RD
26952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26954 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26956 }
5c8c7dd3
RD
26957 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26958 ecode2 = SWIG_AsVal_double(obj1, &val2);
26959 if (!SWIG_IsOK(ecode2)) {
26960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26961 }
26962 arg2 = static_cast< wxDouble >(val2);
26963 ecode3 = SWIG_AsVal_double(obj2, &val3);
26964 if (!SWIG_IsOK(ecode3)) {
26965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26966 }
26967 arg3 = static_cast< wxDouble >(val3);
26968 ecode4 = SWIG_AsVal_double(obj3, &val4);
26969 if (!SWIG_IsOK(ecode4)) {
26970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26971 }
26972 arg4 = static_cast< wxDouble >(val4);
26973 ecode5 = SWIG_AsVal_double(obj4, &val5);
26974 if (!SWIG_IsOK(ecode5)) {
26975 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26976 }
26977 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26978 {
5c8c7dd3 26979 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26980 if (PyErr_Occurred()) SWIG_fail;
26981 }
26982 resultobj = SWIG_Py_Void();
26983 return resultobj;
26984fail:
26985 return NULL;
26986}
26987
26988
5c8c7dd3 26989SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26990 PyObject *resultobj = 0;
5c8c7dd3
RD
26991 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26992 wxDouble arg2 ;
26993 wxDouble arg3 ;
26994 wxDouble arg4 ;
26995 wxDouble arg5 ;
70d7cb34
RD
26996 void *argp1 = 0 ;
26997 int res1 = 0 ;
5c8c7dd3
RD
26998 double val2 ;
26999 int ecode2 = 0 ;
27000 double val3 ;
27001 int ecode3 = 0 ;
27002 double val4 ;
27003 int ecode4 = 0 ;
27004 double val5 ;
27005 int ecode5 = 0 ;
70d7cb34
RD
27006 PyObject * obj0 = 0 ;
27007 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27008 PyObject * obj2 = 0 ;
27009 PyObject * obj3 = 0 ;
27010 PyObject * obj4 = 0 ;
70d7cb34 27011 char * kwnames[] = {
5c8c7dd3 27012 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
27013 };
27014
5c8c7dd3
RD
27015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27017 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27019 }
5c8c7dd3
RD
27020 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27021 ecode2 = SWIG_AsVal_double(obj1, &val2);
27022 if (!SWIG_IsOK(ecode2)) {
27023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27024 }
27025 arg2 = static_cast< wxDouble >(val2);
27026 ecode3 = SWIG_AsVal_double(obj2, &val3);
27027 if (!SWIG_IsOK(ecode3)) {
27028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27029 }
27030 arg3 = static_cast< wxDouble >(val3);
27031 ecode4 = SWIG_AsVal_double(obj3, &val4);
27032 if (!SWIG_IsOK(ecode4)) {
27033 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27034 }
27035 arg4 = static_cast< wxDouble >(val4);
27036 ecode5 = SWIG_AsVal_double(obj4, &val5);
27037 if (!SWIG_IsOK(ecode5)) {
27038 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27039 }
27040 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27041 {
5c8c7dd3 27042 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
27043 if (PyErr_Occurred()) SWIG_fail;
27044 }
27045 resultobj = SWIG_Py_Void();
27046 return resultobj;
27047fail:
27048 return NULL;
27049}
27050
27051
5c8c7dd3 27052SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27053 PyObject *resultobj = 0;
5c8c7dd3
RD
27054 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27055 wxDouble arg2 ;
27056 wxDouble arg3 ;
27057 wxDouble arg4 ;
70d7cb34
RD
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
5c8c7dd3
RD
27060 double val2 ;
27061 int ecode2 = 0 ;
27062 double val3 ;
27063 int ecode3 = 0 ;
27064 double val4 ;
27065 int ecode4 = 0 ;
70d7cb34
RD
27066 PyObject * obj0 = 0 ;
27067 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27068 PyObject * obj2 = 0 ;
27069 PyObject * obj3 = 0 ;
70d7cb34 27070 char * kwnames[] = {
5c8c7dd3 27071 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
27072 };
27073
5c8c7dd3
RD
27074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27076 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27078 }
5c8c7dd3
RD
27079 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27080 ecode2 = SWIG_AsVal_double(obj1, &val2);
27081 if (!SWIG_IsOK(ecode2)) {
27082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27083 }
27084 arg2 = static_cast< wxDouble >(val2);
27085 ecode3 = SWIG_AsVal_double(obj2, &val3);
27086 if (!SWIG_IsOK(ecode3)) {
27087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27088 }
27089 arg3 = static_cast< wxDouble >(val3);
27090 ecode4 = SWIG_AsVal_double(obj3, &val4);
27091 if (!SWIG_IsOK(ecode4)) {
27092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27093 }
27094 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27095 {
5c8c7dd3 27096 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27097 if (PyErr_Occurred()) SWIG_fail;
27098 }
27099 resultobj = SWIG_Py_Void();
27100 return resultobj;
27101fail:
27102 return NULL;
27103}
27104
27105
5c8c7dd3 27106SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27107 PyObject *resultobj = 0;
5c8c7dd3
RD
27108 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27109 wxDouble arg2 ;
27110 wxDouble arg3 ;
27111 wxDouble arg4 ;
27112 wxDouble arg5 ;
27113 wxDouble arg6 ;
70d7cb34
RD
27114 void *argp1 = 0 ;
27115 int res1 = 0 ;
27116 double val2 ;
27117 int ecode2 = 0 ;
27118 double val3 ;
27119 int ecode3 = 0 ;
27120 double val4 ;
27121 int ecode4 = 0 ;
27122 double val5 ;
27123 int ecode5 = 0 ;
27124 double val6 ;
27125 int ecode6 = 0 ;
70d7cb34
RD
27126 PyObject * obj0 = 0 ;
27127 PyObject * obj1 = 0 ;
27128 PyObject * obj2 = 0 ;
27129 PyObject * obj3 = 0 ;
27130 PyObject * obj4 = 0 ;
27131 PyObject * obj5 = 0 ;
70d7cb34 27132 char * kwnames[] = {
5c8c7dd3 27133 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27134 };
27135
5c8c7dd3
RD
27136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27138 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27140 }
5c8c7dd3
RD
27141 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27142 ecode2 = SWIG_AsVal_double(obj1, &val2);
27143 if (!SWIG_IsOK(ecode2)) {
27144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27145 }
27146 arg2 = static_cast< wxDouble >(val2);
27147 ecode3 = SWIG_AsVal_double(obj2, &val3);
27148 if (!SWIG_IsOK(ecode3)) {
27149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27150 }
27151 arg3 = static_cast< wxDouble >(val3);
27152 ecode4 = SWIG_AsVal_double(obj3, &val4);
27153 if (!SWIG_IsOK(ecode4)) {
27154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27155 }
27156 arg4 = static_cast< wxDouble >(val4);
27157 ecode5 = SWIG_AsVal_double(obj4, &val5);
27158 if (!SWIG_IsOK(ecode5)) {
27159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27160 }
27161 arg5 = static_cast< wxDouble >(val5);
27162 ecode6 = SWIG_AsVal_double(obj5, &val6);
27163 if (!SWIG_IsOK(ecode6)) {
27164 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27165 }
27166 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27167 {
5c8c7dd3 27168 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27169 if (PyErr_Occurred()) SWIG_fail;
27170 }
27171 resultobj = SWIG_Py_Void();
27172 return resultobj;
27173fail:
27174 return NULL;
27175}
27176
27177
5c8c7dd3 27178SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27179 PyObject *resultobj = 0;
5c8c7dd3
RD
27180 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27181 wxDouble arg2 ;
27182 wxDouble arg3 ;
27183 wxDouble arg4 ;
27184 wxDouble arg5 ;
70d7cb34
RD
27185 void *argp1 = 0 ;
27186 int res1 = 0 ;
5c8c7dd3
RD
27187 double val2 ;
27188 int ecode2 = 0 ;
27189 double val3 ;
27190 int ecode3 = 0 ;
27191 double val4 ;
27192 int ecode4 = 0 ;
27193 double val5 ;
27194 int ecode5 = 0 ;
27195 PyObject * obj0 = 0 ;
27196 PyObject * obj1 = 0 ;
27197 PyObject * obj2 = 0 ;
27198 PyObject * obj3 = 0 ;
27199 PyObject * obj4 = 0 ;
27200 char * kwnames[] = {
27201 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27202 };
70d7cb34 27203
5c8c7dd3
RD
27204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27206 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27208 }
5c8c7dd3
RD
27209 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27210 ecode2 = SWIG_AsVal_double(obj1, &val2);
27211 if (!SWIG_IsOK(ecode2)) {
27212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27213 }
27214 arg2 = static_cast< wxDouble >(val2);
27215 ecode3 = SWIG_AsVal_double(obj2, &val3);
27216 if (!SWIG_IsOK(ecode3)) {
27217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27218 }
27219 arg3 = static_cast< wxDouble >(val3);
27220 ecode4 = SWIG_AsVal_double(obj3, &val4);
27221 if (!SWIG_IsOK(ecode4)) {
27222 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27223 }
27224 arg4 = static_cast< wxDouble >(val4);
27225 ecode5 = SWIG_AsVal_double(obj4, &val5);
27226 if (!SWIG_IsOK(ecode5)) {
27227 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27228 }
27229 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27230 {
5c8c7dd3 27231 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27232 if (PyErr_Occurred()) SWIG_fail;
27233 }
27234 resultobj = SWIG_Py_Void();
27235 return resultobj;
27236fail:
27237 return NULL;
27238}
27239
27240
5c8c7dd3 27241SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27242 PyObject *resultobj = 0;
5c8c7dd3
RD
27243 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27244 wxDouble arg2 ;
27245 wxDouble arg3 ;
27246 wxDouble arg4 ;
27247 wxDouble arg5 ;
27248 wxDouble arg6 ;
70d7cb34
RD
27249 void *argp1 = 0 ;
27250 int res1 = 0 ;
5c8c7dd3
RD
27251 double val2 ;
27252 int ecode2 = 0 ;
27253 double val3 ;
27254 int ecode3 = 0 ;
27255 double val4 ;
27256 int ecode4 = 0 ;
27257 double val5 ;
27258 int ecode5 = 0 ;
27259 double val6 ;
27260 int ecode6 = 0 ;
70d7cb34
RD
27261 PyObject * obj0 = 0 ;
27262 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27263 PyObject * obj2 = 0 ;
27264 PyObject * obj3 = 0 ;
27265 PyObject * obj4 = 0 ;
27266 PyObject * obj5 = 0 ;
70d7cb34 27267 char * kwnames[] = {
5c8c7dd3 27268 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27269 };
27270
5c8c7dd3
RD
27271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27273 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27275 }
5c8c7dd3
RD
27276 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27277 ecode2 = SWIG_AsVal_double(obj1, &val2);
27278 if (!SWIG_IsOK(ecode2)) {
27279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27280 }
27281 arg2 = static_cast< wxDouble >(val2);
27282 ecode3 = SWIG_AsVal_double(obj2, &val3);
27283 if (!SWIG_IsOK(ecode3)) {
27284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27285 }
27286 arg3 = static_cast< wxDouble >(val3);
27287 ecode4 = SWIG_AsVal_double(obj3, &val4);
27288 if (!SWIG_IsOK(ecode4)) {
27289 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27290 }
27291 arg4 = static_cast< wxDouble >(val4);
27292 ecode5 = SWIG_AsVal_double(obj4, &val5);
27293 if (!SWIG_IsOK(ecode5)) {
27294 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27295 }
27296 arg5 = static_cast< wxDouble >(val5);
27297 ecode6 = SWIG_AsVal_double(obj5, &val6);
27298 if (!SWIG_IsOK(ecode6)) {
27299 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27300 }
27301 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27302 {
5c8c7dd3 27303 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27304 if (PyErr_Occurred()) SWIG_fail;
27305 }
5c8c7dd3 27306 resultobj = SWIG_Py_Void();
70d7cb34
RD
27307 return resultobj;
27308fail:
27309 return NULL;
27310}
27311
27312
5c8c7dd3 27313SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27314 PyObject *resultobj = 0;
5c8c7dd3
RD
27315 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27316 void *result = 0 ;
70d7cb34
RD
27317 void *argp1 = 0 ;
27318 int res1 = 0 ;
27319 PyObject *swig_obj[1] ;
27320
27321 if (!args) SWIG_fail;
27322 swig_obj[0] = args;
5c8c7dd3 27323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27324 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27326 }
5c8c7dd3 27327 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27328 {
5c8c7dd3 27329 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27330 if (PyErr_Occurred()) SWIG_fail;
27331 }
5c8c7dd3 27332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27333 return resultobj;
27334fail:
27335 return NULL;
27336}
27337
27338
5c8c7dd3 27339SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27340 PyObject *resultobj = 0;
5c8c7dd3
RD
27341 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27342 void *arg2 = (void *) 0 ;
70d7cb34
RD
27343 void *argp1 = 0 ;
27344 int res1 = 0 ;
5c8c7dd3 27345 int res2 ;
70d7cb34
RD
27346 PyObject * obj0 = 0 ;
27347 PyObject * obj1 = 0 ;
70d7cb34 27348 char * kwnames[] = {
5c8c7dd3 27349 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27350 };
27351
5c8c7dd3
RD
27352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27354 if (!SWIG_IsOK(res1)) {
8f514ab4 27355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27356 }
27357 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27358 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27359 if (!SWIG_IsOK(res2)) {
27360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27361 }
70d7cb34 27362 {
8f514ab4 27363 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27364 if (PyErr_Occurred()) SWIG_fail;
27365 }
27366 resultobj = SWIG_Py_Void();
27367 return resultobj;
27368fail:
27369 return NULL;
27370}
27371
27372
5c8c7dd3 27373SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27374 PyObject *resultobj = 0;
5c8c7dd3
RD
27375 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27376 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27377 void *argp1 = 0 ;
27378 int res1 = 0 ;
5c8c7dd3
RD
27379 void *argp2 = 0 ;
27380 int res2 = 0 ;
70d7cb34
RD
27381 PyObject * obj0 = 0 ;
27382 PyObject * obj1 = 0 ;
70d7cb34 27383 char * kwnames[] = {
5c8c7dd3 27384 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27385 };
27386
5c8c7dd3
RD
27387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27389 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27391 }
5c8c7dd3
RD
27392 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27394 if (!SWIG_IsOK(res2)) {
27395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27396 }
27397 if (!argp2) {
27398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27399 }
27400 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27401 {
5c8c7dd3 27402 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27403 if (PyErr_Occurred()) SWIG_fail;
27404 }
27405 resultobj = SWIG_Py_Void();
27406 return resultobj;
27407fail:
27408 return NULL;
27409}
27410
27411
5c8c7dd3 27412SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27413 PyObject *resultobj = 0;
5c8c7dd3 27414 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27415 wxRect2D result;
70d7cb34
RD
27416 void *argp1 = 0 ;
27417 int res1 = 0 ;
5c8c7dd3 27418 PyObject *swig_obj[1] ;
70d7cb34 27419
5c8c7dd3
RD
27420 if (!args) SWIG_fail;
27421 swig_obj[0] = args;
27422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27423 if (!SWIG_IsOK(res1)) {
8f514ab4 27424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27425 }
5c8c7dd3 27426 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27427 {
8f514ab4 27428 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27429 if (PyErr_Occurred()) SWIG_fail;
27430 }
4fe9ce47 27431 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27432 return resultobj;
27433fail:
27434 return NULL;
27435}
27436
27437
5c8c7dd3 27438SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27439 PyObject *resultobj = 0;
5c8c7dd3
RD
27440 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27441 wxDouble arg2 ;
27442 wxDouble arg3 ;
8f514ab4 27443 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27444 bool result;
70d7cb34
RD
27445 void *argp1 = 0 ;
27446 int res1 = 0 ;
5c8c7dd3
RD
27447 double val2 ;
27448 int ecode2 = 0 ;
27449 double val3 ;
27450 int ecode3 = 0 ;
27451 int val4 ;
27452 int ecode4 = 0 ;
70d7cb34 27453
5c8c7dd3
RD
27454 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27456 if (!SWIG_IsOK(res1)) {
8f514ab4 27457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27458 }
5c8c7dd3
RD
27459 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27460 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27461 if (!SWIG_IsOK(ecode2)) {
27462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27463 }
27464 arg2 = static_cast< wxDouble >(val2);
27465 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27466 if (!SWIG_IsOK(ecode3)) {
27467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27468 }
27469 arg3 = static_cast< wxDouble >(val3);
27470 if (swig_obj[3]) {
27471 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27472 if (!SWIG_IsOK(ecode4)) {
27473 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27474 }
27475 arg4 = static_cast< int >(val4);
70d7cb34
RD
27476 }
27477 {
8f514ab4 27478 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27479 if (PyErr_Occurred()) SWIG_fail;
27480 }
5c8c7dd3
RD
27481 {
27482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27483 }
27484 return resultobj;
27485fail:
27486 return NULL;
27487}
27488
27489
5c8c7dd3 27490SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27491 PyObject *resultobj = 0;
5c8c7dd3 27492 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27493 wxPoint2D *arg2 = 0 ;
8f514ab4 27494 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27495 bool result;
70d7cb34
RD
27496 void *argp1 = 0 ;
27497 int res1 = 0 ;
4fe9ce47 27498 wxPoint2D temp2 ;
5c8c7dd3
RD
27499 int val3 ;
27500 int ecode3 = 0 ;
70d7cb34 27501
5c8c7dd3
RD
27502 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27504 if (!SWIG_IsOK(res1)) {
8f514ab4 27505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27506 }
5c8c7dd3 27507 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
4fe9ce47
RD
27508 {
27509 arg2 = &temp2;
27510 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
5c8c7dd3 27511 }
5c8c7dd3
RD
27512 if (swig_obj[2]) {
27513 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27514 if (!SWIG_IsOK(ecode3)) {
27515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27516 }
27517 arg3 = static_cast< int >(val3);
70d7cb34
RD
27518 }
27519 {
4fe9ce47 27520 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
70d7cb34
RD
27521 if (PyErr_Occurred()) SWIG_fail;
27522 }
5c8c7dd3
RD
27523 {
27524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27525 }
27526 return resultobj;
27527fail:
27528 return NULL;
27529}
27530
27531
5c8c7dd3
RD
27532SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27533 int argc;
27534 PyObject *argv[5];
70d7cb34 27535
5c8c7dd3
RD
27536 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27537 --argc;
27538 if ((argc >= 2) && (argc <= 3)) {
27539 int _v = 0;
27540 {
4fe9ce47
RD
27541 {
27542 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27543 }
5c8c7dd3
RD
27544 }
27545 if (!_v) goto check_1;
27546 if (argc > 2) {
27547 {
27548 {
27549 int res = SWIG_AsVal_int(argv[2], NULL);
27550 _v = SWIG_CheckState(res);
27551 }
27552 }
27553 if (!_v) goto check_1;
27554 }
27555 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27556 }
5c8c7dd3
RD
27557check_1:
27558
27559 if ((argc >= 3) && (argc <= 4)) {
27560 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27561 }
5c8c7dd3 27562
70d7cb34 27563fail:
5c8c7dd3 27564 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27565 return NULL;
27566}
27567
27568
5c8c7dd3 27569SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27570 PyObject *obj;
27571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27572 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27573 return SWIG_Py_Void();
27574}
27575
8f514ab4
RD
27576SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27577 return SWIG_Python_InitShadowInstance(args);
27578}
27579
5c8c7dd3
RD
27580SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27581 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27582 return 1;
27583}
27584
27585
27586SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27587 PyObject *pyobj = 0;
27588
27589 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27590 return pyobj;
27591}
27592
27593
27594SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27595 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27596 return 1;
27597}
27598
27599
27600SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27601 PyObject *pyobj = 0;
27602
27603 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27604 return pyobj;
27605}
27606
27607
27608SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27609 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27610 return 1;
27611}
27612
27613
27614SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27615 PyObject *pyobj = 0;
27616
27617 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27618 return pyobj;
27619}
27620
27621
27622SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27623 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27624 return 1;
27625}
27626
27627
27628SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27629 PyObject *pyobj = 0;
27630
27631 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27632 return pyobj;
27633}
27634
27635
27636SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27637 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27638 return 1;
27639}
27640
27641
27642SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27643 PyObject *pyobj = 0;
27644
27645 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27646 return pyobj;
27647}
27648
27649
70d7cb34
RD
27650SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27651 PyObject *resultobj = 0;
27652 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27653 void *argp1 = 0 ;
27654 int res1 = 0 ;
27655 PyObject *swig_obj[1] ;
27656
27657 if (!args) SWIG_fail;
27658 swig_obj[0] = args;
27659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27660 if (!SWIG_IsOK(res1)) {
27661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27662 }
27663 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27664 {
27665 delete arg1;
27666
27667 if (PyErr_Occurred()) SWIG_fail;
27668 }
27669 resultobj = SWIG_Py_Void();
27670 return resultobj;
27671fail:
27672 return NULL;
27673}
27674
27675
27676SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27677 PyObject *resultobj = 0;
27678 wxWindowDC *arg1 = 0 ;
27679 wxGraphicsContext *result = 0 ;
27680 void *argp1 = 0 ;
27681 int res1 = 0 ;
27682
27683 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27685 if (!SWIG_IsOK(res1)) {
27686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27687 }
27688 if (!argp1) {
27689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27690 }
27691 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27692 {
27693 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27694 if (PyErr_Occurred()) SWIG_fail;
27695 }
27696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27697 return resultobj;
27698fail:
27699 return NULL;
27700}
27701
27702
27703SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27704 PyObject *resultobj = 0;
27705 wxWindow *arg1 = (wxWindow *) 0 ;
27706 wxGraphicsContext *result = 0 ;
27707 void *argp1 = 0 ;
27708 int res1 = 0 ;
27709
27710 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27712 if (!SWIG_IsOK(res1)) {
27713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27714 }
27715 arg1 = reinterpret_cast< wxWindow * >(argp1);
27716 {
27717 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27718 if (PyErr_Occurred()) SWIG_fail;
27719 }
27720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27721 return resultobj;
27722fail:
27723 return NULL;
27724}
27725
27726
27727SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27728 int argc;
27729 PyObject *argv[2];
27730
27731 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27732 --argc;
27733 if (argc == 1) {
27734 int _v = 0;
27735 {
27736 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27737 _v = SWIG_CheckState(res);
27738 }
27739 if (!_v) goto check_1;
27740 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27741 }
27742check_1:
27743
27744 if (argc == 1) {
27745 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27746 }
27747
27748fail:
27749 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27750 return NULL;
27751}
27752
27753
f89238b9
RD
27754SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27755 PyObject *resultobj = 0;
27756 wxGraphicsContext *result = 0 ;
27757
27758 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27759 {
27760 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27761 if (PyErr_Occurred()) SWIG_fail;
27762 }
27763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27764 return resultobj;
27765fail:
27766 return NULL;
27767}
27768
27769
70d7cb34
RD
27770SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27771 PyObject *resultobj = 0;
27772 void *arg1 = (void *) 0 ;
27773 wxGraphicsContext *result = 0 ;
27774 int res1 ;
27775 PyObject * obj0 = 0 ;
27776 char * kwnames[] = {
27777 (char *) "context", NULL
27778 };
27779
27780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27781 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27782 if (!SWIG_IsOK(res1)) {
27783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27784 }
27785 {
27786 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27787 if (PyErr_Occurred()) SWIG_fail;
27788 }
27789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27790 return resultobj;
27791fail:
27792 return NULL;
27793}
27794
27795
27796SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27797 PyObject *resultobj = 0;
27798 void *arg1 = (void *) 0 ;
27799 wxGraphicsContext *result = 0 ;
27800 int res1 ;
27801 PyObject * obj0 = 0 ;
27802 char * kwnames[] = {
27803 (char *) "window", NULL
27804 };
27805
27806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27807 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27808 if (!SWIG_IsOK(res1)) {
27809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27810 }
27811 {
27812 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27813 if (PyErr_Occurred()) SWIG_fail;
27814 }
27815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27816 return resultobj;
27817fail:
27818 return NULL;
27819}
27820
27821
27822SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27823 PyObject *resultobj = 0;
27824 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27825 wxGraphicsPath result;
70d7cb34
RD
27826 void *argp1 = 0 ;
27827 int res1 = 0 ;
27828 PyObject *swig_obj[1] ;
27829
27830 if (!args) SWIG_fail;
27831 swig_obj[0] = args;
27832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27833 if (!SWIG_IsOK(res1)) {
27834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27835 }
27836 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27837 {
5c8c7dd3 27838 result = (arg1)->CreatePath();
70d7cb34
RD
27839 if (PyErr_Occurred()) SWIG_fail;
27840 }
5c8c7dd3 27841 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27842 return resultobj;
27843fail:
27844 return NULL;
27845}
27846
27847
70d7cb34 27848SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27849 PyObject *resultobj = 0;
70d7cb34
RD
27850 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27851 wxPen *arg2 = 0 ;
27852 wxGraphicsPen result;
72ef6efb
RD
27853 void *argp1 = 0 ;
27854 int res1 = 0 ;
70d7cb34
RD
27855 void *argp2 = 0 ;
27856 int res2 = 0 ;
72ef6efb
RD
27857 PyObject * obj0 = 0 ;
27858 PyObject * obj1 = 0 ;
72ef6efb 27859 char * kwnames[] = {
70d7cb34 27860 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27861 };
27862
70d7cb34
RD
27863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27865 if (!SWIG_IsOK(res1)) {
70d7cb34 27866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27867 }
70d7cb34
RD
27868 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27870 if (!SWIG_IsOK(res2)) {
27871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27872 }
27873 if (!argp2) {
27874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27875 }
27876 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27877 {
70d7cb34 27878 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27879 if (PyErr_Occurred()) SWIG_fail;
27880 }
70d7cb34 27881 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27882 return resultobj;
27883fail:
27884 return NULL;
27885}
27886
27887
70d7cb34 27888SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27889 PyObject *resultobj = 0;
70d7cb34
RD
27890 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27891 wxBrush *arg2 = 0 ;
27892 wxGraphicsBrush result;
72ef6efb
RD
27893 void *argp1 = 0 ;
27894 int res1 = 0 ;
70d7cb34
RD
27895 void *argp2 = 0 ;
27896 int res2 = 0 ;
72ef6efb
RD
27897 PyObject * obj0 = 0 ;
27898 PyObject * obj1 = 0 ;
72ef6efb 27899 char * kwnames[] = {
70d7cb34 27900 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27901 };
27902
70d7cb34
RD
27903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27905 if (!SWIG_IsOK(res1)) {
70d7cb34 27906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27907 }
70d7cb34
RD
27908 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27910 if (!SWIG_IsOK(res2)) {
27911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27912 }
27913 if (!argp2) {
27914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27915 }
27916 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27917 {
70d7cb34 27918 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27919 if (PyErr_Occurred()) SWIG_fail;
27920 }
70d7cb34 27921 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27922 return resultobj;
27923fail:
27924 return NULL;
27925}
27926
27927
70d7cb34 27928SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27929 PyObject *resultobj = 0;
70d7cb34 27930 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27931 wxDouble arg2 ;
27932 wxDouble arg3 ;
27933 wxDouble arg4 ;
27934 wxDouble arg5 ;
70d7cb34
RD
27935 wxColour *arg6 = 0 ;
27936 wxColour *arg7 = 0 ;
27937 wxGraphicsBrush result;
72ef6efb
RD
27938 void *argp1 = 0 ;
27939 int res1 = 0 ;
27940 double val2 ;
27941 int ecode2 = 0 ;
27942 double val3 ;
27943 int ecode3 = 0 ;
27944 double val4 ;
27945 int ecode4 = 0 ;
27946 double val5 ;
27947 int ecode5 = 0 ;
70d7cb34
RD
27948 wxColour temp6 ;
27949 wxColour temp7 ;
72ef6efb
RD
27950 PyObject * obj0 = 0 ;
27951 PyObject * obj1 = 0 ;
27952 PyObject * obj2 = 0 ;
27953 PyObject * obj3 = 0 ;
27954 PyObject * obj4 = 0 ;
70d7cb34
RD
27955 PyObject * obj5 = 0 ;
27956 PyObject * obj6 = 0 ;
72ef6efb 27957 char * kwnames[] = {
70d7cb34 27958 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27959 };
27960
70d7cb34
RD
27961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27963 if (!SWIG_IsOK(res1)) {
70d7cb34 27964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27965 }
70d7cb34 27966 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27967 ecode2 = SWIG_AsVal_double(obj1, &val2);
27968 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27970 }
27971 arg2 = static_cast< wxDouble >(val2);
27972 ecode3 = SWIG_AsVal_double(obj2, &val3);
27973 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27975 }
27976 arg3 = static_cast< wxDouble >(val3);
27977 ecode4 = SWIG_AsVal_double(obj3, &val4);
27978 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27980 }
27981 arg4 = static_cast< wxDouble >(val4);
27982 ecode5 = SWIG_AsVal_double(obj4, &val5);
27983 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27984 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27985 }
27986 arg5 = static_cast< wxDouble >(val5);
27987 {
70d7cb34
RD
27988 arg6 = &temp6;
27989 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27990 }
70d7cb34
RD
27991 {
27992 arg7 = &temp7;
27993 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27994 }
72ef6efb 27995 {
70d7cb34 27996 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27997 if (PyErr_Occurred()) SWIG_fail;
27998 }
70d7cb34 27999 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28000 return resultobj;
28001fail:
28002 return NULL;
28003}
28004
28005
70d7cb34 28006SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28007 PyObject *resultobj = 0;
70d7cb34 28008 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28009 wxDouble arg2 ;
28010 wxDouble arg3 ;
28011 wxDouble arg4 ;
28012 wxDouble arg5 ;
28013 wxDouble arg6 ;
70d7cb34
RD
28014 wxColour *arg7 = 0 ;
28015 wxColour *arg8 = 0 ;
28016 wxGraphicsBrush result;
72ef6efb
RD
28017 void *argp1 = 0 ;
28018 int res1 = 0 ;
28019 double val2 ;
28020 int ecode2 = 0 ;
28021 double val3 ;
28022 int ecode3 = 0 ;
28023 double val4 ;
28024 int ecode4 = 0 ;
28025 double val5 ;
28026 int ecode5 = 0 ;
28027 double val6 ;
28028 int ecode6 = 0 ;
70d7cb34
RD
28029 wxColour temp7 ;
28030 wxColour temp8 ;
72ef6efb
RD
28031 PyObject * obj0 = 0 ;
28032 PyObject * obj1 = 0 ;
28033 PyObject * obj2 = 0 ;
28034 PyObject * obj3 = 0 ;
28035 PyObject * obj4 = 0 ;
28036 PyObject * obj5 = 0 ;
70d7cb34
RD
28037 PyObject * obj6 = 0 ;
28038 PyObject * obj7 = 0 ;
72ef6efb 28039 char * kwnames[] = {
70d7cb34 28040 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28041 };
28042
70d7cb34
RD
28043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28045 if (!SWIG_IsOK(res1)) {
70d7cb34 28046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28047 }
70d7cb34 28048 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28049 ecode2 = SWIG_AsVal_double(obj1, &val2);
28050 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28052 }
28053 arg2 = static_cast< wxDouble >(val2);
28054 ecode3 = SWIG_AsVal_double(obj2, &val3);
28055 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28057 }
28058 arg3 = static_cast< wxDouble >(val3);
28059 ecode4 = SWIG_AsVal_double(obj3, &val4);
28060 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28062 }
28063 arg4 = static_cast< wxDouble >(val4);
28064 ecode5 = SWIG_AsVal_double(obj4, &val5);
28065 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28067 }
28068 arg5 = static_cast< wxDouble >(val5);
28069 ecode6 = SWIG_AsVal_double(obj5, &val6);
28070 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28071 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28072 }
28073 arg6 = static_cast< wxDouble >(val6);
28074 {
70d7cb34
RD
28075 arg7 = &temp7;
28076 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28077 }
28078 {
28079 arg8 = &temp8;
28080 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28081 }
28082 {
28083 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28084 if (PyErr_Occurred()) SWIG_fail;
28085 }
70d7cb34 28086 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28087 return resultobj;
28088fail:
28089 return NULL;
28090}
28091
28092
70d7cb34 28093SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28094 PyObject *resultobj = 0;
28095 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28096 wxFont *arg2 = 0 ;
28097 wxColour const &arg3_defvalue = *wxBLACK ;
28098 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28099 wxGraphicsFont result;
72ef6efb
RD
28100 void *argp1 = 0 ;
28101 int res1 = 0 ;
70d7cb34
RD
28102 void *argp2 = 0 ;
28103 int res2 = 0 ;
28104 wxColour temp3 ;
28105 PyObject * obj0 = 0 ;
28106 PyObject * obj1 = 0 ;
28107 PyObject * obj2 = 0 ;
28108 char * kwnames[] = {
28109 (char *) "self",(char *) "font",(char *) "col", NULL
28110 };
72ef6efb 28111
70d7cb34
RD
28112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28114 if (!SWIG_IsOK(res1)) {
70d7cb34 28115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28116 }
28117 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28119 if (!SWIG_IsOK(res2)) {
28120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28121 }
70d7cb34
RD
28122 if (!argp2) {
28123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28124 }
70d7cb34
RD
28125 arg2 = reinterpret_cast< wxFont * >(argp2);
28126 if (obj2) {
28127 {
28128 arg3 = &temp3;
28129 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28130 }
72ef6efb 28131 }
72ef6efb 28132 {
70d7cb34 28133 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28134 if (PyErr_Occurred()) SWIG_fail;
28135 }
70d7cb34 28136 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28137 return resultobj;
28138fail:
28139 return NULL;
28140}
28141
28142
70d7cb34 28143SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28144 PyObject *resultobj = 0;
70d7cb34
RD
28145 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28146 wxDouble arg2 = (wxDouble) 1.0 ;
28147 wxDouble arg3 = (wxDouble) 0.0 ;
28148 wxDouble arg4 = (wxDouble) 0.0 ;
28149 wxDouble arg5 = (wxDouble) 1.0 ;
28150 wxDouble arg6 = (wxDouble) 0.0 ;
28151 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28152 wxGraphicsMatrix result;
0a27f394
RD
28153 void *argp1 = 0 ;
28154 int res1 = 0 ;
70d7cb34
RD
28155 double val2 ;
28156 int ecode2 = 0 ;
28157 double val3 ;
28158 int ecode3 = 0 ;
28159 double val4 ;
28160 int ecode4 = 0 ;
28161 double val5 ;
28162 int ecode5 = 0 ;
28163 double val6 ;
28164 int ecode6 = 0 ;
28165 double val7 ;
28166 int ecode7 = 0 ;
28167 PyObject * obj0 = 0 ;
28168 PyObject * obj1 = 0 ;
28169 PyObject * obj2 = 0 ;
28170 PyObject * obj3 = 0 ;
28171 PyObject * obj4 = 0 ;
28172 PyObject * obj5 = 0 ;
28173 PyObject * obj6 = 0 ;
28174 char * kwnames[] = {
28175 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28176 };
0a27f394 28177
70d7cb34
RD
28178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28180 if (!SWIG_IsOK(res1)) {
70d7cb34 28181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28182 }
70d7cb34
RD
28183 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28184 if (obj1) {
28185 ecode2 = SWIG_AsVal_double(obj1, &val2);
28186 if (!SWIG_IsOK(ecode2)) {
28187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28188 }
28189 arg2 = static_cast< wxDouble >(val2);
0a27f394 28190 }
70d7cb34
RD
28191 if (obj2) {
28192 ecode3 = SWIG_AsVal_double(obj2, &val3);
28193 if (!SWIG_IsOK(ecode3)) {
28194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28195 }
28196 arg3 = static_cast< wxDouble >(val3);
0a27f394 28197 }
70d7cb34
RD
28198 if (obj3) {
28199 ecode4 = SWIG_AsVal_double(obj3, &val4);
28200 if (!SWIG_IsOK(ecode4)) {
28201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28202 }
28203 arg4 = static_cast< wxDouble >(val4);
0a27f394 28204 }
70d7cb34
RD
28205 if (obj4) {
28206 ecode5 = SWIG_AsVal_double(obj4, &val5);
28207 if (!SWIG_IsOK(ecode5)) {
28208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28209 }
28210 arg5 = static_cast< wxDouble >(val5);
0a27f394 28211 }
70d7cb34
RD
28212 if (obj5) {
28213 ecode6 = SWIG_AsVal_double(obj5, &val6);
28214 if (!SWIG_IsOK(ecode6)) {
28215 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28216 }
28217 arg6 = static_cast< wxDouble >(val6);
0a27f394 28218 }
70d7cb34
RD
28219 if (obj6) {
28220 ecode7 = SWIG_AsVal_double(obj6, &val7);
28221 if (!SWIG_IsOK(ecode7)) {
28222 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28223 }
28224 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28225 }
72ef6efb 28226 {
5c8c7dd3 28227 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28228 if (PyErr_Occurred()) SWIG_fail;
28229 }
5c8c7dd3 28230 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28231 return resultobj;
28232fail:
28233 return NULL;
28234}
28235
28236
28237SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28238 PyObject *resultobj = 0;
28239 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28240 void *argp1 = 0 ;
28241 int res1 = 0 ;
28242 PyObject *swig_obj[1] ;
28243
28244 if (!args) SWIG_fail;
28245 swig_obj[0] = args;
28246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28247 if (!SWIG_IsOK(res1)) {
28248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28249 }
28250 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28251 {
72ef6efb 28252 (arg1)->PushState();
72ef6efb
RD
28253 if (PyErr_Occurred()) SWIG_fail;
28254 }
28255 resultobj = SWIG_Py_Void();
28256 return resultobj;
28257fail:
28258 return NULL;
28259}
28260
28261
28262SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28263 PyObject *resultobj = 0;
28264 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28265 void *argp1 = 0 ;
28266 int res1 = 0 ;
28267 PyObject *swig_obj[1] ;
28268
28269 if (!args) SWIG_fail;
28270 swig_obj[0] = args;
28271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28272 if (!SWIG_IsOK(res1)) {
28273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28274 }
28275 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28276 {
72ef6efb 28277 (arg1)->PopState();
72ef6efb
RD
28278 if (PyErr_Occurred()) SWIG_fail;
28279 }
28280 resultobj = SWIG_Py_Void();
28281 return resultobj;
28282fail:
28283 return NULL;
28284}
28285
28286
0a27f394 28287SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28288 PyObject *resultobj = 0;
28289 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28290 wxRegion *arg2 = 0 ;
28291 void *argp1 = 0 ;
28292 int res1 = 0 ;
28293 void *argp2 = 0 ;
28294 int res2 = 0 ;
28295 PyObject * obj0 = 0 ;
28296 PyObject * obj1 = 0 ;
28297 char * kwnames[] = {
28298 (char *) "self",(char *) "region", NULL
28299 };
28300
0a27f394 28301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28303 if (!SWIG_IsOK(res1)) {
0a27f394 28304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28305 }
28306 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28307 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28308 if (!SWIG_IsOK(res2)) {
0a27f394 28309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28310 }
28311 if (!argp2) {
0a27f394 28312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28313 }
28314 arg2 = reinterpret_cast< wxRegion * >(argp2);
28315 {
72ef6efb 28316 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28317 if (PyErr_Occurred()) SWIG_fail;
28318 }
28319 resultobj = SWIG_Py_Void();
28320 return resultobj;
28321fail:
28322 return NULL;
28323}
28324
28325
0a27f394
RD
28326SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28327 PyObject *resultobj = 0;
28328 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28329 wxDouble arg2 ;
28330 wxDouble arg3 ;
28331 wxDouble arg4 ;
28332 wxDouble arg5 ;
28333 void *argp1 = 0 ;
28334 int res1 = 0 ;
28335 double val2 ;
28336 int ecode2 = 0 ;
28337 double val3 ;
28338 int ecode3 = 0 ;
28339 double val4 ;
28340 int ecode4 = 0 ;
28341 double val5 ;
28342 int ecode5 = 0 ;
28343 PyObject * obj0 = 0 ;
28344 PyObject * obj1 = 0 ;
28345 PyObject * obj2 = 0 ;
28346 PyObject * obj3 = 0 ;
28347 PyObject * obj4 = 0 ;
28348 char * kwnames[] = {
28349 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28350 };
28351
28352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28354 if (!SWIG_IsOK(res1)) {
28355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28356 }
28357 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28358 ecode2 = SWIG_AsVal_double(obj1, &val2);
28359 if (!SWIG_IsOK(ecode2)) {
28360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28361 }
28362 arg2 = static_cast< wxDouble >(val2);
28363 ecode3 = SWIG_AsVal_double(obj2, &val3);
28364 if (!SWIG_IsOK(ecode3)) {
28365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28366 }
28367 arg3 = static_cast< wxDouble >(val3);
28368 ecode4 = SWIG_AsVal_double(obj3, &val4);
28369 if (!SWIG_IsOK(ecode4)) {
28370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28371 }
28372 arg4 = static_cast< wxDouble >(val4);
28373 ecode5 = SWIG_AsVal_double(obj4, &val5);
28374 if (!SWIG_IsOK(ecode5)) {
28375 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28376 }
28377 arg5 = static_cast< wxDouble >(val5);
28378 {
28379 (arg1)->Clip(arg2,arg3,arg4,arg5);
28380 if (PyErr_Occurred()) SWIG_fail;
28381 }
28382 resultobj = SWIG_Py_Void();
28383 return resultobj;
28384fail:
28385 return NULL;
28386}
28387
28388
28389SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28390 PyObject *resultobj = 0;
28391 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28392 void *argp1 = 0 ;
28393 int res1 = 0 ;
28394 PyObject *swig_obj[1] ;
28395
28396 if (!args) SWIG_fail;
28397 swig_obj[0] = args;
28398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28399 if (!SWIG_IsOK(res1)) {
28400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28401 }
28402 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28403 {
28404 (arg1)->ResetClip();
28405 if (PyErr_Occurred()) SWIG_fail;
28406 }
28407 resultobj = SWIG_Py_Void();
28408 return resultobj;
28409fail:
28410 return NULL;
28411}
28412
28413
28414SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28415 PyObject *resultobj = 0;
28416 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28417 void *result = 0 ;
28418 void *argp1 = 0 ;
28419 int res1 = 0 ;
28420 PyObject *swig_obj[1] ;
28421
28422 if (!args) SWIG_fail;
28423 swig_obj[0] = args;
28424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28425 if (!SWIG_IsOK(res1)) {
28426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28427 }
28428 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28429 {
28430 result = (void *)(arg1)->GetNativeContext();
28431 if (PyErr_Occurred()) SWIG_fail;
28432 }
28433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28434 return resultobj;
28435fail:
28436 return NULL;
28437}
28438
28439
c8aaaf9e
RD
28440SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28441 PyObject *resultobj = 0;
28442 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28443 int result;
28444 void *argp1 = 0 ;
28445 int res1 = 0 ;
28446 PyObject *swig_obj[1] ;
28447
28448 if (!args) SWIG_fail;
28449 swig_obj[0] = args;
28450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28451 if (!SWIG_IsOK(res1)) {
28452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28453 }
28454 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28455 {
28456 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28457 if (PyErr_Occurred()) SWIG_fail;
28458 }
28459 resultobj = SWIG_From_int(static_cast< int >(result));
28460 return resultobj;
28461fail:
28462 return NULL;
28463}
28464
28465
28466SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28467 PyObject *resultobj = 0;
28468 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28469 int arg2 ;
28470 bool result;
28471 void *argp1 = 0 ;
28472 int res1 = 0 ;
28473 int val2 ;
28474 int ecode2 = 0 ;
28475 PyObject * obj0 = 0 ;
28476 PyObject * obj1 = 0 ;
28477 char * kwnames[] = {
28478 (char *) "self",(char *) "function", NULL
28479 };
28480
28481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28483 if (!SWIG_IsOK(res1)) {
28484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28485 }
28486 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28487 ecode2 = SWIG_AsVal_int(obj1, &val2);
28488 if (!SWIG_IsOK(ecode2)) {
28489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28490 }
28491 arg2 = static_cast< int >(val2);
28492 {
28493 result = (bool)(arg1)->SetLogicalFunction(arg2);
28494 if (PyErr_Occurred()) SWIG_fail;
28495 }
28496 {
28497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28498 }
28499 return resultobj;
28500fail:
28501 return NULL;
28502}
28503
28504
72ef6efb
RD
28505SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28506 PyObject *resultobj = 0;
28507 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28508 wxDouble arg2 ;
28509 wxDouble arg3 ;
28510 void *argp1 = 0 ;
28511 int res1 = 0 ;
28512 double val2 ;
28513 int ecode2 = 0 ;
28514 double val3 ;
28515 int ecode3 = 0 ;
28516 PyObject * obj0 = 0 ;
28517 PyObject * obj1 = 0 ;
28518 PyObject * obj2 = 0 ;
28519 char * kwnames[] = {
28520 (char *) "self",(char *) "dx",(char *) "dy", NULL
28521 };
28522
28523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28525 if (!SWIG_IsOK(res1)) {
28526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28527 }
28528 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28529 ecode2 = SWIG_AsVal_double(obj1, &val2);
28530 if (!SWIG_IsOK(ecode2)) {
28531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28532 }
28533 arg2 = static_cast< wxDouble >(val2);
28534 ecode3 = SWIG_AsVal_double(obj2, &val3);
28535 if (!SWIG_IsOK(ecode3)) {
28536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28537 }
28538 arg3 = static_cast< wxDouble >(val3);
28539 {
72ef6efb 28540 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28541 if (PyErr_Occurred()) SWIG_fail;
28542 }
28543 resultobj = SWIG_Py_Void();
28544 return resultobj;
28545fail:
28546 return NULL;
28547}
28548
28549
28550SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28551 PyObject *resultobj = 0;
28552 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28553 wxDouble arg2 ;
28554 wxDouble arg3 ;
28555 void *argp1 = 0 ;
28556 int res1 = 0 ;
28557 double val2 ;
28558 int ecode2 = 0 ;
28559 double val3 ;
28560 int ecode3 = 0 ;
28561 PyObject * obj0 = 0 ;
28562 PyObject * obj1 = 0 ;
28563 PyObject * obj2 = 0 ;
28564 char * kwnames[] = {
28565 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28566 };
28567
28568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28570 if (!SWIG_IsOK(res1)) {
28571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28572 }
28573 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28574 ecode2 = SWIG_AsVal_double(obj1, &val2);
28575 if (!SWIG_IsOK(ecode2)) {
28576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28577 }
28578 arg2 = static_cast< wxDouble >(val2);
28579 ecode3 = SWIG_AsVal_double(obj2, &val3);
28580 if (!SWIG_IsOK(ecode3)) {
28581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28582 }
28583 arg3 = static_cast< wxDouble >(val3);
28584 {
72ef6efb 28585 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28586 if (PyErr_Occurred()) SWIG_fail;
28587 }
28588 resultobj = SWIG_Py_Void();
28589 return resultobj;
28590fail:
28591 return NULL;
28592}
28593
28594
28595SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28596 PyObject *resultobj = 0;
28597 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28598 wxDouble arg2 ;
28599 void *argp1 = 0 ;
28600 int res1 = 0 ;
28601 double val2 ;
28602 int ecode2 = 0 ;
28603 PyObject * obj0 = 0 ;
28604 PyObject * obj1 = 0 ;
28605 char * kwnames[] = {
28606 (char *) "self",(char *) "angle", NULL
28607 };
28608
28609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28611 if (!SWIG_IsOK(res1)) {
28612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28613 }
28614 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28615 ecode2 = SWIG_AsVal_double(obj1, &val2);
28616 if (!SWIG_IsOK(ecode2)) {
28617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28618 }
28619 arg2 = static_cast< wxDouble >(val2);
28620 {
72ef6efb 28621 (arg1)->Rotate(arg2);
72ef6efb
RD
28622 if (PyErr_Occurred()) SWIG_fail;
28623 }
28624 resultobj = SWIG_Py_Void();
28625 return resultobj;
28626fail:
28627 return NULL;
28628}
28629
28630
5c8c7dd3
RD
28631SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28632 PyObject *resultobj = 0;
28633 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28634 wxGraphicsMatrix *arg2 = 0 ;
28635 void *argp1 = 0 ;
28636 int res1 = 0 ;
28637 void *argp2 = 0 ;
28638 int res2 = 0 ;
28639 PyObject * obj0 = 0 ;
28640 PyObject * obj1 = 0 ;
28641 char * kwnames[] = {
28642 (char *) "self",(char *) "matrix", NULL
28643 };
28644
28645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28647 if (!SWIG_IsOK(res1)) {
28648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28649 }
28650 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28652 if (!SWIG_IsOK(res2)) {
28653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28654 }
28655 if (!argp2) {
28656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28657 }
28658 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28659 {
28660 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28661 if (PyErr_Occurred()) SWIG_fail;
28662 }
28663 resultobj = SWIG_Py_Void();
28664 return resultobj;
28665fail:
28666 return NULL;
28667}
28668
28669
28670SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28671 PyObject *resultobj = 0;
28672 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28673 wxGraphicsMatrix *arg2 = 0 ;
28674 void *argp1 = 0 ;
28675 int res1 = 0 ;
28676 void *argp2 = 0 ;
28677 int res2 = 0 ;
28678 PyObject * obj0 = 0 ;
28679 PyObject * obj1 = 0 ;
28680 char * kwnames[] = {
28681 (char *) "self",(char *) "matrix", NULL
28682 };
28683
28684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28686 if (!SWIG_IsOK(res1)) {
28687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28688 }
28689 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28691 if (!SWIG_IsOK(res2)) {
28692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28693 }
28694 if (!argp2) {
28695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28696 }
28697 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28698 {
28699 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28700 if (PyErr_Occurred()) SWIG_fail;
28701 }
28702 resultobj = SWIG_Py_Void();
28703 return resultobj;
28704fail:
28705 return NULL;
28706}
28707
28708
28709SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28710 PyObject *resultobj = 0;
28711 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28712 wxGraphicsMatrix result;
28713 void *argp1 = 0 ;
28714 int res1 = 0 ;
28715 PyObject *swig_obj[1] ;
28716
28717 if (!args) SWIG_fail;
28718 swig_obj[0] = args;
28719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28720 if (!SWIG_IsOK(res1)) {
28721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28722 }
28723 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28724 {
28725 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28726 if (PyErr_Occurred()) SWIG_fail;
28727 }
28728 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28729 return resultobj;
28730fail:
28731 return NULL;
28732}
28733
28734
70d7cb34
RD
28735SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28736 PyObject *resultobj = 0;
28737 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28738 wxGraphicsPen *arg2 = 0 ;
28739 void *argp1 = 0 ;
28740 int res1 = 0 ;
28741 void *argp2 = 0 ;
28742 int res2 = 0 ;
28743
28744 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28746 if (!SWIG_IsOK(res1)) {
28747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28748 }
28749 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28750 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28751 if (!SWIG_IsOK(res2)) {
28752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28753 }
28754 if (!argp2) {
28755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28756 }
28757 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28758 {
28759 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28760 if (PyErr_Occurred()) SWIG_fail;
28761 }
28762 resultobj = SWIG_Py_Void();
28763 return resultobj;
28764fail:
28765 return NULL;
28766}
28767
28768
28769SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28770 PyObject *resultobj = 0;
28771 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28772 wxPen *arg2 = 0 ;
28773 void *argp1 = 0 ;
28774 int res1 = 0 ;
28775 void *argp2 = 0 ;
28776 int res2 = 0 ;
72ef6efb 28777
70d7cb34
RD
28778 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28780 if (!SWIG_IsOK(res1)) {
28781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28782 }
28783 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28784 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28785 if (!SWIG_IsOK(res2)) {
28786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28787 }
28788 if (!argp2) {
28789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28790 }
28791 arg2 = reinterpret_cast< wxPen * >(argp2);
28792 {
72ef6efb 28793 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28794 if (PyErr_Occurred()) SWIG_fail;
28795 }
28796 resultobj = SWIG_Py_Void();
28797 return resultobj;
28798fail:
28799 return NULL;
28800}
28801
28802
70d7cb34
RD
28803SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28804 int argc;
28805 PyObject *argv[3];
28806
28807 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28808 --argc;
28809 if (argc == 2) {
28810 int _v = 0;
28811 {
28812 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28813 _v = SWIG_CheckState(res);
28814 }
28815 if (!_v) goto check_1;
28816 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28817 }
28818check_1:
28819
28820 if (argc == 2) {
28821 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28822 }
28823
28824fail:
28825 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28826 return NULL;
28827}
28828
28829
28830SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28831 PyObject *resultobj = 0;
28832 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28833 wxGraphicsBrush *arg2 = 0 ;
28834 void *argp1 = 0 ;
28835 int res1 = 0 ;
28836 void *argp2 = 0 ;
28837 int res2 = 0 ;
28838
28839 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28841 if (!SWIG_IsOK(res1)) {
28842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28843 }
28844 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28845 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28846 if (!SWIG_IsOK(res2)) {
28847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28848 }
28849 if (!argp2) {
28850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28851 }
28852 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28853 {
28854 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28855 if (PyErr_Occurred()) SWIG_fail;
28856 }
28857 resultobj = SWIG_Py_Void();
28858 return resultobj;
28859fail:
28860 return NULL;
28861}
28862
28863
28864SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28865 PyObject *resultobj = 0;
28866 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28867 wxBrush *arg2 = 0 ;
28868 void *argp1 = 0 ;
28869 int res1 = 0 ;
28870 void *argp2 = 0 ;
28871 int res2 = 0 ;
72ef6efb 28872
70d7cb34
RD
28873 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28875 if (!SWIG_IsOK(res1)) {
28876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28877 }
28878 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28879 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28880 if (!SWIG_IsOK(res2)) {
28881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28882 }
28883 if (!argp2) {
28884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28885 }
28886 arg2 = reinterpret_cast< wxBrush * >(argp2);
28887 {
72ef6efb 28888 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28889 if (PyErr_Occurred()) SWIG_fail;
28890 }
28891 resultobj = SWIG_Py_Void();
28892 return resultobj;
28893fail:
28894 return NULL;
28895}
28896
28897
70d7cb34
RD
28898SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28899 int argc;
28900 PyObject *argv[3];
72ef6efb 28901
70d7cb34
RD
28902 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28903 --argc;
28904 if (argc == 2) {
28905 int _v = 0;
28906 {
28907 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28908 _v = SWIG_CheckState(res);
28909 }
28910 if (!_v) goto check_1;
28911 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28912 }
70d7cb34
RD
28913check_1:
28914
28915 if (argc == 2) {
28916 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28917 }
70d7cb34 28918
72ef6efb 28919fail:
70d7cb34 28920 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28921 return NULL;
28922}
28923
28924
70d7cb34 28925SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28926 PyObject *resultobj = 0;
28927 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28928 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28929 void *argp1 = 0 ;
28930 int res1 = 0 ;
70d7cb34
RD
28931 void *argp2 = 0 ;
28932 int res2 = 0 ;
72ef6efb 28933
70d7cb34
RD
28934 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28936 if (!SWIG_IsOK(res1)) {
70d7cb34 28937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28938 }
28939 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28940 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28941 if (!SWIG_IsOK(res2)) {
28942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28943 }
70d7cb34
RD
28944 if (!argp2) {
28945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28946 }
70d7cb34 28947 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28948 {
70d7cb34 28949 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28950 if (PyErr_Occurred()) SWIG_fail;
28951 }
28952 resultobj = SWIG_Py_Void();
28953 return resultobj;
28954fail:
28955 return NULL;
28956}
28957
28958
70d7cb34 28959SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28960 PyObject *resultobj = 0;
28961 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28962 wxFont *arg2 = 0 ;
70d7cb34
RD
28963 wxColour const &arg3_defvalue = *wxBLACK ;
28964 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28965 void *argp1 = 0 ;
28966 int res1 = 0 ;
28967 void *argp2 = 0 ;
28968 int res2 = 0 ;
70d7cb34 28969 wxColour temp3 ;
72ef6efb 28970
70d7cb34
RD
28971 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28973 if (!SWIG_IsOK(res1)) {
28974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28975 }
28976 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28977 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28978 if (!SWIG_IsOK(res2)) {
28979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28980 }
28981 if (!argp2) {
28982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28983 }
28984 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28985 if (swig_obj[2]) {
28986 {
28987 arg3 = &temp3;
28988 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28989 }
28990 }
72ef6efb 28991 {
70d7cb34 28992 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28993 if (PyErr_Occurred()) SWIG_fail;
28994 }
28995 resultobj = SWIG_Py_Void();
28996 return resultobj;
28997fail:
28998 return NULL;
28999}
29000
29001
70d7cb34
RD
29002SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29003 int argc;
29004 PyObject *argv[4];
72ef6efb 29005
70d7cb34
RD
29006 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29007 --argc;
29008 if (argc == 2) {
29009 int _v = 0;
29010 {
29011 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29012 _v = SWIG_CheckState(res);
29013 }
29014 if (!_v) goto check_1;
29015 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29016 }
70d7cb34
RD
29017check_1:
29018
29019 if ((argc >= 2) && (argc <= 3)) {
29020 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29021 }
70d7cb34 29022
72ef6efb 29023fail:
70d7cb34 29024 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29025 return NULL;
29026}
29027
29028
29029SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29030 PyObject *resultobj = 0;
29031 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29032 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29033 void *argp1 = 0 ;
29034 int res1 = 0 ;
29035 void *argp2 = 0 ;
29036 int res2 = 0 ;
29037 PyObject * obj0 = 0 ;
29038 PyObject * obj1 = 0 ;
29039 char * kwnames[] = {
29040 (char *) "self",(char *) "path", NULL
29041 };
29042
29043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29045 if (!SWIG_IsOK(res1)) {
29046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29047 }
29048 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29049 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29050 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29052 }
29053 if (!argp2) {
29054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29055 }
29056 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29057 {
5c8c7dd3 29058 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
29059 if (PyErr_Occurred()) SWIG_fail;
29060 }
29061 resultobj = SWIG_Py_Void();
29062 return resultobj;
29063fail:
29064 return NULL;
29065}
29066
29067
29068SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29069 PyObject *resultobj = 0;
29070 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29071 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29072 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29073 void *argp1 = 0 ;
29074 int res1 = 0 ;
29075 void *argp2 = 0 ;
29076 int res2 = 0 ;
29077 int val3 ;
29078 int ecode3 = 0 ;
29079 PyObject * obj0 = 0 ;
29080 PyObject * obj1 = 0 ;
29081 PyObject * obj2 = 0 ;
29082 char * kwnames[] = {
29083 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29084 };
29085
29086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29088 if (!SWIG_IsOK(res1)) {
29089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29090 }
29091 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29093 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29095 }
29096 if (!argp2) {
29097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29098 }
29099 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29100 if (obj2) {
29101 ecode3 = SWIG_AsVal_int(obj2, &val3);
29102 if (!SWIG_IsOK(ecode3)) {
29103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29104 }
29105 arg3 = static_cast< int >(val3);
29106 }
29107 {
5c8c7dd3 29108 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29109 if (PyErr_Occurred()) SWIG_fail;
29110 }
29111 resultobj = SWIG_Py_Void();
29112 return resultobj;
29113fail:
29114 return NULL;
29115}
29116
29117
29118SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29119 PyObject *resultobj = 0;
29120 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29121 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29122 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29123 void *argp1 = 0 ;
29124 int res1 = 0 ;
29125 void *argp2 = 0 ;
29126 int res2 = 0 ;
29127 int val3 ;
29128 int ecode3 = 0 ;
29129 PyObject * obj0 = 0 ;
29130 PyObject * obj1 = 0 ;
29131 PyObject * obj2 = 0 ;
29132 char * kwnames[] = {
29133 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29134 };
29135
29136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29138 if (!SWIG_IsOK(res1)) {
29139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29140 }
29141 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29142 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29143 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29145 }
29146 if (!argp2) {
29147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29148 }
29149 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29150 if (obj2) {
29151 ecode3 = SWIG_AsVal_int(obj2, &val3);
29152 if (!SWIG_IsOK(ecode3)) {
29153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29154 }
29155 arg3 = static_cast< int >(val3);
29156 }
29157 {
5c8c7dd3 29158 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29159 if (PyErr_Occurred()) SWIG_fail;
29160 }
29161 resultobj = SWIG_Py_Void();
29162 return resultobj;
29163fail:
29164 return NULL;
29165}
29166
29167
b39fe951 29168SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29169 PyObject *resultobj = 0;
29170 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29171 wxString *arg2 = 0 ;
29172 wxDouble arg3 ;
29173 wxDouble arg4 ;
f89238b9
RD
29174 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29175 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
29176 void *argp1 = 0 ;
29177 int res1 = 0 ;
29178 bool temp2 = false ;
29179 double val3 ;
29180 int ecode3 = 0 ;
29181 double val4 ;
29182 int ecode4 = 0 ;
f89238b9
RD
29183 void *argp5 = 0 ;
29184 int res5 = 0 ;
b39fe951
RD
29185 PyObject * obj0 = 0 ;
29186 PyObject * obj1 = 0 ;
29187 PyObject * obj2 = 0 ;
29188 PyObject * obj3 = 0 ;
f89238b9 29189 PyObject * obj4 = 0 ;
b39fe951 29190 char * kwnames[] = {
f89238b9 29191 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 29192 };
72ef6efb 29193
f89238b9 29194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 29195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29196 if (!SWIG_IsOK(res1)) {
29197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29198 }
29199 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29200 {
b39fe951 29201 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29202 if (arg2 == NULL) SWIG_fail;
29203 temp2 = true;
29204 }
b39fe951 29205 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29206 if (!SWIG_IsOK(ecode3)) {
29207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29208 }
29209 arg3 = static_cast< wxDouble >(val3);
b39fe951 29210 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29211 if (!SWIG_IsOK(ecode4)) {
29212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29213 }
29214 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
29215 if (obj4) {
29216 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29217 if (!SWIG_IsOK(res5)) {
29218 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29219 }
29220 if (!argp5) {
29221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29222 }
29223 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29224 }
72ef6efb 29225 {
f89238b9 29226 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
29227 if (PyErr_Occurred()) SWIG_fail;
29228 }
29229 resultobj = SWIG_Py_Void();
29230 {
29231 if (temp2)
29232 delete arg2;
29233 }
29234 return resultobj;
29235fail:
29236 {
29237 if (temp2)
29238 delete arg2;
29239 }
29240 return NULL;
29241}
29242
29243
b39fe951 29244SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29245 PyObject *resultobj = 0;
29246 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29247 wxString *arg2 = 0 ;
29248 wxDouble arg3 ;
29249 wxDouble arg4 ;
29250 wxDouble arg5 ;
f89238b9
RD
29251 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29252 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
29253 void *argp1 = 0 ;
29254 int res1 = 0 ;
29255 bool temp2 = false ;
29256 double val3 ;
29257 int ecode3 = 0 ;
29258 double val4 ;
29259 int ecode4 = 0 ;
29260 double val5 ;
29261 int ecode5 = 0 ;
f89238b9
RD
29262 void *argp6 = 0 ;
29263 int res6 = 0 ;
b39fe951
RD
29264 PyObject * obj0 = 0 ;
29265 PyObject * obj1 = 0 ;
29266 PyObject * obj2 = 0 ;
29267 PyObject * obj3 = 0 ;
29268 PyObject * obj4 = 0 ;
f89238b9 29269 PyObject * obj5 = 0 ;
b39fe951 29270 char * kwnames[] = {
f89238b9 29271 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 29272 };
72ef6efb 29273
f89238b9 29274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 29275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29276 if (!SWIG_IsOK(res1)) {
b39fe951 29277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29278 }
29279 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29280 {
b39fe951 29281 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29282 if (arg2 == NULL) SWIG_fail;
29283 temp2 = true;
29284 }
b39fe951 29285 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29286 if (!SWIG_IsOK(ecode3)) {
b39fe951 29287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29288 }
29289 arg3 = static_cast< wxDouble >(val3);
b39fe951 29290 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29291 if (!SWIG_IsOK(ecode4)) {
b39fe951 29292 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29293 }
29294 arg4 = static_cast< wxDouble >(val4);
b39fe951 29295 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29296 if (!SWIG_IsOK(ecode5)) {
b39fe951 29297 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29298 }
29299 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
29300 if (obj5) {
29301 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29302 if (!SWIG_IsOK(res6)) {
29303 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29304 }
29305 if (!argp6) {
29306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29307 }
29308 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29309 }
72ef6efb 29310 {
f89238b9 29311 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
29312 if (PyErr_Occurred()) SWIG_fail;
29313 }
29314 resultobj = SWIG_Py_Void();
29315 {
29316 if (temp2)
29317 delete arg2;
29318 }
29319 return resultobj;
29320fail:
29321 {
29322 if (temp2)
29323 delete arg2;
29324 }
29325 return NULL;
29326}
29327
29328
be68621e 29329SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29330 PyObject *resultobj = 0;
29331 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29332 wxString *arg2 = 0 ;
29333 wxDouble *arg3 = (wxDouble *) 0 ;
29334 wxDouble *arg4 = (wxDouble *) 0 ;
29335 wxDouble *arg5 = (wxDouble *) 0 ;
29336 wxDouble *arg6 = (wxDouble *) 0 ;
29337 void *argp1 = 0 ;
29338 int res1 = 0 ;
29339 bool temp2 = false ;
29340 wxDouble temp3 ;
29341 int res3 = SWIG_TMPOBJ ;
29342 wxDouble temp4 ;
29343 int res4 = SWIG_TMPOBJ ;
29344 wxDouble temp5 ;
29345 int res5 = SWIG_TMPOBJ ;
29346 wxDouble temp6 ;
29347 int res6 = SWIG_TMPOBJ ;
29348 PyObject * obj0 = 0 ;
29349 PyObject * obj1 = 0 ;
29350 char * kwnames[] = {
29351 (char *) "self",(char *) "text", NULL
29352 };
29353
29354 arg3 = &temp3;
29355 arg4 = &temp4;
29356 arg5 = &temp5;
29357 arg6 = &temp6;
be68621e 29358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29360 if (!SWIG_IsOK(res1)) {
be68621e 29361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29362 }
29363 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29364 {
29365 arg2 = wxString_in_helper(obj1);
29366 if (arg2 == NULL) SWIG_fail;
29367 temp2 = true;
29368 }
29369 {
72ef6efb 29370 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29371 if (PyErr_Occurred()) SWIG_fail;
29372 }
29373 resultobj = SWIG_Py_Void();
29374 if (SWIG_IsTmpObj(res3)) {
29375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29376 } else {
29377 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29379 }
29380 if (SWIG_IsTmpObj(res4)) {
29381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29382 } else {
29383 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29384 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29385 }
29386 if (SWIG_IsTmpObj(res5)) {
29387 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29388 } else {
29389 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29390 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29391 }
29392 if (SWIG_IsTmpObj(res6)) {
29393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29394 } else {
29395 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29397 }
29398 {
29399 if (temp2)
29400 delete arg2;
29401 }
29402 return resultobj;
29403fail:
29404 {
29405 if (temp2)
29406 delete arg2;
29407 }
29408 return NULL;
29409}
29410
29411
be68621e
RD
29412SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29413 PyObject *resultobj = 0;
29414 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29415 wxString *arg2 = 0 ;
29416 PyObject *result = 0 ;
29417 void *argp1 = 0 ;
29418 int res1 = 0 ;
29419 bool temp2 = false ;
29420 PyObject * obj0 = 0 ;
29421 PyObject * obj1 = 0 ;
29422 char * kwnames[] = {
29423 (char *) "self",(char *) "text", NULL
29424 };
29425
29426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29428 if (!SWIG_IsOK(res1)) {
29429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29430 }
29431 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29432 {
29433 arg2 = wxString_in_helper(obj1);
29434 if (arg2 == NULL) SWIG_fail;
29435 temp2 = true;
29436 }
29437 {
29438 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29439 if (PyErr_Occurred()) SWIG_fail;
29440 }
29441 resultobj = result;
29442 {
29443 if (temp2)
29444 delete arg2;
29445 }
29446 return resultobj;
29447fail:
29448 {
29449 if (temp2)
29450 delete arg2;
29451 }
29452 return NULL;
29453}
29454
29455
72ef6efb
RD
29456SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29457 PyObject *resultobj = 0;
29458 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29459 wxString *arg2 = 0 ;
b39fe951 29460 wxArrayDouble result;
72ef6efb
RD
29461 void *argp1 = 0 ;
29462 int res1 = 0 ;
29463 bool temp2 = false ;
72ef6efb
RD
29464 PyObject * obj0 = 0 ;
29465 PyObject * obj1 = 0 ;
72ef6efb 29466 char * kwnames[] = {
b39fe951 29467 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29468 };
29469
b39fe951 29470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29472 if (!SWIG_IsOK(res1)) {
b39fe951 29473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29474 }
29475 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29476 {
29477 arg2 = wxString_in_helper(obj1);
29478 if (arg2 == NULL) SWIG_fail;
29479 temp2 = true;
29480 }
72ef6efb 29481 {
b39fe951 29482 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29483 if (PyErr_Occurred()) SWIG_fail;
29484 }
b39fe951
RD
29485 {
29486 resultobj = wxArrayDouble2PyList_helper(result);
29487 }
72ef6efb
RD
29488 {
29489 if (temp2)
29490 delete arg2;
29491 }
29492 return resultobj;
29493fail:
29494 {
29495 if (temp2)
29496 delete arg2;
29497 }
29498 return NULL;
29499}
29500
29501
29502SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29503 PyObject *resultobj = 0;
29504 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29505 wxBitmap *arg2 = 0 ;
29506 wxDouble arg3 ;
29507 wxDouble arg4 ;
29508 wxDouble arg5 ;
29509 wxDouble arg6 ;
29510 void *argp1 = 0 ;
29511 int res1 = 0 ;
29512 void *argp2 = 0 ;
29513 int res2 = 0 ;
29514 double val3 ;
29515 int ecode3 = 0 ;
29516 double val4 ;
29517 int ecode4 = 0 ;
29518 double val5 ;
29519 int ecode5 = 0 ;
29520 double val6 ;
29521 int ecode6 = 0 ;
29522 PyObject * obj0 = 0 ;
29523 PyObject * obj1 = 0 ;
29524 PyObject * obj2 = 0 ;
29525 PyObject * obj3 = 0 ;
29526 PyObject * obj4 = 0 ;
29527 PyObject * obj5 = 0 ;
29528 char * kwnames[] = {
29529 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29530 };
29531
29532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29534 if (!SWIG_IsOK(res1)) {
29535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29536 }
29537 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29539 if (!SWIG_IsOK(res2)) {
29540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29541 }
29542 if (!argp2) {
29543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29544 }
29545 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29546 ecode3 = SWIG_AsVal_double(obj2, &val3);
29547 if (!SWIG_IsOK(ecode3)) {
29548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29549 }
29550 arg3 = static_cast< wxDouble >(val3);
29551 ecode4 = SWIG_AsVal_double(obj3, &val4);
29552 if (!SWIG_IsOK(ecode4)) {
29553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29554 }
29555 arg4 = static_cast< wxDouble >(val4);
29556 ecode5 = SWIG_AsVal_double(obj4, &val5);
29557 if (!SWIG_IsOK(ecode5)) {
29558 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29559 }
29560 arg5 = static_cast< wxDouble >(val5);
29561 ecode6 = SWIG_AsVal_double(obj5, &val6);
29562 if (!SWIG_IsOK(ecode6)) {
29563 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29564 }
29565 arg6 = static_cast< wxDouble >(val6);
29566 {
72ef6efb 29567 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29568 if (PyErr_Occurred()) SWIG_fail;
29569 }
29570 resultobj = SWIG_Py_Void();
29571 return resultobj;
29572fail:
29573 return NULL;
29574}
29575
29576
29577SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29578 PyObject *resultobj = 0;
29579 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29580 wxIcon *arg2 = 0 ;
29581 wxDouble arg3 ;
29582 wxDouble arg4 ;
29583 wxDouble arg5 ;
29584 wxDouble arg6 ;
29585 void *argp1 = 0 ;
29586 int res1 = 0 ;
29587 void *argp2 = 0 ;
29588 int res2 = 0 ;
29589 double val3 ;
29590 int ecode3 = 0 ;
29591 double val4 ;
29592 int ecode4 = 0 ;
29593 double val5 ;
29594 int ecode5 = 0 ;
70d7cb34
RD
29595 double val6 ;
29596 int ecode6 = 0 ;
29597 PyObject * obj0 = 0 ;
29598 PyObject * obj1 = 0 ;
29599 PyObject * obj2 = 0 ;
29600 PyObject * obj3 = 0 ;
29601 PyObject * obj4 = 0 ;
29602 PyObject * obj5 = 0 ;
29603 char * kwnames[] = {
29604 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29605 };
29606
29607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29609 if (!SWIG_IsOK(res1)) {
29610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29611 }
29612 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29614 if (!SWIG_IsOK(res2)) {
29615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29616 }
29617 if (!argp2) {
29618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29619 }
29620 arg2 = reinterpret_cast< wxIcon * >(argp2);
29621 ecode3 = SWIG_AsVal_double(obj2, &val3);
29622 if (!SWIG_IsOK(ecode3)) {
29623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29624 }
29625 arg3 = static_cast< wxDouble >(val3);
29626 ecode4 = SWIG_AsVal_double(obj3, &val4);
29627 if (!SWIG_IsOK(ecode4)) {
29628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29629 }
29630 arg4 = static_cast< wxDouble >(val4);
29631 ecode5 = SWIG_AsVal_double(obj4, &val5);
29632 if (!SWIG_IsOK(ecode5)) {
29633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29634 }
29635 arg5 = static_cast< wxDouble >(val5);
29636 ecode6 = SWIG_AsVal_double(obj5, &val6);
29637 if (!SWIG_IsOK(ecode6)) {
29638 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29639 }
29640 arg6 = static_cast< wxDouble >(val6);
29641 {
29642 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29643 if (PyErr_Occurred()) SWIG_fail;
29644 }
29645 resultobj = SWIG_Py_Void();
29646 return resultobj;
29647fail:
29648 return NULL;
29649}
29650
29651
29652SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29653 PyObject *resultobj = 0;
29654 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29655 wxDouble arg2 ;
29656 wxDouble arg3 ;
29657 wxDouble arg4 ;
29658 wxDouble arg5 ;
29659 void *argp1 = 0 ;
29660 int res1 = 0 ;
29661 double val2 ;
29662 int ecode2 = 0 ;
29663 double val3 ;
29664 int ecode3 = 0 ;
29665 double val4 ;
29666 int ecode4 = 0 ;
29667 double val5 ;
29668 int ecode5 = 0 ;
29669 PyObject * obj0 = 0 ;
29670 PyObject * obj1 = 0 ;
29671 PyObject * obj2 = 0 ;
29672 PyObject * obj3 = 0 ;
29673 PyObject * obj4 = 0 ;
29674 char * kwnames[] = {
29675 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29676 };
29677
29678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29680 if (!SWIG_IsOK(res1)) {
29681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29682 }
29683 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29684 ecode2 = SWIG_AsVal_double(obj1, &val2);
29685 if (!SWIG_IsOK(ecode2)) {
29686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29687 }
29688 arg2 = static_cast< wxDouble >(val2);
29689 ecode3 = SWIG_AsVal_double(obj2, &val3);
29690 if (!SWIG_IsOK(ecode3)) {
29691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29692 }
29693 arg3 = static_cast< wxDouble >(val3);
29694 ecode4 = SWIG_AsVal_double(obj3, &val4);
29695 if (!SWIG_IsOK(ecode4)) {
29696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29697 }
29698 arg4 = static_cast< wxDouble >(val4);
29699 ecode5 = SWIG_AsVal_double(obj4, &val5);
29700 if (!SWIG_IsOK(ecode5)) {
29701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29702 }
29703 arg5 = static_cast< wxDouble >(val5);
29704 {
29705 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29706 if (PyErr_Occurred()) SWIG_fail;
29707 }
29708 resultobj = SWIG_Py_Void();
29709 return resultobj;
29710fail:
29711 return NULL;
29712}
29713
29714
29715SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29716 PyObject *resultobj = 0;
29717 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29718 size_t arg2 ;
29719 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29720 void *argp1 = 0 ;
29721 int res1 = 0 ;
29722 PyObject * obj0 = 0 ;
29723 PyObject * obj1 = 0 ;
29724 char * kwnames[] = {
29725 (char *) "self",(char *) "points", NULL
29726 };
29727
29728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29730 if (!SWIG_IsOK(res1)) {
29731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29732 }
29733 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29734 {
29735 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29736 if (arg3 == NULL) SWIG_fail;
29737 }
29738 {
29739 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29740 if (PyErr_Occurred()) SWIG_fail;
29741 }
29742 resultobj = SWIG_Py_Void();
29743 {
29744 if (arg3) delete [] arg3;
29745 }
29746 return resultobj;
29747fail:
29748 {
29749 if (arg3) delete [] arg3;
29750 }
29751 return NULL;
29752}
29753
29754
29755SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29756 PyObject *resultobj = 0;
29757 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29758 PyObject *arg2 = (PyObject *) 0 ;
29759 PyObject *arg3 = (PyObject *) 0 ;
29760 void *argp1 = 0 ;
29761 int res1 = 0 ;
29762 PyObject * obj0 = 0 ;
29763 PyObject * obj1 = 0 ;
29764 PyObject * obj2 = 0 ;
29765 char * kwnames[] = {
29766 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29767 };
29768
29769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29771 if (!SWIG_IsOK(res1)) {
29772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29773 }
29774 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29775 arg2 = obj1;
29776 arg3 = obj2;
29777 {
29778 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29779 if (PyErr_Occurred()) SWIG_fail;
29780 }
29781 resultobj = SWIG_Py_Void();
29782 return resultobj;
29783fail:
29784 return NULL;
29785}
29786
29787
29788SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29789 PyObject *resultobj = 0;
29790 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29791 size_t arg2 ;
29792 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 29793 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29794 void *argp1 = 0 ;
29795 int res1 = 0 ;
29796 int val4 ;
29797 int ecode4 = 0 ;
29798 PyObject * obj0 = 0 ;
29799 PyObject * obj1 = 0 ;
29800 PyObject * obj2 = 0 ;
29801 char * kwnames[] = {
29802 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29803 };
29804
29805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29807 if (!SWIG_IsOK(res1)) {
29808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29809 }
29810 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29811 {
29812 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29813 if (arg3 == NULL) SWIG_fail;
29814 }
29815 if (obj2) {
29816 ecode4 = SWIG_AsVal_int(obj2, &val4);
29817 if (!SWIG_IsOK(ecode4)) {
29818 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29819 }
29820 arg4 = static_cast< int >(val4);
29821 }
29822 {
29823 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 }
29826 resultobj = SWIG_Py_Void();
29827 {
29828 if (arg3) delete [] arg3;
29829 }
29830 return resultobj;
29831fail:
29832 {
29833 if (arg3) delete [] arg3;
29834 }
29835 return NULL;
29836}
29837
29838
29839SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29840 PyObject *resultobj = 0;
29841 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29842 wxDouble arg2 ;
29843 wxDouble arg3 ;
29844 wxDouble arg4 ;
29845 wxDouble arg5 ;
29846 void *argp1 = 0 ;
29847 int res1 = 0 ;
29848 double val2 ;
29849 int ecode2 = 0 ;
29850 double val3 ;
29851 int ecode3 = 0 ;
29852 double val4 ;
29853 int ecode4 = 0 ;
29854 double val5 ;
29855 int ecode5 = 0 ;
29856 PyObject * obj0 = 0 ;
29857 PyObject * obj1 = 0 ;
29858 PyObject * obj2 = 0 ;
29859 PyObject * obj3 = 0 ;
29860 PyObject * obj4 = 0 ;
29861 char * kwnames[] = {
29862 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29863 };
29864
29865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29867 if (!SWIG_IsOK(res1)) {
29868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29869 }
29870 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29871 ecode2 = SWIG_AsVal_double(obj1, &val2);
29872 if (!SWIG_IsOK(ecode2)) {
29873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29874 }
29875 arg2 = static_cast< wxDouble >(val2);
29876 ecode3 = SWIG_AsVal_double(obj2, &val3);
29877 if (!SWIG_IsOK(ecode3)) {
29878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29879 }
29880 arg3 = static_cast< wxDouble >(val3);
29881 ecode4 = SWIG_AsVal_double(obj3, &val4);
29882 if (!SWIG_IsOK(ecode4)) {
29883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29884 }
29885 arg4 = static_cast< wxDouble >(val4);
29886 ecode5 = SWIG_AsVal_double(obj4, &val5);
29887 if (!SWIG_IsOK(ecode5)) {
29888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29889 }
29890 arg5 = static_cast< wxDouble >(val5);
29891 {
29892 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29893 if (PyErr_Occurred()) SWIG_fail;
29894 }
29895 resultobj = SWIG_Py_Void();
29896 return resultobj;
29897fail:
29898 return NULL;
29899}
29900
29901
29902SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29903 PyObject *resultobj = 0;
29904 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29905 wxDouble arg2 ;
29906 wxDouble arg3 ;
29907 wxDouble arg4 ;
29908 wxDouble arg5 ;
29909 void *argp1 = 0 ;
29910 int res1 = 0 ;
29911 double val2 ;
29912 int ecode2 = 0 ;
29913 double val3 ;
29914 int ecode3 = 0 ;
29915 double val4 ;
29916 int ecode4 = 0 ;
29917 double val5 ;
29918 int ecode5 = 0 ;
72ef6efb
RD
29919 PyObject * obj0 = 0 ;
29920 PyObject * obj1 = 0 ;
29921 PyObject * obj2 = 0 ;
29922 PyObject * obj3 = 0 ;
29923 PyObject * obj4 = 0 ;
72ef6efb 29924 char * kwnames[] = {
70d7cb34 29925 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29926 };
29927
70d7cb34 29928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29930 if (!SWIG_IsOK(res1)) {
70d7cb34 29931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29932 }
29933 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29934 ecode2 = SWIG_AsVal_double(obj1, &val2);
29935 if (!SWIG_IsOK(ecode2)) {
29936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29937 }
29938 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29939 ecode3 = SWIG_AsVal_double(obj2, &val3);
29940 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29942 }
29943 arg3 = static_cast< wxDouble >(val3);
29944 ecode4 = SWIG_AsVal_double(obj3, &val4);
29945 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29947 }
29948 arg4 = static_cast< wxDouble >(val4);
29949 ecode5 = SWIG_AsVal_double(obj4, &val5);
29950 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29952 }
29953 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29954 {
70d7cb34 29955 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29956 if (PyErr_Occurred()) SWIG_fail;
29957 }
29958 resultobj = SWIG_Py_Void();
29959 return resultobj;
29960fail:
29961 return NULL;
29962}
29963
29964
70d7cb34 29965SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29966 PyObject *resultobj = 0;
29967 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29968 wxDouble arg2 ;
29969 wxDouble arg3 ;
29970 wxDouble arg4 ;
29971 wxDouble arg5 ;
70d7cb34 29972 wxDouble arg6 ;
72ef6efb
RD
29973 void *argp1 = 0 ;
29974 int res1 = 0 ;
29975 double val2 ;
29976 int ecode2 = 0 ;
29977 double val3 ;
29978 int ecode3 = 0 ;
29979 double val4 ;
29980 int ecode4 = 0 ;
29981 double val5 ;
29982 int ecode5 = 0 ;
70d7cb34
RD
29983 double val6 ;
29984 int ecode6 = 0 ;
72ef6efb
RD
29985 PyObject * obj0 = 0 ;
29986 PyObject * obj1 = 0 ;
29987 PyObject * obj2 = 0 ;
29988 PyObject * obj3 = 0 ;
29989 PyObject * obj4 = 0 ;
70d7cb34 29990 PyObject * obj5 = 0 ;
72ef6efb 29991 char * kwnames[] = {
70d7cb34 29992 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29993 };
29994
70d7cb34 29995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29997 if (!SWIG_IsOK(res1)) {
70d7cb34 29998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29999 }
30000 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30001 ecode2 = SWIG_AsVal_double(obj1, &val2);
30002 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30004 }
30005 arg2 = static_cast< wxDouble >(val2);
30006 ecode3 = SWIG_AsVal_double(obj2, &val3);
30007 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30009 }
30010 arg3 = static_cast< wxDouble >(val3);
30011 ecode4 = SWIG_AsVal_double(obj3, &val4);
30012 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30014 }
30015 arg4 = static_cast< wxDouble >(val4);
30016 ecode5 = SWIG_AsVal_double(obj4, &val5);
30017 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30018 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30019 }
30020 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30021 ecode6 = SWIG_AsVal_double(obj5, &val6);
30022 if (!SWIG_IsOK(ecode6)) {
30023 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30024 }
30025 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30026 {
70d7cb34 30027 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30028 if (PyErr_Occurred()) SWIG_fail;
30029 }
30030 resultobj = SWIG_Py_Void();
30031 return resultobj;
30032fail:
30033 return NULL;
30034}
30035
30036
70d7cb34 30037SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30038 PyObject *resultobj = 0;
30039 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30040 bool result;
72ef6efb
RD
30041 void *argp1 = 0 ;
30042 int res1 = 0 ;
70d7cb34 30043 PyObject *swig_obj[1] ;
72ef6efb 30044
70d7cb34
RD
30045 if (!args) SWIG_fail;
30046 swig_obj[0] = args;
30047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30048 if (!SWIG_IsOK(res1)) {
70d7cb34 30049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30050 }
30051 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30052 {
70d7cb34
RD
30053 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30054 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30055 }
72ef6efb 30056 {
70d7cb34
RD
30057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30058 }
30059 return resultobj;
30060fail:
30061 return NULL;
30062}
30063
30064
30065SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30066 PyObject *obj;
30067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30068 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30069 return SWIG_Py_Void();
30070}
30071
30072SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30073 PyObject *resultobj = 0;
30074 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30075 void *argp1 = 0 ;
30076 int res1 = 0 ;
30077 PyObject *swig_obj[1] ;
30078
30079 if (!args) SWIG_fail;
30080 swig_obj[0] = args;
30081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30082 if (!SWIG_IsOK(res1)) {
30083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30084 }
30085 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30086 {
30087 delete arg1;
30088
72ef6efb
RD
30089 if (PyErr_Occurred()) SWIG_fail;
30090 }
30091 resultobj = SWIG_Py_Void();
70d7cb34
RD
30092 return resultobj;
30093fail:
30094 return NULL;
30095}
30096
30097
30098SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30099 PyObject *resultobj = 0;
30100 wxGraphicsRenderer *result = 0 ;
30101
30102 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30103 {
70d7cb34
RD
30104 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30105 if (PyErr_Occurred()) SWIG_fail;
30106 }
30107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30108 return resultobj;
30109fail:
30110 return NULL;
30111}
30112
30113
30114SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30115 PyObject *resultobj = 0;
30116 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30117 wxWindowDC *arg2 = 0 ;
30118 wxGraphicsContext *result = 0 ;
30119 void *argp1 = 0 ;
30120 int res1 = 0 ;
30121 void *argp2 = 0 ;
30122 int res2 = 0 ;
30123
30124 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30126 if (!SWIG_IsOK(res1)) {
30127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30128 }
30129 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30130 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30131 if (!SWIG_IsOK(res2)) {
30132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30133 }
30134 if (!argp2) {
30135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30136 }
30137 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30138 {
30139 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30140 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30141 }
70d7cb34 30142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30143 return resultobj;
30144fail:
70d7cb34
RD
30145 return NULL;
30146}
30147
30148
30149SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30150 PyObject *resultobj = 0;
30151 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30152 wxWindow *arg2 = (wxWindow *) 0 ;
30153 wxGraphicsContext *result = 0 ;
30154 void *argp1 = 0 ;
30155 int res1 = 0 ;
30156 void *argp2 = 0 ;
30157 int res2 = 0 ;
30158
30159 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30161 if (!SWIG_IsOK(res1)) {
30162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30163 }
30164 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30165 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30166 if (!SWIG_IsOK(res2)) {
30167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30168 }
30169 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30170 {
70d7cb34
RD
30171 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30172 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30173 }
70d7cb34
RD
30174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30175 return resultobj;
30176fail:
72ef6efb
RD
30177 return NULL;
30178}
30179
30180
70d7cb34
RD
30181SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30182 int argc;
30183 PyObject *argv[3];
30184
30185 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30186 --argc;
30187 if (argc == 2) {
30188 int _v = 0;
30189 {
30190 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30191 _v = SWIG_CheckState(res);
30192 }
30193 if (!_v) goto check_1;
30194 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30195 }
30196check_1:
30197
30198 if (argc == 2) {
30199 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30200 }
30201
30202fail:
30203 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30204 return NULL;
30205}
30206
30207
f89238b9
RD
30208SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30209 PyObject *resultobj = 0;
30210 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30211 wxGraphicsContext *result = 0 ;
30212 void *argp1 = 0 ;
30213 int res1 = 0 ;
30214 PyObject *swig_obj[1] ;
30215
30216 if (!args) SWIG_fail;
30217 swig_obj[0] = args;
30218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30219 if (!SWIG_IsOK(res1)) {
30220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30221 }
30222 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30223 {
30224 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30225 if (PyErr_Occurred()) SWIG_fail;
30226 }
30227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30228 return resultobj;
30229fail:
30230 return NULL;
30231}
30232
30233
70d7cb34 30234SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30235 PyObject *resultobj = 0;
70d7cb34
RD
30236 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30237 void *arg2 = (void *) 0 ;
30238 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30239 void *argp1 = 0 ;
30240 int res1 = 0 ;
70d7cb34 30241 int res2 ;
b39fe951
RD
30242 PyObject * obj0 = 0 ;
30243 PyObject * obj1 = 0 ;
b39fe951 30244 char * kwnames[] = {
70d7cb34 30245 (char *) "self",(char *) "context", NULL
b39fe951 30246 };
72ef6efb 30247
70d7cb34
RD
30248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30250 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30252 }
30253 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30254 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30255 if (!SWIG_IsOK(res2)) {
30256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30257 }
72ef6efb 30258 {
70d7cb34 30259 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30260 if (PyErr_Occurred()) SWIG_fail;
30261 }
70d7cb34 30262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30263 return resultobj;
30264fail:
30265 return NULL;
30266}
30267
30268
70d7cb34 30269SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30270 PyObject *resultobj = 0;
70d7cb34
RD
30271 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30272 void *arg2 = (void *) 0 ;
30273 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30274 void *argp1 = 0 ;
30275 int res1 = 0 ;
70d7cb34 30276 int res2 ;
72ef6efb
RD
30277 PyObject * obj0 = 0 ;
30278 PyObject * obj1 = 0 ;
72ef6efb 30279 char * kwnames[] = {
70d7cb34 30280 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30281 };
30282
70d7cb34
RD
30283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30285 if (!SWIG_IsOK(res1)) {
70d7cb34 30286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30287 }
70d7cb34
RD
30288 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30289 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30290 if (!SWIG_IsOK(res2)) {
30291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30292 }
30293 {
70d7cb34 30294 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30295 if (PyErr_Occurred()) SWIG_fail;
30296 }
70d7cb34 30297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30298 return resultobj;
30299fail:
70d7cb34
RD
30300 return NULL;
30301}
30302
30303
30304SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30305 PyObject *resultobj = 0;
30306 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30307 wxGraphicsPath result;
70d7cb34
RD
30308 void *argp1 = 0 ;
30309 int res1 = 0 ;
30310 PyObject *swig_obj[1] ;
30311
30312 if (!args) SWIG_fail;
30313 swig_obj[0] = args;
30314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30315 if (!SWIG_IsOK(res1)) {
30316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30317 }
30318 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30319 {
5c8c7dd3 30320 result = (arg1)->CreatePath();
70d7cb34 30321 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30322 }
5c8c7dd3 30323 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30324 return resultobj;
30325fail:
72ef6efb
RD
30326 return NULL;
30327}
30328
30329
70d7cb34 30330SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30331 PyObject *resultobj = 0;
70d7cb34
RD
30332 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30333 wxDouble arg2 = (wxDouble) 1.0 ;
30334 wxDouble arg3 = (wxDouble) 0.0 ;
30335 wxDouble arg4 = (wxDouble) 0.0 ;
30336 wxDouble arg5 = (wxDouble) 1.0 ;
30337 wxDouble arg6 = (wxDouble) 0.0 ;
30338 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30339 wxGraphicsMatrix result;
72ef6efb
RD
30340 void *argp1 = 0 ;
30341 int res1 = 0 ;
30342 double val2 ;
30343 int ecode2 = 0 ;
30344 double val3 ;
30345 int ecode3 = 0 ;
30346 double val4 ;
30347 int ecode4 = 0 ;
30348 double val5 ;
30349 int ecode5 = 0 ;
70d7cb34
RD
30350 double val6 ;
30351 int ecode6 = 0 ;
30352 double val7 ;
30353 int ecode7 = 0 ;
72ef6efb
RD
30354 PyObject * obj0 = 0 ;
30355 PyObject * obj1 = 0 ;
30356 PyObject * obj2 = 0 ;
30357 PyObject * obj3 = 0 ;
30358 PyObject * obj4 = 0 ;
70d7cb34
RD
30359 PyObject * obj5 = 0 ;
30360 PyObject * obj6 = 0 ;
72ef6efb 30361 char * kwnames[] = {
70d7cb34 30362 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30363 };
30364
70d7cb34
RD
30365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30367 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30369 }
30370 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30371 if (obj1) {
30372 ecode2 = SWIG_AsVal_double(obj1, &val2);
30373 if (!SWIG_IsOK(ecode2)) {
30374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30375 }
30376 arg2 = static_cast< wxDouble >(val2);
30377 }
30378 if (obj2) {
30379 ecode3 = SWIG_AsVal_double(obj2, &val3);
30380 if (!SWIG_IsOK(ecode3)) {
30381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30382 }
30383 arg3 = static_cast< wxDouble >(val3);
30384 }
30385 if (obj3) {
30386 ecode4 = SWIG_AsVal_double(obj3, &val4);
30387 if (!SWIG_IsOK(ecode4)) {
30388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30389 }
30390 arg4 = static_cast< wxDouble >(val4);
30391 }
30392 if (obj4) {
30393 ecode5 = SWIG_AsVal_double(obj4, &val5);
30394 if (!SWIG_IsOK(ecode5)) {
30395 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30396 }
30397 arg5 = static_cast< wxDouble >(val5);
30398 }
30399 if (obj5) {
30400 ecode6 = SWIG_AsVal_double(obj5, &val6);
30401 if (!SWIG_IsOK(ecode6)) {
30402 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30403 }
30404 arg6 = static_cast< wxDouble >(val6);
30405 }
30406 if (obj6) {
30407 ecode7 = SWIG_AsVal_double(obj6, &val7);
30408 if (!SWIG_IsOK(ecode7)) {
30409 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30410 }
30411 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30412 }
72ef6efb 30413 {
5c8c7dd3 30414 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30415 if (PyErr_Occurred()) SWIG_fail;
30416 }
5c8c7dd3 30417 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30418 return resultobj;
30419fail:
30420 return NULL;
30421}
30422
30423
70d7cb34 30424SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30425 PyObject *resultobj = 0;
70d7cb34
RD
30426 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30427 wxPen *arg2 = 0 ;
30428 wxGraphicsPen result;
30429 void *argp1 = 0 ;
30430 int res1 = 0 ;
30431 void *argp2 = 0 ;
30432 int res2 = 0 ;
30433 PyObject * obj0 = 0 ;
30434 PyObject * obj1 = 0 ;
30435 char * kwnames[] = {
30436 (char *) "self",(char *) "pen", NULL
30437 };
30438
30439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30441 if (!SWIG_IsOK(res1)) {
30442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30443 }
30444 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30446 if (!SWIG_IsOK(res2)) {
30447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30448 }
30449 if (!argp2) {
30450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30451 }
30452 arg2 = reinterpret_cast< wxPen * >(argp2);
30453 {
30454 result = (arg1)->CreatePen((wxPen const &)*arg2);
30455 if (PyErr_Occurred()) SWIG_fail;
30456 }
30457 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30458 return resultobj;
30459fail:
30460 return NULL;
30461}
30462
30463
30464SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30465 PyObject *resultobj = 0;
30466 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30467 wxBrush *arg2 = 0 ;
30468 wxGraphicsBrush result;
30469 void *argp1 = 0 ;
30470 int res1 = 0 ;
30471 void *argp2 = 0 ;
30472 int res2 = 0 ;
30473 PyObject * obj0 = 0 ;
30474 PyObject * obj1 = 0 ;
30475 char * kwnames[] = {
30476 (char *) "self",(char *) "brush", NULL
30477 };
30478
30479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30481 if (!SWIG_IsOK(res1)) {
30482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30483 }
30484 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30485 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30486 if (!SWIG_IsOK(res2)) {
30487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30488 }
30489 if (!argp2) {
30490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30491 }
30492 arg2 = reinterpret_cast< wxBrush * >(argp2);
30493 {
30494 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30495 if (PyErr_Occurred()) SWIG_fail;
30496 }
30497 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30498 return resultobj;
30499fail:
30500 return NULL;
30501}
30502
30503
30504SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30505 PyObject *resultobj = 0;
30506 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30507 wxDouble arg2 ;
30508 wxDouble arg3 ;
30509 wxDouble arg4 ;
30510 wxDouble arg5 ;
70d7cb34
RD
30511 wxColour *arg6 = 0 ;
30512 wxColour *arg7 = 0 ;
30513 wxGraphicsBrush result;
72ef6efb
RD
30514 void *argp1 = 0 ;
30515 int res1 = 0 ;
30516 double val2 ;
30517 int ecode2 = 0 ;
30518 double val3 ;
30519 int ecode3 = 0 ;
30520 double val4 ;
30521 int ecode4 = 0 ;
30522 double val5 ;
30523 int ecode5 = 0 ;
70d7cb34
RD
30524 wxColour temp6 ;
30525 wxColour temp7 ;
72ef6efb
RD
30526 PyObject * obj0 = 0 ;
30527 PyObject * obj1 = 0 ;
30528 PyObject * obj2 = 0 ;
30529 PyObject * obj3 = 0 ;
30530 PyObject * obj4 = 0 ;
70d7cb34
RD
30531 PyObject * obj5 = 0 ;
30532 PyObject * obj6 = 0 ;
72ef6efb 30533 char * kwnames[] = {
70d7cb34 30534 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30535 };
30536
70d7cb34
RD
30537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30539 if (!SWIG_IsOK(res1)) {
70d7cb34 30540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30541 }
70d7cb34 30542 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30543 ecode2 = SWIG_AsVal_double(obj1, &val2);
30544 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30546 }
30547 arg2 = static_cast< wxDouble >(val2);
30548 ecode3 = SWIG_AsVal_double(obj2, &val3);
30549 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30551 }
30552 arg3 = static_cast< wxDouble >(val3);
30553 ecode4 = SWIG_AsVal_double(obj3, &val4);
30554 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30556 }
30557 arg4 = static_cast< wxDouble >(val4);
30558 ecode5 = SWIG_AsVal_double(obj4, &val5);
30559 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30561 }
30562 arg5 = static_cast< wxDouble >(val5);
30563 {
70d7cb34
RD
30564 arg6 = &temp6;
30565 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30566 }
30567 {
30568 arg7 = &temp7;
30569 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30570 }
30571 {
30572 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30573 if (PyErr_Occurred()) SWIG_fail;
30574 }
70d7cb34 30575 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30576 return resultobj;
30577fail:
30578 return NULL;
30579}
30580
30581
70d7cb34 30582SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30583 PyObject *resultobj = 0;
70d7cb34 30584 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30585 wxDouble arg2 ;
30586 wxDouble arg3 ;
30587 wxDouble arg4 ;
30588 wxDouble arg5 ;
30589 wxDouble arg6 ;
70d7cb34
RD
30590 wxColour *arg7 = 0 ;
30591 wxColour *arg8 = 0 ;
30592 wxGraphicsBrush result;
72ef6efb
RD
30593 void *argp1 = 0 ;
30594 int res1 = 0 ;
30595 double val2 ;
30596 int ecode2 = 0 ;
30597 double val3 ;
30598 int ecode3 = 0 ;
30599 double val4 ;
30600 int ecode4 = 0 ;
30601 double val5 ;
30602 int ecode5 = 0 ;
30603 double val6 ;
30604 int ecode6 = 0 ;
70d7cb34
RD
30605 wxColour temp7 ;
30606 wxColour temp8 ;
72ef6efb
RD
30607 PyObject * obj0 = 0 ;
30608 PyObject * obj1 = 0 ;
30609 PyObject * obj2 = 0 ;
30610 PyObject * obj3 = 0 ;
30611 PyObject * obj4 = 0 ;
30612 PyObject * obj5 = 0 ;
70d7cb34
RD
30613 PyObject * obj6 = 0 ;
30614 PyObject * obj7 = 0 ;
72ef6efb 30615 char * kwnames[] = {
70d7cb34 30616 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30617 };
30618
70d7cb34
RD
30619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30621 if (!SWIG_IsOK(res1)) {
70d7cb34 30622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30623 }
70d7cb34 30624 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30625 ecode2 = SWIG_AsVal_double(obj1, &val2);
30626 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30628 }
30629 arg2 = static_cast< wxDouble >(val2);
30630 ecode3 = SWIG_AsVal_double(obj2, &val3);
30631 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30633 }
30634 arg3 = static_cast< wxDouble >(val3);
30635 ecode4 = SWIG_AsVal_double(obj3, &val4);
30636 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30638 }
30639 arg4 = static_cast< wxDouble >(val4);
30640 ecode5 = SWIG_AsVal_double(obj4, &val5);
30641 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30643 }
30644 arg5 = static_cast< wxDouble >(val5);
30645 ecode6 = SWIG_AsVal_double(obj5, &val6);
30646 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30647 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30648 }
30649 arg6 = static_cast< wxDouble >(val6);
30650 {
70d7cb34
RD
30651 arg7 = &temp7;
30652 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30653 }
30654 {
30655 arg8 = &temp8;
30656 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30657 }
30658 {
30659 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30660 if (PyErr_Occurred()) SWIG_fail;
30661 }
70d7cb34 30662 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30663 return resultobj;
30664fail:
30665 return NULL;
30666}
30667
30668
70d7cb34
RD
30669SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30670 PyObject *resultobj = 0;
30671 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30672 wxFont *arg2 = 0 ;
30673 wxColour const &arg3_defvalue = *wxBLACK ;
30674 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30675 wxGraphicsFont result;
30676 void *argp1 = 0 ;
30677 int res1 = 0 ;
30678 void *argp2 = 0 ;
30679 int res2 = 0 ;
30680 wxColour temp3 ;
30681 PyObject * obj0 = 0 ;
30682 PyObject * obj1 = 0 ;
30683 PyObject * obj2 = 0 ;
30684 char * kwnames[] = {
30685 (char *) "self",(char *) "font",(char *) "col", NULL
30686 };
30687
30688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30690 if (!SWIG_IsOK(res1)) {
30691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30692 }
30693 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30695 if (!SWIG_IsOK(res2)) {
30696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30697 }
30698 if (!argp2) {
30699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30700 }
30701 arg2 = reinterpret_cast< wxFont * >(argp2);
30702 if (obj2) {
30703 {
30704 arg3 = &temp3;
30705 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30706 }
30707 }
30708 {
30709 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30710 if (PyErr_Occurred()) SWIG_fail;
30711 }
30712 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30713 return resultobj;
30714fail:
30715 return NULL;
30716}
30717
30718
30719SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30720 PyObject *obj;
30721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30722 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30723 return SWIG_Py_Void();
30724}
30725
48a0c021 30726SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
30727 PyObject *resultobj = 0;
30728 wxWindowDC *arg1 = 0 ;
30729 wxGCDC *result = 0 ;
30730 void *argp1 = 0 ;
30731 int res1 = 0 ;
72ef6efb 30732
48a0c021
RD
30733 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
30735 if (!SWIG_IsOK(res1)) {
30736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30737 }
30738 if (!argp1) {
30739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30740 }
30741 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30742 {
30743 if (!wxPyCheckForApp()) SWIG_fail;
30744 PyThreadState* __tstate = wxPyBeginAllowThreads();
30745 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30746 wxPyEndAllowThreads(__tstate);
30747 if (PyErr_Occurred()) SWIG_fail;
30748 }
30749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30750 return resultobj;
30751fail:
30752 return NULL;
30753}
30754
30755
48a0c021
RD
30756SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30757 PyObject *resultobj = 0;
30758 wxWindow *arg1 = (wxWindow *) 0 ;
30759 wxGCDC *result = 0 ;
30760 void *argp1 = 0 ;
30761 int res1 = 0 ;
30762
30763 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30765 if (!SWIG_IsOK(res1)) {
30766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30767 }
30768 arg1 = reinterpret_cast< wxWindow * >(argp1);
30769 {
30770 if (!wxPyCheckForApp()) SWIG_fail;
30771 PyThreadState* __tstate = wxPyBeginAllowThreads();
30772 result = (wxGCDC *)new wxGCDC(arg1);
30773 wxPyEndAllowThreads(__tstate);
30774 if (PyErr_Occurred()) SWIG_fail;
30775 }
30776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30777 return resultobj;
30778fail:
30779 return NULL;
30780}
30781
30782
30783SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30784 int argc;
30785 PyObject *argv[2];
30786
30787 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30788 --argc;
30789 if (argc == 1) {
30790 int _v = 0;
30791 {
30792 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30793 _v = SWIG_CheckState(res);
30794 }
30795 if (!_v) goto check_1;
30796 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30797 }
30798check_1:
30799
30800 if (argc == 1) {
30801 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30802 }
30803
30804fail:
30805 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30806 return NULL;
30807}
30808
30809
72ef6efb
RD
30810SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30811 PyObject *resultobj = 0;
30812 wxGCDC *arg1 = (wxGCDC *) 0 ;
30813 void *argp1 = 0 ;
30814 int res1 = 0 ;
30815 PyObject *swig_obj[1] ;
30816
30817 if (!args) SWIG_fail;
30818 swig_obj[0] = args;
30819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30820 if (!SWIG_IsOK(res1)) {
30821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30822 }
30823 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30824 {
72ef6efb
RD
30825 delete arg1;
30826
72ef6efb
RD
30827 if (PyErr_Occurred()) SWIG_fail;
30828 }
30829 resultobj = SWIG_Py_Void();
30830 return resultobj;
30831fail:
30832 return NULL;
30833}
30834
30835
0a27f394 30836SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30837 PyObject *resultobj = 0;
30838 wxGCDC *arg1 = (wxGCDC *) 0 ;
30839 wxGraphicsContext *result = 0 ;
30840 void *argp1 = 0 ;
30841 int res1 = 0 ;
30842 PyObject *swig_obj[1] ;
30843
30844 if (!args) SWIG_fail;
30845 swig_obj[0] = args;
30846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30847 if (!SWIG_IsOK(res1)) {
0a27f394 30848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30849 }
30850 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30851 {
0a27f394 30852 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30853 if (PyErr_Occurred()) SWIG_fail;
30854 }
30855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30856 return resultobj;
30857fail:
30858 return NULL;
30859}
30860
30861
0a27f394
RD
30862SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30863 PyObject *resultobj = 0;
30864 wxGCDC *arg1 = (wxGCDC *) 0 ;
30865 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30866 void *argp1 = 0 ;
30867 int res1 = 0 ;
30868 void *argp2 = 0 ;
30869 int res2 = 0 ;
30870 PyObject * obj0 = 0 ;
30871 PyObject * obj1 = 0 ;
30872 char * kwnames[] = {
30873 (char *) "self",(char *) "ctx", NULL
30874 };
30875
30876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30878 if (!SWIG_IsOK(res1)) {
30879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30880 }
30881 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30882 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30883 if (!SWIG_IsOK(res2)) {
30884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30885 }
30886 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30887 {
30888 (arg1)->SetGraphicsContext(arg2);
30889 if (PyErr_Occurred()) SWIG_fail;
30890 }
30891 resultobj = SWIG_Py_Void();
30892 return resultobj;
30893fail:
30894 return NULL;
30895}
30896
30897
72ef6efb
RD
30898SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30899 PyObject *obj;
30900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30901 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30902 return SWIG_Py_Void();
30903}
30904
30905SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30906 return SWIG_Python_InitShadowInstance(args);
30907}
30908
b39fe951
RD
30909SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30910 PyObject *resultobj = 0;
30911 wxOverlay *result = 0 ;
30912
30913 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30914 {
30915 PyThreadState* __tstate = wxPyBeginAllowThreads();
30916 result = (wxOverlay *)new wxOverlay();
30917 wxPyEndAllowThreads(__tstate);
30918 if (PyErr_Occurred()) SWIG_fail;
30919 }
30920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30921 return resultobj;
30922fail:
30923 return NULL;
30924}
30925
30926
30927SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30928 PyObject *resultobj = 0;
30929 wxOverlay *arg1 = (wxOverlay *) 0 ;
30930 void *argp1 = 0 ;
30931 int res1 = 0 ;
30932 PyObject *swig_obj[1] ;
30933
30934 if (!args) SWIG_fail;
30935 swig_obj[0] = args;
30936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30937 if (!SWIG_IsOK(res1)) {
30938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30939 }
30940 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30941 {
30942 PyThreadState* __tstate = wxPyBeginAllowThreads();
30943 delete arg1;
30944
30945 wxPyEndAllowThreads(__tstate);
30946 if (PyErr_Occurred()) SWIG_fail;
30947 }
30948 resultobj = SWIG_Py_Void();
30949 return resultobj;
30950fail:
30951 return NULL;
30952}
30953
30954
30955SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30956 PyObject *resultobj = 0;
30957 wxOverlay *arg1 = (wxOverlay *) 0 ;
30958 void *argp1 = 0 ;
30959 int res1 = 0 ;
30960 PyObject *swig_obj[1] ;
30961
30962 if (!args) SWIG_fail;
30963 swig_obj[0] = args;
30964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30965 if (!SWIG_IsOK(res1)) {
30966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30967 }
30968 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30969 {
30970 PyThreadState* __tstate = wxPyBeginAllowThreads();
30971 (arg1)->Reset();
30972 wxPyEndAllowThreads(__tstate);
30973 if (PyErr_Occurred()) SWIG_fail;
30974 }
30975 resultobj = SWIG_Py_Void();
30976 return resultobj;
30977fail:
30978 return NULL;
30979}
30980
30981
30982SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30983 PyObject *obj;
30984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30985 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30986 return SWIG_Py_Void();
30987}
30988
30989SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30990 return SWIG_Python_InitShadowInstance(args);
30991}
30992
30993SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30994 PyObject *resultobj = 0;
30995 wxOverlay *arg1 = 0 ;
30996 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30997 int arg3 ;
30998 int arg4 ;
30999 int arg5 ;
31000 int arg6 ;
31001 wxDCOverlay *result = 0 ;
31002 void *argp1 = 0 ;
31003 int res1 = 0 ;
31004 void *argp2 = 0 ;
31005 int res2 = 0 ;
31006 int val3 ;
31007 int ecode3 = 0 ;
31008 int val4 ;
31009 int ecode4 = 0 ;
31010 int val5 ;
31011 int ecode5 = 0 ;
31012 int val6 ;
31013 int ecode6 = 0 ;
31014
31015 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31017 if (!SWIG_IsOK(res1)) {
31018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31019 }
31020 if (!argp1) {
31021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31022 }
31023 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31024 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31025 if (!SWIG_IsOK(res2)) {
31026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31027 }
31028 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31029 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31030 if (!SWIG_IsOK(ecode3)) {
31031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31032 }
31033 arg3 = static_cast< int >(val3);
31034 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31035 if (!SWIG_IsOK(ecode4)) {
31036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31037 }
31038 arg4 = static_cast< int >(val4);
31039 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31040 if (!SWIG_IsOK(ecode5)) {
31041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31042 }
31043 arg5 = static_cast< int >(val5);
31044 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31045 if (!SWIG_IsOK(ecode6)) {
31046 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31047 }
31048 arg6 = static_cast< int >(val6);
31049 {
31050 PyThreadState* __tstate = wxPyBeginAllowThreads();
31051 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31052 wxPyEndAllowThreads(__tstate);
31053 if (PyErr_Occurred()) SWIG_fail;
31054 }
31055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31056 return resultobj;
31057fail:
31058 return NULL;
31059}
31060
31061
31062SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31063 PyObject *resultobj = 0;
31064 wxOverlay *arg1 = 0 ;
31065 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31066 wxDCOverlay *result = 0 ;
31067 void *argp1 = 0 ;
31068 int res1 = 0 ;
31069 void *argp2 = 0 ;
31070 int res2 = 0 ;
31071
31072 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31074 if (!SWIG_IsOK(res1)) {
31075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31076 }
31077 if (!argp1) {
31078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31079 }
31080 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31081 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31082 if (!SWIG_IsOK(res2)) {
31083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31084 }
31085 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31086 {
31087 PyThreadState* __tstate = wxPyBeginAllowThreads();
31088 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31089 wxPyEndAllowThreads(__tstate);
31090 if (PyErr_Occurred()) SWIG_fail;
31091 }
31092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31093 return resultobj;
31094fail:
31095 return NULL;
31096}
31097
31098
31099SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31100 int argc;
31101 PyObject *argv[7];
31102
31103 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31104 --argc;
31105 if (argc == 2) {
31106 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31107 }
31108 if (argc == 6) {
31109 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31110 }
31111
31112fail:
31113 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31114 return NULL;
31115}
31116
31117
31118SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31119 PyObject *resultobj = 0;
31120 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31121 void *argp1 = 0 ;
31122 int res1 = 0 ;
31123 PyObject *swig_obj[1] ;
31124
31125 if (!args) SWIG_fail;
31126 swig_obj[0] = args;
31127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31128 if (!SWIG_IsOK(res1)) {
31129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31130 }
31131 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31132 {
31133 PyThreadState* __tstate = wxPyBeginAllowThreads();
31134 delete arg1;
31135
31136 wxPyEndAllowThreads(__tstate);
31137 if (PyErr_Occurred()) SWIG_fail;
31138 }
31139 resultobj = SWIG_Py_Void();
31140 return resultobj;
31141fail:
31142 return NULL;
31143}
31144
31145
31146SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31147 PyObject *resultobj = 0;
31148 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31149 void *argp1 = 0 ;
31150 int res1 = 0 ;
31151 PyObject *swig_obj[1] ;
31152
31153 if (!args) SWIG_fail;
31154 swig_obj[0] = args;
31155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31156 if (!SWIG_IsOK(res1)) {
31157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31158 }
31159 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31160 {
31161 PyThreadState* __tstate = wxPyBeginAllowThreads();
31162 (arg1)->Clear();
31163 wxPyEndAllowThreads(__tstate);
31164 if (PyErr_Occurred()) SWIG_fail;
31165 }
31166 resultobj = SWIG_Py_Void();
31167 return resultobj;
31168fail:
31169 return NULL;
31170}
31171
31172
31173SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31174 PyObject *obj;
31175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31176 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31177 return SWIG_Py_Void();
31178}
31179
31180SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31181 return SWIG_Python_InitShadowInstance(args);
31182}
31183
72ef6efb
RD
31184SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31185 PyObject *resultobj = 0;
31186 int arg1 ;
31187 int arg2 ;
31188 int arg3 = (int) true ;
31189 int arg4 = (int) 1 ;
31190 wxImageList *result = 0 ;
31191 int val1 ;
31192 int ecode1 = 0 ;
31193 int val2 ;
31194 int ecode2 = 0 ;
31195 int val3 ;
31196 int ecode3 = 0 ;
31197 int val4 ;
31198 int ecode4 = 0 ;
31199 PyObject * obj0 = 0 ;
31200 PyObject * obj1 = 0 ;
31201 PyObject * obj2 = 0 ;
31202 PyObject * obj3 = 0 ;
31203 char * kwnames[] = {
31204 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31205 };
31206
31207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31208 ecode1 = SWIG_AsVal_int(obj0, &val1);
31209 if (!SWIG_IsOK(ecode1)) {
31210 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31211 }
31212 arg1 = static_cast< int >(val1);
31213 ecode2 = SWIG_AsVal_int(obj1, &val2);
31214 if (!SWIG_IsOK(ecode2)) {
31215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31216 }
31217 arg2 = static_cast< int >(val2);
31218 if (obj2) {
31219 ecode3 = SWIG_AsVal_int(obj2, &val3);
31220 if (!SWIG_IsOK(ecode3)) {
31221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31222 }
31223 arg3 = static_cast< int >(val3);
31224 }
31225 if (obj3) {
31226 ecode4 = SWIG_AsVal_int(obj3, &val4);
31227 if (!SWIG_IsOK(ecode4)) {
31228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31229 }
31230 arg4 = static_cast< int >(val4);
31231 }
31232 {
31233 if (!wxPyCheckForApp()) SWIG_fail;
31234 PyThreadState* __tstate = wxPyBeginAllowThreads();
31235 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31236 wxPyEndAllowThreads(__tstate);
31237 if (PyErr_Occurred()) SWIG_fail;
31238 }
e02c0a13 31239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31240 return resultobj;
31241fail:
31242 return NULL;
31243}
31244
31245
31246SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31247 PyObject *resultobj = 0;
31248 wxImageList *arg1 = (wxImageList *) 0 ;
31249 void *argp1 = 0 ;
31250 int res1 = 0 ;
31251 PyObject *swig_obj[1] ;
31252
31253 if (!args) SWIG_fail;
31254 swig_obj[0] = args;
31255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31256 if (!SWIG_IsOK(res1)) {
31257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31258 }
31259 arg1 = reinterpret_cast< wxImageList * >(argp1);
31260 {
31261 PyThreadState* __tstate = wxPyBeginAllowThreads();
31262 delete arg1;
31263
31264 wxPyEndAllowThreads(__tstate);
31265 if (PyErr_Occurred()) SWIG_fail;
31266 }
31267 resultobj = SWIG_Py_Void();
31268 return resultobj;
31269fail:
31270 return NULL;
31271}
31272
31273
31274SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31275 PyObject *resultobj = 0;
31276 wxImageList *arg1 = (wxImageList *) 0 ;
31277 wxBitmap *arg2 = 0 ;
31278 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31279 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31280 int result;
31281 void *argp1 = 0 ;
31282 int res1 = 0 ;
31283 void *argp2 = 0 ;
31284 int res2 = 0 ;
31285 void *argp3 = 0 ;
31286 int res3 = 0 ;
31287 PyObject * obj0 = 0 ;
31288 PyObject * obj1 = 0 ;
31289 PyObject * obj2 = 0 ;
31290 char * kwnames[] = {
31291 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31292 };
31293
31294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31296 if (!SWIG_IsOK(res1)) {
31297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31298 }
31299 arg1 = reinterpret_cast< wxImageList * >(argp1);
31300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31301 if (!SWIG_IsOK(res2)) {
31302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31303 }
31304 if (!argp2) {
31305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31306 }
31307 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31308 if (obj2) {
31309 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31310 if (!SWIG_IsOK(res3)) {
31311 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31312 }
31313 if (!argp3) {
31314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31315 }
31316 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31317 }
31318 {
31319 PyThreadState* __tstate = wxPyBeginAllowThreads();
31320 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31321 wxPyEndAllowThreads(__tstate);
31322 if (PyErr_Occurred()) SWIG_fail;
31323 }
31324 resultobj = SWIG_From_int(static_cast< int >(result));
31325 return resultobj;
31326fail:
31327 return NULL;
31328}
31329
31330
31331SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31332 PyObject *resultobj = 0;
31333 wxImageList *arg1 = (wxImageList *) 0 ;
31334 wxBitmap *arg2 = 0 ;
31335 wxColour *arg3 = 0 ;
31336 int result;
31337 void *argp1 = 0 ;
31338 int res1 = 0 ;
31339 void *argp2 = 0 ;
31340 int res2 = 0 ;
31341 wxColour temp3 ;
31342 PyObject * obj0 = 0 ;
31343 PyObject * obj1 = 0 ;
31344 PyObject * obj2 = 0 ;
31345 char * kwnames[] = {
31346 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31347 };
31348
31349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31351 if (!SWIG_IsOK(res1)) {
31352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31353 }
31354 arg1 = reinterpret_cast< wxImageList * >(argp1);
31355 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31356 if (!SWIG_IsOK(res2)) {
31357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31358 }
31359 if (!argp2) {
31360 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31361 }
31362 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31363 {
31364 arg3 = &temp3;
31365 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31366 }
31367 {
31368 PyThreadState* __tstate = wxPyBeginAllowThreads();
31369 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31370 wxPyEndAllowThreads(__tstate);
31371 if (PyErr_Occurred()) SWIG_fail;
31372 }
31373 resultobj = SWIG_From_int(static_cast< int >(result));
31374 return resultobj;
31375fail:
31376 return NULL;
31377}
31378
31379
31380SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31381 PyObject *resultobj = 0;
31382 wxImageList *arg1 = (wxImageList *) 0 ;
31383 wxIcon *arg2 = 0 ;
31384 int result;
31385 void *argp1 = 0 ;
31386 int res1 = 0 ;
31387 void *argp2 = 0 ;
31388 int res2 = 0 ;
31389 PyObject * obj0 = 0 ;
31390 PyObject * obj1 = 0 ;
31391 char * kwnames[] = {
31392 (char *) "self",(char *) "icon", NULL
31393 };
31394
31395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31397 if (!SWIG_IsOK(res1)) {
31398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31399 }
1bd55598
RD
31400 arg1 = reinterpret_cast< wxImageList * >(argp1);
31401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31402 if (!SWIG_IsOK(res2)) {
31403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31404 }
31405 if (!argp2) {
31406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31407 }
31408 arg2 = reinterpret_cast< wxIcon * >(argp2);
31409 {
31410 PyThreadState* __tstate = wxPyBeginAllowThreads();
31411 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31412 wxPyEndAllowThreads(__tstate);
31413 if (PyErr_Occurred()) SWIG_fail;
31414 }
31415 resultobj = SWIG_From_int(static_cast< int >(result));
31416 return resultobj;
31417fail:
31418 return NULL;
31419}
31420
31421
31422SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31423 PyObject *resultobj = 0;
31424 wxImageList *arg1 = (wxImageList *) 0 ;
31425 int arg2 ;
31426 SwigValueWrapper<wxBitmap > result;
31427 void *argp1 = 0 ;
31428 int res1 = 0 ;
31429 int val2 ;
31430 int ecode2 = 0 ;
31431 PyObject * obj0 = 0 ;
31432 PyObject * obj1 = 0 ;
31433 char * kwnames[] = {
31434 (char *) "self",(char *) "index", NULL
31435 };
31436
31437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31439 if (!SWIG_IsOK(res1)) {
31440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31441 }
31442 arg1 = reinterpret_cast< wxImageList * >(argp1);
31443 ecode2 = SWIG_AsVal_int(obj1, &val2);
31444 if (!SWIG_IsOK(ecode2)) {
31445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31446 }
31447 arg2 = static_cast< int >(val2);
31448 {
31449 PyThreadState* __tstate = wxPyBeginAllowThreads();
31450 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31451 wxPyEndAllowThreads(__tstate);
31452 if (PyErr_Occurred()) SWIG_fail;
31453 }
31454 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31455 return resultobj;
31456fail:
31457 return NULL;
31458}
31459
31460
31461SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31462 PyObject *resultobj = 0;
31463 wxImageList *arg1 = (wxImageList *) 0 ;
31464 int arg2 ;
31465 wxIcon result;
31466 void *argp1 = 0 ;
31467 int res1 = 0 ;
31468 int val2 ;
31469 int ecode2 = 0 ;
31470 PyObject * obj0 = 0 ;
31471 PyObject * obj1 = 0 ;
31472 char * kwnames[] = {
31473 (char *) "self",(char *) "index", NULL
31474 };
31475
31476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31478 if (!SWIG_IsOK(res1)) {
31479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31480 }
31481 arg1 = reinterpret_cast< wxImageList * >(argp1);
31482 ecode2 = SWIG_AsVal_int(obj1, &val2);
31483 if (!SWIG_IsOK(ecode2)) {
31484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31485 }
31486 arg2 = static_cast< int >(val2);
31487 {
31488 PyThreadState* __tstate = wxPyBeginAllowThreads();
31489 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31490 wxPyEndAllowThreads(__tstate);
31491 if (PyErr_Occurred()) SWIG_fail;
31492 }
31493 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31494 return resultobj;
31495fail:
31496 return NULL;
31497}
31498
31499
31500SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31501 PyObject *resultobj = 0;
31502 wxImageList *arg1 = (wxImageList *) 0 ;
31503 int arg2 ;
31504 wxBitmap *arg3 = 0 ;
2131d850
RD
31505 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31506 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31507 bool result;
31508 void *argp1 = 0 ;
31509 int res1 = 0 ;
31510 int val2 ;
31511 int ecode2 = 0 ;
31512 void *argp3 = 0 ;
31513 int res3 = 0 ;
2131d850
RD
31514 void *argp4 = 0 ;
31515 int res4 = 0 ;
1bd55598
RD
31516 PyObject * obj0 = 0 ;
31517 PyObject * obj1 = 0 ;
31518 PyObject * obj2 = 0 ;
2131d850 31519 PyObject * obj3 = 0 ;
1bd55598 31520 char * kwnames[] = {
2131d850 31521 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31522 };
31523
2131d850 31524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31526 if (!SWIG_IsOK(res1)) {
31527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31528 }
31529 arg1 = reinterpret_cast< wxImageList * >(argp1);
31530 ecode2 = SWIG_AsVal_int(obj1, &val2);
31531 if (!SWIG_IsOK(ecode2)) {
31532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31533 }
31534 arg2 = static_cast< int >(val2);
31535 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31536 if (!SWIG_IsOK(res3)) {
31537 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31538 }
31539 if (!argp3) {
31540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31541 }
31542 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
31543 if (obj3) {
31544 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31545 if (!SWIG_IsOK(res4)) {
31546 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31547 }
31548 if (!argp4) {
31549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31550 }
31551 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31552 }
1bd55598
RD
31553 {
31554 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 31555 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
31556 wxPyEndAllowThreads(__tstate);
31557 if (PyErr_Occurred()) SWIG_fail;
31558 }
31559 {
31560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31561 }
31562 return resultobj;
31563fail:
31564 return NULL;
31565}
31566
31567
31568SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31569 PyObject *resultobj = 0;
31570 wxImageList *arg1 = (wxImageList *) 0 ;
31571 int arg2 ;
31572 wxDC *arg3 = 0 ;
31573 int arg4 ;
31574 int arg5 ;
31575 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31576 bool arg7 = (bool) (bool)false ;
31577 bool result;
31578 void *argp1 = 0 ;
31579 int res1 = 0 ;
31580 int val2 ;
31581 int ecode2 = 0 ;
31582 void *argp3 = 0 ;
31583 int res3 = 0 ;
31584 int val4 ;
31585 int ecode4 = 0 ;
31586 int val5 ;
31587 int ecode5 = 0 ;
31588 int val6 ;
31589 int ecode6 = 0 ;
31590 bool val7 ;
31591 int ecode7 = 0 ;
31592 PyObject * obj0 = 0 ;
31593 PyObject * obj1 = 0 ;
31594 PyObject * obj2 = 0 ;
31595 PyObject * obj3 = 0 ;
31596 PyObject * obj4 = 0 ;
31597 PyObject * obj5 = 0 ;
31598 PyObject * obj6 = 0 ;
31599 char * kwnames[] = {
31600 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31601 };
31602
31603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31605 if (!SWIG_IsOK(res1)) {
31606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31607 }
31608 arg1 = reinterpret_cast< wxImageList * >(argp1);
31609 ecode2 = SWIG_AsVal_int(obj1, &val2);
31610 if (!SWIG_IsOK(ecode2)) {
31611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31612 }
31613 arg2 = static_cast< int >(val2);
31614 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31615 if (!SWIG_IsOK(res3)) {
31616 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31617 }
31618 if (!argp3) {
31619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31620 }
31621 arg3 = reinterpret_cast< wxDC * >(argp3);
31622 ecode4 = SWIG_AsVal_int(obj3, &val4);
31623 if (!SWIG_IsOK(ecode4)) {
31624 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31625 }
31626 arg4 = static_cast< int >(val4);
31627 ecode5 = SWIG_AsVal_int(obj4, &val5);
31628 if (!SWIG_IsOK(ecode5)) {
31629 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31630 }
31631 arg5 = static_cast< int >(val5);
31632 if (obj5) {
31633 ecode6 = SWIG_AsVal_int(obj5, &val6);
31634 if (!SWIG_IsOK(ecode6)) {
31635 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31636 }
31637 arg6 = static_cast< int >(val6);
31638 }
31639 if (obj6) {
31640 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31641 if (!SWIG_IsOK(ecode7)) {
31642 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31643 }
31644 arg7 = static_cast< bool >(val7);
31645 }
31646 {
31647 PyThreadState* __tstate = wxPyBeginAllowThreads();
31648 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31649 wxPyEndAllowThreads(__tstate);
31650 if (PyErr_Occurred()) SWIG_fail;
31651 }
31652 {
31653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31654 }
31655 return resultobj;
31656fail:
31657 return NULL;
31658}
31659
31660
31661SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31662 PyObject *resultobj = 0;
31663 wxImageList *arg1 = (wxImageList *) 0 ;
31664 int result;
31665 void *argp1 = 0 ;
31666 int res1 = 0 ;
31667 PyObject *swig_obj[1] ;
31668
31669 if (!args) SWIG_fail;
31670 swig_obj[0] = args;
31671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31672 if (!SWIG_IsOK(res1)) {
31673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31674 }
31675 arg1 = reinterpret_cast< wxImageList * >(argp1);
31676 {
31677 PyThreadState* __tstate = wxPyBeginAllowThreads();
31678 result = (int)(arg1)->GetImageCount();
31679 wxPyEndAllowThreads(__tstate);
31680 if (PyErr_Occurred()) SWIG_fail;
31681 }
31682 resultobj = SWIG_From_int(static_cast< int >(result));
31683 return resultobj;
31684fail:
31685 return NULL;
31686}
31687
31688
31689SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31690 PyObject *resultobj = 0;
31691 wxImageList *arg1 = (wxImageList *) 0 ;
31692 int arg2 ;
31693 bool result;
31694 void *argp1 = 0 ;
31695 int res1 = 0 ;
31696 int val2 ;
31697 int ecode2 = 0 ;
31698 PyObject * obj0 = 0 ;
31699 PyObject * obj1 = 0 ;
31700 char * kwnames[] = {
31701 (char *) "self",(char *) "index", NULL
31702 };
31703
31704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31706 if (!SWIG_IsOK(res1)) {
31707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31708 }
31709 arg1 = reinterpret_cast< wxImageList * >(argp1);
31710 ecode2 = SWIG_AsVal_int(obj1, &val2);
31711 if (!SWIG_IsOK(ecode2)) {
31712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31713 }
31714 arg2 = static_cast< int >(val2);
31715 {
31716 PyThreadState* __tstate = wxPyBeginAllowThreads();
31717 result = (bool)(arg1)->Remove(arg2);
31718 wxPyEndAllowThreads(__tstate);
31719 if (PyErr_Occurred()) SWIG_fail;
31720 }
31721 {
31722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31723 }
31724 return resultobj;
31725fail:
31726 return NULL;
31727}
31728
31729
31730SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31731 PyObject *resultobj = 0;
31732 wxImageList *arg1 = (wxImageList *) 0 ;
31733 bool result;
31734 void *argp1 = 0 ;
31735 int res1 = 0 ;
31736 PyObject *swig_obj[1] ;
31737
31738 if (!args) SWIG_fail;
31739 swig_obj[0] = args;
31740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31741 if (!SWIG_IsOK(res1)) {
31742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31743 }
31744 arg1 = reinterpret_cast< wxImageList * >(argp1);
31745 {
31746 PyThreadState* __tstate = wxPyBeginAllowThreads();
31747 result = (bool)(arg1)->RemoveAll();
31748 wxPyEndAllowThreads(__tstate);
31749 if (PyErr_Occurred()) SWIG_fail;
31750 }
31751 {
31752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31753 }
31754 return resultobj;
31755fail:
31756 return NULL;
31757}
31758
31759
31760SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31761 PyObject *resultobj = 0;
31762 wxImageList *arg1 = (wxImageList *) 0 ;
31763 int arg2 ;
31764 int *arg3 = 0 ;
31765 int *arg4 = 0 ;
31766 void *argp1 = 0 ;
31767 int res1 = 0 ;
31768 int val2 ;
31769 int ecode2 = 0 ;
31770 int temp3 ;
31771 int res3 = SWIG_TMPOBJ ;
31772 int temp4 ;
31773 int res4 = SWIG_TMPOBJ ;
31774 PyObject * obj0 = 0 ;
31775 PyObject * obj1 = 0 ;
31776 char * kwnames[] = {
31777 (char *) "self",(char *) "index", NULL
31778 };
31779
31780 arg3 = &temp3;
31781 arg4 = &temp4;
31782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31784 if (!SWIG_IsOK(res1)) {
31785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31786 }
31787 arg1 = reinterpret_cast< wxImageList * >(argp1);
31788 ecode2 = SWIG_AsVal_int(obj1, &val2);
31789 if (!SWIG_IsOK(ecode2)) {
31790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31791 }
31792 arg2 = static_cast< int >(val2);
31793 {
31794 PyThreadState* __tstate = wxPyBeginAllowThreads();
31795 (arg1)->GetSize(arg2,*arg3,*arg4);
31796 wxPyEndAllowThreads(__tstate);
31797 if (PyErr_Occurred()) SWIG_fail;
31798 }
31799 resultobj = SWIG_Py_Void();
31800 if (SWIG_IsTmpObj(res3)) {
31801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31802 } else {
31803 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31804 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31805 }
31806 if (SWIG_IsTmpObj(res4)) {
31807 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31808 } else {
31809 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31810 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31811 }
31812 return resultobj;
31813fail:
31814 return NULL;
31815}
31816
31817
31818SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31819 PyObject *obj;
31820 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31821 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31822 return SWIG_Py_Void();
31823}
31824
31825SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31826 return SWIG_Python_InitShadowInstance(args);
31827}
31828
da91cb0f
RD
31829SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31830 PyObject *resultobj = 0;
31831 wxStockGDI *result = 0 ;
1bd55598 31832
da91cb0f
RD
31833 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31834 {
31835 PyThreadState* __tstate = wxPyBeginAllowThreads();
31836 result = (wxStockGDI *)new wxStockGDI();
31837 wxPyEndAllowThreads(__tstate);
31838 if (PyErr_Occurred()) SWIG_fail;
31839 }
31840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31841 return resultobj;
31842fail:
31843 return NULL;
1bd55598
RD
31844}
31845
31846
da91cb0f
RD
31847SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31848 PyObject *resultobj = 0;
31849 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31850 void *argp1 = 0 ;
31851 int res1 = 0 ;
31852 PyObject *swig_obj[1] ;
1bd55598 31853
da91cb0f
RD
31854 if (!args) SWIG_fail;
31855 swig_obj[0] = args;
31856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31857 if (!SWIG_IsOK(res1)) {
31858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31859 }
31860 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31861 {
31862 PyThreadState* __tstate = wxPyBeginAllowThreads();
31863 delete arg1;
31864
31865 wxPyEndAllowThreads(__tstate);
31866 if (PyErr_Occurred()) SWIG_fail;
31867 }
31868 resultobj = SWIG_Py_Void();
31869 return resultobj;
31870fail:
31871 return NULL;
1bd55598
RD
31872}
31873
31874
da91cb0f
RD
31875SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31876 PyObject *resultobj = 0;
1bd55598 31877
da91cb0f
RD
31878 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31879 {
31880 PyThreadState* __tstate = wxPyBeginAllowThreads();
31881 wxStockGDI::DeleteAll();
31882 wxPyEndAllowThreads(__tstate);
31883 if (PyErr_Occurred()) SWIG_fail;
31884 }
31885 resultobj = SWIG_Py_Void();
31886 return resultobj;
31887fail:
31888 return NULL;
1bd55598
RD
31889}
31890
31891
da91cb0f
RD
31892SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31893 PyObject *resultobj = 0;
31894 wxStockGDI *result = 0 ;
1bd55598 31895
da91cb0f
RD
31896 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31897 {
31898 PyThreadState* __tstate = wxPyBeginAllowThreads();
31899 {
31900 wxStockGDI &_result_ref = wxStockGDI::instance();
31901 result = (wxStockGDI *) &_result_ref;
31902 }
31903 wxPyEndAllowThreads(__tstate);
31904 if (PyErr_Occurred()) SWIG_fail;
31905 }
31906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31907 return resultobj;
31908fail:
31909 return NULL;
1bd55598
RD
31910}
31911
31912
da91cb0f
RD
31913SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31914 PyObject *resultobj = 0;
31915 wxStockGDI::Item arg1 ;
31916 wxBrush *result = 0 ;
31917 int val1 ;
31918 int ecode1 = 0 ;
31919 PyObject * obj0 = 0 ;
31920 char * kwnames[] = {
31921 (char *) "item", NULL
31922 };
31923
31924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31925 ecode1 = SWIG_AsVal_int(obj0, &val1);
31926 if (!SWIG_IsOK(ecode1)) {
31927 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31928 }
31929 arg1 = static_cast< wxStockGDI::Item >(val1);
31930 {
31931 PyThreadState* __tstate = wxPyBeginAllowThreads();
31932 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31933 wxPyEndAllowThreads(__tstate);
31934 if (PyErr_Occurred()) SWIG_fail;
31935 }
31936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31937 return resultobj;
31938fail:
31939 return NULL;
1bd55598
RD
31940}
31941
31942
da91cb0f
RD
31943SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31944 PyObject *resultobj = 0;
31945 wxStockGDI::Item arg1 ;
31946 wxColour *result = 0 ;
31947 int val1 ;
31948 int ecode1 = 0 ;
31949 PyObject * obj0 = 0 ;
31950 char * kwnames[] = {
31951 (char *) "item", NULL
31952 };
1bd55598 31953
da91cb0f
RD
31954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31955 ecode1 = SWIG_AsVal_int(obj0, &val1);
31956 if (!SWIG_IsOK(ecode1)) {
31957 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31958 }
31959 arg1 = static_cast< wxStockGDI::Item >(val1);
31960 {
31961 PyThreadState* __tstate = wxPyBeginAllowThreads();
31962 result = (wxColour *)wxStockGDI::GetColour(arg1);
31963 wxPyEndAllowThreads(__tstate);
31964 if (PyErr_Occurred()) SWIG_fail;
31965 }
31966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31967 return resultobj;
31968fail:
31969 return NULL;
1bd55598
RD
31970}
31971
31972
da91cb0f
RD
31973SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31974 PyObject *resultobj = 0;
31975 wxStockGDI::Item arg1 ;
31976 wxCursor *result = 0 ;
31977 int val1 ;
31978 int ecode1 = 0 ;
31979 PyObject * obj0 = 0 ;
31980 char * kwnames[] = {
31981 (char *) "item", NULL
31982 };
31983
31984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31985 ecode1 = SWIG_AsVal_int(obj0, &val1);
31986 if (!SWIG_IsOK(ecode1)) {
31987 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31988 }
31989 arg1 = static_cast< wxStockGDI::Item >(val1);
31990 {
31991 PyThreadState* __tstate = wxPyBeginAllowThreads();
31992 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31993 wxPyEndAllowThreads(__tstate);
31994 if (PyErr_Occurred()) SWIG_fail;
31995 }
31996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31997 return resultobj;
31998fail:
31999 return NULL;
1bd55598
RD
32000}
32001
32002
da91cb0f
RD
32003SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32004 PyObject *resultobj = 0;
32005 wxStockGDI::Item arg1 ;
32006 wxPen *result = 0 ;
32007 int val1 ;
32008 int ecode1 = 0 ;
32009 PyObject * obj0 = 0 ;
32010 char * kwnames[] = {
32011 (char *) "item", NULL
32012 };
32013
32014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32015 ecode1 = SWIG_AsVal_int(obj0, &val1);
32016 if (!SWIG_IsOK(ecode1)) {
32017 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32018 }
32019 arg1 = static_cast< wxStockGDI::Item >(val1);
32020 {
32021 PyThreadState* __tstate = wxPyBeginAllowThreads();
32022 result = (wxPen *)wxStockGDI::GetPen(arg1);
32023 wxPyEndAllowThreads(__tstate);
32024 if (PyErr_Occurred()) SWIG_fail;
32025 }
32026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32027 return resultobj;
32028fail:
32029 return NULL;
1bd55598
RD
32030}
32031
32032
da91cb0f
RD
32033SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32034 PyObject *resultobj = 0;
32035 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32036 wxStockGDI::Item arg2 ;
32037 wxFont *result = 0 ;
32038 void *argp1 = 0 ;
32039 int res1 = 0 ;
32040 int val2 ;
32041 int ecode2 = 0 ;
32042 PyObject * obj0 = 0 ;
32043 PyObject * obj1 = 0 ;
32044 char * kwnames[] = {
32045 (char *) "self",(char *) "item", NULL
32046 };
1bd55598 32047
da91cb0f
RD
32048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32050 if (!SWIG_IsOK(res1)) {
32051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32052 }
32053 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32054 ecode2 = SWIG_AsVal_int(obj1, &val2);
32055 if (!SWIG_IsOK(ecode2)) {
32056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32057 }
32058 arg2 = static_cast< wxStockGDI::Item >(val2);
32059 {
32060 PyThreadState* __tstate = wxPyBeginAllowThreads();
32061 result = (wxFont *)(arg1)->GetFont(arg2);
32062 wxPyEndAllowThreads(__tstate);
32063 if (PyErr_Occurred()) SWIG_fail;
32064 }
32065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32066 return resultobj;
32067fail:
32068 return NULL;
1bd55598
RD
32069}
32070
32071
da91cb0f
RD
32072SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32073 PyObject *obj;
32074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32075 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32076 return SWIG_Py_Void();
1bd55598
RD
32077}
32078
da91cb0f
RD
32079SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32080 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
32081}
32082
1bd55598
RD
32083SWIGINTERN int NullBitmap_set(PyObject *) {
32084 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32085 return 1;
32086}
32087
32088
32089SWIGINTERN PyObject *NullBitmap_get(void) {
32090 PyObject *pyobj = 0;
32091
32092 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32093 return pyobj;
32094}
32095
32096
32097SWIGINTERN int NullIcon_set(PyObject *) {
32098 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32099 return 1;
32100}
32101
32102
32103SWIGINTERN PyObject *NullIcon_get(void) {
32104 PyObject *pyobj = 0;
32105
32106 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32107 return pyobj;
32108}
32109
32110
32111SWIGINTERN int NullCursor_set(PyObject *) {
32112 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32113 return 1;
32114}
32115
32116
32117SWIGINTERN PyObject *NullCursor_get(void) {
32118 PyObject *pyobj = 0;
32119
32120 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32121 return pyobj;
32122}
32123
32124
32125SWIGINTERN int NullPen_set(PyObject *) {
32126 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32127 return 1;
32128}
32129
32130
32131SWIGINTERN PyObject *NullPen_get(void) {
32132 PyObject *pyobj = 0;
32133
32134 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32135 return pyobj;
32136}
32137
32138
32139SWIGINTERN int NullBrush_set(PyObject *) {
32140 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32141 return 1;
32142}
32143
32144
32145SWIGINTERN PyObject *NullBrush_get(void) {
32146 PyObject *pyobj = 0;
32147
32148 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32149 return pyobj;
32150}
32151
32152
32153SWIGINTERN int NullPalette_set(PyObject *) {
32154 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32155 return 1;
32156}
32157
32158
32159SWIGINTERN PyObject *NullPalette_get(void) {
32160 PyObject *pyobj = 0;
32161
32162 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32163 return pyobj;
32164}
32165
32166
32167SWIGINTERN int NullFont_set(PyObject *) {
32168 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32169 return 1;
32170}
32171
32172
32173SWIGINTERN PyObject *NullFont_get(void) {
32174 PyObject *pyobj = 0;
32175
32176 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32177 return pyobj;
32178}
32179
32180
32181SWIGINTERN int NullColour_set(PyObject *) {
32182 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32183 return 1;
32184}
32185
32186
32187SWIGINTERN PyObject *NullColour_get(void) {
32188 PyObject *pyobj = 0;
32189
32190 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32191 return pyobj;
32192}
32193
32194
da91cb0f 32195SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32196 PyObject *resultobj = 0;
da91cb0f
RD
32197 wxGDIObjListBase *result = 0 ;
32198
32199 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32200 {
32201 PyThreadState* __tstate = wxPyBeginAllowThreads();
32202 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32203 wxPyEndAllowThreads(__tstate);
32204 if (PyErr_Occurred()) SWIG_fail;
32205 }
32206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32207 return resultobj;
32208fail:
32209 return NULL;
32210}
32211
32212
32213SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32214 PyObject *resultobj = 0;
32215 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
32216 void *argp1 = 0 ;
32217 int res1 = 0 ;
da91cb0f 32218 PyObject *swig_obj[1] ;
1bd55598 32219
da91cb0f
RD
32220 if (!args) SWIG_fail;
32221 swig_obj[0] = args;
32222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 32223 if (!SWIG_IsOK(res1)) {
da91cb0f 32224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 32225 }
da91cb0f 32226 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
32227 {
32228 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
32229 delete arg1;
32230
1bd55598
RD
32231 wxPyEndAllowThreads(__tstate);
32232 if (PyErr_Occurred()) SWIG_fail;
32233 }
32234 resultobj = SWIG_Py_Void();
32235 return resultobj;
32236fail:
32237 return NULL;
32238}
32239
32240
da91cb0f
RD
32241SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32242 PyObject *obj;
32243 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32244 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32245 return SWIG_Py_Void();
32246}
32247
32248SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32249 return SWIG_Python_InitShadowInstance(args);
32250}
32251
1bd55598
RD
32252SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32253 PyObject *resultobj = 0;
32254 wxPenList *arg1 = (wxPenList *) 0 ;
32255 wxColour *arg2 = 0 ;
32256 int arg3 ;
32257 int arg4 ;
32258 wxPen *result = 0 ;
32259 void *argp1 = 0 ;
32260 int res1 = 0 ;
32261 wxColour temp2 ;
32262 int val3 ;
32263 int ecode3 = 0 ;
32264 int val4 ;
32265 int ecode4 = 0 ;
32266 PyObject * obj0 = 0 ;
32267 PyObject * obj1 = 0 ;
32268 PyObject * obj2 = 0 ;
32269 PyObject * obj3 = 0 ;
32270 char * kwnames[] = {
32271 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32272 };
32273
32274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32276 if (!SWIG_IsOK(res1)) {
32277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32278 }
32279 arg1 = reinterpret_cast< wxPenList * >(argp1);
32280 {
32281 arg2 = &temp2;
32282 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32283 }
32284 ecode3 = SWIG_AsVal_int(obj2, &val3);
32285 if (!SWIG_IsOK(ecode3)) {
32286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32287 }
32288 arg3 = static_cast< int >(val3);
32289 ecode4 = SWIG_AsVal_int(obj3, &val4);
32290 if (!SWIG_IsOK(ecode4)) {
32291 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32292 }
32293 arg4 = static_cast< int >(val4);
32294 {
32295 PyThreadState* __tstate = wxPyBeginAllowThreads();
32296 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32297 wxPyEndAllowThreads(__tstate);
32298 if (PyErr_Occurred()) SWIG_fail;
32299 }
32300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32301 return resultobj;
32302fail:
32303 return NULL;
32304}
32305
32306
da91cb0f 32307SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32308 PyObject *resultobj = 0;
32309 wxPenList *arg1 = (wxPenList *) 0 ;
32310 wxPen *arg2 = (wxPen *) 0 ;
32311 void *argp1 = 0 ;
32312 int res1 = 0 ;
32313 void *argp2 = 0 ;
32314 int res2 = 0 ;
32315 PyObject * obj0 = 0 ;
32316 PyObject * obj1 = 0 ;
32317 char * kwnames[] = {
32318 (char *) "self",(char *) "pen", NULL
32319 };
32320
da91cb0f 32321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
32322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32323 if (!SWIG_IsOK(res1)) {
da91cb0f 32324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32325 }
32326 arg1 = reinterpret_cast< wxPenList * >(argp1);
32327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32328 if (!SWIG_IsOK(res2)) {
da91cb0f 32329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
32330 }
32331 arg2 = reinterpret_cast< wxPen * >(argp2);
32332 {
32333 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32334 (arg1)->AddPen(arg2);
1bd55598
RD
32335 wxPyEndAllowThreads(__tstate);
32336 if (PyErr_Occurred()) SWIG_fail;
32337 }
32338 resultobj = SWIG_Py_Void();
32339 return resultobj;
32340fail:
32341 return NULL;
32342}
32343
32344
da91cb0f 32345SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32346 PyObject *resultobj = 0;
32347 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 32348 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
32349 void *argp1 = 0 ;
32350 int res1 = 0 ;
da91cb0f
RD
32351 void *argp2 = 0 ;
32352 int res2 = 0 ;
32353 PyObject * obj0 = 0 ;
32354 PyObject * obj1 = 0 ;
32355 char * kwnames[] = {
32356 (char *) "self",(char *) "pen", NULL
32357 };
1bd55598 32358
da91cb0f
RD
32359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 32361 if (!SWIG_IsOK(res1)) {
da91cb0f 32362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32363 }
32364 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
32365 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32366 if (!SWIG_IsOK(res2)) {
32367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32368 }
32369 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
32370 {
32371 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32372 (arg1)->RemovePen(arg2);
1bd55598
RD
32373 wxPyEndAllowThreads(__tstate);
32374 if (PyErr_Occurred()) SWIG_fail;
32375 }
da91cb0f 32376 resultobj = SWIG_Py_Void();
1bd55598
RD
32377 return resultobj;
32378fail:
32379 return NULL;
32380}
32381
32382
32383SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32384 PyObject *obj;
32385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32386 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32387 return SWIG_Py_Void();
32388}
32389
da91cb0f
RD
32390SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32391 PyObject *resultobj = 0;
32392 wxBrushList *arg1 = (wxBrushList *) 0 ;
32393 wxColour *arg2 = 0 ;
32394 int arg3 = (int) wxSOLID ;
32395 wxBrush *result = 0 ;
32396 void *argp1 = 0 ;
32397 int res1 = 0 ;
32398 wxColour temp2 ;
32399 int val3 ;
32400 int ecode3 = 0 ;
32401 PyObject * obj0 = 0 ;
32402 PyObject * obj1 = 0 ;
32403 PyObject * obj2 = 0 ;
32404 char * kwnames[] = {
32405 (char *) "self",(char *) "colour",(char *) "style", NULL
32406 };
32407
32408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32410 if (!SWIG_IsOK(res1)) {
32411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32412 }
32413 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32414 {
32415 arg2 = &temp2;
32416 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32417 }
32418 if (obj2) {
32419 ecode3 = SWIG_AsVal_int(obj2, &val3);
32420 if (!SWIG_IsOK(ecode3)) {
32421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32422 }
32423 arg3 = static_cast< int >(val3);
32424 }
32425 {
32426 PyThreadState* __tstate = wxPyBeginAllowThreads();
32427 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32428 wxPyEndAllowThreads(__tstate);
32429 if (PyErr_Occurred()) SWIG_fail;
32430 }
32431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32432 return resultobj;
32433fail:
32434 return NULL;
32435}
32436
32437
1bd55598
RD
32438SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32439 PyObject *resultobj = 0;
32440 wxBrushList *arg1 = (wxBrushList *) 0 ;
32441 wxBrush *arg2 = (wxBrush *) 0 ;
32442 void *argp1 = 0 ;
32443 int res1 = 0 ;
32444 void *argp2 = 0 ;
32445 int res2 = 0 ;
32446 PyObject * obj0 = 0 ;
32447 PyObject * obj1 = 0 ;
32448 char * kwnames[] = {
32449 (char *) "self",(char *) "brush", NULL
32450 };
32451
32452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32454 if (!SWIG_IsOK(res1)) {
32455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32456 }
32457 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32458 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32459 if (!SWIG_IsOK(res2)) {
32460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32461 }
32462 arg2 = reinterpret_cast< wxBrush * >(argp2);
32463 {
32464 PyThreadState* __tstate = wxPyBeginAllowThreads();
32465 (arg1)->AddBrush(arg2);
32466 wxPyEndAllowThreads(__tstate);
32467 if (PyErr_Occurred()) SWIG_fail;
32468 }
32469 resultobj = SWIG_Py_Void();
32470 return resultobj;
32471fail:
32472 return NULL;
32473}
32474
32475
da91cb0f 32476SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32477 PyObject *resultobj = 0;
32478 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 32479 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
32480 void *argp1 = 0 ;
32481 int res1 = 0 ;
da91cb0f
RD
32482 void *argp2 = 0 ;
32483 int res2 = 0 ;
32484 PyObject * obj0 = 0 ;
32485 PyObject * obj1 = 0 ;
32486 char * kwnames[] = {
32487 (char *) "self",(char *) "brush", NULL
32488 };
32489
32490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32492 if (!SWIG_IsOK(res1)) {
32493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32494 }
32495 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32497 if (!SWIG_IsOK(res2)) {
32498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32499 }
32500 arg2 = reinterpret_cast< wxBrush * >(argp2);
32501 {
32502 PyThreadState* __tstate = wxPyBeginAllowThreads();
32503 (arg1)->RemoveBrush(arg2);
32504 wxPyEndAllowThreads(__tstate);
32505 if (PyErr_Occurred()) SWIG_fail;
32506 }
32507 resultobj = SWIG_Py_Void();
32508 return resultobj;
32509fail:
32510 return NULL;
32511}
32512
32513
32514SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32515 PyObject *obj;
32516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32517 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32518 return SWIG_Py_Void();
32519}
32520
32521SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32522 PyObject *resultobj = 0;
32523 wxFontList *arg1 = (wxFontList *) 0 ;
32524 int arg2 ;
32525 int arg3 ;
32526 int arg4 ;
32527 int arg5 ;
32528 bool arg6 = (bool) false ;
32529 wxString const &arg7_defvalue = wxPyEmptyString ;
32530 wxString *arg7 = (wxString *) &arg7_defvalue ;
32531 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32532 wxFont *result = 0 ;
32533 void *argp1 = 0 ;
32534 int res1 = 0 ;
32535 int val2 ;
32536 int ecode2 = 0 ;
1bd55598
RD
32537 int val3 ;
32538 int ecode3 = 0 ;
da91cb0f
RD
32539 int val4 ;
32540 int ecode4 = 0 ;
32541 int val5 ;
32542 int ecode5 = 0 ;
32543 bool val6 ;
32544 int ecode6 = 0 ;
32545 bool temp7 = false ;
32546 int val8 ;
32547 int ecode8 = 0 ;
1bd55598
RD
32548 PyObject * obj0 = 0 ;
32549 PyObject * obj1 = 0 ;
32550 PyObject * obj2 = 0 ;
da91cb0f
RD
32551 PyObject * obj3 = 0 ;
32552 PyObject * obj4 = 0 ;
32553 PyObject * obj5 = 0 ;
32554 PyObject * obj6 = 0 ;
32555 PyObject * obj7 = 0 ;
1bd55598 32556 char * kwnames[] = {
da91cb0f 32557 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32558 };
32559
da91cb0f
RD
32560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32562 if (!SWIG_IsOK(res1)) {
da91cb0f 32563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32564 }
da91cb0f
RD
32565 arg1 = reinterpret_cast< wxFontList * >(argp1);
32566 ecode2 = SWIG_AsVal_int(obj1, &val2);
32567 if (!SWIG_IsOK(ecode2)) {
32568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32569 }
32570 arg2 = static_cast< int >(val2);
32571 ecode3 = SWIG_AsVal_int(obj2, &val3);
32572 if (!SWIG_IsOK(ecode3)) {
32573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32574 }
32575 arg3 = static_cast< int >(val3);
32576 ecode4 = SWIG_AsVal_int(obj3, &val4);
32577 if (!SWIG_IsOK(ecode4)) {
32578 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32579 }
32580 arg4 = static_cast< int >(val4);
32581 ecode5 = SWIG_AsVal_int(obj4, &val5);
32582 if (!SWIG_IsOK(ecode5)) {
32583 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32584 }
32585 arg5 = static_cast< int >(val5);
32586 if (obj5) {
32587 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32588 if (!SWIG_IsOK(ecode6)) {
32589 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32590 }
32591 arg6 = static_cast< bool >(val6);
1bd55598 32592 }
da91cb0f
RD
32593 if (obj6) {
32594 {
32595 arg7 = wxString_in_helper(obj6);
32596 if (arg7 == NULL) SWIG_fail;
32597 temp7 = true;
32598 }
32599 }
32600 if (obj7) {
32601 ecode8 = SWIG_AsVal_int(obj7, &val8);
32602 if (!SWIG_IsOK(ecode8)) {
32603 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32604 }
da91cb0f 32605 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32606 }
32607 {
32608 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32609 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32610 wxPyEndAllowThreads(__tstate);
32611 if (PyErr_Occurred()) SWIG_fail;
32612 }
da91cb0f
RD
32613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32614 {
32615 if (temp7)
32616 delete arg7;
32617 }
1bd55598
RD
32618 return resultobj;
32619fail:
da91cb0f
RD
32620 {
32621 if (temp7)
32622 delete arg7;
32623 }
1bd55598
RD
32624 return NULL;
32625}
32626
32627
da91cb0f 32628SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32629 PyObject *resultobj = 0;
da91cb0f
RD
32630 wxFontList *arg1 = (wxFontList *) 0 ;
32631 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32632 void *argp1 = 0 ;
32633 int res1 = 0 ;
32634 void *argp2 = 0 ;
32635 int res2 = 0 ;
32636 PyObject * obj0 = 0 ;
32637 PyObject * obj1 = 0 ;
32638 char * kwnames[] = {
da91cb0f 32639 (char *) "self",(char *) "font", NULL
1bd55598
RD
32640 };
32641
da91cb0f
RD
32642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32644 if (!SWIG_IsOK(res1)) {
da91cb0f 32645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32646 }
da91cb0f
RD
32647 arg1 = reinterpret_cast< wxFontList * >(argp1);
32648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 32649 if (!SWIG_IsOK(res2)) {
da91cb0f 32650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 32651 }
da91cb0f 32652 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32653 {
32654 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32655 (arg1)->AddFont(arg2);
1bd55598
RD
32656 wxPyEndAllowThreads(__tstate);
32657 if (PyErr_Occurred()) SWIG_fail;
32658 }
32659 resultobj = SWIG_Py_Void();
32660 return resultobj;
32661fail:
32662 return NULL;
32663}
32664
32665
da91cb0f 32666SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32667 PyObject *resultobj = 0;
da91cb0f
RD
32668 wxFontList *arg1 = (wxFontList *) 0 ;
32669 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32670 void *argp1 = 0 ;
32671 int res1 = 0 ;
da91cb0f
RD
32672 void *argp2 = 0 ;
32673 int res2 = 0 ;
32674 PyObject * obj0 = 0 ;
32675 PyObject * obj1 = 0 ;
32676 char * kwnames[] = {
32677 (char *) "self",(char *) "font", NULL
32678 };
1bd55598 32679
da91cb0f
RD
32680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32682 if (!SWIG_IsOK(res1)) {
da91cb0f 32683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32684 }
da91cb0f
RD
32685 arg1 = reinterpret_cast< wxFontList * >(argp1);
32686 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32687 if (!SWIG_IsOK(res2)) {
32688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32689 }
32690 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32691 {
32692 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32693 (arg1)->RemoveFont(arg2);
1bd55598
RD
32694 wxPyEndAllowThreads(__tstate);
32695 if (PyErr_Occurred()) SWIG_fail;
32696 }
da91cb0f 32697 resultobj = SWIG_Py_Void();
1bd55598
RD
32698 return resultobj;
32699fail:
32700 return NULL;
32701}
32702
32703
da91cb0f 32704SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32705 PyObject *obj;
32706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32707 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32708 return SWIG_Py_Void();
32709}
32710
32711SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32712 PyObject *resultobj = 0;
32713 wxColourDatabase *result = 0 ;
32714
32715 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32716 {
32717 if (!wxPyCheckForApp()) SWIG_fail;
32718 PyThreadState* __tstate = wxPyBeginAllowThreads();
32719 result = (wxColourDatabase *)new wxColourDatabase();
32720 wxPyEndAllowThreads(__tstate);
32721 if (PyErr_Occurred()) SWIG_fail;
32722 }
32723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32724 return resultobj;
32725fail:
32726 return NULL;
32727}
32728
32729
32730SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32731 PyObject *resultobj = 0;
32732 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32733 void *argp1 = 0 ;
32734 int res1 = 0 ;
32735 PyObject *swig_obj[1] ;
32736
32737 if (!args) SWIG_fail;
32738 swig_obj[0] = args;
32739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32740 if (!SWIG_IsOK(res1)) {
32741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32742 }
32743 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32744 {
32745 PyThreadState* __tstate = wxPyBeginAllowThreads();
32746 delete arg1;
32747
32748 wxPyEndAllowThreads(__tstate);
32749 if (PyErr_Occurred()) SWIG_fail;
32750 }
32751 resultobj = SWIG_Py_Void();
32752 return resultobj;
32753fail:
32754 return NULL;
32755}
32756
32757
32758SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32759 PyObject *resultobj = 0;
32760 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32761 wxString *arg2 = 0 ;
32762 wxColour result;
32763 void *argp1 = 0 ;
32764 int res1 = 0 ;
32765 bool temp2 = false ;
32766 PyObject * obj0 = 0 ;
32767 PyObject * obj1 = 0 ;
32768 char * kwnames[] = {
32769 (char *) "self",(char *) "name", NULL
32770 };
32771
32772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32774 if (!SWIG_IsOK(res1)) {
32775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32776 }
32777 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32778 {
32779 arg2 = wxString_in_helper(obj1);
32780 if (arg2 == NULL) SWIG_fail;
32781 temp2 = true;
32782 }
32783 {
32784 PyThreadState* __tstate = wxPyBeginAllowThreads();
32785 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32786 wxPyEndAllowThreads(__tstate);
32787 if (PyErr_Occurred()) SWIG_fail;
32788 }
32789 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32790 {
32791 if (temp2)
32792 delete arg2;
32793 }
32794 return resultobj;
32795fail:
32796 {
32797 if (temp2)
32798 delete arg2;
32799 }
32800 return NULL;
32801}
32802
32803
32804SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32805 PyObject *resultobj = 0;
32806 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32807 wxColour *arg2 = 0 ;
32808 wxString result;
32809 void *argp1 = 0 ;
32810 int res1 = 0 ;
32811 wxColour temp2 ;
32812 PyObject * obj0 = 0 ;
32813 PyObject * obj1 = 0 ;
32814 char * kwnames[] = {
32815 (char *) "self",(char *) "colour", NULL
32816 };
32817
32818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32820 if (!SWIG_IsOK(res1)) {
32821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32822 }
32823 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32824 {
32825 arg2 = &temp2;
32826 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32827 }
32828 {
32829 PyThreadState* __tstate = wxPyBeginAllowThreads();
32830 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32831 wxPyEndAllowThreads(__tstate);
32832 if (PyErr_Occurred()) SWIG_fail;
32833 }
32834 {
32835#if wxUSE_UNICODE
32836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32837#else
32838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32839#endif
32840 }
32841 return resultobj;
32842fail:
32843 return NULL;
32844}
32845
32846
32847SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32848 PyObject *resultobj = 0;
32849 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32850 wxString *arg2 = 0 ;
32851 wxColour *arg3 = 0 ;
32852 void *argp1 = 0 ;
32853 int res1 = 0 ;
32854 bool temp2 = false ;
32855 wxColour temp3 ;
32856 PyObject * obj0 = 0 ;
32857 PyObject * obj1 = 0 ;
32858 PyObject * obj2 = 0 ;
32859 char * kwnames[] = {
32860 (char *) "self",(char *) "name",(char *) "colour", NULL
32861 };
32862
32863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32865 if (!SWIG_IsOK(res1)) {
32866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32867 }
32868 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32869 {
32870 arg2 = wxString_in_helper(obj1);
32871 if (arg2 == NULL) SWIG_fail;
32872 temp2 = true;
32873 }
32874 {
32875 arg3 = &temp3;
32876 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32877 }
32878 {
32879 PyThreadState* __tstate = wxPyBeginAllowThreads();
32880 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32881 wxPyEndAllowThreads(__tstate);
32882 if (PyErr_Occurred()) SWIG_fail;
32883 }
32884 resultobj = SWIG_Py_Void();
32885 {
32886 if (temp2)
32887 delete arg2;
32888 }
32889 return resultobj;
32890fail:
32891 {
32892 if (temp2)
32893 delete arg2;
32894 }
32895 return NULL;
32896}
32897
32898
32899SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32900 PyObject *resultobj = 0;
32901 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32902 wxString *arg2 = 0 ;
32903 int arg3 ;
32904 int arg4 ;
32905 int arg5 ;
32906 void *argp1 = 0 ;
32907 int res1 = 0 ;
32908 bool temp2 = false ;
32909 int val3 ;
32910 int ecode3 = 0 ;
32911 int val4 ;
32912 int ecode4 = 0 ;
da91cb0f
RD
32913 int val5 ;
32914 int ecode5 = 0 ;
1bd55598
RD
32915 PyObject * obj0 = 0 ;
32916 PyObject * obj1 = 0 ;
32917 PyObject * obj2 = 0 ;
32918 PyObject * obj3 = 0 ;
32919 PyObject * obj4 = 0 ;
1bd55598 32920 char * kwnames[] = {
da91cb0f 32921 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32922 };
32923
da91cb0f
RD
32924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32926 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32928 }
32929 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32930 {
32931 arg2 = wxString_in_helper(obj1);
32932 if (arg2 == NULL) SWIG_fail;
32933 temp2 = true;
1bd55598 32934 }
1bd55598
RD
32935 ecode3 = SWIG_AsVal_int(obj2, &val3);
32936 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32938 }
32939 arg3 = static_cast< int >(val3);
32940 ecode4 = SWIG_AsVal_int(obj3, &val4);
32941 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32943 }
32944 arg4 = static_cast< int >(val4);
32945 ecode5 = SWIG_AsVal_int(obj4, &val5);
32946 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32947 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32948 }
32949 arg5 = static_cast< int >(val5);
1bd55598
RD
32950 {
32951 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32952 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32953 wxPyEndAllowThreads(__tstate);
32954 if (PyErr_Occurred()) SWIG_fail;
32955 }
da91cb0f 32956 resultobj = SWIG_Py_Void();
1bd55598 32957 {
da91cb0f
RD
32958 if (temp2)
32959 delete arg2;
1bd55598
RD
32960 }
32961 return resultobj;
32962fail:
32963 {
da91cb0f
RD
32964 if (temp2)
32965 delete arg2;
1bd55598
RD
32966 }
32967 return NULL;
32968}
32969
32970
da91cb0f
RD
32971SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32972 PyObject *obj;
32973 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32974 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32975 return SWIG_Py_Void();
32976}
32977
32978SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32979 return SWIG_Python_InitShadowInstance(args);
32980}
32981
32982SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32983 PyObject *resultobj = 0;
da91cb0f 32984 wxFontList *result = 0 ;
1bd55598 32985
da91cb0f 32986 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
32987 {
32988 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32989 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
32990 wxPyEndAllowThreads(__tstate);
32991 if (PyErr_Occurred()) SWIG_fail;
32992 }
da91cb0f 32993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
32994 return resultobj;
32995fail:
32996 return NULL;
32997}
32998
32999
da91cb0f 33000SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 33001 PyObject *resultobj = 0;
da91cb0f 33002 wxPenList *result = 0 ;
1bd55598 33003
da91cb0f 33004 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
33005 {
33006 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33007 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
33008 wxPyEndAllowThreads(__tstate);
33009 if (PyErr_Occurred()) SWIG_fail;
33010 }
da91cb0f 33011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
33012 return resultobj;
33013fail:
33014 return NULL;
33015}
33016
33017
da91cb0f
RD
33018SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33019 PyObject *resultobj = 0;
33020 wxBrushList *result = 0 ;
1bd55598 33021
da91cb0f
RD
33022 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33023 {
33024 PyThreadState* __tstate = wxPyBeginAllowThreads();
33025 result = (wxBrushList *)_wxPyInitTheBrushList();
33026 wxPyEndAllowThreads(__tstate);
33027 if (PyErr_Occurred()) SWIG_fail;
33028 }
33029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33030 return resultobj;
33031fail:
33032 return NULL;
1bd55598
RD
33033}
33034
33035
da91cb0f
RD
33036SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33037 PyObject *resultobj = 0;
33038 wxColourDatabase *result = 0 ;
1bd55598 33039
da91cb0f
RD
33040 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33041 {
33042 PyThreadState* __tstate = wxPyBeginAllowThreads();
33043 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33044 wxPyEndAllowThreads(__tstate);
33045 if (PyErr_Occurred()) SWIG_fail;
33046 }
33047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33048 return resultobj;
33049fail:
33050 return NULL;
1bd55598
RD
33051}
33052
33053
33054SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33055 PyObject *resultobj = 0;
33056 wxEffects *result = 0 ;
33057
33058 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33059 {
33060 PyThreadState* __tstate = wxPyBeginAllowThreads();
33061 result = (wxEffects *)new wxEffects();
33062 wxPyEndAllowThreads(__tstate);
33063 if (PyErr_Occurred()) SWIG_fail;
33064 }
33065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33066 return resultobj;
33067fail:
33068 return NULL;
33069}
33070
33071
33072SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33073 PyObject *resultobj = 0;
33074 wxEffects *arg1 = (wxEffects *) 0 ;
33075 wxColour result;
33076 void *argp1 = 0 ;
33077 int res1 = 0 ;
33078 PyObject *swig_obj[1] ;
33079
33080 if (!args) SWIG_fail;
33081 swig_obj[0] = args;
33082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33083 if (!SWIG_IsOK(res1)) {
33084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33085 }
33086 arg1 = reinterpret_cast< wxEffects * >(argp1);
33087 {
33088 PyThreadState* __tstate = wxPyBeginAllowThreads();
33089 result = ((wxEffects const *)arg1)->GetHighlightColour();
33090 wxPyEndAllowThreads(__tstate);
33091 if (PyErr_Occurred()) SWIG_fail;
33092 }
33093 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33094 return resultobj;
33095fail:
33096 return NULL;
33097}
33098
33099
33100SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33101 PyObject *resultobj = 0;
33102 wxEffects *arg1 = (wxEffects *) 0 ;
33103 wxColour result;
33104 void *argp1 = 0 ;
33105 int res1 = 0 ;
33106 PyObject *swig_obj[1] ;
33107
33108 if (!args) SWIG_fail;
33109 swig_obj[0] = args;
33110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33111 if (!SWIG_IsOK(res1)) {
33112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33113 }
33114 arg1 = reinterpret_cast< wxEffects * >(argp1);
33115 {
33116 PyThreadState* __tstate = wxPyBeginAllowThreads();
33117 result = ((wxEffects const *)arg1)->GetLightShadow();
33118 wxPyEndAllowThreads(__tstate);
33119 if (PyErr_Occurred()) SWIG_fail;
33120 }
33121 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33122 return resultobj;
33123fail:
33124 return NULL;
33125}
33126
33127
33128SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33129 PyObject *resultobj = 0;
33130 wxEffects *arg1 = (wxEffects *) 0 ;
33131 wxColour result;
33132 void *argp1 = 0 ;
33133 int res1 = 0 ;
33134 PyObject *swig_obj[1] ;
33135
33136 if (!args) SWIG_fail;
33137 swig_obj[0] = args;
33138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33139 if (!SWIG_IsOK(res1)) {
33140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33141 }
33142 arg1 = reinterpret_cast< wxEffects * >(argp1);
33143 {
33144 PyThreadState* __tstate = wxPyBeginAllowThreads();
33145 result = ((wxEffects const *)arg1)->GetFaceColour();
33146 wxPyEndAllowThreads(__tstate);
33147 if (PyErr_Occurred()) SWIG_fail;
33148 }
33149 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33150 return resultobj;
33151fail:
33152 return NULL;
33153}
33154
33155
33156SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33157 PyObject *resultobj = 0;
33158 wxEffects *arg1 = (wxEffects *) 0 ;
33159 wxColour result;
33160 void *argp1 = 0 ;
33161 int res1 = 0 ;
33162 PyObject *swig_obj[1] ;
33163
33164 if (!args) SWIG_fail;
33165 swig_obj[0] = args;
33166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33167 if (!SWIG_IsOK(res1)) {
33168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33169 }
33170 arg1 = reinterpret_cast< wxEffects * >(argp1);
33171 {
33172 PyThreadState* __tstate = wxPyBeginAllowThreads();
33173 result = ((wxEffects const *)arg1)->GetMediumShadow();
33174 wxPyEndAllowThreads(__tstate);
33175 if (PyErr_Occurred()) SWIG_fail;
33176 }
33177 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33178 return resultobj;
33179fail:
33180 return NULL;
33181}
33182
33183
33184SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33185 PyObject *resultobj = 0;
33186 wxEffects *arg1 = (wxEffects *) 0 ;
33187 wxColour result;
33188 void *argp1 = 0 ;
33189 int res1 = 0 ;
33190 PyObject *swig_obj[1] ;
33191
33192 if (!args) SWIG_fail;
33193 swig_obj[0] = args;
33194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33195 if (!SWIG_IsOK(res1)) {
33196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33197 }
33198 arg1 = reinterpret_cast< wxEffects * >(argp1);
33199 {
33200 PyThreadState* __tstate = wxPyBeginAllowThreads();
33201 result = ((wxEffects const *)arg1)->GetDarkShadow();
33202 wxPyEndAllowThreads(__tstate);
33203 if (PyErr_Occurred()) SWIG_fail;
33204 }
33205 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33206 return resultobj;
33207fail:
33208 return NULL;
33209}
33210
33211
33212SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33213 PyObject *resultobj = 0;
33214 wxEffects *arg1 = (wxEffects *) 0 ;
33215 wxColour *arg2 = 0 ;
33216 void *argp1 = 0 ;
33217 int res1 = 0 ;
33218 wxColour temp2 ;
33219 PyObject * obj0 = 0 ;
33220 PyObject * obj1 = 0 ;
33221 char * kwnames[] = {
33222 (char *) "self",(char *) "c", NULL
33223 };
33224
33225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33227 if (!SWIG_IsOK(res1)) {
33228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33229 }
33230 arg1 = reinterpret_cast< wxEffects * >(argp1);
33231 {
33232 arg2 = &temp2;
33233 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33234 }
33235 {
33236 PyThreadState* __tstate = wxPyBeginAllowThreads();
33237 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33238 wxPyEndAllowThreads(__tstate);
33239 if (PyErr_Occurred()) SWIG_fail;
33240 }
33241 resultobj = SWIG_Py_Void();
33242 return resultobj;
33243fail:
33244 return NULL;
33245}
33246
33247
33248SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33249 PyObject *resultobj = 0;
33250 wxEffects *arg1 = (wxEffects *) 0 ;
33251 wxColour *arg2 = 0 ;
33252 void *argp1 = 0 ;
33253 int res1 = 0 ;
33254 wxColour temp2 ;
33255 PyObject * obj0 = 0 ;
33256 PyObject * obj1 = 0 ;
33257 char * kwnames[] = {
33258 (char *) "self",(char *) "c", NULL
33259 };
33260
33261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33263 if (!SWIG_IsOK(res1)) {
33264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33265 }
33266 arg1 = reinterpret_cast< wxEffects * >(argp1);
33267 {
33268 arg2 = &temp2;
33269 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33270 }
33271 {
33272 PyThreadState* __tstate = wxPyBeginAllowThreads();
33273 (arg1)->SetLightShadow((wxColour const &)*arg2);
33274 wxPyEndAllowThreads(__tstate);
33275 if (PyErr_Occurred()) SWIG_fail;
33276 }
33277 resultobj = SWIG_Py_Void();
33278 return resultobj;
33279fail:
33280 return NULL;
33281}
33282
33283
33284SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33285 PyObject *resultobj = 0;
33286 wxEffects *arg1 = (wxEffects *) 0 ;
33287 wxColour *arg2 = 0 ;
33288 void *argp1 = 0 ;
33289 int res1 = 0 ;
33290 wxColour temp2 ;
33291 PyObject * obj0 = 0 ;
33292 PyObject * obj1 = 0 ;
33293 char * kwnames[] = {
33294 (char *) "self",(char *) "c", NULL
33295 };
33296
33297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33299 if (!SWIG_IsOK(res1)) {
33300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33301 }
33302 arg1 = reinterpret_cast< wxEffects * >(argp1);
33303 {
33304 arg2 = &temp2;
33305 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33306 }
33307 {
33308 PyThreadState* __tstate = wxPyBeginAllowThreads();
33309 (arg1)->SetFaceColour((wxColour const &)*arg2);
33310 wxPyEndAllowThreads(__tstate);
33311 if (PyErr_Occurred()) SWIG_fail;
33312 }
33313 resultobj = SWIG_Py_Void();
33314 return resultobj;
33315fail:
33316 return NULL;
33317}
33318
33319
33320SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33321 PyObject *resultobj = 0;
33322 wxEffects *arg1 = (wxEffects *) 0 ;
33323 wxColour *arg2 = 0 ;
33324 void *argp1 = 0 ;
33325 int res1 = 0 ;
33326 wxColour temp2 ;
33327 PyObject * obj0 = 0 ;
33328 PyObject * obj1 = 0 ;
33329 char * kwnames[] = {
33330 (char *) "self",(char *) "c", NULL
33331 };
33332
33333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33335 if (!SWIG_IsOK(res1)) {
33336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33337 }
33338 arg1 = reinterpret_cast< wxEffects * >(argp1);
33339 {
33340 arg2 = &temp2;
33341 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33342 }
33343 {
33344 PyThreadState* __tstate = wxPyBeginAllowThreads();
33345 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33346 wxPyEndAllowThreads(__tstate);
33347 if (PyErr_Occurred()) SWIG_fail;
33348 }
33349 resultobj = SWIG_Py_Void();
33350 return resultobj;
33351fail:
33352 return NULL;
33353}
33354
33355
33356SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33357 PyObject *resultobj = 0;
33358 wxEffects *arg1 = (wxEffects *) 0 ;
33359 wxColour *arg2 = 0 ;
33360 void *argp1 = 0 ;
33361 int res1 = 0 ;
33362 wxColour temp2 ;
33363 PyObject * obj0 = 0 ;
33364 PyObject * obj1 = 0 ;
33365 char * kwnames[] = {
33366 (char *) "self",(char *) "c", NULL
33367 };
33368
33369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33371 if (!SWIG_IsOK(res1)) {
33372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33373 }
33374 arg1 = reinterpret_cast< wxEffects * >(argp1);
33375 {
33376 arg2 = &temp2;
33377 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33378 }
33379 {
33380 PyThreadState* __tstate = wxPyBeginAllowThreads();
33381 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33382 wxPyEndAllowThreads(__tstate);
33383 if (PyErr_Occurred()) SWIG_fail;
33384 }
33385 resultobj = SWIG_Py_Void();
33386 return resultobj;
33387fail:
33388 return NULL;
33389}
33390
33391
33392SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33393 PyObject *resultobj = 0;
33394 wxEffects *arg1 = (wxEffects *) 0 ;
33395 wxColour *arg2 = 0 ;
33396 wxColour *arg3 = 0 ;
33397 wxColour *arg4 = 0 ;
33398 wxColour *arg5 = 0 ;
33399 wxColour *arg6 = 0 ;
33400 void *argp1 = 0 ;
33401 int res1 = 0 ;
33402 wxColour temp2 ;
33403 wxColour temp3 ;
33404 wxColour temp4 ;
33405 wxColour temp5 ;
33406 wxColour temp6 ;
33407 PyObject * obj0 = 0 ;
33408 PyObject * obj1 = 0 ;
33409 PyObject * obj2 = 0 ;
33410 PyObject * obj3 = 0 ;
33411 PyObject * obj4 = 0 ;
33412 PyObject * obj5 = 0 ;
33413 char * kwnames[] = {
33414 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33415 };
33416
33417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33419 if (!SWIG_IsOK(res1)) {
33420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33421 }
33422 arg1 = reinterpret_cast< wxEffects * >(argp1);
33423 {
33424 arg2 = &temp2;
33425 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33426 }
33427 {
33428 arg3 = &temp3;
33429 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33430 }
33431 {
33432 arg4 = &temp4;
33433 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33434 }
33435 {
33436 arg5 = &temp5;
33437 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33438 }
33439 {
33440 arg6 = &temp6;
33441 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33442 }
33443 {
33444 PyThreadState* __tstate = wxPyBeginAllowThreads();
33445 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33446 wxPyEndAllowThreads(__tstate);
33447 if (PyErr_Occurred()) SWIG_fail;
33448 }
33449 resultobj = SWIG_Py_Void();
33450 return resultobj;
33451fail:
33452 return NULL;
33453}
33454
33455
33456SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33457 PyObject *resultobj = 0;
33458 wxEffects *arg1 = (wxEffects *) 0 ;
33459 wxDC *arg2 = 0 ;
33460 wxRect *arg3 = 0 ;
33461 int arg4 = (int) 1 ;
33462 void *argp1 = 0 ;
33463 int res1 = 0 ;
33464 void *argp2 = 0 ;
33465 int res2 = 0 ;
33466 wxRect temp3 ;
33467 int val4 ;
33468 int ecode4 = 0 ;
33469 PyObject * obj0 = 0 ;
33470 PyObject * obj1 = 0 ;
33471 PyObject * obj2 = 0 ;
33472 PyObject * obj3 = 0 ;
33473 char * kwnames[] = {
33474 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33475 };
33476
33477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33479 if (!SWIG_IsOK(res1)) {
33480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33481 }
33482 arg1 = reinterpret_cast< wxEffects * >(argp1);
33483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33484 if (!SWIG_IsOK(res2)) {
33485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33486 }
33487 if (!argp2) {
33488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33489 }
33490 arg2 = reinterpret_cast< wxDC * >(argp2);
33491 {
33492 arg3 = &temp3;
33493 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33494 }
33495 if (obj3) {
33496 ecode4 = SWIG_AsVal_int(obj3, &val4);
33497 if (!SWIG_IsOK(ecode4)) {
33498 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33499 }
33500 arg4 = static_cast< int >(val4);
33501 }
33502 {
33503 PyThreadState* __tstate = wxPyBeginAllowThreads();
33504 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33505 wxPyEndAllowThreads(__tstate);
33506 if (PyErr_Occurred()) SWIG_fail;
33507 }
33508 resultobj = SWIG_Py_Void();
33509 return resultobj;
33510fail:
33511 return NULL;
33512}
33513
33514
33515SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33516 PyObject *resultobj = 0;
33517 wxEffects *arg1 = (wxEffects *) 0 ;
33518 wxRect *arg2 = 0 ;
33519 wxDC *arg3 = 0 ;
33520 wxBitmap *arg4 = 0 ;
33521 bool result;
33522 void *argp1 = 0 ;
33523 int res1 = 0 ;
33524 wxRect temp2 ;
33525 void *argp3 = 0 ;
33526 int res3 = 0 ;
33527 void *argp4 = 0 ;
33528 int res4 = 0 ;
33529 PyObject * obj0 = 0 ;
33530 PyObject * obj1 = 0 ;
33531 PyObject * obj2 = 0 ;
33532 PyObject * obj3 = 0 ;
33533 char * kwnames[] = {
33534 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33535 };
33536
33537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33539 if (!SWIG_IsOK(res1)) {
33540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33541 }
33542 arg1 = reinterpret_cast< wxEffects * >(argp1);
33543 {
33544 arg2 = &temp2;
33545 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33546 }
33547 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33548 if (!SWIG_IsOK(res3)) {
33549 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33550 }
33551 if (!argp3) {
33552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33553 }
33554 arg3 = reinterpret_cast< wxDC * >(argp3);
33555 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33556 if (!SWIG_IsOK(res4)) {
33557 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33558 }
33559 if (!argp4) {
33560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33561 }
33562 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33563 {
33564 PyThreadState* __tstate = wxPyBeginAllowThreads();
33565 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33566 wxPyEndAllowThreads(__tstate);
33567 if (PyErr_Occurred()) SWIG_fail;
33568 }
33569 {
33570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33571 }
33572 return resultobj;
33573fail:
33574 return NULL;
33575}
33576
33577
33578SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33579 PyObject *obj;
33580 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33581 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33582 return SWIG_Py_Void();
33583}
33584
33585SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33586 return SWIG_Python_InitShadowInstance(args);
33587}
33588
33589SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33590 PyObject *resultobj = 0;
33591 int arg1 ;
33592 int arg2 ;
33593 bool arg3 ;
33594 wxSplitterRenderParams *result = 0 ;
33595 int val1 ;
33596 int ecode1 = 0 ;
33597 int val2 ;
33598 int ecode2 = 0 ;
33599 bool val3 ;
33600 int ecode3 = 0 ;
33601 PyObject * obj0 = 0 ;
33602 PyObject * obj1 = 0 ;
33603 PyObject * obj2 = 0 ;
33604 char * kwnames[] = {
33605 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33606 };
33607
33608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33609 ecode1 = SWIG_AsVal_int(obj0, &val1);
33610 if (!SWIG_IsOK(ecode1)) {
33611 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33612 }
33613 arg1 = static_cast< int >(val1);
33614 ecode2 = SWIG_AsVal_int(obj1, &val2);
33615 if (!SWIG_IsOK(ecode2)) {
33616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33617 }
33618 arg2 = static_cast< int >(val2);
33619 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33620 if (!SWIG_IsOK(ecode3)) {
33621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33622 }
33623 arg3 = static_cast< bool >(val3);
33624 {
33625 PyThreadState* __tstate = wxPyBeginAllowThreads();
33626 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33627 wxPyEndAllowThreads(__tstate);
33628 if (PyErr_Occurred()) SWIG_fail;
33629 }
33630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33631 return resultobj;
33632fail:
33633 return NULL;
33634}
33635
33636
33637SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33638 PyObject *resultobj = 0;
33639 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33640 void *argp1 = 0 ;
33641 int res1 = 0 ;
33642 PyObject *swig_obj[1] ;
33643
33644 if (!args) SWIG_fail;
33645 swig_obj[0] = args;
33646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33647 if (!SWIG_IsOK(res1)) {
33648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33649 }
33650 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33651 {
33652 PyThreadState* __tstate = wxPyBeginAllowThreads();
33653 delete arg1;
33654
33655 wxPyEndAllowThreads(__tstate);
33656 if (PyErr_Occurred()) SWIG_fail;
33657 }
33658 resultobj = SWIG_Py_Void();
33659 return resultobj;
33660fail:
33661 return NULL;
33662}
33663
33664
33665SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33666 PyObject *resultobj = 0;
33667 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33668 int result;
33669 void *argp1 = 0 ;
33670 int res1 = 0 ;
33671 PyObject *swig_obj[1] ;
33672
33673 if (!args) SWIG_fail;
33674 swig_obj[0] = args;
33675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33676 if (!SWIG_IsOK(res1)) {
33677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33678 }
33679 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33680 result = (int)(int) ((arg1)->widthSash);
33681 resultobj = SWIG_From_int(static_cast< int >(result));
33682 return resultobj;
33683fail:
33684 return NULL;
33685}
33686
33687
33688SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33689 PyObject *resultobj = 0;
33690 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33691 int result;
33692 void *argp1 = 0 ;
33693 int res1 = 0 ;
33694 PyObject *swig_obj[1] ;
33695
33696 if (!args) SWIG_fail;
33697 swig_obj[0] = args;
33698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33699 if (!SWIG_IsOK(res1)) {
33700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33701 }
33702 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33703 result = (int)(int) ((arg1)->border);
33704 resultobj = SWIG_From_int(static_cast< int >(result));
33705 return resultobj;
33706fail:
33707 return NULL;
33708}
33709
33710
33711SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33712 PyObject *resultobj = 0;
33713 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33714 bool result;
33715 void *argp1 = 0 ;
33716 int res1 = 0 ;
33717 PyObject *swig_obj[1] ;
33718
33719 if (!args) SWIG_fail;
33720 swig_obj[0] = args;
33721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33722 if (!SWIG_IsOK(res1)) {
33723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33724 }
33725 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33726 result = (bool)(bool) ((arg1)->isHotSensitive);
33727 resultobj = SWIG_From_bool(static_cast< bool >(result));
33728 return resultobj;
33729fail:
33730 return NULL;
33731}
33732
33733
33734SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33735 PyObject *obj;
33736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33737 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33738 return SWIG_Py_Void();
33739}
33740
33741SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33742 return SWIG_Python_InitShadowInstance(args);
33743}
33744
33d6fd3b
RD
33745SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33746 PyObject *resultobj = 0;
33747 wxHeaderButtonParams *result = 0 ;
33748
33749 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33750 {
33751 PyThreadState* __tstate = wxPyBeginAllowThreads();
33752 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33753 wxPyEndAllowThreads(__tstate);
33754 if (PyErr_Occurred()) SWIG_fail;
33755 }
33756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33757 return resultobj;
33758fail:
33759 return NULL;
33760}
33761
33762
33763SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33764 PyObject *resultobj = 0;
33765 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33766 void *argp1 = 0 ;
33767 int res1 = 0 ;
33768 PyObject *swig_obj[1] ;
33769
33770 if (!args) SWIG_fail;
33771 swig_obj[0] = args;
33772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33773 if (!SWIG_IsOK(res1)) {
33774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33775 }
33776 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33777 {
33778 PyThreadState* __tstate = wxPyBeginAllowThreads();
33779 delete arg1;
33780
33781 wxPyEndAllowThreads(__tstate);
33782 if (PyErr_Occurred()) SWIG_fail;
33783 }
33784 resultobj = SWIG_Py_Void();
33785 return resultobj;
33786fail:
33787 return NULL;
33788}
33789
33790
33791SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33792 PyObject *resultobj = 0;
33793 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33794 wxColour *arg2 = (wxColour *) 0 ;
33795 void *argp1 = 0 ;
33796 int res1 = 0 ;
33797 wxColour temp2 ;
33798 PyObject *swig_obj[2] ;
33799
33800 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33802 if (!SWIG_IsOK(res1)) {
33803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33804 }
33805 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33806 {
33807 arg2 = &temp2;
33808 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33809 }
33810 if (arg1) (arg1)->m_arrowColour = *arg2;
33811
33812 resultobj = SWIG_Py_Void();
33813 return resultobj;
33814fail:
33815 return NULL;
33816}
33817
33818
33819SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33820 PyObject *resultobj = 0;
33821 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33822 wxColour *result = 0 ;
33823 void *argp1 = 0 ;
33824 int res1 = 0 ;
33825 PyObject *swig_obj[1] ;
33826
33827 if (!args) SWIG_fail;
33828 swig_obj[0] = args;
33829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33830 if (!SWIG_IsOK(res1)) {
33831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33832 }
33833 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33834 result = (wxColour *)& ((arg1)->m_arrowColour);
33835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33836 return resultobj;
33837fail:
33838 return NULL;
33839}
33840
33841
33842SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33843 PyObject *resultobj = 0;
33844 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33845 wxColour *arg2 = (wxColour *) 0 ;
33846 void *argp1 = 0 ;
33847 int res1 = 0 ;
33848 wxColour temp2 ;
33849 PyObject *swig_obj[2] ;
33850
33851 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33853 if (!SWIG_IsOK(res1)) {
33854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33855 }
33856 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33857 {
33858 arg2 = &temp2;
33859 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33860 }
33861 if (arg1) (arg1)->m_selectionColour = *arg2;
33862
33863 resultobj = SWIG_Py_Void();
33864 return resultobj;
33865fail:
33866 return NULL;
33867}
33868
33869
33870SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33871 PyObject *resultobj = 0;
33872 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33873 wxColour *result = 0 ;
33874 void *argp1 = 0 ;
33875 int res1 = 0 ;
33876 PyObject *swig_obj[1] ;
33877
33878 if (!args) SWIG_fail;
33879 swig_obj[0] = args;
33880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33881 if (!SWIG_IsOK(res1)) {
33882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33883 }
33884 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33885 result = (wxColour *)& ((arg1)->m_selectionColour);
33886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33887 return resultobj;
33888fail:
33889 return NULL;
33890}
33891
33892
33893SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33894 PyObject *resultobj = 0;
33895 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33896 wxString *arg2 = (wxString *) 0 ;
33897 void *argp1 = 0 ;
33898 int res1 = 0 ;
33899 bool temp2 = false ;
33900 PyObject *swig_obj[2] ;
33901
33902 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33904 if (!SWIG_IsOK(res1)) {
33905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33906 }
33907 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33908 {
33909 arg2 = wxString_in_helper(swig_obj[1]);
33910 if (arg2 == NULL) SWIG_fail;
33911 temp2 = true;
33912 }
33913 if (arg1) (arg1)->m_labelText = *arg2;
33914
33915 resultobj = SWIG_Py_Void();
33916 {
33917 if (temp2)
33918 delete arg2;
33919 }
33920 return resultobj;
33921fail:
33922 {
33923 if (temp2)
33924 delete arg2;
33925 }
33926 return NULL;
33927}
33928
33929
33930SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33931 PyObject *resultobj = 0;
33932 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33933 wxString *result = 0 ;
33934 void *argp1 = 0 ;
33935 int res1 = 0 ;
33936 PyObject *swig_obj[1] ;
33937
33938 if (!args) SWIG_fail;
33939 swig_obj[0] = args;
33940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33941 if (!SWIG_IsOK(res1)) {
33942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33943 }
33944 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33945 result = (wxString *)& ((arg1)->m_labelText);
33946 {
33947#if wxUSE_UNICODE
33948 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33949#else
33950 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33951#endif
33952 }
33953 return resultobj;
33954fail:
33955 return NULL;
33956}
33957
33958
33959SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33960 PyObject *resultobj = 0;
33961 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33962 wxFont *arg2 = (wxFont *) 0 ;
33963 void *argp1 = 0 ;
33964 int res1 = 0 ;
33965 void *argp2 = 0 ;
33966 int res2 = 0 ;
33967 PyObject *swig_obj[2] ;
33968
33969 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33971 if (!SWIG_IsOK(res1)) {
33972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33973 }
33974 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33975 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33976 if (!SWIG_IsOK(res2)) {
33977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33978 }
33979 arg2 = reinterpret_cast< wxFont * >(argp2);
33980 if (arg1) (arg1)->m_labelFont = *arg2;
33981
33982 resultobj = SWIG_Py_Void();
33983 return resultobj;
33984fail:
33985 return NULL;
33986}
33987
33988
33989SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33990 PyObject *resultobj = 0;
33991 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33992 wxFont *result = 0 ;
33993 void *argp1 = 0 ;
33994 int res1 = 0 ;
33995 PyObject *swig_obj[1] ;
33996
33997 if (!args) SWIG_fail;
33998 swig_obj[0] = args;
33999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34000 if (!SWIG_IsOK(res1)) {
34001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34002 }
34003 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34004 result = (wxFont *)& ((arg1)->m_labelFont);
34005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34006 return resultobj;
34007fail:
34008 return NULL;
34009}
34010
34011
34012SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34013 PyObject *resultobj = 0;
34014 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34015 wxColour *arg2 = (wxColour *) 0 ;
34016 void *argp1 = 0 ;
34017 int res1 = 0 ;
34018 wxColour temp2 ;
34019 PyObject *swig_obj[2] ;
34020
34021 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34023 if (!SWIG_IsOK(res1)) {
34024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34025 }
34026 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34027 {
34028 arg2 = &temp2;
34029 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34030 }
34031 if (arg1) (arg1)->m_labelColour = *arg2;
34032
34033 resultobj = SWIG_Py_Void();
34034 return resultobj;
34035fail:
34036 return NULL;
34037}
34038
34039
34040SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34041 PyObject *resultobj = 0;
34042 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34043 wxColour *result = 0 ;
34044 void *argp1 = 0 ;
34045 int res1 = 0 ;
34046 PyObject *swig_obj[1] ;
34047
34048 if (!args) SWIG_fail;
34049 swig_obj[0] = args;
34050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34051 if (!SWIG_IsOK(res1)) {
34052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34053 }
34054 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34055 result = (wxColour *)& ((arg1)->m_labelColour);
34056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34057 return resultobj;
34058fail:
34059 return NULL;
34060}
34061
34062
34063SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34064 PyObject *resultobj = 0;
34065 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34066 wxBitmap *arg2 = (wxBitmap *) 0 ;
34067 void *argp1 = 0 ;
34068 int res1 = 0 ;
34069 void *argp2 = 0 ;
34070 int res2 = 0 ;
34071 PyObject *swig_obj[2] ;
34072
34073 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34075 if (!SWIG_IsOK(res1)) {
34076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34077 }
34078 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34079 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34080 if (!SWIG_IsOK(res2)) {
34081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34082 }
34083 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34084 if (arg1) (arg1)->m_labelBitmap = *arg2;
34085
34086 resultobj = SWIG_Py_Void();
34087 return resultobj;
34088fail:
34089 return NULL;
34090}
34091
34092
34093SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34094 PyObject *resultobj = 0;
34095 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34096 wxBitmap *result = 0 ;
34097 void *argp1 = 0 ;
34098 int res1 = 0 ;
34099 PyObject *swig_obj[1] ;
34100
34101 if (!args) SWIG_fail;
34102 swig_obj[0] = args;
34103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34104 if (!SWIG_IsOK(res1)) {
34105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34106 }
34107 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34108 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34110 return resultobj;
34111fail:
34112 return NULL;
34113}
34114
34115
34116SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34117 PyObject *resultobj = 0;
34118 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34119 int arg2 ;
34120 void *argp1 = 0 ;
34121 int res1 = 0 ;
34122 int val2 ;
34123 int ecode2 = 0 ;
34124 PyObject *swig_obj[2] ;
34125
34126 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34128 if (!SWIG_IsOK(res1)) {
34129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34130 }
34131 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34132 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34133 if (!SWIG_IsOK(ecode2)) {
34134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34135 }
34136 arg2 = static_cast< int >(val2);
34137 if (arg1) (arg1)->m_labelAlignment = arg2;
34138
34139 resultobj = SWIG_Py_Void();
34140 return resultobj;
34141fail:
34142 return NULL;
34143}
34144
34145
34146SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34147 PyObject *resultobj = 0;
34148 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34149 int result;
34150 void *argp1 = 0 ;
34151 int res1 = 0 ;
34152 PyObject *swig_obj[1] ;
34153
34154 if (!args) SWIG_fail;
34155 swig_obj[0] = args;
34156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34157 if (!SWIG_IsOK(res1)) {
34158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34159 }
34160 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34161 result = (int) ((arg1)->m_labelAlignment);
34162 resultobj = SWIG_From_int(static_cast< int >(result));
34163 return resultobj;
34164fail:
34165 return NULL;
34166}
34167
34168
34169SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34170 PyObject *obj;
34171 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34172 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34173 return SWIG_Py_Void();
34174}
34175
34176SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34177 return SWIG_Python_InitShadowInstance(args);
34178}
34179
1bd55598
RD
34180SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34181 PyObject *resultobj = 0;
34182 int arg1 ;
34183 int arg2 ;
34184 wxRendererVersion *result = 0 ;
34185 int val1 ;
34186 int ecode1 = 0 ;
34187 int val2 ;
34188 int ecode2 = 0 ;
34189 PyObject * obj0 = 0 ;
34190 PyObject * obj1 = 0 ;
34191 char * kwnames[] = {
34192 (char *) "version_",(char *) "age_", NULL
34193 };
34194
34195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34196 ecode1 = SWIG_AsVal_int(obj0, &val1);
34197 if (!SWIG_IsOK(ecode1)) {
34198 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34199 }
34200 arg1 = static_cast< int >(val1);
34201 ecode2 = SWIG_AsVal_int(obj1, &val2);
34202 if (!SWIG_IsOK(ecode2)) {
34203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34204 }
34205 arg2 = static_cast< int >(val2);
34206 {
34207 PyThreadState* __tstate = wxPyBeginAllowThreads();
34208 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34209 wxPyEndAllowThreads(__tstate);
34210 if (PyErr_Occurred()) SWIG_fail;
34211 }
34212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34213 return resultobj;
34214fail:
34215 return NULL;
34216}
34217
34218
34219SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34220 PyObject *resultobj = 0;
34221 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34222 void *argp1 = 0 ;
34223 int res1 = 0 ;
34224 PyObject *swig_obj[1] ;
34225
34226 if (!args) SWIG_fail;
34227 swig_obj[0] = args;
34228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34229 if (!SWIG_IsOK(res1)) {
34230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34231 }
34232 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34233 {
34234 PyThreadState* __tstate = wxPyBeginAllowThreads();
34235 delete arg1;
34236
34237 wxPyEndAllowThreads(__tstate);
34238 if (PyErr_Occurred()) SWIG_fail;
34239 }
34240 resultobj = SWIG_Py_Void();
34241 return resultobj;
34242fail:
34243 return NULL;
34244}
34245
34246
34247SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34248 PyObject *resultobj = 0;
34249 wxRendererVersion *arg1 = 0 ;
34250 bool result;
34251 void *argp1 = 0 ;
34252 int res1 = 0 ;
34253 PyObject * obj0 = 0 ;
34254 char * kwnames[] = {
34255 (char *) "ver", NULL
34256 };
34257
34258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34259 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34260 if (!SWIG_IsOK(res1)) {
34261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34262 }
34263 if (!argp1) {
34264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34265 }
34266 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34267 {
34268 PyThreadState* __tstate = wxPyBeginAllowThreads();
34269 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34270 wxPyEndAllowThreads(__tstate);
34271 if (PyErr_Occurred()) SWIG_fail;
34272 }
34273 {
34274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34275 }
34276 return resultobj;
34277fail:
34278 return NULL;
34279}
34280
34281
34282SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34283 PyObject *resultobj = 0;
34284 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34285 int result;
34286 void *argp1 = 0 ;
34287 int res1 = 0 ;
34288 PyObject *swig_obj[1] ;
34289
34290 if (!args) SWIG_fail;
34291 swig_obj[0] = args;
34292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34293 if (!SWIG_IsOK(res1)) {
34294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34295 }
34296 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34297 result = (int)(int) ((arg1)->version);
34298 resultobj = SWIG_From_int(static_cast< int >(result));
34299 return resultobj;
34300fail:
34301 return NULL;
34302}
34303
34304
34305SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34306 PyObject *resultobj = 0;
34307 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34308 int result;
34309 void *argp1 = 0 ;
34310 int res1 = 0 ;
34311 PyObject *swig_obj[1] ;
34312
34313 if (!args) SWIG_fail;
34314 swig_obj[0] = args;
34315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34316 if (!SWIG_IsOK(res1)) {
34317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34318 }
34319 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34320 result = (int)(int) ((arg1)->age);
34321 resultobj = SWIG_From_int(static_cast< int >(result));
34322 return resultobj;
34323fail:
34324 return NULL;
34325}
34326
34327
34328SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34329 PyObject *obj;
34330 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34331 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34332 return SWIG_Py_Void();
34333}
34334
34335SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34336 return SWIG_Python_InitShadowInstance(args);
34337}
34338
34339SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34340 PyObject *resultobj = 0;
34341 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34342 wxWindow *arg2 = (wxWindow *) 0 ;
34343 wxDC *arg3 = 0 ;
34344 wxRect *arg4 = 0 ;
34345 int arg5 = (int) 0 ;
33d6fd3b
RD
34346 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34347 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34348 int result;
1bd55598
RD
34349 void *argp1 = 0 ;
34350 int res1 = 0 ;
34351 void *argp2 = 0 ;
34352 int res2 = 0 ;
34353 void *argp3 = 0 ;
34354 int res3 = 0 ;
34355 wxRect temp4 ;
34356 int val5 ;
34357 int ecode5 = 0 ;
33d6fd3b
RD
34358 int val6 ;
34359 int ecode6 = 0 ;
34360 void *argp7 = 0 ;
34361 int res7 = 0 ;
1bd55598
RD
34362 PyObject * obj0 = 0 ;
34363 PyObject * obj1 = 0 ;
34364 PyObject * obj2 = 0 ;
34365 PyObject * obj3 = 0 ;
34366 PyObject * obj4 = 0 ;
33d6fd3b
RD
34367 PyObject * obj5 = 0 ;
34368 PyObject * obj6 = 0 ;
1bd55598 34369 char * kwnames[] = {
33d6fd3b 34370 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34371 };
34372
33d6fd3b 34373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34375 if (!SWIG_IsOK(res1)) {
34376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34377 }
34378 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34380 if (!SWIG_IsOK(res2)) {
34381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34382 }
34383 arg2 = reinterpret_cast< wxWindow * >(argp2);
34384 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34385 if (!SWIG_IsOK(res3)) {
34386 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34387 }
34388 if (!argp3) {
34389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34390 }
34391 arg3 = reinterpret_cast< wxDC * >(argp3);
34392 {
34393 arg4 = &temp4;
34394 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34395 }
34396 if (obj4) {
34397 ecode5 = SWIG_AsVal_int(obj4, &val5);
34398 if (!SWIG_IsOK(ecode5)) {
34399 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34400 }
34401 arg5 = static_cast< int >(val5);
34402 }
33d6fd3b
RD
34403 if (obj5) {
34404 ecode6 = SWIG_AsVal_int(obj5, &val6);
34405 if (!SWIG_IsOK(ecode6)) {
34406 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34407 }
34408 arg6 = static_cast< wxHeaderSortIconType >(val6);
34409 }
34410 if (obj6) {
34411 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34412 if (!SWIG_IsOK(res7)) {
34413 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34414 }
34415 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34416 }
34417 {
34418 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34419 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33d6fd3b
RD
34420 wxPyEndAllowThreads(__tstate);
34421 if (PyErr_Occurred()) SWIG_fail;
34422 }
723282b6 34423 resultobj = SWIG_From_int(static_cast< int >(result));
33d6fd3b
RD
34424 return resultobj;
34425fail:
34426 return NULL;
34427}
34428
34429
34430SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34431 PyObject *resultobj = 0;
34432 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34433 wxWindow *arg2 = (wxWindow *) 0 ;
34434 wxDC *arg3 = 0 ;
34435 wxRect *arg4 = 0 ;
34436 int arg5 = (int) 0 ;
34437 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34438 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34439 int result;
33d6fd3b
RD
34440 void *argp1 = 0 ;
34441 int res1 = 0 ;
34442 void *argp2 = 0 ;
34443 int res2 = 0 ;
34444 void *argp3 = 0 ;
34445 int res3 = 0 ;
34446 wxRect temp4 ;
34447 int val5 ;
34448 int ecode5 = 0 ;
34449 int val6 ;
34450 int ecode6 = 0 ;
34451 void *argp7 = 0 ;
34452 int res7 = 0 ;
34453 PyObject * obj0 = 0 ;
34454 PyObject * obj1 = 0 ;
34455 PyObject * obj2 = 0 ;
34456 PyObject * obj3 = 0 ;
34457 PyObject * obj4 = 0 ;
34458 PyObject * obj5 = 0 ;
34459 PyObject * obj6 = 0 ;
34460 char * kwnames[] = {
34461 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34462 };
34463
34464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34466 if (!SWIG_IsOK(res1)) {
34467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34468 }
34469 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34470 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34471 if (!SWIG_IsOK(res2)) {
34472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34473 }
34474 arg2 = reinterpret_cast< wxWindow * >(argp2);
34475 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34476 if (!SWIG_IsOK(res3)) {
34477 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34478 }
34479 if (!argp3) {
34480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34481 }
34482 arg3 = reinterpret_cast< wxDC * >(argp3);
34483 {
34484 arg4 = &temp4;
34485 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34486 }
34487 if (obj4) {
34488 ecode5 = SWIG_AsVal_int(obj4, &val5);
34489 if (!SWIG_IsOK(ecode5)) {
34490 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34491 }
34492 arg5 = static_cast< int >(val5);
34493 }
34494 if (obj5) {
34495 ecode6 = SWIG_AsVal_int(obj5, &val6);
34496 if (!SWIG_IsOK(ecode6)) {
34497 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34498 }
34499 arg6 = static_cast< wxHeaderSortIconType >(val6);
34500 }
34501 if (obj6) {
34502 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34503 if (!SWIG_IsOK(res7)) {
34504 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34505 }
34506 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34507 }
1bd55598
RD
34508 {
34509 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34510 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34511 wxPyEndAllowThreads(__tstate);
34512 if (PyErr_Occurred()) SWIG_fail;
34513 }
723282b6 34514 resultobj = SWIG_From_int(static_cast< int >(result));
1bd55598
RD
34515 return resultobj;
34516fail:
34517 return NULL;
34518}
34519
34520
33d6fd3b
RD
34521SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34522 PyObject *resultobj = 0;
34523 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34524 wxWindow *arg2 = (wxWindow *) 0 ;
34525 int result;
34526 void *argp1 = 0 ;
34527 int res1 = 0 ;
34528 void *argp2 = 0 ;
34529 int res2 = 0 ;
34530 PyObject * obj0 = 0 ;
34531 PyObject * obj1 = 0 ;
34532 char * kwnames[] = {
34533 (char *) "self",(char *) "win", NULL
34534 };
34535
34536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34538 if (!SWIG_IsOK(res1)) {
34539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34540 }
34541 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34542 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34543 if (!SWIG_IsOK(res2)) {
34544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34545 }
34546 arg2 = reinterpret_cast< wxWindow * >(argp2);
34547 {
34548 PyThreadState* __tstate = wxPyBeginAllowThreads();
34549 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34550 wxPyEndAllowThreads(__tstate);
34551 if (PyErr_Occurred()) SWIG_fail;
34552 }
34553 resultobj = SWIG_From_int(static_cast< int >(result));
34554 return resultobj;
34555fail:
34556 return NULL;
34557}
34558
34559
1bd55598
RD
34560SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34561 PyObject *resultobj = 0;
34562 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34563 wxWindow *arg2 = (wxWindow *) 0 ;
34564 wxDC *arg3 = 0 ;
34565 wxRect *arg4 = 0 ;
34566 int arg5 = (int) 0 ;
34567 void *argp1 = 0 ;
34568 int res1 = 0 ;
34569 void *argp2 = 0 ;
34570 int res2 = 0 ;
34571 void *argp3 = 0 ;
34572 int res3 = 0 ;
34573 wxRect temp4 ;
34574 int val5 ;
34575 int ecode5 = 0 ;
34576 PyObject * obj0 = 0 ;
34577 PyObject * obj1 = 0 ;
34578 PyObject * obj2 = 0 ;
34579 PyObject * obj3 = 0 ;
34580 PyObject * obj4 = 0 ;
34581 char * kwnames[] = {
34582 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34583 };
34584
34585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34587 if (!SWIG_IsOK(res1)) {
34588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34589 }
34590 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34592 if (!SWIG_IsOK(res2)) {
34593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34594 }
34595 arg2 = reinterpret_cast< wxWindow * >(argp2);
34596 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34597 if (!SWIG_IsOK(res3)) {
34598 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34599 }
34600 if (!argp3) {
34601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34602 }
34603 arg3 = reinterpret_cast< wxDC * >(argp3);
34604 {
34605 arg4 = &temp4;
34606 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34607 }
34608 if (obj4) {
34609 ecode5 = SWIG_AsVal_int(obj4, &val5);
34610 if (!SWIG_IsOK(ecode5)) {
34611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34612 }
34613 arg5 = static_cast< int >(val5);
34614 }
34615 {
34616 PyThreadState* __tstate = wxPyBeginAllowThreads();
34617 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34618 wxPyEndAllowThreads(__tstate);
34619 if (PyErr_Occurred()) SWIG_fail;
34620 }
34621 resultobj = SWIG_Py_Void();
34622 return resultobj;
34623fail:
34624 return NULL;
34625}
34626
34627
34628SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34629 PyObject *resultobj = 0;
34630 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34631 wxWindow *arg2 = (wxWindow *) 0 ;
34632 wxDC *arg3 = 0 ;
34633 wxRect *arg4 = 0 ;
34634 int arg5 = (int) 0 ;
34635 void *argp1 = 0 ;
34636 int res1 = 0 ;
34637 void *argp2 = 0 ;
34638 int res2 = 0 ;
34639 void *argp3 = 0 ;
34640 int res3 = 0 ;
34641 wxRect temp4 ;
34642 int val5 ;
34643 int ecode5 = 0 ;
34644 PyObject * obj0 = 0 ;
34645 PyObject * obj1 = 0 ;
34646 PyObject * obj2 = 0 ;
34647 PyObject * obj3 = 0 ;
34648 PyObject * obj4 = 0 ;
34649 char * kwnames[] = {
34650 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34651 };
34652
34653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34655 if (!SWIG_IsOK(res1)) {
34656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34657 }
34658 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34659 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34660 if (!SWIG_IsOK(res2)) {
34661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34662 }
34663 arg2 = reinterpret_cast< wxWindow * >(argp2);
34664 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34665 if (!SWIG_IsOK(res3)) {
34666 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34667 }
34668 if (!argp3) {
34669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34670 }
34671 arg3 = reinterpret_cast< wxDC * >(argp3);
34672 {
34673 arg4 = &temp4;
34674 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34675 }
34676 if (obj4) {
34677 ecode5 = SWIG_AsVal_int(obj4, &val5);
34678 if (!SWIG_IsOK(ecode5)) {
34679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34680 }
34681 arg5 = static_cast< int >(val5);
34682 }
34683 {
34684 PyThreadState* __tstate = wxPyBeginAllowThreads();
34685 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34686 wxPyEndAllowThreads(__tstate);
34687 if (PyErr_Occurred()) SWIG_fail;
34688 }
34689 resultobj = SWIG_Py_Void();
34690 return resultobj;
34691fail:
34692 return NULL;
34693}
34694
34695
34696SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34697 PyObject *resultobj = 0;
34698 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34699 wxWindow *arg2 = (wxWindow *) 0 ;
34700 wxDC *arg3 = 0 ;
34701 wxSize *arg4 = 0 ;
34702 int arg5 ;
34703 wxOrientation arg6 ;
34704 int arg7 = (int) 0 ;
34705 void *argp1 = 0 ;
34706 int res1 = 0 ;
34707 void *argp2 = 0 ;
34708 int res2 = 0 ;
34709 void *argp3 = 0 ;
34710 int res3 = 0 ;
34711 wxSize temp4 ;
34712 int val5 ;
34713 int ecode5 = 0 ;
34714 int val6 ;
34715 int ecode6 = 0 ;
34716 int val7 ;
34717 int ecode7 = 0 ;
34718 PyObject * obj0 = 0 ;
34719 PyObject * obj1 = 0 ;
34720 PyObject * obj2 = 0 ;
34721 PyObject * obj3 = 0 ;
34722 PyObject * obj4 = 0 ;
34723 PyObject * obj5 = 0 ;
34724 PyObject * obj6 = 0 ;
34725 char * kwnames[] = {
34726 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34727 };
34728
34729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34731 if (!SWIG_IsOK(res1)) {
34732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34733 }
34734 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34735 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34736 if (!SWIG_IsOK(res2)) {
34737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34738 }
34739 arg2 = reinterpret_cast< wxWindow * >(argp2);
34740 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34741 if (!SWIG_IsOK(res3)) {
34742 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34743 }
34744 if (!argp3) {
34745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34746 }
34747 arg3 = reinterpret_cast< wxDC * >(argp3);
34748 {
34749 arg4 = &temp4;
34750 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34751 }
34752 ecode5 = SWIG_AsVal_int(obj4, &val5);
34753 if (!SWIG_IsOK(ecode5)) {
34754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34755 }
34756 arg5 = static_cast< int >(val5);
34757 ecode6 = SWIG_AsVal_int(obj5, &val6);
34758 if (!SWIG_IsOK(ecode6)) {
34759 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34760 }
34761 arg6 = static_cast< wxOrientation >(val6);
34762 if (obj6) {
34763 ecode7 = SWIG_AsVal_int(obj6, &val7);
34764 if (!SWIG_IsOK(ecode7)) {
34765 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34766 }
34767 arg7 = static_cast< int >(val7);
34768 }
34769 {
34770 PyThreadState* __tstate = wxPyBeginAllowThreads();
34771 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34772 wxPyEndAllowThreads(__tstate);
34773 if (PyErr_Occurred()) SWIG_fail;
34774 }
34775 resultobj = SWIG_Py_Void();
34776 return resultobj;
34777fail:
34778 return NULL;
34779}
34780
34781
34782SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34783 PyObject *resultobj = 0;
34784 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34785 wxWindow *arg2 = (wxWindow *) 0 ;
34786 wxDC *arg3 = 0 ;
34787 wxRect *arg4 = 0 ;
34788 int arg5 = (int) 0 ;
34789 void *argp1 = 0 ;
34790 int res1 = 0 ;
34791 void *argp2 = 0 ;
34792 int res2 = 0 ;
34793 void *argp3 = 0 ;
34794 int res3 = 0 ;
34795 wxRect temp4 ;
34796 int val5 ;
34797 int ecode5 = 0 ;
34798 PyObject * obj0 = 0 ;
34799 PyObject * obj1 = 0 ;
34800 PyObject * obj2 = 0 ;
34801 PyObject * obj3 = 0 ;
34802 PyObject * obj4 = 0 ;
34803 char * kwnames[] = {
34804 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34805 };
34806
34807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34809 if (!SWIG_IsOK(res1)) {
34810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34811 }
34812 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34813 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34814 if (!SWIG_IsOK(res2)) {
34815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34816 }
34817 arg2 = reinterpret_cast< wxWindow * >(argp2);
34818 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34819 if (!SWIG_IsOK(res3)) {
34820 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34821 }
34822 if (!argp3) {
34823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34824 }
34825 arg3 = reinterpret_cast< wxDC * >(argp3);
34826 {
34827 arg4 = &temp4;
34828 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34829 }
34830 if (obj4) {
34831 ecode5 = SWIG_AsVal_int(obj4, &val5);
34832 if (!SWIG_IsOK(ecode5)) {
34833 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34834 }
34835 arg5 = static_cast< int >(val5);
34836 }
34837 {
34838 PyThreadState* __tstate = wxPyBeginAllowThreads();
34839 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34840 wxPyEndAllowThreads(__tstate);
34841 if (PyErr_Occurred()) SWIG_fail;
34842 }
34843 resultobj = SWIG_Py_Void();
34844 return resultobj;
34845fail:
34846 return NULL;
34847}
34848
34849
34850SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34851 PyObject *resultobj = 0;
34852 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34853 wxWindow *arg2 = (wxWindow *) 0 ;
34854 wxDC *arg3 = 0 ;
34855 wxRect *arg4 = 0 ;
34856 int arg5 = (int) 0 ;
34857 void *argp1 = 0 ;
34858 int res1 = 0 ;
34859 void *argp2 = 0 ;
34860 int res2 = 0 ;
34861 void *argp3 = 0 ;
34862 int res3 = 0 ;
34863 wxRect temp4 ;
34864 int val5 ;
34865 int ecode5 = 0 ;
34866 PyObject * obj0 = 0 ;
34867 PyObject * obj1 = 0 ;
34868 PyObject * obj2 = 0 ;
34869 PyObject * obj3 = 0 ;
34870 PyObject * obj4 = 0 ;
34871 char * kwnames[] = {
34872 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34873 };
34874
34875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34877 if (!SWIG_IsOK(res1)) {
34878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34879 }
34880 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34882 if (!SWIG_IsOK(res2)) {
34883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34884 }
34885 arg2 = reinterpret_cast< wxWindow * >(argp2);
34886 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34887 if (!SWIG_IsOK(res3)) {
34888 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34889 }
34890 if (!argp3) {
34891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34892 }
34893 arg3 = reinterpret_cast< wxDC * >(argp3);
34894 {
34895 arg4 = &temp4;
34896 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34897 }
34898 if (obj4) {
34899 ecode5 = SWIG_AsVal_int(obj4, &val5);
34900 if (!SWIG_IsOK(ecode5)) {
34901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34902 }
34903 arg5 = static_cast< int >(val5);
34904 }
34905 {
34906 PyThreadState* __tstate = wxPyBeginAllowThreads();
34907 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34908 wxPyEndAllowThreads(__tstate);
34909 if (PyErr_Occurred()) SWIG_fail;
34910 }
34911 resultobj = SWIG_Py_Void();
34912 return resultobj;
34913fail:
34914 return NULL;
34915}
34916
34917
2131d850 34918SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34919 PyObject *resultobj = 0;
34920 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34921 wxWindow *arg2 = (wxWindow *) 0 ;
34922 wxDC *arg3 = 0 ;
34923 wxRect *arg4 = 0 ;
34924 int arg5 = (int) 0 ;
34925 void *argp1 = 0 ;
34926 int res1 = 0 ;
34927 void *argp2 = 0 ;
34928 int res2 = 0 ;
34929 void *argp3 = 0 ;
34930 int res3 = 0 ;
34931 wxRect temp4 ;
34932 int val5 ;
34933 int ecode5 = 0 ;
34934 PyObject * obj0 = 0 ;
34935 PyObject * obj1 = 0 ;
34936 PyObject * obj2 = 0 ;
34937 PyObject * obj3 = 0 ;
34938 PyObject * obj4 = 0 ;
34939 char * kwnames[] = {
34940 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34941 };
34942
2131d850 34943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34945 if (!SWIG_IsOK(res1)) {
2131d850 34946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34947 }
34948 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34949 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34950 if (!SWIG_IsOK(res2)) {
2131d850 34951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34952 }
34953 arg2 = reinterpret_cast< wxWindow * >(argp2);
34954 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34955 if (!SWIG_IsOK(res3)) {
2131d850 34956 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34957 }
34958 if (!argp3) {
2131d850 34959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34960 }
34961 arg3 = reinterpret_cast< wxDC * >(argp3);
34962 {
34963 arg4 = &temp4;
34964 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34965 }
34966 if (obj4) {
34967 ecode5 = SWIG_AsVal_int(obj4, &val5);
34968 if (!SWIG_IsOK(ecode5)) {
2131d850 34969 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34970 }
34971 arg5 = static_cast< int >(val5);
34972 }
34973 {
34974 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34975 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34976 wxPyEndAllowThreads(__tstate);
34977 if (PyErr_Occurred()) SWIG_fail;
34978 }
34979 resultobj = SWIG_Py_Void();
34980 return resultobj;
34981fail:
34982 return NULL;
34983}
34984
34985
34986SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34987 PyObject *resultobj = 0;
34988 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34989 wxWindow *arg2 = (wxWindow *) 0 ;
34990 wxDC *arg3 = 0 ;
34991 wxRect *arg4 = 0 ;
34992 int arg5 = (int) 0 ;
34993 void *argp1 = 0 ;
34994 int res1 = 0 ;
34995 void *argp2 = 0 ;
34996 int res2 = 0 ;
34997 void *argp3 = 0 ;
34998 int res3 = 0 ;
34999 wxRect temp4 ;
35000 int val5 ;
35001 int ecode5 = 0 ;
35002 PyObject * obj0 = 0 ;
35003 PyObject * obj1 = 0 ;
35004 PyObject * obj2 = 0 ;
35005 PyObject * obj3 = 0 ;
35006 PyObject * obj4 = 0 ;
35007 char * kwnames[] = {
35008 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35009 };
35010
35011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35013 if (!SWIG_IsOK(res1)) {
35014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35015 }
35016 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35017 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35018 if (!SWIG_IsOK(res2)) {
35019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35020 }
35021 arg2 = reinterpret_cast< wxWindow * >(argp2);
35022 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35023 if (!SWIG_IsOK(res3)) {
35024 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35025 }
35026 if (!argp3) {
35027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35028 }
35029 arg3 = reinterpret_cast< wxDC * >(argp3);
35030 {
35031 arg4 = &temp4;
35032 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35033 }
35034 if (obj4) {
35035 ecode5 = SWIG_AsVal_int(obj4, &val5);
35036 if (!SWIG_IsOK(ecode5)) {
35037 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35038 }
35039 arg5 = static_cast< int >(val5);
35040 }
35041 {
35042 PyThreadState* __tstate = wxPyBeginAllowThreads();
35043 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35044 wxPyEndAllowThreads(__tstate);
35045 if (PyErr_Occurred()) SWIG_fail;
35046 }
35047 resultobj = SWIG_Py_Void();
35048 return resultobj;
35049fail:
35050 return NULL;
35051}
35052
35053
35054SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35055 PyObject *resultobj = 0;
35056 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35057 wxWindow *arg2 = (wxWindow *) 0 ;
35058 wxDC *arg3 = 0 ;
35059 wxRect *arg4 = 0 ;
35060 int arg5 = (int) 0 ;
35061 void *argp1 = 0 ;
35062 int res1 = 0 ;
35063 void *argp2 = 0 ;
35064 int res2 = 0 ;
35065 void *argp3 = 0 ;
35066 int res3 = 0 ;
35067 wxRect temp4 ;
35068 int val5 ;
35069 int ecode5 = 0 ;
35070 PyObject * obj0 = 0 ;
35071 PyObject * obj1 = 0 ;
35072 PyObject * obj2 = 0 ;
35073 PyObject * obj3 = 0 ;
35074 PyObject * obj4 = 0 ;
35075 char * kwnames[] = {
35076 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35077 };
35078
35079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35081 if (!SWIG_IsOK(res1)) {
35082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35083 }
35084 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35085 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35086 if (!SWIG_IsOK(res2)) {
35087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35088 }
35089 arg2 = reinterpret_cast< wxWindow * >(argp2);
35090 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35091 if (!SWIG_IsOK(res3)) {
35092 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35093 }
35094 if (!argp3) {
35095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35096 }
35097 arg3 = reinterpret_cast< wxDC * >(argp3);
35098 {
35099 arg4 = &temp4;
35100 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35101 }
35102 if (obj4) {
35103 ecode5 = SWIG_AsVal_int(obj4, &val5);
35104 if (!SWIG_IsOK(ecode5)) {
35105 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35106 }
35107 arg5 = static_cast< int >(val5);
35108 }
35109 {
35110 PyThreadState* __tstate = wxPyBeginAllowThreads();
35111 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
35112 wxPyEndAllowThreads(__tstate);
35113 if (PyErr_Occurred()) SWIG_fail;
35114 }
35115 resultobj = SWIG_Py_Void();
35116 return resultobj;
35117fail:
35118 return NULL;
35119}
35120
35121
1bd55598
RD
35122SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35123 PyObject *resultobj = 0;
35124 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35125 wxWindow *arg2 = (wxWindow *) 0 ;
35126 SwigValueWrapper<wxSplitterRenderParams > result;
35127 void *argp1 = 0 ;
35128 int res1 = 0 ;
35129 void *argp2 = 0 ;
35130 int res2 = 0 ;
35131 PyObject * obj0 = 0 ;
35132 PyObject * obj1 = 0 ;
35133 char * kwnames[] = {
35134 (char *) "self",(char *) "win", NULL
35135 };
35136
35137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35139 if (!SWIG_IsOK(res1)) {
35140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35141 }
35142 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35143 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35144 if (!SWIG_IsOK(res2)) {
35145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35146 }
35147 arg2 = reinterpret_cast< wxWindow * >(argp2);
35148 {
35149 PyThreadState* __tstate = wxPyBeginAllowThreads();
35150 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35151 wxPyEndAllowThreads(__tstate);
35152 if (PyErr_Occurred()) SWIG_fail;
35153 }
35154 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35155 return resultobj;
35156fail:
35157 return NULL;
35158}
35159
35160
35161SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35162 PyObject *resultobj = 0;
35163 wxRendererNative *result = 0 ;
35164
35165 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35166 {
704eda0c 35167 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35168 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 35169 {
1bd55598
RD
35170 wxRendererNative &_result_ref = wxRendererNative::Get();
35171 result = (wxRendererNative *) &_result_ref;
36ed4f51 35172 }
1bd55598
RD
35173 wxPyEndAllowThreads(__tstate);
35174 if (PyErr_Occurred()) SWIG_fail;
35175 }
35176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35177 return resultobj;
35178fail:
35179 return NULL;
35180}
35181
35182
35183SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35184 PyObject *resultobj = 0;
35185 wxRendererNative *result = 0 ;
35186
35187 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35188 {
704eda0c 35189 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35190 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35191 {
1bd55598
RD
35192 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35193 result = (wxRendererNative *) &_result_ref;
be9b1dca 35194 }
1bd55598
RD
35195 wxPyEndAllowThreads(__tstate);
35196 if (PyErr_Occurred()) SWIG_fail;
35197 }
35198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35199 return resultobj;
35200fail:
35201 return NULL;
35202}
35203
35204
35205SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35206 PyObject *resultobj = 0;
35207 wxRendererNative *result = 0 ;
35208
35209 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35210 {
704eda0c 35211 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35212 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35213 {
1bd55598
RD
35214 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35215 result = (wxRendererNative *) &_result_ref;
be9b1dca 35216 }
1bd55598
RD
35217 wxPyEndAllowThreads(__tstate);
35218 if (PyErr_Occurred()) SWIG_fail;
35219 }
35220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35221 return resultobj;
35222fail:
35223 return NULL;
35224}
35225
35226
35227SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35228 PyObject *resultobj = 0;
35229 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35230 wxRendererNative *result = 0 ;
35231 void *argp1 = 0 ;
35232 int res1 = 0 ;
35233 PyObject * obj0 = 0 ;
35234 char * kwnames[] = {
35235 (char *) "renderer", NULL
35236 };
35237
35238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35240 if (!SWIG_IsOK(res1)) {
35241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35242 }
35243 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35244 {
704eda0c 35245 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
35246 PyThreadState* __tstate = wxPyBeginAllowThreads();
35247 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35248 wxPyEndAllowThreads(__tstate);
35249 if (PyErr_Occurred()) SWIG_fail;
35250 }
35251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35252 return resultobj;
35253fail:
35254 return NULL;
35255}
35256
35257
35258SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35259 PyObject *resultobj = 0;
35260 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35261 SwigValueWrapper<wxRendererVersion > result;
35262 void *argp1 = 0 ;
35263 int res1 = 0 ;
35264 PyObject *swig_obj[1] ;
35265
35266 if (!args) SWIG_fail;
35267 swig_obj[0] = args;
35268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35269 if (!SWIG_IsOK(res1)) {
35270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35271 }
35272 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35273 {
35274 PyThreadState* __tstate = wxPyBeginAllowThreads();
35275 result = ((wxRendererNative const *)arg1)->GetVersion();
35276 wxPyEndAllowThreads(__tstate);
35277 if (PyErr_Occurred()) SWIG_fail;
35278 }
35279 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35280 return resultobj;
35281fail:
35282 return NULL;
35283}
35284
35285
35286SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35287 PyObject *obj;
35288 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35289 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35290 return SWIG_Py_Void();
35291}
35292
27e45892
RD
35293SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35294 PyObject *resultobj = 0;
35295 wxPseudoDC *result = 0 ;
35296
35297 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35298 {
35299 PyThreadState* __tstate = wxPyBeginAllowThreads();
35300 result = (wxPseudoDC *)new wxPseudoDC();
35301 wxPyEndAllowThreads(__tstate);
35302 if (PyErr_Occurred()) SWIG_fail;
35303 }
35304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35305 return resultobj;
35306fail:
35307 return NULL;
35308}
35309
35310
35311SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35312 PyObject *resultobj = 0;
35313 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35314 void *argp1 = 0 ;
35315 int res1 = 0 ;
35316 PyObject *swig_obj[1] ;
35317
35318 if (!args) SWIG_fail;
35319 swig_obj[0] = args;
35320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35321 if (!SWIG_IsOK(res1)) {
35322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35323 }
35324 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35325 {
35326 PyThreadState* __tstate = wxPyBeginAllowThreads();
35327 (arg1)->BeginDrawing();
35328 wxPyEndAllowThreads(__tstate);
35329 if (PyErr_Occurred()) SWIG_fail;
35330 }
35331 resultobj = SWIG_Py_Void();
35332 return resultobj;
35333fail:
35334 return NULL;
35335}
35336
35337
35338SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35339 PyObject *resultobj = 0;
35340 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35341 void *argp1 = 0 ;
35342 int res1 = 0 ;
35343 PyObject *swig_obj[1] ;
35344
35345 if (!args) SWIG_fail;
35346 swig_obj[0] = args;
35347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35348 if (!SWIG_IsOK(res1)) {
35349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35350 }
35351 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35352 {
35353 PyThreadState* __tstate = wxPyBeginAllowThreads();
35354 (arg1)->EndDrawing();
35355 wxPyEndAllowThreads(__tstate);
35356 if (PyErr_Occurred()) SWIG_fail;
35357 }
35358 resultobj = SWIG_Py_Void();
35359 return resultobj;
35360fail:
35361 return NULL;
35362}
35363
35364
35365SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35366 PyObject *resultobj = 0;
35367 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35368 void *argp1 = 0 ;
35369 int res1 = 0 ;
35370 PyObject *swig_obj[1] ;
35371
35372 if (!args) SWIG_fail;
35373 swig_obj[0] = args;
35374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35375 if (!SWIG_IsOK(res1)) {
35376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35377 }
35378 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35379 {
35380 PyThreadState* __tstate = wxPyBeginAllowThreads();
35381 delete arg1;
35382
35383 wxPyEndAllowThreads(__tstate);
35384 if (PyErr_Occurred()) SWIG_fail;
35385 }
35386 resultobj = SWIG_Py_Void();
35387 return resultobj;
35388fail:
35389 return NULL;
35390}
35391
35392
35393SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35394 PyObject *resultobj = 0;
35395 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35396 void *argp1 = 0 ;
35397 int res1 = 0 ;
35398 PyObject *swig_obj[1] ;
35399
35400 if (!args) SWIG_fail;
35401 swig_obj[0] = args;
35402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35403 if (!SWIG_IsOK(res1)) {
35404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35405 }
35406 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35407 {
35408 PyThreadState* __tstate = wxPyBeginAllowThreads();
35409 (arg1)->RemoveAll();
35410 wxPyEndAllowThreads(__tstate);
35411 if (PyErr_Occurred()) SWIG_fail;
35412 }
35413 resultobj = SWIG_Py_Void();
35414 return resultobj;
35415fail:
35416 return NULL;
35417}
35418
35419
35420SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35421 PyObject *resultobj = 0;
35422 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35423 int result;
35424 void *argp1 = 0 ;
35425 int res1 = 0 ;
35426 PyObject *swig_obj[1] ;
35427
35428 if (!args) SWIG_fail;
35429 swig_obj[0] = args;
35430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35431 if (!SWIG_IsOK(res1)) {
35432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35433 }
35434 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35435 {
35436 PyThreadState* __tstate = wxPyBeginAllowThreads();
35437 result = (int)(arg1)->GetLen();
35438 wxPyEndAllowThreads(__tstate);
35439 if (PyErr_Occurred()) SWIG_fail;
35440 }
35441 resultobj = SWIG_From_int(static_cast< int >(result));
35442 return resultobj;
35443fail:
35444 return NULL;
35445}
35446
35447
35448SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35449 PyObject *resultobj = 0;
35450 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35451 int arg2 ;
35452 void *argp1 = 0 ;
35453 int res1 = 0 ;
35454 int val2 ;
35455 int ecode2 = 0 ;
35456 PyObject * obj0 = 0 ;
35457 PyObject * obj1 = 0 ;
35458 char * kwnames[] = {
35459 (char *) "self",(char *) "id", NULL
35460 };
35461
35462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35464 if (!SWIG_IsOK(res1)) {
35465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35466 }
35467 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35468 ecode2 = SWIG_AsVal_int(obj1, &val2);
35469 if (!SWIG_IsOK(ecode2)) {
35470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35471 }
35472 arg2 = static_cast< int >(val2);
35473 {
35474 PyThreadState* __tstate = wxPyBeginAllowThreads();
35475 (arg1)->SetId(arg2);
35476 wxPyEndAllowThreads(__tstate);
35477 if (PyErr_Occurred()) SWIG_fail;
35478 }
35479 resultobj = SWIG_Py_Void();
35480 return resultobj;
35481fail:
35482 return NULL;
35483}
35484
35485
35486SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35487 PyObject *resultobj = 0;
35488 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35489 int arg2 ;
35490 void *argp1 = 0 ;
35491 int res1 = 0 ;
35492 int val2 ;
35493 int ecode2 = 0 ;
35494 PyObject * obj0 = 0 ;
35495 PyObject * obj1 = 0 ;
35496 char * kwnames[] = {
35497 (char *) "self",(char *) "id", NULL
35498 };
35499
35500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35502 if (!SWIG_IsOK(res1)) {
35503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35504 }
35505 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35506 ecode2 = SWIG_AsVal_int(obj1, &val2);
35507 if (!SWIG_IsOK(ecode2)) {
35508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35509 }
35510 arg2 = static_cast< int >(val2);
35511 {
35512 PyThreadState* __tstate = wxPyBeginAllowThreads();
35513 (arg1)->ClearId(arg2);
35514 wxPyEndAllowThreads(__tstate);
35515 if (PyErr_Occurred()) SWIG_fail;
35516 }
35517 resultobj = SWIG_Py_Void();
35518 return resultobj;
35519fail:
35520 return NULL;
35521}
35522
35523
35524SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35525 PyObject *resultobj = 0;
35526 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35527 int arg2 ;
35528 void *argp1 = 0 ;
35529 int res1 = 0 ;
35530 int val2 ;
35531 int ecode2 = 0 ;
35532 PyObject * obj0 = 0 ;
35533 PyObject * obj1 = 0 ;
35534 char * kwnames[] = {
35535 (char *) "self",(char *) "id", NULL
35536 };
35537
35538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35540 if (!SWIG_IsOK(res1)) {
35541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35542 }
35543 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35544 ecode2 = SWIG_AsVal_int(obj1, &val2);
35545 if (!SWIG_IsOK(ecode2)) {
35546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35547 }
35548 arg2 = static_cast< int >(val2);
35549 {
35550 PyThreadState* __tstate = wxPyBeginAllowThreads();
35551 (arg1)->RemoveId(arg2);
35552 wxPyEndAllowThreads(__tstate);
35553 if (PyErr_Occurred()) SWIG_fail;
35554 }
35555 resultobj = SWIG_Py_Void();
35556 return resultobj;
35557fail:
35558 return NULL;
35559}
35560
35561
35562SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35563 PyObject *resultobj = 0;
35564 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35565 int arg2 ;
35566 int arg3 ;
35567 int arg4 ;
35568 void *argp1 = 0 ;
35569 int res1 = 0 ;
35570 int val2 ;
35571 int ecode2 = 0 ;
35572 int val3 ;
35573 int ecode3 = 0 ;
35574 int val4 ;
35575 int ecode4 = 0 ;
35576 PyObject * obj0 = 0 ;
35577 PyObject * obj1 = 0 ;
35578 PyObject * obj2 = 0 ;
35579 PyObject * obj3 = 0 ;
35580 char * kwnames[] = {
35581 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35582 };
35583
35584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35586 if (!SWIG_IsOK(res1)) {
35587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35588 }
35589 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35590 ecode2 = SWIG_AsVal_int(obj1, &val2);
35591 if (!SWIG_IsOK(ecode2)) {
35592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35593 }
35594 arg2 = static_cast< int >(val2);
35595 ecode3 = SWIG_AsVal_int(obj2, &val3);
35596 if (!SWIG_IsOK(ecode3)) {
35597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35598 }
35599 arg3 = static_cast< int >(val3);
35600 ecode4 = SWIG_AsVal_int(obj3, &val4);
35601 if (!SWIG_IsOK(ecode4)) {
35602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35603 }
35604 arg4 = static_cast< int >(val4);
35605 {
35606 PyThreadState* __tstate = wxPyBeginAllowThreads();
35607 (arg1)->TranslateId(arg2,arg3,arg4);
35608 wxPyEndAllowThreads(__tstate);
35609 if (PyErr_Occurred()) SWIG_fail;
35610 }
35611 resultobj = SWIG_Py_Void();
35612 return resultobj;
35613fail:
35614 return NULL;
35615}
35616
35617
72ef6efb
RD
35618SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35619 PyObject *resultobj = 0;
35620 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35621 int arg2 ;
35622 bool arg3 = (bool) true ;
35623 void *argp1 = 0 ;
35624 int res1 = 0 ;
35625 int val2 ;
35626 int ecode2 = 0 ;
35627 bool val3 ;
35628 int ecode3 = 0 ;
35629 PyObject * obj0 = 0 ;
35630 PyObject * obj1 = 0 ;
35631 PyObject * obj2 = 0 ;
35632 char * kwnames[] = {
35633 (char *) "self",(char *) "id",(char *) "greyout", NULL
35634 };
35635
35636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35638 if (!SWIG_IsOK(res1)) {
35639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35640 }
35641 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35642 ecode2 = SWIG_AsVal_int(obj1, &val2);
35643 if (!SWIG_IsOK(ecode2)) {
35644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35645 }
35646 arg2 = static_cast< int >(val2);
35647 if (obj2) {
35648 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35649 if (!SWIG_IsOK(ecode3)) {
35650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35651 }
35652 arg3 = static_cast< bool >(val3);
35653 }
35654 {
35655 PyThreadState* __tstate = wxPyBeginAllowThreads();
35656 (arg1)->SetIdGreyedOut(arg2,arg3);
35657 wxPyEndAllowThreads(__tstate);
35658 if (PyErr_Occurred()) SWIG_fail;
35659 }
35660 resultobj = SWIG_Py_Void();
35661 return resultobj;
35662fail:
35663 return NULL;
35664}
35665
35666
35667SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35668 PyObject *resultobj = 0;
35669 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35670 int arg2 ;
35671 bool result;
35672 void *argp1 = 0 ;
35673 int res1 = 0 ;
35674 int val2 ;
35675 int ecode2 = 0 ;
35676 PyObject * obj0 = 0 ;
35677 PyObject * obj1 = 0 ;
35678 char * kwnames[] = {
35679 (char *) "self",(char *) "id", NULL
35680 };
35681
35682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35684 if (!SWIG_IsOK(res1)) {
35685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35686 }
35687 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35688 ecode2 = SWIG_AsVal_int(obj1, &val2);
35689 if (!SWIG_IsOK(ecode2)) {
35690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35691 }
35692 arg2 = static_cast< int >(val2);
35693 {
35694 PyThreadState* __tstate = wxPyBeginAllowThreads();
35695 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35696 wxPyEndAllowThreads(__tstate);
35697 if (PyErr_Occurred()) SWIG_fail;
35698 }
35699 {
35700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35701 }
35702 return resultobj;
35703fail:
35704 return NULL;
35705}
35706
35707
35708SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35709 PyObject *resultobj = 0;
35710 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35711 int arg2 ;
35712 int arg3 ;
35713 int arg4 = (int) 1 ;
35714 wxColor const &arg5_defvalue = *wxWHITE ;
35715 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35716 PyObject *result = 0 ;
35717 void *argp1 = 0 ;
35718 int res1 = 0 ;
35719 int val2 ;
35720 int ecode2 = 0 ;
35721 int val3 ;
35722 int ecode3 = 0 ;
35723 int val4 ;
35724 int ecode4 = 0 ;
35725 void *argp5 = 0 ;
35726 int res5 = 0 ;
35727 PyObject * obj0 = 0 ;
35728 PyObject * obj1 = 0 ;
35729 PyObject * obj2 = 0 ;
35730 PyObject * obj3 = 0 ;
35731 PyObject * obj4 = 0 ;
35732 char * kwnames[] = {
35733 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35734 };
35735
35736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35738 if (!SWIG_IsOK(res1)) {
35739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35740 }
35741 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35742 ecode2 = SWIG_AsVal_int(obj1, &val2);
35743 if (!SWIG_IsOK(ecode2)) {
35744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35745 }
35746 arg2 = static_cast< int >(val2);
35747 ecode3 = SWIG_AsVal_int(obj2, &val3);
35748 if (!SWIG_IsOK(ecode3)) {
35749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35750 }
35751 arg3 = static_cast< int >(val3);
35752 if (obj3) {
35753 ecode4 = SWIG_AsVal_int(obj3, &val4);
35754 if (!SWIG_IsOK(ecode4)) {
35755 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35756 }
35757 arg4 = static_cast< int >(val4);
35758 }
35759 if (obj4) {
35760 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35761 if (!SWIG_IsOK(res5)) {
35762 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35763 }
35764 if (!argp5) {
35765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35766 }
35767 arg5 = reinterpret_cast< wxColor * >(argp5);
35768 }
35769 {
35770 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35771 if (PyErr_Occurred()) SWIG_fail;
35772 }
35773 resultobj = result;
35774 return resultobj;
35775fail:
35776 return NULL;
35777}
35778
35779
35780SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35781 PyObject *resultobj = 0;
35782 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35783 int arg2 ;
35784 int arg3 ;
35785 PyObject *result = 0 ;
35786 void *argp1 = 0 ;
35787 int res1 = 0 ;
35788 int val2 ;
35789 int ecode2 = 0 ;
35790 int val3 ;
35791 int ecode3 = 0 ;
35792 PyObject * obj0 = 0 ;
35793 PyObject * obj1 = 0 ;
35794 PyObject * obj2 = 0 ;
35795 char * kwnames[] = {
35796 (char *) "self",(char *) "x",(char *) "y", NULL
35797 };
35798
35799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35801 if (!SWIG_IsOK(res1)) {
35802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35803 }
35804 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35805 ecode2 = SWIG_AsVal_int(obj1, &val2);
35806 if (!SWIG_IsOK(ecode2)) {
35807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35808 }
35809 arg2 = static_cast< int >(val2);
35810 ecode3 = SWIG_AsVal_int(obj2, &val3);
35811 if (!SWIG_IsOK(ecode3)) {
35812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35813 }
35814 arg3 = static_cast< int >(val3);
35815 {
35816 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35817 if (PyErr_Occurred()) SWIG_fail;
35818 }
35819 resultobj = result;
35820 return resultobj;
35821fail:
35822 return NULL;
35823}
35824
35825
27e45892
RD
35826SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35827 PyObject *resultobj = 0;
35828 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35829 int arg2 ;
35830 wxDC *arg3 = (wxDC *) 0 ;
35831 void *argp1 = 0 ;
35832 int res1 = 0 ;
35833 int val2 ;
35834 int ecode2 = 0 ;
35835 void *argp3 = 0 ;
35836 int res3 = 0 ;
35837 PyObject * obj0 = 0 ;
35838 PyObject * obj1 = 0 ;
35839 PyObject * obj2 = 0 ;
35840 char * kwnames[] = {
35841 (char *) "self",(char *) "id",(char *) "dc", NULL
35842 };
35843
35844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35846 if (!SWIG_IsOK(res1)) {
35847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35848 }
35849 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35850 ecode2 = SWIG_AsVal_int(obj1, &val2);
35851 if (!SWIG_IsOK(ecode2)) {
35852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35853 }
35854 arg2 = static_cast< int >(val2);
35855 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35856 if (!SWIG_IsOK(res3)) {
35857 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35858 }
35859 arg3 = reinterpret_cast< wxDC * >(argp3);
35860 {
35861 PyThreadState* __tstate = wxPyBeginAllowThreads();
35862 (arg1)->DrawIdToDC(arg2,arg3);
35863 wxPyEndAllowThreads(__tstate);
35864 if (PyErr_Occurred()) SWIG_fail;
35865 }
35866 resultobj = SWIG_Py_Void();
35867 return resultobj;
35868fail:
35869 return NULL;
35870}
35871
35872
35873SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35874 PyObject *resultobj = 0;
35875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35876 int arg2 ;
35877 wxRect *arg3 = 0 ;
35878 void *argp1 = 0 ;
35879 int res1 = 0 ;
35880 int val2 ;
35881 int ecode2 = 0 ;
35882 wxRect temp3 ;
35883 PyObject * obj0 = 0 ;
35884 PyObject * obj1 = 0 ;
35885 PyObject * obj2 = 0 ;
35886 char * kwnames[] = {
35887 (char *) "self",(char *) "id",(char *) "rect", NULL
35888 };
35889
35890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35892 if (!SWIG_IsOK(res1)) {
35893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35894 }
35895 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35896 ecode2 = SWIG_AsVal_int(obj1, &val2);
35897 if (!SWIG_IsOK(ecode2)) {
35898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35899 }
35900 arg2 = static_cast< int >(val2);
35901 {
35902 arg3 = &temp3;
35903 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35904 }
35905 {
35906 PyThreadState* __tstate = wxPyBeginAllowThreads();
35907 (arg1)->SetIdBounds(arg2,*arg3);
35908 wxPyEndAllowThreads(__tstate);
35909 if (PyErr_Occurred()) SWIG_fail;
35910 }
35911 resultobj = SWIG_Py_Void();
35912 return resultobj;
35913fail:
35914 return NULL;
35915}
35916
35917
35918SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35919 PyObject *resultobj = 0;
35920 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35921 int arg2 ;
35922 wxRect result;
35923 void *argp1 = 0 ;
35924 int res1 = 0 ;
35925 int val2 ;
35926 int ecode2 = 0 ;
35927 PyObject * obj0 = 0 ;
35928 PyObject * obj1 = 0 ;
35929 char * kwnames[] = {
35930 (char *) "self",(char *) "id", NULL
35931 };
35932
35933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35935 if (!SWIG_IsOK(res1)) {
35936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35937 }
35938 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35939 ecode2 = SWIG_AsVal_int(obj1, &val2);
35940 if (!SWIG_IsOK(ecode2)) {
35941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35942 }
35943 arg2 = static_cast< int >(val2);
35944 {
35945 PyThreadState* __tstate = wxPyBeginAllowThreads();
35946 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35947 wxPyEndAllowThreads(__tstate);
35948 if (PyErr_Occurred()) SWIG_fail;
35949 }
35950 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35951 return resultobj;
35952fail:
35953 return NULL;
35954}
35955
35956
35957SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35958 PyObject *resultobj = 0;
35959 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35960 wxDC *arg2 = (wxDC *) 0 ;
35961 wxRect *arg3 = 0 ;
35962 void *argp1 = 0 ;
35963 int res1 = 0 ;
35964 void *argp2 = 0 ;
35965 int res2 = 0 ;
35966 wxRect temp3 ;
35967 PyObject * obj0 = 0 ;
35968 PyObject * obj1 = 0 ;
35969 PyObject * obj2 = 0 ;
35970 char * kwnames[] = {
35971 (char *) "self",(char *) "dc",(char *) "rect", NULL
35972 };
35973
35974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35976 if (!SWIG_IsOK(res1)) {
35977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35978 }
35979 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35980 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35981 if (!SWIG_IsOK(res2)) {
35982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35983 }
35984 arg2 = reinterpret_cast< wxDC * >(argp2);
35985 {
35986 arg3 = &temp3;
35987 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35988 }
35989 {
35990 PyThreadState* __tstate = wxPyBeginAllowThreads();
35991 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
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_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36003 PyObject *resultobj = 0;
36004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36005 wxDC *arg2 = (wxDC *) 0 ;
36006 wxRegion *arg3 = 0 ;
36007 void *argp1 = 0 ;
36008 int res1 = 0 ;
36009 void *argp2 = 0 ;
36010 int res2 = 0 ;
36011 void *argp3 = 0 ;
36012 int res3 = 0 ;
36013 PyObject * obj0 = 0 ;
36014 PyObject * obj1 = 0 ;
36015 PyObject * obj2 = 0 ;
36016 char * kwnames[] = {
36017 (char *) "self",(char *) "dc",(char *) "region", NULL
36018 };
36019
36020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36022 if (!SWIG_IsOK(res1)) {
36023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36024 }
36025 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36027 if (!SWIG_IsOK(res2)) {
36028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36029 }
36030 arg2 = reinterpret_cast< wxDC * >(argp2);
36031 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36032 if (!SWIG_IsOK(res3)) {
36033 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36034 }
36035 if (!argp3) {
36036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36037 }
36038 arg3 = reinterpret_cast< wxRegion * >(argp3);
36039 {
36040 PyThreadState* __tstate = wxPyBeginAllowThreads();
36041 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36042 wxPyEndAllowThreads(__tstate);
36043 if (PyErr_Occurred()) SWIG_fail;
36044 }
36045 resultobj = SWIG_Py_Void();
36046 return resultobj;
36047fail:
36048 return NULL;
36049}
36050
36051
36052SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36053 PyObject *resultobj = 0;
36054 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36055 wxDC *arg2 = (wxDC *) 0 ;
36056 void *argp1 = 0 ;
36057 int res1 = 0 ;
36058 void *argp2 = 0 ;
36059 int res2 = 0 ;
36060 PyObject * obj0 = 0 ;
36061 PyObject * obj1 = 0 ;
36062 char * kwnames[] = {
36063 (char *) "self",(char *) "dc", NULL
36064 };
36065
36066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36068 if (!SWIG_IsOK(res1)) {
36069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36070 }
36071 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36072 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36073 if (!SWIG_IsOK(res2)) {
36074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36075 }
36076 arg2 = reinterpret_cast< wxDC * >(argp2);
36077 {
36078 PyThreadState* __tstate = wxPyBeginAllowThreads();
36079 (arg1)->DrawToDC(arg2);
36080 wxPyEndAllowThreads(__tstate);
36081 if (PyErr_Occurred()) SWIG_fail;
36082 }
36083 resultobj = SWIG_Py_Void();
36084 return resultobj;
36085fail:
36086 return NULL;
36087}
36088
36089
36090SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36091 PyObject *resultobj = 0;
36092 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36093 int arg2 ;
36094 int arg3 ;
36095 wxColour *arg4 = 0 ;
36096 int arg5 = (int) wxFLOOD_SURFACE ;
36097 void *argp1 = 0 ;
36098 int res1 = 0 ;
36099 int val2 ;
36100 int ecode2 = 0 ;
36101 int val3 ;
36102 int ecode3 = 0 ;
36103 wxColour temp4 ;
36104 int val5 ;
36105 int ecode5 = 0 ;
36106 PyObject * obj0 = 0 ;
36107 PyObject * obj1 = 0 ;
36108 PyObject * obj2 = 0 ;
36109 PyObject * obj3 = 0 ;
36110 PyObject * obj4 = 0 ;
36111 char * kwnames[] = {
36112 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36113 };
36114
36115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36117 if (!SWIG_IsOK(res1)) {
36118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36119 }
36120 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36121 ecode2 = SWIG_AsVal_int(obj1, &val2);
36122 if (!SWIG_IsOK(ecode2)) {
36123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36124 }
36125 arg2 = static_cast< int >(val2);
36126 ecode3 = SWIG_AsVal_int(obj2, &val3);
36127 if (!SWIG_IsOK(ecode3)) {
36128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36129 }
36130 arg3 = static_cast< int >(val3);
36131 {
36132 arg4 = &temp4;
36133 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36134 }
36135 if (obj4) {
36136 ecode5 = SWIG_AsVal_int(obj4, &val5);
36137 if (!SWIG_IsOK(ecode5)) {
36138 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36139 }
36140 arg5 = static_cast< int >(val5);
36141 }
36142 {
36143 PyThreadState* __tstate = wxPyBeginAllowThreads();
36144 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36145 wxPyEndAllowThreads(__tstate);
36146 if (PyErr_Occurred()) SWIG_fail;
36147 }
36148 resultobj = SWIG_Py_Void();
36149 return resultobj;
36150fail:
36151 return NULL;
36152}
36153
36154
36155SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36156 PyObject *resultobj = 0;
36157 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36158 wxPoint *arg2 = 0 ;
36159 wxColour *arg3 = 0 ;
36160 int arg4 = (int) wxFLOOD_SURFACE ;
36161 void *argp1 = 0 ;
36162 int res1 = 0 ;
36163 wxPoint temp2 ;
36164 wxColour temp3 ;
36165 int val4 ;
36166 int ecode4 = 0 ;
36167 PyObject * obj0 = 0 ;
36168 PyObject * obj1 = 0 ;
36169 PyObject * obj2 = 0 ;
36170 PyObject * obj3 = 0 ;
36171 char * kwnames[] = {
36172 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36173 };
36174
36175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36177 if (!SWIG_IsOK(res1)) {
36178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36179 }
36180 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36181 {
36182 arg2 = &temp2;
36183 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36184 }
36185 {
36186 arg3 = &temp3;
36187 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36188 }
36189 if (obj3) {
36190 ecode4 = SWIG_AsVal_int(obj3, &val4);
36191 if (!SWIG_IsOK(ecode4)) {
36192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36193 }
36194 arg4 = static_cast< int >(val4);
36195 }
36196 {
36197 PyThreadState* __tstate = wxPyBeginAllowThreads();
36198 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36199 wxPyEndAllowThreads(__tstate);
36200 if (PyErr_Occurred()) SWIG_fail;
36201 }
36202 resultobj = SWIG_Py_Void();
36203 return resultobj;
36204fail:
36205 return NULL;
36206}
36207
36208
36209SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36210 PyObject *resultobj = 0;
36211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36212 int arg2 ;
36213 int arg3 ;
36214 int arg4 ;
36215 int arg5 ;
36216 void *argp1 = 0 ;
36217 int res1 = 0 ;
36218 int val2 ;
36219 int ecode2 = 0 ;
36220 int val3 ;
36221 int ecode3 = 0 ;
36222 int val4 ;
36223 int ecode4 = 0 ;
36224 int val5 ;
36225 int ecode5 = 0 ;
36226 PyObject * obj0 = 0 ;
36227 PyObject * obj1 = 0 ;
36228 PyObject * obj2 = 0 ;
36229 PyObject * obj3 = 0 ;
36230 PyObject * obj4 = 0 ;
36231 char * kwnames[] = {
36232 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36233 };
36234
36235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36237 if (!SWIG_IsOK(res1)) {
36238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36239 }
36240 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36241 ecode2 = SWIG_AsVal_int(obj1, &val2);
36242 if (!SWIG_IsOK(ecode2)) {
36243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36244 }
36245 arg2 = static_cast< int >(val2);
36246 ecode3 = SWIG_AsVal_int(obj2, &val3);
36247 if (!SWIG_IsOK(ecode3)) {
36248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36249 }
36250 arg3 = static_cast< int >(val3);
36251 ecode4 = SWIG_AsVal_int(obj3, &val4);
36252 if (!SWIG_IsOK(ecode4)) {
36253 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36254 }
36255 arg4 = static_cast< int >(val4);
36256 ecode5 = SWIG_AsVal_int(obj4, &val5);
36257 if (!SWIG_IsOK(ecode5)) {
36258 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36259 }
36260 arg5 = static_cast< int >(val5);
36261 {
36262 PyThreadState* __tstate = wxPyBeginAllowThreads();
36263 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36264 wxPyEndAllowThreads(__tstate);
36265 if (PyErr_Occurred()) SWIG_fail;
36266 }
36267 resultobj = SWIG_Py_Void();
36268 return resultobj;
36269fail:
36270 return NULL;
36271}
36272
36273
36274SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36275 PyObject *resultobj = 0;
36276 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36277 wxPoint *arg2 = 0 ;
36278 wxPoint *arg3 = 0 ;
36279 void *argp1 = 0 ;
36280 int res1 = 0 ;
36281 wxPoint temp2 ;
36282 wxPoint temp3 ;
36283 PyObject * obj0 = 0 ;
36284 PyObject * obj1 = 0 ;
36285 PyObject * obj2 = 0 ;
36286 char * kwnames[] = {
36287 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36288 };
36289
36290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36292 if (!SWIG_IsOK(res1)) {
36293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36294 }
36295 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36296 {
36297 arg2 = &temp2;
36298 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36299 }
36300 {
36301 arg3 = &temp3;
36302 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36303 }
36304 {
36305 PyThreadState* __tstate = wxPyBeginAllowThreads();
36306 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36307 wxPyEndAllowThreads(__tstate);
36308 if (PyErr_Occurred()) SWIG_fail;
36309 }
36310 resultobj = SWIG_Py_Void();
36311 return resultobj;
36312fail:
36313 return NULL;
36314}
36315
36316
36317SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36318 PyObject *resultobj = 0;
36319 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36320 int arg2 ;
36321 int arg3 ;
36322 void *argp1 = 0 ;
36323 int res1 = 0 ;
36324 int val2 ;
36325 int ecode2 = 0 ;
36326 int val3 ;
36327 int ecode3 = 0 ;
36328 PyObject * obj0 = 0 ;
36329 PyObject * obj1 = 0 ;
36330 PyObject * obj2 = 0 ;
36331 char * kwnames[] = {
36332 (char *) "self",(char *) "x",(char *) "y", NULL
36333 };
36334
36335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36337 if (!SWIG_IsOK(res1)) {
36338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36339 }
36340 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36341 ecode2 = SWIG_AsVal_int(obj1, &val2);
36342 if (!SWIG_IsOK(ecode2)) {
36343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36344 }
36345 arg2 = static_cast< int >(val2);
36346 ecode3 = SWIG_AsVal_int(obj2, &val3);
36347 if (!SWIG_IsOK(ecode3)) {
36348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36349 }
36350 arg3 = static_cast< int >(val3);
36351 {
36352 PyThreadState* __tstate = wxPyBeginAllowThreads();
36353 (arg1)->CrossHair(arg2,arg3);
36354 wxPyEndAllowThreads(__tstate);
36355 if (PyErr_Occurred()) SWIG_fail;
36356 }
36357 resultobj = SWIG_Py_Void();
36358 return resultobj;
36359fail:
36360 return NULL;
36361}
36362
36363
36364SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36365 PyObject *resultobj = 0;
36366 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36367 wxPoint *arg2 = 0 ;
36368 void *argp1 = 0 ;
36369 int res1 = 0 ;
36370 wxPoint temp2 ;
36371 PyObject * obj0 = 0 ;
36372 PyObject * obj1 = 0 ;
36373 char * kwnames[] = {
36374 (char *) "self",(char *) "pt", NULL
36375 };
36376
36377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36379 if (!SWIG_IsOK(res1)) {
36380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36381 }
36382 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36383 {
36384 arg2 = &temp2;
36385 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36386 }
36387 {
36388 PyThreadState* __tstate = wxPyBeginAllowThreads();
36389 (arg1)->CrossHair((wxPoint const &)*arg2);
36390 wxPyEndAllowThreads(__tstate);
36391 if (PyErr_Occurred()) SWIG_fail;
36392 }
36393 resultobj = SWIG_Py_Void();
36394 return resultobj;
36395fail:
36396 return NULL;
36397}
36398
36399
36400SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36401 PyObject *resultobj = 0;
36402 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36403 int arg2 ;
36404 int arg3 ;
36405 int arg4 ;
36406 int arg5 ;
36407 int arg6 ;
36408 int arg7 ;
36409 void *argp1 = 0 ;
36410 int res1 = 0 ;
36411 int val2 ;
36412 int ecode2 = 0 ;
36413 int val3 ;
36414 int ecode3 = 0 ;
36415 int val4 ;
36416 int ecode4 = 0 ;
36417 int val5 ;
36418 int ecode5 = 0 ;
36419 int val6 ;
36420 int ecode6 = 0 ;
36421 int val7 ;
36422 int ecode7 = 0 ;
36423 PyObject * obj0 = 0 ;
36424 PyObject * obj1 = 0 ;
36425 PyObject * obj2 = 0 ;
36426 PyObject * obj3 = 0 ;
36427 PyObject * obj4 = 0 ;
36428 PyObject * obj5 = 0 ;
36429 PyObject * obj6 = 0 ;
36430 char * kwnames[] = {
36431 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36432 };
36433
36434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36436 if (!SWIG_IsOK(res1)) {
36437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36438 }
36439 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36440 ecode2 = SWIG_AsVal_int(obj1, &val2);
36441 if (!SWIG_IsOK(ecode2)) {
36442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36443 }
36444 arg2 = static_cast< int >(val2);
36445 ecode3 = SWIG_AsVal_int(obj2, &val3);
36446 if (!SWIG_IsOK(ecode3)) {
36447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36448 }
36449 arg3 = static_cast< int >(val3);
36450 ecode4 = SWIG_AsVal_int(obj3, &val4);
36451 if (!SWIG_IsOK(ecode4)) {
36452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36453 }
36454 arg4 = static_cast< int >(val4);
36455 ecode5 = SWIG_AsVal_int(obj4, &val5);
36456 if (!SWIG_IsOK(ecode5)) {
36457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36458 }
36459 arg5 = static_cast< int >(val5);
36460 ecode6 = SWIG_AsVal_int(obj5, &val6);
36461 if (!SWIG_IsOK(ecode6)) {
36462 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36463 }
36464 arg6 = static_cast< int >(val6);
36465 ecode7 = SWIG_AsVal_int(obj6, &val7);
36466 if (!SWIG_IsOK(ecode7)) {
36467 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36468 }
36469 arg7 = static_cast< int >(val7);
36470 {
36471 PyThreadState* __tstate = wxPyBeginAllowThreads();
36472 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36473 wxPyEndAllowThreads(__tstate);
36474 if (PyErr_Occurred()) SWIG_fail;
36475 }
36476 resultobj = SWIG_Py_Void();
36477 return resultobj;
36478fail:
36479 return NULL;
36480}
36481
36482
36483SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36484 PyObject *resultobj = 0;
36485 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36486 wxPoint *arg2 = 0 ;
36487 wxPoint *arg3 = 0 ;
36488 wxPoint *arg4 = 0 ;
36489 void *argp1 = 0 ;
36490 int res1 = 0 ;
36491 wxPoint temp2 ;
36492 wxPoint temp3 ;
36493 wxPoint temp4 ;
36494 PyObject * obj0 = 0 ;
36495 PyObject * obj1 = 0 ;
36496 PyObject * obj2 = 0 ;
36497 PyObject * obj3 = 0 ;
36498 char * kwnames[] = {
36499 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36500 };
36501
36502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36504 if (!SWIG_IsOK(res1)) {
36505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36506 }
36507 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36508 {
36509 arg2 = &temp2;
36510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36511 }
36512 {
36513 arg3 = &temp3;
36514 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36515 }
36516 {
36517 arg4 = &temp4;
36518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36519 }
36520 {
36521 PyThreadState* __tstate = wxPyBeginAllowThreads();
36522 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36523 wxPyEndAllowThreads(__tstate);
36524 if (PyErr_Occurred()) SWIG_fail;
36525 }
36526 resultobj = SWIG_Py_Void();
36527 return resultobj;
36528fail:
36529 return NULL;
36530}
36531
36532
36533SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36534 PyObject *resultobj = 0;
36535 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36536 int arg2 ;
36537 int arg3 ;
36538 int arg4 ;
36539 int arg5 ;
36540 void *argp1 = 0 ;
36541 int res1 = 0 ;
36542 int val2 ;
36543 int ecode2 = 0 ;
36544 int val3 ;
36545 int ecode3 = 0 ;
36546 int val4 ;
36547 int ecode4 = 0 ;
36548 int val5 ;
36549 int ecode5 = 0 ;
36550 PyObject * obj0 = 0 ;
36551 PyObject * obj1 = 0 ;
36552 PyObject * obj2 = 0 ;
36553 PyObject * obj3 = 0 ;
36554 PyObject * obj4 = 0 ;
36555 char * kwnames[] = {
36556 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36557 };
36558
36559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36561 if (!SWIG_IsOK(res1)) {
36562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36563 }
36564 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36565 ecode2 = SWIG_AsVal_int(obj1, &val2);
36566 if (!SWIG_IsOK(ecode2)) {
36567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36568 }
36569 arg2 = static_cast< int >(val2);
36570 ecode3 = SWIG_AsVal_int(obj2, &val3);
36571 if (!SWIG_IsOK(ecode3)) {
36572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36573 }
36574 arg3 = static_cast< int >(val3);
36575 ecode4 = SWIG_AsVal_int(obj3, &val4);
36576 if (!SWIG_IsOK(ecode4)) {
36577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36578 }
36579 arg4 = static_cast< int >(val4);
36580 ecode5 = SWIG_AsVal_int(obj4, &val5);
36581 if (!SWIG_IsOK(ecode5)) {
36582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36583 }
36584 arg5 = static_cast< int >(val5);
36585 {
36586 PyThreadState* __tstate = wxPyBeginAllowThreads();
36587 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36588 wxPyEndAllowThreads(__tstate);
36589 if (PyErr_Occurred()) SWIG_fail;
36590 }
36591 resultobj = SWIG_Py_Void();
36592 return resultobj;
36593fail:
36594 return NULL;
36595}
36596
36597
36598SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36599 PyObject *resultobj = 0;
36600 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36601 wxRect *arg2 = 0 ;
36602 void *argp1 = 0 ;
36603 int res1 = 0 ;
36604 wxRect temp2 ;
36605 PyObject * obj0 = 0 ;
36606 PyObject * obj1 = 0 ;
36607 char * kwnames[] = {
36608 (char *) "self",(char *) "rect", NULL
36609 };
36610
36611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36613 if (!SWIG_IsOK(res1)) {
36614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36615 }
36616 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36617 {
36618 arg2 = &temp2;
36619 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36620 }
36621 {
36622 PyThreadState* __tstate = wxPyBeginAllowThreads();
36623 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36624 wxPyEndAllowThreads(__tstate);
36625 if (PyErr_Occurred()) SWIG_fail;
36626 }
36627 resultobj = SWIG_Py_Void();
36628 return resultobj;
36629fail:
36630 return NULL;
36631}
36632
36633
36634SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36635 PyObject *resultobj = 0;
36636 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36637 int arg2 ;
36638 int arg3 ;
36639 int arg4 ;
36640 int arg5 ;
36641 double arg6 ;
36642 double arg7 ;
36643 void *argp1 = 0 ;
36644 int res1 = 0 ;
36645 int val2 ;
36646 int ecode2 = 0 ;
36647 int val3 ;
36648 int ecode3 = 0 ;
36649 int val4 ;
36650 int ecode4 = 0 ;
36651 int val5 ;
36652 int ecode5 = 0 ;
36653 double val6 ;
36654 int ecode6 = 0 ;
36655 double val7 ;
36656 int ecode7 = 0 ;
36657 PyObject * obj0 = 0 ;
36658 PyObject * obj1 = 0 ;
36659 PyObject * obj2 = 0 ;
36660 PyObject * obj3 = 0 ;
36661 PyObject * obj4 = 0 ;
36662 PyObject * obj5 = 0 ;
36663 PyObject * obj6 = 0 ;
36664 char * kwnames[] = {
36665 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36666 };
36667
36668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36670 if (!SWIG_IsOK(res1)) {
36671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36672 }
36673 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36674 ecode2 = SWIG_AsVal_int(obj1, &val2);
36675 if (!SWIG_IsOK(ecode2)) {
36676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36677 }
36678 arg2 = static_cast< int >(val2);
36679 ecode3 = SWIG_AsVal_int(obj2, &val3);
36680 if (!SWIG_IsOK(ecode3)) {
36681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36682 }
36683 arg3 = static_cast< int >(val3);
36684 ecode4 = SWIG_AsVal_int(obj3, &val4);
36685 if (!SWIG_IsOK(ecode4)) {
36686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36687 }
36688 arg4 = static_cast< int >(val4);
36689 ecode5 = SWIG_AsVal_int(obj4, &val5);
36690 if (!SWIG_IsOK(ecode5)) {
36691 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36692 }
36693 arg5 = static_cast< int >(val5);
36694 ecode6 = SWIG_AsVal_double(obj5, &val6);
36695 if (!SWIG_IsOK(ecode6)) {
36696 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36697 }
36698 arg6 = static_cast< double >(val6);
36699 ecode7 = SWIG_AsVal_double(obj6, &val7);
36700 if (!SWIG_IsOK(ecode7)) {
36701 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36702 }
36703 arg7 = static_cast< double >(val7);
36704 {
36705 PyThreadState* __tstate = wxPyBeginAllowThreads();
36706 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36707 wxPyEndAllowThreads(__tstate);
36708 if (PyErr_Occurred()) SWIG_fail;
36709 }
36710 resultobj = SWIG_Py_Void();
36711 return resultobj;
36712fail:
36713 return NULL;
36714}
36715
36716
36717SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36718 PyObject *resultobj = 0;
36719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36720 wxPoint *arg2 = 0 ;
36721 wxSize *arg3 = 0 ;
36722 double arg4 ;
36723 double arg5 ;
36724 void *argp1 = 0 ;
36725 int res1 = 0 ;
36726 wxPoint temp2 ;
36727 wxSize temp3 ;
36728 double val4 ;
36729 int ecode4 = 0 ;
36730 double val5 ;
36731 int ecode5 = 0 ;
36732 PyObject * obj0 = 0 ;
36733 PyObject * obj1 = 0 ;
36734 PyObject * obj2 = 0 ;
36735 PyObject * obj3 = 0 ;
36736 PyObject * obj4 = 0 ;
36737 char * kwnames[] = {
36738 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36739 };
36740
36741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36743 if (!SWIG_IsOK(res1)) {
36744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36745 }
36746 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36747 {
36748 arg2 = &temp2;
36749 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36750 }
36751 {
36752 arg3 = &temp3;
36753 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36754 }
36755 ecode4 = SWIG_AsVal_double(obj3, &val4);
36756 if (!SWIG_IsOK(ecode4)) {
36757 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36758 }
36759 arg4 = static_cast< double >(val4);
36760 ecode5 = SWIG_AsVal_double(obj4, &val5);
36761 if (!SWIG_IsOK(ecode5)) {
36762 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36763 }
36764 arg5 = static_cast< double >(val5);
36765 {
36766 PyThreadState* __tstate = wxPyBeginAllowThreads();
36767 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36768 wxPyEndAllowThreads(__tstate);
36769 if (PyErr_Occurred()) SWIG_fail;
36770 }
36771 resultobj = SWIG_Py_Void();
36772 return resultobj;
36773fail:
36774 return NULL;
36775}
36776
36777
36778SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36779 PyObject *resultobj = 0;
36780 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36781 int arg2 ;
36782 int arg3 ;
36783 void *argp1 = 0 ;
36784 int res1 = 0 ;
36785 int val2 ;
36786 int ecode2 = 0 ;
36787 int val3 ;
36788 int ecode3 = 0 ;
36789 PyObject * obj0 = 0 ;
36790 PyObject * obj1 = 0 ;
36791 PyObject * obj2 = 0 ;
36792 char * kwnames[] = {
36793 (char *) "self",(char *) "x",(char *) "y", NULL
36794 };
36795
36796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36798 if (!SWIG_IsOK(res1)) {
36799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36800 }
36801 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36802 ecode2 = SWIG_AsVal_int(obj1, &val2);
36803 if (!SWIG_IsOK(ecode2)) {
36804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36805 }
36806 arg2 = static_cast< int >(val2);
36807 ecode3 = SWIG_AsVal_int(obj2, &val3);
36808 if (!SWIG_IsOK(ecode3)) {
36809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36810 }
36811 arg3 = static_cast< int >(val3);
36812 {
36813 PyThreadState* __tstate = wxPyBeginAllowThreads();
36814 (arg1)->DrawPoint(arg2,arg3);
36815 wxPyEndAllowThreads(__tstate);
36816 if (PyErr_Occurred()) SWIG_fail;
36817 }
36818 resultobj = SWIG_Py_Void();
36819 return resultobj;
36820fail:
36821 return NULL;
36822}
36823
36824
36825SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36826 PyObject *resultobj = 0;
36827 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36828 wxPoint *arg2 = 0 ;
36829 void *argp1 = 0 ;
36830 int res1 = 0 ;
36831 wxPoint temp2 ;
36832 PyObject * obj0 = 0 ;
36833 PyObject * obj1 = 0 ;
36834 char * kwnames[] = {
36835 (char *) "self",(char *) "pt", NULL
36836 };
36837
36838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36840 if (!SWIG_IsOK(res1)) {
36841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36842 }
36843 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36844 {
36845 arg2 = &temp2;
36846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36847 }
36848 {
36849 PyThreadState* __tstate = wxPyBeginAllowThreads();
36850 (arg1)->DrawPoint((wxPoint const &)*arg2);
36851 wxPyEndAllowThreads(__tstate);
36852 if (PyErr_Occurred()) SWIG_fail;
36853 }
36854 resultobj = SWIG_Py_Void();
36855 return resultobj;
36856fail:
36857 return NULL;
36858}
36859
36860
36861SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36862 PyObject *resultobj = 0;
36863 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36864 int arg2 ;
36865 int arg3 ;
36866 int arg4 ;
36867 int arg5 ;
36868 void *argp1 = 0 ;
36869 int res1 = 0 ;
36870 int val2 ;
36871 int ecode2 = 0 ;
36872 int val3 ;
36873 int ecode3 = 0 ;
36874 int val4 ;
36875 int ecode4 = 0 ;
36876 int val5 ;
36877 int ecode5 = 0 ;
36878 PyObject * obj0 = 0 ;
36879 PyObject * obj1 = 0 ;
36880 PyObject * obj2 = 0 ;
36881 PyObject * obj3 = 0 ;
36882 PyObject * obj4 = 0 ;
36883 char * kwnames[] = {
36884 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36885 };
36886
36887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36889 if (!SWIG_IsOK(res1)) {
36890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36891 }
36892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36893 ecode2 = SWIG_AsVal_int(obj1, &val2);
36894 if (!SWIG_IsOK(ecode2)) {
36895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36896 }
36897 arg2 = static_cast< int >(val2);
36898 ecode3 = SWIG_AsVal_int(obj2, &val3);
36899 if (!SWIG_IsOK(ecode3)) {
36900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36901 }
36902 arg3 = static_cast< int >(val3);
36903 ecode4 = SWIG_AsVal_int(obj3, &val4);
36904 if (!SWIG_IsOK(ecode4)) {
36905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36906 }
36907 arg4 = static_cast< int >(val4);
36908 ecode5 = SWIG_AsVal_int(obj4, &val5);
36909 if (!SWIG_IsOK(ecode5)) {
36910 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36911 }
36912 arg5 = static_cast< int >(val5);
36913 {
36914 PyThreadState* __tstate = wxPyBeginAllowThreads();
36915 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
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_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36927 PyObject *resultobj = 0;
36928 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36929 wxRect *arg2 = 0 ;
36930 void *argp1 = 0 ;
36931 int res1 = 0 ;
36932 wxRect temp2 ;
36933 PyObject * obj0 = 0 ;
36934 PyObject * obj1 = 0 ;
36935 char * kwnames[] = {
36936 (char *) "self",(char *) "rect", NULL
36937 };
36938
36939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36941 if (!SWIG_IsOK(res1)) {
36942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36943 }
36944 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36945 {
36946 arg2 = &temp2;
36947 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36948 }
36949 {
36950 PyThreadState* __tstate = wxPyBeginAllowThreads();
36951 (arg1)->DrawRectangle((wxRect const &)*arg2);
36952 wxPyEndAllowThreads(__tstate);
36953 if (PyErr_Occurred()) SWIG_fail;
36954 }
36955 resultobj = SWIG_Py_Void();
36956 return resultobj;
36957fail:
36958 return NULL;
36959}
36960
36961
36962SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36963 PyObject *resultobj = 0;
36964 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36965 wxPoint *arg2 = 0 ;
36966 wxSize *arg3 = 0 ;
36967 void *argp1 = 0 ;
36968 int res1 = 0 ;
36969 wxPoint temp2 ;
36970 wxSize temp3 ;
36971 PyObject * obj0 = 0 ;
36972 PyObject * obj1 = 0 ;
36973 PyObject * obj2 = 0 ;
36974 char * kwnames[] = {
36975 (char *) "self",(char *) "pt",(char *) "sz", NULL
36976 };
36977
36978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36980 if (!SWIG_IsOK(res1)) {
36981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36982 }
36983 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36984 {
36985 arg2 = &temp2;
36986 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36987 }
36988 {
36989 arg3 = &temp3;
36990 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36991 }
36992 {
36993 PyThreadState* __tstate = wxPyBeginAllowThreads();
36994 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36995 wxPyEndAllowThreads(__tstate);
36996 if (PyErr_Occurred()) SWIG_fail;
36997 }
36998 resultobj = SWIG_Py_Void();
36999 return resultobj;
37000fail:
37001 return NULL;
37002}
37003
37004
37005SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37006 PyObject *resultobj = 0;
37007 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37008 int arg2 ;
37009 int arg3 ;
37010 int arg4 ;
37011 int arg5 ;
37012 double arg6 ;
37013 void *argp1 = 0 ;
37014 int res1 = 0 ;
37015 int val2 ;
37016 int ecode2 = 0 ;
37017 int val3 ;
37018 int ecode3 = 0 ;
37019 int val4 ;
37020 int ecode4 = 0 ;
37021 int val5 ;
37022 int ecode5 = 0 ;
37023 double val6 ;
37024 int ecode6 = 0 ;
37025 PyObject * obj0 = 0 ;
37026 PyObject * obj1 = 0 ;
37027 PyObject * obj2 = 0 ;
37028 PyObject * obj3 = 0 ;
37029 PyObject * obj4 = 0 ;
37030 PyObject * obj5 = 0 ;
37031 char * kwnames[] = {
37032 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37033 };
37034
37035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37037 if (!SWIG_IsOK(res1)) {
37038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37039 }
37040 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37041 ecode2 = SWIG_AsVal_int(obj1, &val2);
37042 if (!SWIG_IsOK(ecode2)) {
37043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37044 }
37045 arg2 = static_cast< int >(val2);
37046 ecode3 = SWIG_AsVal_int(obj2, &val3);
37047 if (!SWIG_IsOK(ecode3)) {
37048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37049 }
37050 arg3 = static_cast< int >(val3);
37051 ecode4 = SWIG_AsVal_int(obj3, &val4);
37052 if (!SWIG_IsOK(ecode4)) {
37053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37054 }
37055 arg4 = static_cast< int >(val4);
37056 ecode5 = SWIG_AsVal_int(obj4, &val5);
37057 if (!SWIG_IsOK(ecode5)) {
37058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37059 }
37060 arg5 = static_cast< int >(val5);
37061 ecode6 = SWIG_AsVal_double(obj5, &val6);
37062 if (!SWIG_IsOK(ecode6)) {
37063 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37064 }
37065 arg6 = static_cast< double >(val6);
37066 {
37067 PyThreadState* __tstate = wxPyBeginAllowThreads();
37068 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
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_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37080 PyObject *resultobj = 0;
37081 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37082 wxRect *arg2 = 0 ;
37083 double arg3 ;
37084 void *argp1 = 0 ;
37085 int res1 = 0 ;
37086 wxRect temp2 ;
37087 double val3 ;
37088 int ecode3 = 0 ;
37089 PyObject * obj0 = 0 ;
37090 PyObject * obj1 = 0 ;
37091 PyObject * obj2 = 0 ;
37092 char * kwnames[] = {
37093 (char *) "self",(char *) "r",(char *) "radius", NULL
37094 };
37095
37096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",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_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37100 }
37101 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37102 {
37103 arg2 = &temp2;
37104 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37105 }
37106 ecode3 = SWIG_AsVal_double(obj2, &val3);
37107 if (!SWIG_IsOK(ecode3)) {
37108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37109 }
37110 arg3 = static_cast< double >(val3);
37111 {
37112 PyThreadState* __tstate = wxPyBeginAllowThreads();
37113 (arg1)->DrawRoundedRectangle((wxRect 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_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37125 PyObject *resultobj = 0;
37126 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37127 wxPoint *arg2 = 0 ;
37128 wxSize *arg3 = 0 ;
37129 double arg4 ;
37130 void *argp1 = 0 ;
37131 int res1 = 0 ;
37132 wxPoint temp2 ;
37133 wxSize temp3 ;
37134 double val4 ;
37135 int ecode4 = 0 ;
37136 PyObject * obj0 = 0 ;
37137 PyObject * obj1 = 0 ;
37138 PyObject * obj2 = 0 ;
37139 PyObject * obj3 = 0 ;
37140 char * kwnames[] = {
37141 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37142 };
37143
37144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37146 if (!SWIG_IsOK(res1)) {
37147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37148 }
37149 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37150 {
37151 arg2 = &temp2;
37152 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37153 }
37154 {
37155 arg3 = &temp3;
37156 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37157 }
37158 ecode4 = SWIG_AsVal_double(obj3, &val4);
37159 if (!SWIG_IsOK(ecode4)) {
37160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37161 }
37162 arg4 = static_cast< double >(val4);
37163 {
37164 PyThreadState* __tstate = wxPyBeginAllowThreads();
37165 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37166 wxPyEndAllowThreads(__tstate);
37167 if (PyErr_Occurred()) SWIG_fail;
37168 }
37169 resultobj = SWIG_Py_Void();
37170 return resultobj;
37171fail:
37172 return NULL;
37173}
37174
37175
37176SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37177 PyObject *resultobj = 0;
37178 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37179 int arg2 ;
37180 int arg3 ;
37181 int arg4 ;
37182 void *argp1 = 0 ;
37183 int res1 = 0 ;
37184 int val2 ;
37185 int ecode2 = 0 ;
37186 int val3 ;
37187 int ecode3 = 0 ;
37188 int val4 ;
37189 int ecode4 = 0 ;
37190 PyObject * obj0 = 0 ;
37191 PyObject * obj1 = 0 ;
37192 PyObject * obj2 = 0 ;
37193 PyObject * obj3 = 0 ;
37194 char * kwnames[] = {
37195 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37196 };
37197
37198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37200 if (!SWIG_IsOK(res1)) {
37201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37202 }
37203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37204 ecode2 = SWIG_AsVal_int(obj1, &val2);
37205 if (!SWIG_IsOK(ecode2)) {
37206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37207 }
37208 arg2 = static_cast< int >(val2);
37209 ecode3 = SWIG_AsVal_int(obj2, &val3);
37210 if (!SWIG_IsOK(ecode3)) {
37211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37212 }
37213 arg3 = static_cast< int >(val3);
37214 ecode4 = SWIG_AsVal_int(obj3, &val4);
37215 if (!SWIG_IsOK(ecode4)) {
37216 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37217 }
37218 arg4 = static_cast< int >(val4);
37219 {
37220 PyThreadState* __tstate = wxPyBeginAllowThreads();
37221 (arg1)->DrawCircle(arg2,arg3,arg4);
37222 wxPyEndAllowThreads(__tstate);
37223 if (PyErr_Occurred()) SWIG_fail;
37224 }
37225 resultobj = SWIG_Py_Void();
37226 return resultobj;
37227fail:
37228 return NULL;
37229}
37230
37231
37232SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37233 PyObject *resultobj = 0;
37234 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37235 wxPoint *arg2 = 0 ;
37236 int arg3 ;
37237 void *argp1 = 0 ;
37238 int res1 = 0 ;
37239 wxPoint temp2 ;
37240 int val3 ;
37241 int ecode3 = 0 ;
37242 PyObject * obj0 = 0 ;
37243 PyObject * obj1 = 0 ;
37244 PyObject * obj2 = 0 ;
37245 char * kwnames[] = {
37246 (char *) "self",(char *) "pt",(char *) "radius", NULL
37247 };
37248
37249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37251 if (!SWIG_IsOK(res1)) {
37252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37253 }
37254 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37255 {
37256 arg2 = &temp2;
37257 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37258 }
37259 ecode3 = SWIG_AsVal_int(obj2, &val3);
37260 if (!SWIG_IsOK(ecode3)) {
37261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37262 }
37263 arg3 = static_cast< int >(val3);
37264 {
37265 PyThreadState* __tstate = wxPyBeginAllowThreads();
37266 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37267 wxPyEndAllowThreads(__tstate);
37268 if (PyErr_Occurred()) SWIG_fail;
37269 }
37270 resultobj = SWIG_Py_Void();
37271 return resultobj;
37272fail:
37273 return NULL;
37274}
37275
37276
37277SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37278 PyObject *resultobj = 0;
37279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37280 int arg2 ;
37281 int arg3 ;
37282 int arg4 ;
37283 int arg5 ;
37284 void *argp1 = 0 ;
37285 int res1 = 0 ;
37286 int val2 ;
37287 int ecode2 = 0 ;
37288 int val3 ;
37289 int ecode3 = 0 ;
37290 int val4 ;
37291 int ecode4 = 0 ;
37292 int val5 ;
37293 int ecode5 = 0 ;
37294 PyObject * obj0 = 0 ;
37295 PyObject * obj1 = 0 ;
37296 PyObject * obj2 = 0 ;
37297 PyObject * obj3 = 0 ;
37298 PyObject * obj4 = 0 ;
37299 char * kwnames[] = {
37300 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37301 };
37302
37303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37305 if (!SWIG_IsOK(res1)) {
37306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37307 }
37308 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37309 ecode2 = SWIG_AsVal_int(obj1, &val2);
37310 if (!SWIG_IsOK(ecode2)) {
37311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37312 }
37313 arg2 = static_cast< int >(val2);
37314 ecode3 = SWIG_AsVal_int(obj2, &val3);
37315 if (!SWIG_IsOK(ecode3)) {
37316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37317 }
37318 arg3 = static_cast< int >(val3);
37319 ecode4 = SWIG_AsVal_int(obj3, &val4);
37320 if (!SWIG_IsOK(ecode4)) {
37321 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37322 }
37323 arg4 = static_cast< int >(val4);
37324 ecode5 = SWIG_AsVal_int(obj4, &val5);
37325 if (!SWIG_IsOK(ecode5)) {
37326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37327 }
37328 arg5 = static_cast< int >(val5);
37329 {
37330 PyThreadState* __tstate = wxPyBeginAllowThreads();
37331 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37332 wxPyEndAllowThreads(__tstate);
37333 if (PyErr_Occurred()) SWIG_fail;
37334 }
37335 resultobj = SWIG_Py_Void();
37336 return resultobj;
37337fail:
37338 return NULL;
37339}
37340
37341
37342SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37343 PyObject *resultobj = 0;
37344 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37345 wxRect *arg2 = 0 ;
37346 void *argp1 = 0 ;
37347 int res1 = 0 ;
37348 wxRect temp2 ;
37349 PyObject * obj0 = 0 ;
37350 PyObject * obj1 = 0 ;
37351 char * kwnames[] = {
37352 (char *) "self",(char *) "rect", NULL
37353 };
37354
37355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37357 if (!SWIG_IsOK(res1)) {
37358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37359 }
37360 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37361 {
37362 arg2 = &temp2;
37363 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37364 }
37365 {
37366 PyThreadState* __tstate = wxPyBeginAllowThreads();
37367 (arg1)->DrawEllipse((wxRect const &)*arg2);
37368 wxPyEndAllowThreads(__tstate);
37369 if (PyErr_Occurred()) SWIG_fail;
37370 }
37371 resultobj = SWIG_Py_Void();
37372 return resultobj;
37373fail:
37374 return NULL;
37375}
37376
37377
37378SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37379 PyObject *resultobj = 0;
37380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37381 wxPoint *arg2 = 0 ;
37382 wxSize *arg3 = 0 ;
37383 void *argp1 = 0 ;
37384 int res1 = 0 ;
37385 wxPoint temp2 ;
37386 wxSize temp3 ;
37387 PyObject * obj0 = 0 ;
37388 PyObject * obj1 = 0 ;
37389 PyObject * obj2 = 0 ;
37390 char * kwnames[] = {
37391 (char *) "self",(char *) "pt",(char *) "sz", NULL
37392 };
37393
37394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37396 if (!SWIG_IsOK(res1)) {
37397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37398 }
37399 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37400 {
37401 arg2 = &temp2;
37402 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37403 }
37404 {
37405 arg3 = &temp3;
37406 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37407 }
37408 {
37409 PyThreadState* __tstate = wxPyBeginAllowThreads();
37410 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37411 wxPyEndAllowThreads(__tstate);
37412 if (PyErr_Occurred()) SWIG_fail;
37413 }
37414 resultobj = SWIG_Py_Void();
37415 return resultobj;
37416fail:
37417 return NULL;
37418}
37419
37420
37421SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37422 PyObject *resultobj = 0;
37423 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37424 wxIcon *arg2 = 0 ;
37425 int arg3 ;
37426 int arg4 ;
37427 void *argp1 = 0 ;
37428 int res1 = 0 ;
37429 void *argp2 = 0 ;
37430 int res2 = 0 ;
37431 int val3 ;
37432 int ecode3 = 0 ;
37433 int val4 ;
37434 int ecode4 = 0 ;
37435 PyObject * obj0 = 0 ;
37436 PyObject * obj1 = 0 ;
37437 PyObject * obj2 = 0 ;
37438 PyObject * obj3 = 0 ;
37439 char * kwnames[] = {
37440 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37441 };
37442
37443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37445 if (!SWIG_IsOK(res1)) {
37446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37447 }
37448 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37449 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37450 if (!SWIG_IsOK(res2)) {
37451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37452 }
37453 if (!argp2) {
37454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37455 }
37456 arg2 = reinterpret_cast< wxIcon * >(argp2);
37457 ecode3 = SWIG_AsVal_int(obj2, &val3);
37458 if (!SWIG_IsOK(ecode3)) {
37459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37460 }
37461 arg3 = static_cast< int >(val3);
37462 ecode4 = SWIG_AsVal_int(obj3, &val4);
37463 if (!SWIG_IsOK(ecode4)) {
37464 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37465 }
37466 arg4 = static_cast< int >(val4);
37467 {
37468 PyThreadState* __tstate = wxPyBeginAllowThreads();
37469 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37470 wxPyEndAllowThreads(__tstate);
37471 if (PyErr_Occurred()) SWIG_fail;
37472 }
37473 resultobj = SWIG_Py_Void();
37474 return resultobj;
37475fail:
37476 return NULL;
37477}
37478
37479
37480SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37481 PyObject *resultobj = 0;
37482 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37483 wxIcon *arg2 = 0 ;
37484 wxPoint *arg3 = 0 ;
37485 void *argp1 = 0 ;
37486 int res1 = 0 ;
37487 void *argp2 = 0 ;
37488 int res2 = 0 ;
37489 wxPoint temp3 ;
37490 PyObject * obj0 = 0 ;
37491 PyObject * obj1 = 0 ;
37492 PyObject * obj2 = 0 ;
37493 char * kwnames[] = {
37494 (char *) "self",(char *) "icon",(char *) "pt", NULL
37495 };
37496
37497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37499 if (!SWIG_IsOK(res1)) {
37500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37501 }
37502 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37504 if (!SWIG_IsOK(res2)) {
37505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37506 }
37507 if (!argp2) {
37508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37509 }
37510 arg2 = reinterpret_cast< wxIcon * >(argp2);
37511 {
37512 arg3 = &temp3;
37513 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37514 }
37515 {
37516 PyThreadState* __tstate = wxPyBeginAllowThreads();
37517 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37518 wxPyEndAllowThreads(__tstate);
37519 if (PyErr_Occurred()) SWIG_fail;
37520 }
37521 resultobj = SWIG_Py_Void();
37522 return resultobj;
37523fail:
37524 return NULL;
37525}
37526
37527
37528SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37529 PyObject *resultobj = 0;
37530 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37531 wxBitmap *arg2 = 0 ;
37532 int arg3 ;
37533 int arg4 ;
37534 bool arg5 = (bool) false ;
37535 void *argp1 = 0 ;
37536 int res1 = 0 ;
37537 void *argp2 = 0 ;
37538 int res2 = 0 ;
37539 int val3 ;
37540 int ecode3 = 0 ;
37541 int val4 ;
37542 int ecode4 = 0 ;
37543 bool val5 ;
37544 int ecode5 = 0 ;
37545 PyObject * obj0 = 0 ;
37546 PyObject * obj1 = 0 ;
37547 PyObject * obj2 = 0 ;
37548 PyObject * obj3 = 0 ;
37549 PyObject * obj4 = 0 ;
37550 char * kwnames[] = {
37551 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37552 };
37553
37554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37556 if (!SWIG_IsOK(res1)) {
37557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37558 }
37559 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37561 if (!SWIG_IsOK(res2)) {
37562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37563 }
37564 if (!argp2) {
37565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37566 }
37567 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37568 ecode3 = SWIG_AsVal_int(obj2, &val3);
37569 if (!SWIG_IsOK(ecode3)) {
37570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37571 }
37572 arg3 = static_cast< int >(val3);
37573 ecode4 = SWIG_AsVal_int(obj3, &val4);
37574 if (!SWIG_IsOK(ecode4)) {
37575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37576 }
37577 arg4 = static_cast< int >(val4);
37578 if (obj4) {
37579 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37580 if (!SWIG_IsOK(ecode5)) {
37581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37582 }
37583 arg5 = static_cast< bool >(val5);
37584 }
37585 {
37586 PyThreadState* __tstate = wxPyBeginAllowThreads();
37587 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37588 wxPyEndAllowThreads(__tstate);
37589 if (PyErr_Occurred()) SWIG_fail;
37590 }
37591 resultobj = SWIG_Py_Void();
37592 return resultobj;
37593fail:
37594 return NULL;
37595}
37596
37597
37598SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37599 PyObject *resultobj = 0;
37600 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37601 wxBitmap *arg2 = 0 ;
37602 wxPoint *arg3 = 0 ;
37603 bool arg4 = (bool) false ;
37604 void *argp1 = 0 ;
37605 int res1 = 0 ;
37606 void *argp2 = 0 ;
37607 int res2 = 0 ;
37608 wxPoint temp3 ;
37609 bool val4 ;
37610 int ecode4 = 0 ;
37611 PyObject * obj0 = 0 ;
37612 PyObject * obj1 = 0 ;
37613 PyObject * obj2 = 0 ;
37614 PyObject * obj3 = 0 ;
37615 char * kwnames[] = {
37616 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37617 };
37618
37619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37621 if (!SWIG_IsOK(res1)) {
37622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37623 }
37624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37626 if (!SWIG_IsOK(res2)) {
37627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37628 }
37629 if (!argp2) {
37630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37631 }
37632 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37633 {
37634 arg3 = &temp3;
37635 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37636 }
37637 if (obj3) {
37638 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37639 if (!SWIG_IsOK(ecode4)) {
37640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37641 }
37642 arg4 = static_cast< bool >(val4);
37643 }
37644 {
37645 PyThreadState* __tstate = wxPyBeginAllowThreads();
37646 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37647 wxPyEndAllowThreads(__tstate);
37648 if (PyErr_Occurred()) SWIG_fail;
37649 }
37650 resultobj = SWIG_Py_Void();
37651 return resultobj;
37652fail:
37653 return NULL;
37654}
37655
37656
37657SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37658 PyObject *resultobj = 0;
37659 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37660 wxString *arg2 = 0 ;
37661 int arg3 ;
37662 int arg4 ;
37663 void *argp1 = 0 ;
37664 int res1 = 0 ;
37665 bool temp2 = false ;
37666 int val3 ;
37667 int ecode3 = 0 ;
37668 int val4 ;
37669 int ecode4 = 0 ;
37670 PyObject * obj0 = 0 ;
37671 PyObject * obj1 = 0 ;
37672 PyObject * obj2 = 0 ;
37673 PyObject * obj3 = 0 ;
37674 char * kwnames[] = {
37675 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37676 };
37677
37678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37680 if (!SWIG_IsOK(res1)) {
37681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37682 }
37683 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37684 {
37685 arg2 = wxString_in_helper(obj1);
37686 if (arg2 == NULL) SWIG_fail;
37687 temp2 = true;
37688 }
37689 ecode3 = SWIG_AsVal_int(obj2, &val3);
37690 if (!SWIG_IsOK(ecode3)) {
37691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37692 }
37693 arg3 = static_cast< int >(val3);
37694 ecode4 = SWIG_AsVal_int(obj3, &val4);
37695 if (!SWIG_IsOK(ecode4)) {
37696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37697 }
37698 arg4 = static_cast< int >(val4);
37699 {
37700 PyThreadState* __tstate = wxPyBeginAllowThreads();
37701 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37702 wxPyEndAllowThreads(__tstate);
37703 if (PyErr_Occurred()) SWIG_fail;
37704 }
37705 resultobj = SWIG_Py_Void();
37706 {
37707 if (temp2)
37708 delete arg2;
37709 }
37710 return resultobj;
37711fail:
37712 {
37713 if (temp2)
37714 delete arg2;
37715 }
37716 return NULL;
37717}
37718
37719
37720SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37721 PyObject *resultobj = 0;
37722 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37723 wxString *arg2 = 0 ;
37724 wxPoint *arg3 = 0 ;
37725 void *argp1 = 0 ;
37726 int res1 = 0 ;
37727 bool temp2 = false ;
37728 wxPoint temp3 ;
37729 PyObject * obj0 = 0 ;
37730 PyObject * obj1 = 0 ;
37731 PyObject * obj2 = 0 ;
37732 char * kwnames[] = {
37733 (char *) "self",(char *) "text",(char *) "pt", NULL
37734 };
37735
37736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37738 if (!SWIG_IsOK(res1)) {
37739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37740 }
37741 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37742 {
37743 arg2 = wxString_in_helper(obj1);
37744 if (arg2 == NULL) SWIG_fail;
37745 temp2 = true;
37746 }
37747 {
37748 arg3 = &temp3;
37749 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37750 }
37751 {
37752 PyThreadState* __tstate = wxPyBeginAllowThreads();
37753 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37754 wxPyEndAllowThreads(__tstate);
37755 if (PyErr_Occurred()) SWIG_fail;
37756 }
37757 resultobj = SWIG_Py_Void();
37758 {
37759 if (temp2)
37760 delete arg2;
37761 }
37762 return resultobj;
37763fail:
37764 {
37765 if (temp2)
37766 delete arg2;
37767 }
37768 return NULL;
37769}
37770
37771
37772SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37773 PyObject *resultobj = 0;
37774 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37775 wxString *arg2 = 0 ;
37776 int arg3 ;
37777 int arg4 ;
37778 double arg5 ;
37779 void *argp1 = 0 ;
37780 int res1 = 0 ;
37781 bool temp2 = false ;
37782 int val3 ;
37783 int ecode3 = 0 ;
37784 int val4 ;
37785 int ecode4 = 0 ;
37786 double val5 ;
37787 int ecode5 = 0 ;
37788 PyObject * obj0 = 0 ;
37789 PyObject * obj1 = 0 ;
37790 PyObject * obj2 = 0 ;
37791 PyObject * obj3 = 0 ;
37792 PyObject * obj4 = 0 ;
37793 char * kwnames[] = {
37794 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37795 };
37796
37797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37799 if (!SWIG_IsOK(res1)) {
37800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37801 }
37802 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37803 {
37804 arg2 = wxString_in_helper(obj1);
37805 if (arg2 == NULL) SWIG_fail;
37806 temp2 = true;
37807 }
37808 ecode3 = SWIG_AsVal_int(obj2, &val3);
37809 if (!SWIG_IsOK(ecode3)) {
37810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37811 }
37812 arg3 = static_cast< int >(val3);
37813 ecode4 = SWIG_AsVal_int(obj3, &val4);
37814 if (!SWIG_IsOK(ecode4)) {
37815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37816 }
37817 arg4 = static_cast< int >(val4);
37818 ecode5 = SWIG_AsVal_double(obj4, &val5);
37819 if (!SWIG_IsOK(ecode5)) {
37820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37821 }
37822 arg5 = static_cast< double >(val5);
37823 {
37824 PyThreadState* __tstate = wxPyBeginAllowThreads();
37825 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37826 wxPyEndAllowThreads(__tstate);
37827 if (PyErr_Occurred()) SWIG_fail;
37828 }
37829 resultobj = SWIG_Py_Void();
37830 {
37831 if (temp2)
37832 delete arg2;
37833 }
37834 return resultobj;
37835fail:
37836 {
37837 if (temp2)
37838 delete arg2;
37839 }
37840 return NULL;
37841}
37842
37843
37844SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37845 PyObject *resultobj = 0;
37846 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37847 wxString *arg2 = 0 ;
37848 wxPoint *arg3 = 0 ;
37849 double arg4 ;
37850 void *argp1 = 0 ;
37851 int res1 = 0 ;
37852 bool temp2 = false ;
37853 wxPoint temp3 ;
37854 double val4 ;
37855 int ecode4 = 0 ;
37856 PyObject * obj0 = 0 ;
37857 PyObject * obj1 = 0 ;
37858 PyObject * obj2 = 0 ;
37859 PyObject * obj3 = 0 ;
37860 char * kwnames[] = {
37861 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37862 };
37863
37864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37866 if (!SWIG_IsOK(res1)) {
37867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37868 }
37869 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37870 {
37871 arg2 = wxString_in_helper(obj1);
37872 if (arg2 == NULL) SWIG_fail;
37873 temp2 = true;
37874 }
37875 {
37876 arg3 = &temp3;
37877 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37878 }
37879 ecode4 = SWIG_AsVal_double(obj3, &val4);
37880 if (!SWIG_IsOK(ecode4)) {
37881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37882 }
37883 arg4 = static_cast< double >(val4);
37884 {
37885 PyThreadState* __tstate = wxPyBeginAllowThreads();
37886 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37887 wxPyEndAllowThreads(__tstate);
37888 if (PyErr_Occurred()) SWIG_fail;
37889 }
37890 resultobj = SWIG_Py_Void();
37891 {
37892 if (temp2)
37893 delete arg2;
37894 }
37895 return resultobj;
37896fail:
37897 {
37898 if (temp2)
37899 delete arg2;
37900 }
37901 return NULL;
37902}
37903
37904
37905SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37906 PyObject *resultobj = 0;
37907 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37908 int arg2 ;
37909 wxPoint *arg3 = (wxPoint *) 0 ;
37910 int arg4 = (int) 0 ;
37911 int arg5 = (int) 0 ;
37912 void *argp1 = 0 ;
37913 int res1 = 0 ;
37914 int val4 ;
37915 int ecode4 = 0 ;
37916 int val5 ;
37917 int ecode5 = 0 ;
37918 PyObject * obj0 = 0 ;
37919 PyObject * obj1 = 0 ;
37920 PyObject * obj2 = 0 ;
37921 PyObject * obj3 = 0 ;
37922 char * kwnames[] = {
37923 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37924 };
37925
37926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37928 if (!SWIG_IsOK(res1)) {
37929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37930 }
37931 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37932 {
37933 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37934 if (arg3 == NULL) SWIG_fail;
37935 }
37936 if (obj2) {
37937 ecode4 = SWIG_AsVal_int(obj2, &val4);
37938 if (!SWIG_IsOK(ecode4)) {
37939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37940 }
37941 arg4 = static_cast< int >(val4);
37942 }
37943 if (obj3) {
37944 ecode5 = SWIG_AsVal_int(obj3, &val5);
37945 if (!SWIG_IsOK(ecode5)) {
37946 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37947 }
37948 arg5 = static_cast< int >(val5);
37949 }
37950 {
37951 PyThreadState* __tstate = wxPyBeginAllowThreads();
37952 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37953 wxPyEndAllowThreads(__tstate);
37954 if (PyErr_Occurred()) SWIG_fail;
37955 }
37956 resultobj = SWIG_Py_Void();
37957 {
37958 if (arg3) delete [] arg3;
37959 }
37960 return resultobj;
37961fail:
37962 {
37963 if (arg3) delete [] arg3;
37964 }
37965 return NULL;
37966}
37967
37968
37969SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37970 PyObject *resultobj = 0;
37971 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37972 int arg2 ;
37973 wxPoint *arg3 = (wxPoint *) 0 ;
37974 int arg4 = (int) 0 ;
37975 int arg5 = (int) 0 ;
37976 int arg6 = (int) wxODDEVEN_RULE ;
37977 void *argp1 = 0 ;
37978 int res1 = 0 ;
37979 int val4 ;
37980 int ecode4 = 0 ;
37981 int val5 ;
37982 int ecode5 = 0 ;
37983 int val6 ;
37984 int ecode6 = 0 ;
37985 PyObject * obj0 = 0 ;
37986 PyObject * obj1 = 0 ;
37987 PyObject * obj2 = 0 ;
37988 PyObject * obj3 = 0 ;
37989 PyObject * obj4 = 0 ;
37990 char * kwnames[] = {
37991 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37992 };
37993
37994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37996 if (!SWIG_IsOK(res1)) {
37997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37998 }
37999 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38000 {
38001 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38002 if (arg3 == NULL) SWIG_fail;
38003 }
38004 if (obj2) {
38005 ecode4 = SWIG_AsVal_int(obj2, &val4);
38006 if (!SWIG_IsOK(ecode4)) {
38007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38008 }
38009 arg4 = static_cast< int >(val4);
38010 }
38011 if (obj3) {
38012 ecode5 = SWIG_AsVal_int(obj3, &val5);
38013 if (!SWIG_IsOK(ecode5)) {
38014 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38015 }
38016 arg5 = static_cast< int >(val5);
38017 }
38018 if (obj4) {
38019 ecode6 = SWIG_AsVal_int(obj4, &val6);
38020 if (!SWIG_IsOK(ecode6)) {
38021 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38022 }
38023 arg6 = static_cast< int >(val6);
38024 }
38025 {
38026 PyThreadState* __tstate = wxPyBeginAllowThreads();
38027 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38028 wxPyEndAllowThreads(__tstate);
38029 if (PyErr_Occurred()) SWIG_fail;
38030 }
38031 resultobj = SWIG_Py_Void();
38032 {
38033 if (arg3) delete [] arg3;
38034 }
38035 return resultobj;
38036fail:
38037 {
38038 if (arg3) delete [] arg3;
38039 }
38040 return NULL;
38041}
38042
38043
38044SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38045 PyObject *resultobj = 0;
38046 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38047 wxString *arg2 = 0 ;
38048 wxRect *arg3 = 0 ;
38049 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38050 int arg5 = (int) -1 ;
38051 void *argp1 = 0 ;
38052 int res1 = 0 ;
38053 bool temp2 = false ;
38054 wxRect temp3 ;
38055 int val4 ;
38056 int ecode4 = 0 ;
38057 int val5 ;
38058 int ecode5 = 0 ;
38059 PyObject * obj0 = 0 ;
38060 PyObject * obj1 = 0 ;
38061 PyObject * obj2 = 0 ;
38062 PyObject * obj3 = 0 ;
38063 PyObject * obj4 = 0 ;
38064 char * kwnames[] = {
38065 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38066 };
38067
38068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38070 if (!SWIG_IsOK(res1)) {
38071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38072 }
38073 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38074 {
38075 arg2 = wxString_in_helper(obj1);
38076 if (arg2 == NULL) SWIG_fail;
38077 temp2 = true;
38078 }
38079 {
38080 arg3 = &temp3;
38081 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38082 }
38083 if (obj3) {
38084 ecode4 = SWIG_AsVal_int(obj3, &val4);
38085 if (!SWIG_IsOK(ecode4)) {
38086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38087 }
38088 arg4 = static_cast< int >(val4);
38089 }
38090 if (obj4) {
38091 ecode5 = SWIG_AsVal_int(obj4, &val5);
38092 if (!SWIG_IsOK(ecode5)) {
38093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38094 }
38095 arg5 = static_cast< int >(val5);
38096 }
38097 {
38098 PyThreadState* __tstate = wxPyBeginAllowThreads();
38099 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38100 wxPyEndAllowThreads(__tstate);
38101 if (PyErr_Occurred()) SWIG_fail;
38102 }
38103 resultobj = SWIG_Py_Void();
38104 {
38105 if (temp2)
38106 delete arg2;
38107 }
38108 return resultobj;
38109fail:
38110 {
38111 if (temp2)
38112 delete arg2;
38113 }
38114 return NULL;
38115}
38116
38117
38118SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38119 PyObject *resultobj = 0;
38120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38121 wxString *arg2 = 0 ;
38122 wxBitmap *arg3 = 0 ;
38123 wxRect *arg4 = 0 ;
38124 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38125 int arg6 = (int) -1 ;
38126 void *argp1 = 0 ;
38127 int res1 = 0 ;
38128 bool temp2 = false ;
38129 void *argp3 = 0 ;
38130 int res3 = 0 ;
38131 wxRect temp4 ;
38132 int val5 ;
38133 int ecode5 = 0 ;
38134 int val6 ;
38135 int ecode6 = 0 ;
38136 PyObject * obj0 = 0 ;
38137 PyObject * obj1 = 0 ;
38138 PyObject * obj2 = 0 ;
38139 PyObject * obj3 = 0 ;
38140 PyObject * obj4 = 0 ;
38141 PyObject * obj5 = 0 ;
38142 char * kwnames[] = {
38143 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38144 };
38145
38146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38148 if (!SWIG_IsOK(res1)) {
38149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38150 }
38151 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38152 {
38153 arg2 = wxString_in_helper(obj1);
38154 if (arg2 == NULL) SWIG_fail;
38155 temp2 = true;
38156 }
38157 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38158 if (!SWIG_IsOK(res3)) {
38159 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38160 }
38161 if (!argp3) {
38162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38163 }
38164 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38165 {
38166 arg4 = &temp4;
38167 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38168 }
38169 if (obj4) {
38170 ecode5 = SWIG_AsVal_int(obj4, &val5);
38171 if (!SWIG_IsOK(ecode5)) {
38172 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38173 }
38174 arg5 = static_cast< int >(val5);
38175 }
38176 if (obj5) {
38177 ecode6 = SWIG_AsVal_int(obj5, &val6);
38178 if (!SWIG_IsOK(ecode6)) {
38179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38180 }
38181 arg6 = static_cast< int >(val6);
38182 }
38183 {
38184 PyThreadState* __tstate = wxPyBeginAllowThreads();
38185 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38186 wxPyEndAllowThreads(__tstate);
38187 if (PyErr_Occurred()) SWIG_fail;
38188 }
38189 resultobj = SWIG_Py_Void();
38190 {
38191 if (temp2)
38192 delete arg2;
38193 }
38194 return resultobj;
38195fail:
38196 {
38197 if (temp2)
38198 delete arg2;
38199 }
38200 return NULL;
38201}
38202
38203
38204SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38205 PyObject *resultobj = 0;
38206 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38207 int arg2 ;
38208 wxPoint *arg3 = (wxPoint *) 0 ;
38209 void *argp1 = 0 ;
38210 int res1 = 0 ;
38211 PyObject * obj0 = 0 ;
38212 PyObject * obj1 = 0 ;
38213 char * kwnames[] = {
38214 (char *) "self",(char *) "points", NULL
38215 };
38216
38217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38219 if (!SWIG_IsOK(res1)) {
38220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38221 }
38222 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38223 {
38224 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38225 if (arg3 == NULL) SWIG_fail;
38226 }
38227 {
38228 PyThreadState* __tstate = wxPyBeginAllowThreads();
38229 (arg1)->DrawSpline(arg2,arg3);
38230 wxPyEndAllowThreads(__tstate);
38231 if (PyErr_Occurred()) SWIG_fail;
38232 }
38233 resultobj = SWIG_Py_Void();
38234 {
38235 if (arg3) delete [] arg3;
38236 }
38237 return resultobj;
38238fail:
38239 {
38240 if (arg3) delete [] arg3;
38241 }
38242 return NULL;
38243}
38244
38245
38246SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38247 PyObject *resultobj = 0;
38248 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38249 void *argp1 = 0 ;
38250 int res1 = 0 ;
38251 PyObject *swig_obj[1] ;
38252
38253 if (!args) SWIG_fail;
38254 swig_obj[0] = args;
38255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38256 if (!SWIG_IsOK(res1)) {
38257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38258 }
38259 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38260 {
38261 PyThreadState* __tstate = wxPyBeginAllowThreads();
38262 (arg1)->Clear();
38263 wxPyEndAllowThreads(__tstate);
38264 if (PyErr_Occurred()) SWIG_fail;
38265 }
38266 resultobj = SWIG_Py_Void();
38267 return resultobj;
38268fail:
38269 return NULL;
38270}
38271
38272
38273SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38274 PyObject *resultobj = 0;
38275 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38276 wxFont *arg2 = 0 ;
38277 void *argp1 = 0 ;
38278 int res1 = 0 ;
38279 void *argp2 = 0 ;
38280 int res2 = 0 ;
38281 PyObject * obj0 = 0 ;
38282 PyObject * obj1 = 0 ;
38283 char * kwnames[] = {
38284 (char *) "self",(char *) "font", NULL
38285 };
38286
38287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38289 if (!SWIG_IsOK(res1)) {
38290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38291 }
38292 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38294 if (!SWIG_IsOK(res2)) {
38295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38296 }
38297 if (!argp2) {
38298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38299 }
38300 arg2 = reinterpret_cast< wxFont * >(argp2);
38301 {
38302 PyThreadState* __tstate = wxPyBeginAllowThreads();
38303 (arg1)->SetFont((wxFont const &)*arg2);
38304 wxPyEndAllowThreads(__tstate);
38305 if (PyErr_Occurred()) SWIG_fail;
38306 }
38307 resultobj = SWIG_Py_Void();
38308 return resultobj;
38309fail:
38310 return NULL;
38311}
38312
38313
38314SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38315 PyObject *resultobj = 0;
38316 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38317 wxPen *arg2 = 0 ;
38318 void *argp1 = 0 ;
38319 int res1 = 0 ;
38320 void *argp2 = 0 ;
38321 int res2 = 0 ;
38322 PyObject * obj0 = 0 ;
38323 PyObject * obj1 = 0 ;
38324 char * kwnames[] = {
38325 (char *) "self",(char *) "pen", NULL
38326 };
38327
38328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38330 if (!SWIG_IsOK(res1)) {
38331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38332 }
38333 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38335 if (!SWIG_IsOK(res2)) {
38336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38337 }
38338 if (!argp2) {
38339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38340 }
38341 arg2 = reinterpret_cast< wxPen * >(argp2);
38342 {
38343 PyThreadState* __tstate = wxPyBeginAllowThreads();
38344 (arg1)->SetPen((wxPen const &)*arg2);
38345 wxPyEndAllowThreads(__tstate);
38346 if (PyErr_Occurred()) SWIG_fail;
38347 }
38348 resultobj = SWIG_Py_Void();
38349 return resultobj;
38350fail:
38351 return NULL;
38352}
38353
38354
38355SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38356 PyObject *resultobj = 0;
38357 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38358 wxBrush *arg2 = 0 ;
38359 void *argp1 = 0 ;
38360 int res1 = 0 ;
38361 void *argp2 = 0 ;
38362 int res2 = 0 ;
38363 PyObject * obj0 = 0 ;
38364 PyObject * obj1 = 0 ;
38365 char * kwnames[] = {
38366 (char *) "self",(char *) "brush", NULL
38367 };
38368
38369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38371 if (!SWIG_IsOK(res1)) {
38372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38373 }
38374 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38375 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38376 if (!SWIG_IsOK(res2)) {
38377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38378 }
38379 if (!argp2) {
38380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38381 }
38382 arg2 = reinterpret_cast< wxBrush * >(argp2);
38383 {
38384 PyThreadState* __tstate = wxPyBeginAllowThreads();
38385 (arg1)->SetBrush((wxBrush const &)*arg2);
38386 wxPyEndAllowThreads(__tstate);
38387 if (PyErr_Occurred()) SWIG_fail;
38388 }
38389 resultobj = SWIG_Py_Void();
38390 return resultobj;
38391fail:
38392 return NULL;
38393}
38394
38395
38396SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38397 PyObject *resultobj = 0;
38398 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38399 wxBrush *arg2 = 0 ;
38400 void *argp1 = 0 ;
38401 int res1 = 0 ;
38402 void *argp2 = 0 ;
38403 int res2 = 0 ;
38404 PyObject * obj0 = 0 ;
38405 PyObject * obj1 = 0 ;
38406 char * kwnames[] = {
38407 (char *) "self",(char *) "brush", NULL
38408 };
38409
38410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38412 if (!SWIG_IsOK(res1)) {
38413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38414 }
38415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38417 if (!SWIG_IsOK(res2)) {
38418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38419 }
38420 if (!argp2) {
38421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38422 }
38423 arg2 = reinterpret_cast< wxBrush * >(argp2);
38424 {
38425 PyThreadState* __tstate = wxPyBeginAllowThreads();
38426 (arg1)->SetBackground((wxBrush const &)*arg2);
38427 wxPyEndAllowThreads(__tstate);
38428 if (PyErr_Occurred()) SWIG_fail;
38429 }
38430 resultobj = SWIG_Py_Void();
38431 return resultobj;
38432fail:
38433 return NULL;
38434}
38435
38436
38437SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38438 PyObject *resultobj = 0;
38439 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38440 int arg2 ;
38441 void *argp1 = 0 ;
38442 int res1 = 0 ;
38443 int val2 ;
38444 int ecode2 = 0 ;
38445 PyObject * obj0 = 0 ;
38446 PyObject * obj1 = 0 ;
38447 char * kwnames[] = {
38448 (char *) "self",(char *) "mode", NULL
38449 };
38450
38451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38453 if (!SWIG_IsOK(res1)) {
38454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38455 }
38456 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38457 ecode2 = SWIG_AsVal_int(obj1, &val2);
38458 if (!SWIG_IsOK(ecode2)) {
38459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38460 }
38461 arg2 = static_cast< int >(val2);
38462 {
38463 PyThreadState* __tstate = wxPyBeginAllowThreads();
38464 (arg1)->SetBackgroundMode(arg2);
38465 wxPyEndAllowThreads(__tstate);
38466 if (PyErr_Occurred()) SWIG_fail;
38467 }
38468 resultobj = SWIG_Py_Void();
38469 return resultobj;
38470fail:
38471 return NULL;
38472}
38473
38474
38475SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38476 PyObject *resultobj = 0;
38477 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38478 wxPalette *arg2 = 0 ;
38479 void *argp1 = 0 ;
38480 int res1 = 0 ;
38481 void *argp2 = 0 ;
38482 int res2 = 0 ;
38483 PyObject * obj0 = 0 ;
38484 PyObject * obj1 = 0 ;
38485 char * kwnames[] = {
38486 (char *) "self",(char *) "palette", NULL
38487 };
38488
38489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38491 if (!SWIG_IsOK(res1)) {
38492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38493 }
38494 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38496 if (!SWIG_IsOK(res2)) {
38497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38498 }
38499 if (!argp2) {
38500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38501 }
38502 arg2 = reinterpret_cast< wxPalette * >(argp2);
38503 {
38504 PyThreadState* __tstate = wxPyBeginAllowThreads();
38505 (arg1)->SetPalette((wxPalette const &)*arg2);
38506 wxPyEndAllowThreads(__tstate);
38507 if (PyErr_Occurred()) SWIG_fail;
38508 }
38509 resultobj = SWIG_Py_Void();
38510 return resultobj;
38511fail:
38512 return NULL;
38513}
38514
38515
38516SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38517 PyObject *resultobj = 0;
38518 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38519 wxColour *arg2 = 0 ;
38520 void *argp1 = 0 ;
38521 int res1 = 0 ;
38522 wxColour temp2 ;
38523 PyObject * obj0 = 0 ;
38524 PyObject * obj1 = 0 ;
38525 char * kwnames[] = {
38526 (char *) "self",(char *) "colour", NULL
38527 };
38528
38529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38531 if (!SWIG_IsOK(res1)) {
38532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38533 }
38534 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38535 {
38536 arg2 = &temp2;
38537 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38538 }
38539 {
38540 PyThreadState* __tstate = wxPyBeginAllowThreads();
38541 (arg1)->SetTextForeground((wxColour const &)*arg2);
38542 wxPyEndAllowThreads(__tstate);
38543 if (PyErr_Occurred()) SWIG_fail;
38544 }
38545 resultobj = SWIG_Py_Void();
38546 return resultobj;
38547fail:
38548 return NULL;
38549}
38550
38551
38552SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38553 PyObject *resultobj = 0;
38554 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38555 wxColour *arg2 = 0 ;
38556 void *argp1 = 0 ;
38557 int res1 = 0 ;
38558 wxColour temp2 ;
38559 PyObject * obj0 = 0 ;
38560 PyObject * obj1 = 0 ;
38561 char * kwnames[] = {
38562 (char *) "self",(char *) "colour", NULL
38563 };
38564
38565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38567 if (!SWIG_IsOK(res1)) {
38568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38569 }
38570 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38571 {
38572 arg2 = &temp2;
38573 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38574 }
38575 {
38576 PyThreadState* __tstate = wxPyBeginAllowThreads();
38577 (arg1)->SetTextBackground((wxColour const &)*arg2);
38578 wxPyEndAllowThreads(__tstate);
38579 if (PyErr_Occurred()) SWIG_fail;
38580 }
38581 resultobj = SWIG_Py_Void();
38582 return resultobj;
38583fail:
38584 return NULL;
38585}
38586
38587
38588SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38589 PyObject *resultobj = 0;
38590 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38591 int arg2 ;
38592 void *argp1 = 0 ;
38593 int res1 = 0 ;
38594 int val2 ;
38595 int ecode2 = 0 ;
38596 PyObject * obj0 = 0 ;
38597 PyObject * obj1 = 0 ;
38598 char * kwnames[] = {
38599 (char *) "self",(char *) "function", NULL
38600 };
38601
38602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38604 if (!SWIG_IsOK(res1)) {
38605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38606 }
38607 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38608 ecode2 = SWIG_AsVal_int(obj1, &val2);
38609 if (!SWIG_IsOK(ecode2)) {
38610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38611 }
38612 arg2 = static_cast< int >(val2);
38613 {
38614 PyThreadState* __tstate = wxPyBeginAllowThreads();
38615 (arg1)->SetLogicalFunction(arg2);
38616 wxPyEndAllowThreads(__tstate);
38617 if (PyErr_Occurred()) SWIG_fail;
38618 }
38619 resultobj = SWIG_Py_Void();
38620 return resultobj;
38621fail:
38622 return NULL;
38623}
38624
38625
38626SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38627 PyObject *obj;
38628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38629 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38630 return SWIG_Py_Void();
38631}
38632
38633SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38634 return SWIG_Python_InitShadowInstance(args);
38635}
38636
38637static PyMethodDef SwigMethods[] = {
38638 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38639 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38640 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38641 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38642 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38643 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38644 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38645 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38647 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38648 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38649 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38650 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38651 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38652 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38653 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38655 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38656 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38657 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38658 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38659 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38660 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38661 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38662 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38663 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38665 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38666 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38668 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38669 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38670 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38671 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38673 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38674 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38675 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38676 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38677 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38678 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38679 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38686 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38690 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38691 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38694 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38698 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38699 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38700 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38701 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38702 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38703 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38705 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38706 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38708 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38713 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38714 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38715 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38716 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38717 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38718 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38719 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38720 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38726 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38731 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38733 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38734 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38736 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38737 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38741 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38742 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38743 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38744 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38745 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38746 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38747 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38748 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38749 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38750 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38751 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38752 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38753 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38754 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38755 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38757 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38758 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38759 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38760 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38763 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38764 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38765 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38766 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38767 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38768 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38769 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38770 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38771 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38772 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38773 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38774 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38775 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38777 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38778 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38784 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38785 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38786 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38788 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38789 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38790 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38792 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38793 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38794 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38795 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38796 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38797 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38798 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38799 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38800 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38805 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38806 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38808 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38809 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38811 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38813 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38814 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38815 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38816 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38819 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38823 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38824 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38826 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38828 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38829 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38830 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38831 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38836 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38837 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38843 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38847 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38848 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38852 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38858 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38861 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38862 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38864 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38865 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38866 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38867 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38868 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38869 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38870 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38871 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38872 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38873 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38874 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38875 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38876 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38877 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38878 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38879 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38880 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38882 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38883 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38884 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38885 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38886 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38887 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38888 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38897 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38898 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38900 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38901 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38902 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38903 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38904 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38905 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38906 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38907 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38908 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38910 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38911 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38912 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38913 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38915 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38916 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38917 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38920 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38926 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38931 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38932 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38934 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38939 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38940 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38941 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38943 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38944 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38945 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38946 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38947 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38948 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38949 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38950 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38951 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38952 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38953 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38954 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38955 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38960 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38967 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38968 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38969 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38971 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38972 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38974 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38975 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38976 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38977 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38980 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38981 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38982 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38983 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38984 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38985 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38986 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38987 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38988 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38989 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38990 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38991 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38992 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38994 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38997 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38998 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38999 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39000 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39001 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39002 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39003 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39004 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39005 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39006 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39007 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39014 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39015 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39016 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39018 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39019 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39022 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39023 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39024 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39025 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39026 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39027 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39033 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39034 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39035 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39048 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39049 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39074 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39075 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39085 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39087 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39088 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39089 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39096 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39097 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39098 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39099 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39100 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39105 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39106 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39107 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39108 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39117 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39118 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39119 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39120 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
39121 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39122 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39123 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39124 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39125 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39126 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39127 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39128 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39131 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39133 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39135 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39137 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39138 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39141 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39142 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39146 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39148 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39151 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39152 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39153 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39154 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39155 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39156 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39157 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39158 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39165 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39167 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39168 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39169 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39171 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39172 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39173 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39175 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39176 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39177 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39178 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39179 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39180 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39181 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39182 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39185 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39186 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39187 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39189 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39190 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39192 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39193 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39195 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
39196 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39201 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39202 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39203 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39204 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
39205 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
39207 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39208 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39209 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39211 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39212 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39214 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39215 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39216 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39218 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39219 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39221 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39223 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39224 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39225 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39226 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39228 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
39229 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39231 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39232 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39233 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39234 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39235 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39237 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39238 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39239 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39241 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39242 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39244 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39245 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39246 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39247 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39248 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39249 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39250 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39251 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39252 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39253 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39254 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39255 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39256 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39257 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39258 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39259 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 39260 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
39261 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39262 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3 39263 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
248802d0 39264 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
5c8c7dd3
RD
39265 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39266 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39268 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39273 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39274 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
39275 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39276 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 39277 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39278 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39279 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39280 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39281 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39282 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39283 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39284 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39285 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39289 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39290 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39292 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39294 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39295 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 39296 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 39297 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 39298 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 39299 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 39300 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 39301 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39302 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39303 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39304 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39310 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39311 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39312 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39313 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39314 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39315 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
c8aaaf9e
RD
39316 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39317 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39318 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39321 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39324 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39325 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39326 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39327 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39330 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39332 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39333 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39338 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39339 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39340 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39343 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39344 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39345 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39346 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39347 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39348 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 39349 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
39350 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39353 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 39360 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 39361 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39362 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39363 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39364 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39365 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39366 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39367 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39368 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39369 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39370 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39371 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39372 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39373 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39374 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39375 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39376 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39378 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39386 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39388 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39390 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39391 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39392 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39393 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39394 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39395 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39401 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39402 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39403 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39404 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39405 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39406 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39407 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39408 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39409 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39410 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39411 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39412 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39413 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
39414 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39417 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39418 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39419 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39420 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39421 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39422 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39423 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39425 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39426 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39427 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39428 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39429 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39430 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39431 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39432 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39433 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39434 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39435 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39436 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39441 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39442 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39445 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39446 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39448 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39449 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39450 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39451 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39452 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39453 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39454 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39455 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39456 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39457 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39458 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39459 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39460 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39461 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39462 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39463 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39464 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39465 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39466 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39467 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39468 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39469 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39470 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39471 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39472 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39473 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39474 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39475 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39476 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39477 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39478 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39479 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39481 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39484 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39486 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39489 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39491 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39492 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39493 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39494 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39495 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39496 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39497 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39498 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39499 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39500 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39501 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39502 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39503 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39504 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39506 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39507 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39508 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39510 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39515 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39516 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39517 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39518 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39520 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39538 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39553 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39555 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39562 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39565 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39566 { NULL, NULL, 0, NULL }
39567};
39568
39569
39570/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39571
72ef6efb
RD
39572static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39573 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39574}
8e99bda9
RD
39575static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39576 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39577}
39578static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39579 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39580}
26c4d26f
RD
39581static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39582 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39583}
39584static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39585 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39586}
72ef6efb
RD
39587static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39588 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39589}
39590static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39591 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39592}
26c4d26f
RD
39593static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39594 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39595}
fc46b7f3
RD
39596static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39597 return (void *)((wxLocale *) ((wxPyLocale *) x));
39598}
70d7cb34
RD
39599static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39600 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39601}
39602static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39603 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39604}
39605static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39606 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39607}
39608static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39609 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39610}
39611static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39612 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39613}
39614static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39615 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39616}
1bd55598
RD
39617static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39618 return (void *)((wxGDIObject *) ((wxIcon *) x));
39619}
39620static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39621 return (void *)((wxGDIObject *) ((wxPalette *) x));
39622}
39623static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39624 return (void *)((wxGDIObject *) ((wxPen *) x));
39625}
39626static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39627 return (void *)((wxGDIObject *) ((wxFont *) x));
39628}
39629static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39630 return (void *)((wxGDIObject *) ((wxCursor *) x));
39631}
39632static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39633 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39634}
39635static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39636 return (void *)((wxGDIObject *) ((wxRegion *) x));
39637}
39638static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39639 return (void *)((wxGDIObject *) ((wxBrush *) x));
39640}
72ef6efb
RD
39641static void *_p_wxGCDCTo_p_wxDC(void *x) {
39642 return (void *)((wxDC *) ((wxGCDC *) x));
39643}
1bd55598
RD
39644static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39645 return (void *)((wxDC *) ((wxScreenDC *) x));
39646}
24f6c4e8 39647static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39648 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39649}
1bd55598
RD
39650static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39651 return (void *)((wxDC *) ((wxMirrorDC *) x));
39652}
1bd55598
RD
39653static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39654 return (void *)((wxDC *) ((wxWindowDC *) x));
39655}
26c4d26f
RD
39656static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39657 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39658}
1bd55598
RD
39659static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39660 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39661}
1bd55598 39662static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39663 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39664}
39665static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39666 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39667}
24f6c4e8 39668static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39669 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39670}
39671static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39672 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39673}
1bd55598
RD
39674static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39675 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39676}
39677static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39678 return (void *)((wxDC *) ((wxPrinterDC *) x));
39679}
da91cb0f
RD
39680static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39681 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39682}
39683static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39684 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39685}
39686static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39687 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39688}
1bd55598
RD
39689static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39690 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39691}
39692static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39693 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39694}
39695static void *_p_wxPenTo_p_wxObject(void *x) {
39696 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39697}
39698static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39699 return (void *)((wxObject *) ((wxRegionIterator *) x));
39700}
1bd55598
RD
39701static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39702 return (void *)((wxObject *) ((wxSizerItem *) x));
39703}
34e0a3bb
RD
39704static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39705 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39706}
1bd55598
RD
39707static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39708 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39709}
39710static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39711 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39712}
39713static void *_p_wxIconTo_p_wxObject(void *x) {
39714 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39715}
39716static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39717 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39718}
39719static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39720 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39721}
39722static void *_p_wxSizerTo_p_wxObject(void *x) {
39723 return (void *)((wxObject *) ((wxSizer *) x));
39724}
39725static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39726 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39727}
39728static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39729 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39730}
1bd55598
RD
39731static void *_p_wxEventTo_p_wxObject(void *x) {
39732 return (void *)((wxObject *) ((wxEvent *) x));
39733}
39734static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39735 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39736}
39737static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39738 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39739}
39740static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39741 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39742}
27e45892
RD
39743static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39744 return (void *)((wxObject *) ((wxPseudoDC *) x));
39745}
2131d850
RD
39746static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39747 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39748}
1bd55598
RD
39749static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39750 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39751}
39752static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39753 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39754}
39755static void *_p_wxDCTo_p_wxObject(void *x) {
39756 return (void *)((wxObject *) ((wxDC *) x));
39757}
39758static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39759 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39760}
39761static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39762 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39763}
39764static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39765 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39766}
39767static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39768 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39769}
39770static void *_p_wxControlTo_p_wxObject(void *x) {
39771 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39772}
70d7cb34
RD
39773static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39774 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39775}
1bd55598
RD
39776static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39777 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39778}
39779static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39780 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39781}
39782static void *_p_wxFSFileTo_p_wxObject(void *x) {
39783 return (void *)((wxObject *) ((wxFSFile *) x));
39784}
39785static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39786 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
1bd55598
RD
39787}
39788static void *_p_wxRegionTo_p_wxObject(void *x) {
39789 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39790}
39791static void *_p_wxPySizerTo_p_wxObject(void *x) {
39792 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39793}
39794static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39795 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39796}
39797static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39798 return (void *)((wxObject *) ((wxGDIObject *) x));
39799}
70d7cb34
RD
39800static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39801 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39802}
39803static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39804 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39805}
1bd55598
RD
39806static void *_p_wxEffectsTo_p_wxObject(void *x) {
39807 return (void *)((wxObject *) ((wxEffects *) x));
39808}
39809static void *_p_wxPyEventTo_p_wxObject(void *x) {
39810 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39811}
39812static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39813 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39814}
39815static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39816 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39817}
70d7cb34
RD
39818static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39819 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39820}
1bd55598
RD
39821static void *_p_wxShowEventTo_p_wxObject(void *x) {
39822 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39823}
39824static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39825 return (void *)((wxObject *) ((wxMenuItem *) x));
39826}
39827static void *_p_wxDateEventTo_p_wxObject(void *x) {
39828 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39829}
39830static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39831 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39832}
39833static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39834 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39835}
39836static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39837 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39838}
39839static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39840 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39841}
39842static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39843 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39844}
39845static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39846 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39847}
39848static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39849 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39850}
39851static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39852 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39853}
39854static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39855 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39856}
39857static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39858 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39859}
39860static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39861 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39862}
39863static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39864 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39865}
39866static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39867 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39868}
39869static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39870 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39871}
39872static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39873 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39874}
39875static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39876 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39877}
39878static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39879 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39880}
39881static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39882 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39883}
39884static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39885 return (void *)((wxObject *) ((wxImageHandler *) x));
39886}
39887static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39888 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39889}
39890static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39891 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39892}
580080c5
RD
39893static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39894 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39895}
1bd55598
RD
39896static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39897 return (void *)((wxObject *) ((wxEvtHandler *) x));
39898}
34e0a3bb
RD
39899static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39900 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39901}
24f6c4e8
RD
39902static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39903 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39904}
1bd55598 39905static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39906 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39907}
24f6c4e8
RD
39908static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39909 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39910}
39911static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39912 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39913}
39914static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39915 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39916}
1bd55598
RD
39917static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39918 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39919}
580080c5
RD
39920static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39921 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39922}
1bd55598
RD
39923static void *_p_wxImageTo_p_wxObject(void *x) {
39924 return (void *)((wxObject *) ((wxImage *) x));
39925}
39926static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39927 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39928}
70d7cb34
RD
39929static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39930 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39931}
39932static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39933 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39934}
1bd55598
RD
39935static void *_p_wxPaletteTo_p_wxObject(void *x) {
39936 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39937}
39938static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39939 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39940}
39941static void *_p_wxImageListTo_p_wxObject(void *x) {
39942 return (void *)((wxObject *) ((wxImageList *) x));
39943}
72ef6efb
RD
39944static void *_p_wxGCDCTo_p_wxObject(void *x) {
39945 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39946}
1bd55598
RD
39947static void *_p_wxCursorTo_p_wxObject(void *x) {
39948 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39949}
39950static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39951 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39952}
39953static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39954 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39955}
70d7cb34
RD
39956static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39957 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39958}
1bd55598
RD
39959static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39960 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39961}
39962static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39963 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39964}
39965static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39966 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39967}
39968static void *_p_wxWindowTo_p_wxObject(void *x) {
39969 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39970}
39971static void *_p_wxMenuTo_p_wxObject(void *x) {
39972 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39973}
39974static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39975 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39976}
39977static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39978 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39979}
1bd55598
RD
39980static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39981 return (void *)((wxObject *) ((wxFileSystem *) x));
39982}
39983static void *_p_wxBitmapTo_p_wxObject(void *x) {
39984 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39985}
39986static void *_p_wxMaskTo_p_wxObject(void *x) {
39987 return (void *)((wxObject *) ((wxMask *) x));
39988}
70d7cb34
RD
39989static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39990 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39991}
1bd55598
RD
39992static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39993 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39994}
39995static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39996 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39997}
39998static void *_p_wxPyAppTo_p_wxObject(void *x) {
39999 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40000}
40001static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40002 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40003}
40004static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40005 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40006}
40007static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40008 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40009}
40010static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40011 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40012}
40013static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40014 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40015}
40016static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40017 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40018}
40019static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40020 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40021}
40022static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40023 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40024}
40025static void *_p_wxFontTo_p_wxObject(void *x) {
40026 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40027}
40028static void *_p_wxBrushTo_p_wxObject(void *x) {
40029 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40030}
40031static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40032 return (void *)((wxObject *) ((wxMetaFile *) x));
40033}
40034static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40035 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40036}
40037static void *_p_wxColourTo_p_wxObject(void *x) {
40038 return (void *)((wxObject *) ((wxColour *) x));
40039}
1bd55598
RD
40040static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40041 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40042}
40043static void *_p_wxValidatorTo_p_wxObject(void *x) {
40044 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40045}
40046static void *_p_wxControlTo_p_wxWindow(void *x) {
40047 return (void *)((wxWindow *) ((wxControl *) x));
40048}
40049static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40050 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40051}
40052static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40053 return (void *)((wxWindow *) ((wxMenuBar *) x));
40054}
fc46b7f3
RD
40055static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40056 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40057}
40058static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40059 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40060}
40061static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 40062static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40063static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
40064static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40065static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40066static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40067static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40068static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40069static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40070static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40071static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40072static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
40073static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40074static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40075static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40076static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40077static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 40078static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 40079static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 40080static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
40081static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40082static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40083static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40084static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40085static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40086static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40087static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40088static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40089static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
40090static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40091static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40092static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40093static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40094static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40095static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40096static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40097static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 40098static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 40099static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40100static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40101static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40102static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40103static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40104static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40105static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40106static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40107static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40108static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
40109static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40110static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40111static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40112static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40113static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40114static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40115static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40116static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40117static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40118static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40119static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40120static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40121static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40122static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40123static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40124static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
40125static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40126static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 40127static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 40128static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
40129static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40130static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40131static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40132static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40133static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40134static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40135static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40136static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40137static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40138static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40139static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40140static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40141static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
40142static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40143static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40144static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40145static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40146static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40147static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40148static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40149static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40150static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40151static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40152static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40153static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40154static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40155static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40156static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40157static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40158static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40159static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40160static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40161static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40162static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40163static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40164static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 40165static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40166static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40167static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40168static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40169static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40170static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40171static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40172static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40173static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40174static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40175static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40176static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
40177static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40178static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40179static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 40180static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598 40181static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40182static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
40183static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40184static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40185static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40186static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40187static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40188static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40189static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40190static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40191static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40192static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40193static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40194static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40195static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40196static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40197static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40198static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40199static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40200static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40201static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40202static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40203static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
40204static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40205static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40206static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40207static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40208static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40209static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 40210static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40211static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40212static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40213static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40214static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40215static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 40216static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40217static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 40218static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
4fe9ce47 40219static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40220static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40221static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40222static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40223static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40224static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40225static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40226static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 40227static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
40228static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40229static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40230static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40231
40232static swig_type_info *swig_type_initial[] = {
fc46b7f3 40233 &_swigt__p_buffer,
1bd55598
RD
40234 &_swigt__p_char,
40235 &_swigt__p_double,
40236 &_swigt__p_form_ops_t,
40237 &_swigt__p_int,
40238 &_swigt__p_unsigned_char,
40239 &_swigt__p_unsigned_int,
40240 &_swigt__p_unsigned_long,
0a27f394 40241 &_swigt__p_void,
1bd55598
RD
40242 &_swigt__p_wxANIHandler,
40243 &_swigt__p_wxAcceleratorTable,
40244 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40245 &_swigt__p_wxAlphaPixelData,
40246 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40247 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
40248 &_swigt__p_wxBMPHandler,
40249 &_swigt__p_wxBitmap,
40250 &_swigt__p_wxBoxSizer,
40251 &_swigt__p_wxBrush,
40252 &_swigt__p_wxBrushList,
40253 &_swigt__p_wxBufferedDC,
40254 &_swigt__p_wxBufferedPaintDC,
40255 &_swigt__p_wxCURHandler,
fc46b7f3 40256 &_swigt__p_wxChar,
1bd55598
RD
40257 &_swigt__p_wxChildFocusEvent,
40258 &_swigt__p_wxClientDC,
2131d850 40259 &_swigt__p_wxClipboardTextEvent,
1bd55598 40260 &_swigt__p_wxCloseEvent,
72ef6efb 40261 &_swigt__p_wxColor,
1bd55598
RD
40262 &_swigt__p_wxColour,
40263 &_swigt__p_wxColourDatabase,
40264 &_swigt__p_wxCommandEvent,
40265 &_swigt__p_wxContextMenuEvent,
40266 &_swigt__p_wxControl,
40267 &_swigt__p_wxControlWithItems,
40268 &_swigt__p_wxCursor,
40269 &_swigt__p_wxDC,
70d7cb34
RD
40270 &_swigt__p_wxDCBrushChanger,
40271 &_swigt__p_wxDCClipper,
b39fe951 40272 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40273 &_swigt__p_wxDCPenChanger,
40274 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
40275 &_swigt__p_wxDash,
40276 &_swigt__p_wxDateEvent,
40277 &_swigt__p_wxDisplayChangedEvent,
40278 &_swigt__p_wxDropFilesEvent,
40279 &_swigt__p_wxDuplexMode,
40280 &_swigt__p_wxEffects,
40281 &_swigt__p_wxEncodingConverter,
40282 &_swigt__p_wxEraseEvent,
40283 &_swigt__p_wxEvent,
40284 &_swigt__p_wxEvtHandler,
40285 &_swigt__p_wxFSFile,
40286 &_swigt__p_wxFileSystem,
40287 &_swigt__p_wxFlexGridSizer,
40288 &_swigt__p_wxFocusEvent,
40289 &_swigt__p_wxFont,
40290 &_swigt__p_wxFontList,
40291 &_swigt__p_wxFontMapper,
40292 &_swigt__p_wxGBSizerItem,
72ef6efb 40293 &_swigt__p_wxGCDC,
da91cb0f 40294 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
40295 &_swigt__p_wxGDIObject,
40296 &_swigt__p_wxGIFHandler,
70d7cb34 40297 &_swigt__p_wxGraphicsBrush,
72ef6efb 40298 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40299 &_swigt__p_wxGraphicsFont,
40300 &_swigt__p_wxGraphicsMatrix,
40301 &_swigt__p_wxGraphicsObject,
72ef6efb 40302 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40303 &_swigt__p_wxGraphicsPen,
40304 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
40305 &_swigt__p_wxGridBagSizer,
40306 &_swigt__p_wxGridSizer,
33d6fd3b 40307 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
40308 &_swigt__p_wxICOHandler,
40309 &_swigt__p_wxIcon,
40310 &_swigt__p_wxIconBundle,
40311 &_swigt__p_wxIconLocation,
40312 &_swigt__p_wxIconizeEvent,
40313 &_swigt__p_wxIdleEvent,
40314 &_swigt__p_wxImage,
40315 &_swigt__p_wxImageHandler,
40316 &_swigt__p_wxImageList,
40317 &_swigt__p_wxIndividualLayoutConstraint,
40318 &_swigt__p_wxInitDialogEvent,
40319 &_swigt__p_wxJPEGHandler,
40320 &_swigt__p_wxKeyEvent,
40321 &_swigt__p_wxLanguageInfo,
40322 &_swigt__p_wxLayoutConstraints,
40323 &_swigt__p_wxLocale,
40324 &_swigt__p_wxMask,
40325 &_swigt__p_wxMaximizeEvent,
40326 &_swigt__p_wxMemoryDC,
40327 &_swigt__p_wxMenu,
40328 &_swigt__p_wxMenuBar,
40329 &_swigt__p_wxMenuEvent,
40330 &_swigt__p_wxMenuItem,
40331 &_swigt__p_wxMetaFile,
40332 &_swigt__p_wxMetaFileDC,
40333 &_swigt__p_wxMirrorDC,
40334 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40335 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
40336 &_swigt__p_wxMouseEvent,
40337 &_swigt__p_wxMoveEvent,
40338 &_swigt__p_wxNativeEncodingInfo,
40339 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40340 &_swigt__p_wxNativePixelData,
40341 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
40342 &_swigt__p_wxNavigationKeyEvent,
40343 &_swigt__p_wxNcPaintEvent,
40344 &_swigt__p_wxNotifyEvent,
40345 &_swigt__p_wxObject,
b39fe951 40346 &_swigt__p_wxOverlay,
1bd55598
RD
40347 &_swigt__p_wxPCXHandler,
40348 &_swigt__p_wxPNGHandler,
40349 &_swigt__p_wxPNMHandler,
40350 &_swigt__p_wxPaintDC,
40351 &_swigt__p_wxPaintEvent,
40352 &_swigt__p_wxPalette,
40353 &_swigt__p_wxPaletteChangedEvent,
40354 &_swigt__p_wxPaperSize,
40355 &_swigt__p_wxPen,
40356 &_swigt__p_wxPenList,
fc46b7f3 40357 &_swigt__p_wxPixelDataBase,
1bd55598 40358 &_swigt__p_wxPoint,
72ef6efb 40359 &_swigt__p_wxPoint2D,
1bd55598
RD
40360 &_swigt__p_wxPostScriptDC,
40361 &_swigt__p_wxPrintData,
40362 &_swigt__p_wxPrinterDC,
27e45892 40363 &_swigt__p_wxPseudoDC,
1bd55598
RD
40364 &_swigt__p_wxPyApp,
40365 &_swigt__p_wxPyCommandEvent,
40366 &_swigt__p_wxPyEvent,
40367 &_swigt__p_wxPyFontEnumerator,
40368 &_swigt__p_wxPyImageHandler,
fc46b7f3 40369 &_swigt__p_wxPyLocale,
1bd55598
RD
40370 &_swigt__p_wxPySizer,
40371 &_swigt__p_wxPyValidator,
40372 &_swigt__p_wxQueryNewPaletteEvent,
40373 &_swigt__p_wxRect,
4fe9ce47 40374 &_swigt__p_wxRect2D,
1bd55598
RD
40375 &_swigt__p_wxRegion,
40376 &_swigt__p_wxRegionIterator,
40377 &_swigt__p_wxRendererNative,
40378 &_swigt__p_wxRendererVersion,
40379 &_swigt__p_wxScreenDC,
40380 &_swigt__p_wxScrollEvent,
40381 &_swigt__p_wxScrollWinEvent,
40382 &_swigt__p_wxSetCursorEvent,
40383 &_swigt__p_wxShowEvent,
40384 &_swigt__p_wxSize,
40385 &_swigt__p_wxSizeEvent,
40386 &_swigt__p_wxSizer,
40387 &_swigt__p_wxSizerItem,
40388 &_swigt__p_wxSplitterRenderParams,
40389 &_swigt__p_wxStaticBoxSizer,
40390 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40391 &_swigt__p_wxStockGDI,
1bd55598
RD
40392 &_swigt__p_wxString,
40393 &_swigt__p_wxSysColourChangedEvent,
580080c5 40394 &_swigt__p_wxTGAHandler,
1bd55598
RD
40395 &_swigt__p_wxTIFFHandler,
40396 &_swigt__p_wxUpdateUIEvent,
40397 &_swigt__p_wxValidator,
40398 &_swigt__p_wxWindow,
40399 &_swigt__p_wxWindowCreateEvent,
40400 &_swigt__p_wxWindowDC,
40401 &_swigt__p_wxWindowDestroyEvent,
40402 &_swigt__p_wxXPMHandler,
40403};
40404
fc46b7f3 40405static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40406static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40407static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40408static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40409static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40410static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40411static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40412static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40413static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40414static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40415static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40416static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40417static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40418static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40419static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40420static 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}};
40421static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40422static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40423static 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}};
40424static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40425static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40426static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40427static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40428static 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
40429static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40430static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40431static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40432static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40433static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40434static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40435static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40436static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40437static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40438static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40439static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40440static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40441static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40442static 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 40443static 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 40444static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40445static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40446static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40447static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40448static 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 40449static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40450static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40451static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40452static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40453static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40454static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40455static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40456static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40457static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40458static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40459static 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 40460static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40461static 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
40462static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40463static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40464static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40465static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40466static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40467static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40468static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40469static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40470static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40471static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40472static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40473static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40474static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40475static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40476static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40477static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40478static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40479static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40480static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40481static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40482static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40483static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40484static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40485static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40486static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40487static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40488static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40489static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40490static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40491static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40492static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40493static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40494static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40495static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40496static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40497static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40498static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40499static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40500static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40501static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40502static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40503static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40504static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40505static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40506static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40507static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40508static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40509static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40510static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40511static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40512static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40513static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40514static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40515static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40516static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40517static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40518static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40519static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40520static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40521static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40522static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40523static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40524static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40525static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40526static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40527static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40528static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40529static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40530static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40531static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40532static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40533static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40534static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40535static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40536static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40537static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40538static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40539static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40540static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40541static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40542static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40543static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40544static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40545static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40546static 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 40547static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40548static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40549static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40550static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40551static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40552static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40553static 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 40554static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40555static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40556static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40557static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40558static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40559static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40560static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40561static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40562static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
4fe9ce47 40563static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40564static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40565static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40566static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40567static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40568static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40569static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40570static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40571static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40572static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40573static 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 40574static 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
40575
40576static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40577 _swigc__p_buffer,
1bd55598
RD
40578 _swigc__p_char,
40579 _swigc__p_double,
40580 _swigc__p_form_ops_t,
40581 _swigc__p_int,
40582 _swigc__p_unsigned_char,
40583 _swigc__p_unsigned_int,
40584 _swigc__p_unsigned_long,
0a27f394 40585 _swigc__p_void,
1bd55598
RD
40586 _swigc__p_wxANIHandler,
40587 _swigc__p_wxAcceleratorTable,
40588 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40589 _swigc__p_wxAlphaPixelData,
40590 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40591 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40592 _swigc__p_wxBMPHandler,
40593 _swigc__p_wxBitmap,
40594 _swigc__p_wxBoxSizer,
40595 _swigc__p_wxBrush,
40596 _swigc__p_wxBrushList,
40597 _swigc__p_wxBufferedDC,
40598 _swigc__p_wxBufferedPaintDC,
40599 _swigc__p_wxCURHandler,
fc46b7f3 40600 _swigc__p_wxChar,
1bd55598
RD
40601 _swigc__p_wxChildFocusEvent,
40602 _swigc__p_wxClientDC,
2131d850 40603 _swigc__p_wxClipboardTextEvent,
1bd55598 40604 _swigc__p_wxCloseEvent,
72ef6efb 40605 _swigc__p_wxColor,
1bd55598
RD
40606 _swigc__p_wxColour,
40607 _swigc__p_wxColourDatabase,
40608 _swigc__p_wxCommandEvent,
40609 _swigc__p_wxContextMenuEvent,
40610 _swigc__p_wxControl,
40611 _swigc__p_wxControlWithItems,
40612 _swigc__p_wxCursor,
40613 _swigc__p_wxDC,
70d7cb34
RD
40614 _swigc__p_wxDCBrushChanger,
40615 _swigc__p_wxDCClipper,
b39fe951 40616 _swigc__p_wxDCOverlay,
70d7cb34
RD
40617 _swigc__p_wxDCPenChanger,
40618 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40619 _swigc__p_wxDash,
40620 _swigc__p_wxDateEvent,
40621 _swigc__p_wxDisplayChangedEvent,
40622 _swigc__p_wxDropFilesEvent,
40623 _swigc__p_wxDuplexMode,
40624 _swigc__p_wxEffects,
40625 _swigc__p_wxEncodingConverter,
40626 _swigc__p_wxEraseEvent,
40627 _swigc__p_wxEvent,
40628 _swigc__p_wxEvtHandler,
40629 _swigc__p_wxFSFile,
40630 _swigc__p_wxFileSystem,
40631 _swigc__p_wxFlexGridSizer,
40632 _swigc__p_wxFocusEvent,
40633 _swigc__p_wxFont,
40634 _swigc__p_wxFontList,
40635 _swigc__p_wxFontMapper,
40636 _swigc__p_wxGBSizerItem,
72ef6efb 40637 _swigc__p_wxGCDC,
da91cb0f 40638 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40639 _swigc__p_wxGDIObject,
40640 _swigc__p_wxGIFHandler,
70d7cb34 40641 _swigc__p_wxGraphicsBrush,
72ef6efb 40642 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40643 _swigc__p_wxGraphicsFont,
40644 _swigc__p_wxGraphicsMatrix,
40645 _swigc__p_wxGraphicsObject,
72ef6efb 40646 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40647 _swigc__p_wxGraphicsPen,
40648 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40649 _swigc__p_wxGridBagSizer,
40650 _swigc__p_wxGridSizer,
33d6fd3b 40651 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40652 _swigc__p_wxICOHandler,
40653 _swigc__p_wxIcon,
40654 _swigc__p_wxIconBundle,
40655 _swigc__p_wxIconLocation,
40656 _swigc__p_wxIconizeEvent,
40657 _swigc__p_wxIdleEvent,
40658 _swigc__p_wxImage,
40659 _swigc__p_wxImageHandler,
40660 _swigc__p_wxImageList,
40661 _swigc__p_wxIndividualLayoutConstraint,
40662 _swigc__p_wxInitDialogEvent,
40663 _swigc__p_wxJPEGHandler,
40664 _swigc__p_wxKeyEvent,
40665 _swigc__p_wxLanguageInfo,
40666 _swigc__p_wxLayoutConstraints,
40667 _swigc__p_wxLocale,
40668 _swigc__p_wxMask,
40669 _swigc__p_wxMaximizeEvent,
40670 _swigc__p_wxMemoryDC,
40671 _swigc__p_wxMenu,
40672 _swigc__p_wxMenuBar,
40673 _swigc__p_wxMenuEvent,
40674 _swigc__p_wxMenuItem,
40675 _swigc__p_wxMetaFile,
40676 _swigc__p_wxMetaFileDC,
40677 _swigc__p_wxMirrorDC,
40678 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40679 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40680 _swigc__p_wxMouseEvent,
40681 _swigc__p_wxMoveEvent,
40682 _swigc__p_wxNativeEncodingInfo,
40683 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40684 _swigc__p_wxNativePixelData,
40685 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40686 _swigc__p_wxNavigationKeyEvent,
40687 _swigc__p_wxNcPaintEvent,
40688 _swigc__p_wxNotifyEvent,
40689 _swigc__p_wxObject,
b39fe951 40690 _swigc__p_wxOverlay,
1bd55598
RD
40691 _swigc__p_wxPCXHandler,
40692 _swigc__p_wxPNGHandler,
40693 _swigc__p_wxPNMHandler,
40694 _swigc__p_wxPaintDC,
40695 _swigc__p_wxPaintEvent,
40696 _swigc__p_wxPalette,
40697 _swigc__p_wxPaletteChangedEvent,
40698 _swigc__p_wxPaperSize,
40699 _swigc__p_wxPen,
40700 _swigc__p_wxPenList,
fc46b7f3 40701 _swigc__p_wxPixelDataBase,
1bd55598 40702 _swigc__p_wxPoint,
72ef6efb 40703 _swigc__p_wxPoint2D,
1bd55598
RD
40704 _swigc__p_wxPostScriptDC,
40705 _swigc__p_wxPrintData,
40706 _swigc__p_wxPrinterDC,
27e45892 40707 _swigc__p_wxPseudoDC,
1bd55598
RD
40708 _swigc__p_wxPyApp,
40709 _swigc__p_wxPyCommandEvent,
40710 _swigc__p_wxPyEvent,
40711 _swigc__p_wxPyFontEnumerator,
40712 _swigc__p_wxPyImageHandler,
fc46b7f3 40713 _swigc__p_wxPyLocale,
1bd55598
RD
40714 _swigc__p_wxPySizer,
40715 _swigc__p_wxPyValidator,
40716 _swigc__p_wxQueryNewPaletteEvent,
40717 _swigc__p_wxRect,
4fe9ce47 40718 _swigc__p_wxRect2D,
1bd55598
RD
40719 _swigc__p_wxRegion,
40720 _swigc__p_wxRegionIterator,
40721 _swigc__p_wxRendererNative,
40722 _swigc__p_wxRendererVersion,
40723 _swigc__p_wxScreenDC,
40724 _swigc__p_wxScrollEvent,
40725 _swigc__p_wxScrollWinEvent,
40726 _swigc__p_wxSetCursorEvent,
40727 _swigc__p_wxShowEvent,
40728 _swigc__p_wxSize,
40729 _swigc__p_wxSizeEvent,
40730 _swigc__p_wxSizer,
40731 _swigc__p_wxSizerItem,
40732 _swigc__p_wxSplitterRenderParams,
40733 _swigc__p_wxStaticBoxSizer,
40734 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40735 _swigc__p_wxStockGDI,
1bd55598
RD
40736 _swigc__p_wxString,
40737 _swigc__p_wxSysColourChangedEvent,
580080c5 40738 _swigc__p_wxTGAHandler,
1bd55598
RD
40739 _swigc__p_wxTIFFHandler,
40740 _swigc__p_wxUpdateUIEvent,
40741 _swigc__p_wxValidator,
40742 _swigc__p_wxWindow,
40743 _swigc__p_wxWindowCreateEvent,
40744 _swigc__p_wxWindowDC,
40745 _swigc__p_wxWindowDestroyEvent,
40746 _swigc__p_wxXPMHandler,
40747};
40748
40749
40750/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40751
40752static swig_const_info swig_const_table[] = {
40753{0, 0, 0, 0.0, 0, 0}};
40754
40755#ifdef __cplusplus
40756}
40757#endif
40758/* -----------------------------------------------------------------------------
40759 * Type initialization:
40760 * This problem is tough by the requirement that no dynamic
40761 * memory is used. Also, since swig_type_info structures store pointers to
40762 * swig_cast_info structures and swig_cast_info structures store pointers back
40763 * to swig_type_info structures, we need some lookup code at initialization.
40764 * The idea is that swig generates all the structures that are needed.
40765 * The runtime then collects these partially filled structures.
40766 * The SWIG_InitializeModule function takes these initial arrays out of
40767 * swig_module, and does all the lookup, filling in the swig_module.types
40768 * array with the correct data and linking the correct swig_cast_info
40769 * structures together.
40770 *
40771 * The generated swig_type_info structures are assigned staticly to an initial
40772 * array. We just loop though that array, and handle each type individually.
40773 * First we lookup if this type has been already loaded, and if so, use the
40774 * loaded structure instead of the generated one. Then we have to fill in the
40775 * cast linked list. The cast data is initially stored in something like a
40776 * two-dimensional array. Each row corresponds to a type (there are the same
40777 * number of rows as there are in the swig_type_initial array). Each entry in
40778 * a column is one of the swig_cast_info structures for that type.
40779 * The cast_initial array is actually an array of arrays, because each row has
40780 * a variable number of columns. So to actually build the cast linked list,
40781 * we find the array of casts associated with the type, and loop through it
40782 * adding the casts to the list. The one last trick we need to do is making
40783 * sure the type pointer in the swig_cast_info struct is correct.
40784 *
40785 * First off, we lookup the cast->type name to see if it is already loaded.
40786 * There are three cases to handle:
40787 * 1) If the cast->type has already been loaded AND the type we are adding
40788 * casting info to has not been loaded (it is in this module), THEN we
40789 * replace the cast->type pointer with the type pointer that has already
40790 * been loaded.
40791 * 2) If BOTH types (the one we are adding casting info to, and the
40792 * cast->type) are loaded, THEN the cast info has already been loaded by
40793 * the previous module so we just ignore it.
40794 * 3) Finally, if cast->type has not already been loaded, then we add that
40795 * swig_cast_info to the linked list (because the cast->type) pointer will
40796 * be correct.
40797 * ----------------------------------------------------------------------------- */
40798
40799#ifdef __cplusplus
40800extern "C" {
40801#if 0
40802} /* c-mode */
40803#endif
40804#endif
40805
40806#if 0
40807#define SWIGRUNTIME_DEBUG
40808#endif
40809
40810SWIGRUNTIME void
40811SWIG_InitializeModule(void *clientdata) {
40812 size_t i;
40813 swig_module_info *module_head;
40814 static int init_run = 0;
40815
40816 clientdata = clientdata;
40817
40818 if (init_run) return;
40819 init_run = 1;
40820
40821 /* Initialize the swig_module */
40822 swig_module.type_initial = swig_type_initial;
40823 swig_module.cast_initial = swig_cast_initial;
40824
40825 /* Try and load any already created modules */
40826 module_head = SWIG_GetModule(clientdata);
40827 if (module_head) {
40828 swig_module.next = module_head->next;
40829 module_head->next = &swig_module;
40830 } else {
40831 /* This is the first module loaded */
40832 swig_module.next = &swig_module;
40833 SWIG_SetModule(clientdata, &swig_module);
40834 }
40835
40836 /* Now work on filling in swig_module.types */
40837#ifdef SWIGRUNTIME_DEBUG
40838 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40839#endif
40840 for (i = 0; i < swig_module.size; ++i) {
40841 swig_type_info *type = 0;
40842 swig_type_info *ret;
40843 swig_cast_info *cast;
40844
40845#ifdef SWIGRUNTIME_DEBUG
40846 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40847#endif
40848
40849 /* if there is another module already loaded */
40850 if (swig_module.next != &swig_module) {
40851 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40852 }
1bd55598
RD
40853 if (type) {
40854 /* Overwrite clientdata field */
40855#ifdef SWIGRUNTIME_DEBUG
40856 printf("SWIG_InitializeModule: found type %s\n", type->name);
40857#endif
40858 if (swig_module.type_initial[i]->clientdata) {
40859 type->clientdata = swig_module.type_initial[i]->clientdata;
40860#ifdef SWIGRUNTIME_DEBUG
40861 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40862#endif
40863 }
40864 } else {
40865 type = swig_module.type_initial[i];
be9b1dca 40866 }
1bd55598
RD
40867
40868 /* Insert casting types */
40869 cast = swig_module.cast_initial[i];
40870 while (cast->type) {
40871 /* Don't need to add information already in the list */
40872 ret = 0;
40873#ifdef SWIGRUNTIME_DEBUG
40874 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40875#endif
40876 if (swig_module.next != &swig_module) {
40877 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40878#ifdef SWIGRUNTIME_DEBUG
40879 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40880#endif
40881 }
40882 if (ret) {
40883 if (type == swig_module.type_initial[i]) {
40884#ifdef SWIGRUNTIME_DEBUG
40885 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40886#endif
40887 cast->type = ret;
40888 ret = 0;
40889 } else {
40890 /* Check for casting already in the list */
40891 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40892#ifdef SWIGRUNTIME_DEBUG
40893 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40894#endif
40895 if (!ocast) ret = 0;
40896 }
40897 }
40898
40899 if (!ret) {
40900#ifdef SWIGRUNTIME_DEBUG
40901 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40902#endif
40903 if (type->cast) {
40904 type->cast->prev = cast;
40905 cast->next = type->cast;
40906 }
40907 type->cast = cast;
40908 }
40909 cast++;
be9b1dca 40910 }
1bd55598
RD
40911 /* Set entry in modules->types array equal to the type */
40912 swig_module.types[i] = type;
40913 }
40914 swig_module.types[i] = 0;
40915
40916#ifdef SWIGRUNTIME_DEBUG
40917 printf("**** SWIG_InitializeModule: Cast List ******\n");
40918 for (i = 0; i < swig_module.size; ++i) {
40919 int j = 0;
40920 swig_cast_info *cast = swig_module.cast_initial[i];
40921 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40922 while (cast->type) {
40923 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40924 cast++;
40925 ++j;
40926 }
40927 printf("---- Total casts: %d\n",j);
40928 }
40929 printf("**** SWIG_InitializeModule: Cast List ******\n");
40930#endif
40931}
40932
40933/* This function will propagate the clientdata field of type to
40934* any new swig_type_info structures that have been added into the list
40935* of equivalent types. It is like calling
40936* SWIG_TypeClientData(type, clientdata) a second time.
40937*/
40938SWIGRUNTIME void
40939SWIG_PropagateClientData(void) {
40940 size_t i;
40941 swig_cast_info *equiv;
40942 static int init_run = 0;
40943
40944 if (init_run) return;
40945 init_run = 1;
40946
40947 for (i = 0; i < swig_module.size; i++) {
40948 if (swig_module.types[i]->clientdata) {
40949 equiv = swig_module.types[i]->cast;
40950 while (equiv) {
40951 if (!equiv->converter) {
40952 if (equiv->type && !equiv->type->clientdata)
40953 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40954 }
40955 equiv = equiv->next;
40956 }
be9b1dca 40957 }
1bd55598
RD
40958 }
40959}
40960
40961#ifdef __cplusplus
40962#if 0
40963{
40964 /* c-mode */
40965#endif
40966}
40967#endif
40968
40969
40970
40971#ifdef __cplusplus
40972extern "C" {
40973#endif
40974
40975 /* Python-specific SWIG API */
40976#define SWIG_newvarlink() SWIG_Python_newvarlink()
40977#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40978#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40979
40980 /* -----------------------------------------------------------------------------
40981 * global variable support code.
40982 * ----------------------------------------------------------------------------- */
40983
40984 typedef struct swig_globalvar {
40985 char *name; /* Name of global variable */
40986 PyObject *(*get_attr)(void); /* Return the current value */
40987 int (*set_attr)(PyObject *); /* Set the value */
40988 struct swig_globalvar *next;
40989 } swig_globalvar;
40990
40991 typedef struct swig_varlinkobject {
40992 PyObject_HEAD
40993 swig_globalvar *vars;
40994 } swig_varlinkobject;
40995
40996 SWIGINTERN PyObject *
40997 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40998 return PyString_FromString("<Swig global variables>");
40999 }
41000
41001 SWIGINTERN PyObject *
41002 swig_varlink_str(swig_varlinkobject *v) {
41003 PyObject *str = PyString_FromString("(");
41004 swig_globalvar *var;
41005 for (var = v->vars; var; var=var->next) {
41006 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41007 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41008 }
41009 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41010 return str;
41011 }
41012
41013 SWIGINTERN int
41014 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41015 PyObject *str = swig_varlink_str(v);
41016 fprintf(fp,"Swig global variables ");
41017 fprintf(fp,"%s\n", PyString_AsString(str));
41018 Py_DECREF(str);
41019 return 0;
41020 }
41021
41022 SWIGINTERN void
41023 swig_varlink_dealloc(swig_varlinkobject *v) {
41024 swig_globalvar *var = v->vars;
41025 while (var) {
41026 swig_globalvar *n = var->next;
41027 free(var->name);
41028 free(var);
41029 var = n;
be9b1dca 41030 }
1bd55598
RD
41031 }
41032
41033 SWIGINTERN PyObject *
41034 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41035 PyObject *res = NULL;
41036 swig_globalvar *var = v->vars;
41037 while (var) {
41038 if (strcmp(var->name,n) == 0) {
41039 res = (*var->get_attr)();
41040 break;
41041 }
41042 var = var->next;
be9b1dca 41043 }
1bd55598
RD
41044 if (res == NULL && !PyErr_Occurred()) {
41045 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41046 }
1bd55598
RD
41047 return res;
41048 }
41049
41050 SWIGINTERN int
41051 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41052 int res = 1;
41053 swig_globalvar *var = v->vars;
41054 while (var) {
41055 if (strcmp(var->name,n) == 0) {
41056 res = (*var->set_attr)(p);
41057 break;
41058 }
41059 var = var->next;
be9b1dca 41060 }
1bd55598
RD
41061 if (res == 1 && !PyErr_Occurred()) {
41062 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41063 }
1bd55598
RD
41064 return res;
41065 }
41066
41067 SWIGINTERN PyTypeObject*
41068 swig_varlink_type(void) {
41069 static char varlink__doc__[] = "Swig var link object";
41070 static PyTypeObject varlink_type;
41071 static int type_init = 0;
41072 if (!type_init) {
41073 const PyTypeObject tmp
41074 = {
41075 PyObject_HEAD_INIT(NULL)
41076 0, /* Number of items in variable part (ob_size) */
41077 (char *)"swigvarlink", /* Type name (tp_name) */
41078 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41079 0, /* Itemsize (tp_itemsize) */
41080 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41081 (printfunc) swig_varlink_print, /* Print (tp_print) */
41082 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41083 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41084 0, /* tp_compare */
41085 (reprfunc) swig_varlink_repr, /* tp_repr */
41086 0, /* tp_as_number */
41087 0, /* tp_as_sequence */
41088 0, /* tp_as_mapping */
41089 0, /* tp_hash */
41090 0, /* tp_call */
41091 (reprfunc)swig_varlink_str, /* tp_str */
41092 0, /* tp_getattro */
41093 0, /* tp_setattro */
41094 0, /* tp_as_buffer */
41095 0, /* tp_flags */
41096 varlink__doc__, /* tp_doc */
41097 0, /* tp_traverse */
41098 0, /* tp_clear */
41099 0, /* tp_richcompare */
41100 0, /* tp_weaklistoffset */
41101#if PY_VERSION_HEX >= 0x02020000
41102 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41103#endif
41104#if PY_VERSION_HEX >= 0x02030000
41105 0, /* tp_del */
41106#endif
41107#ifdef COUNT_ALLOCS
41108 0,0,0,0 /* tp_alloc -> tp_next */
41109#endif
41110 };
41111 varlink_type = tmp;
41112 varlink_type.ob_type = &PyType_Type;
41113 type_init = 1;
be9b1dca 41114 }
1bd55598
RD
41115 return &varlink_type;
41116 }
41117
41118 /* Create a variable linking object for use later */
41119 SWIGINTERN PyObject *
41120 SWIG_Python_newvarlink(void) {
41121 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41122 if (result) {
41123 result->vars = 0;
41124 }
41125 return ((PyObject*) result);
41126 }
41127
41128 SWIGINTERN void
41129 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41130 swig_varlinkobject *v = (swig_varlinkobject *) p;
41131 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41132 if (gv) {
41133 size_t size = strlen(name)+1;
41134 gv->name = (char *)malloc(size);
41135 if (gv->name) {
41136 strncpy(gv->name,name,size);
41137 gv->get_attr = get_attr;
41138 gv->set_attr = set_attr;
41139 gv->next = v->vars;
41140 }
be9b1dca 41141 }
1bd55598
RD
41142 v->vars = gv;
41143 }
41144
41145 SWIGINTERN PyObject *
41146 SWIG_globals() {
41147 static PyObject *_SWIG_globals = 0;
41148 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41149 return _SWIG_globals;
41150 }
41151
41152 /* -----------------------------------------------------------------------------
41153 * constants/methods manipulation
41154 * ----------------------------------------------------------------------------- */
41155
41156 /* Install Constants */
41157 SWIGINTERN void
41158 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41159 PyObject *obj = 0;
41160 size_t i;
41161 for (i = 0; constants[i].type; ++i) {
41162 switch(constants[i].type) {
41163 case SWIG_PY_POINTER:
41164 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41165 break;
41166 case SWIG_PY_BINARY:
41167 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41168 break;
41169 default:
41170 obj = 0;
41171 break;
41172 }
41173 if (obj) {
41174 PyDict_SetItemString(d, constants[i].name, obj);
41175 Py_DECREF(obj);
41176 }
be9b1dca 41177 }
1bd55598
RD
41178 }
41179
41180 /* -----------------------------------------------------------------------------*/
41181 /* Fix SwigMethods to carry the callback ptrs when needed */
41182 /* -----------------------------------------------------------------------------*/
41183
41184 SWIGINTERN void
41185 SWIG_Python_FixMethods(PyMethodDef *methods,
41186 swig_const_info *const_table,
41187 swig_type_info **types,
41188 swig_type_info **types_initial) {
41189 size_t i;
41190 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 41191 const char *c = methods[i].ml_doc;
1bd55598
RD
41192 if (c && (c = strstr(c, "swig_ptr: "))) {
41193 int j;
41194 swig_const_info *ci = 0;
3d6c9062 41195 const char *name = c + 10;
1bd55598
RD
41196 for (j = 0; const_table[j].type; ++j) {
41197 if (strncmp(const_table[j].name, name,
41198 strlen(const_table[j].name)) == 0) {
41199 ci = &(const_table[j]);
41200 break;
41201 }
41202 }
41203 if (ci) {
41204 size_t shift = (ci->ptype) - types;
41205 swig_type_info *ty = types_initial[shift];
41206 size_t ldoc = (c - methods[i].ml_doc);
41207 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41208 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41209 if (ndoc) {
41210 char *buff = ndoc;
41211 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41212 if (ptr) {
41213 strncpy(buff, methods[i].ml_doc, ldoc);
41214 buff += ldoc;
41215 strncpy(buff, "swig_ptr: ", 10);
41216 buff += 10;
41217 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41218 methods[i].ml_doc = ndoc;
41219 }
41220 }
41221 }
41222 }
be9b1dca 41223 }
1bd55598
RD
41224 }
41225
41226#ifdef __cplusplus
41227}
41228#endif
41229
41230/* -----------------------------------------------------------------------------*
41231 * Partial Init method
41232 * -----------------------------------------------------------------------------*/
41233
41234#ifdef __cplusplus
41235extern "C"
41236#endif
41237SWIGEXPORT void SWIG_init(void) {
41238 PyObject *m, *d;
41239
41240 /* Fix SwigMethods to carry the callback ptrs when needed */
41241 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41242
41243 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41244 d = PyModule_GetDict(m);
41245
41246 SWIG_InitializeModule(0);
41247 SWIG_InstallConstants(d,swig_const_table);
41248
41249
2131d850
RD
41250 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41251 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41252 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41253 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41254 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
41255 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41256 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41257 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41258 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41259 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41260 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41261 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41262 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41263 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41264 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41265 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41266 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41267 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41268 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41269 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41270 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41271 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41272 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41273 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41274 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41275 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41276 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41277 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41278 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41279 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41280 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41281 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41282 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41283 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41284 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41285 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41286 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41287 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41288 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41289 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41290 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41291 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41292 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41293 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41294 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41295 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41296 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41297 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41298 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41299 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41300 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41301 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41302 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41303 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41304 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41305 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41306 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41307 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41308 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41309 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41310 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41311 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41312 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41313 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41314 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41315 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41316 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41317 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41318 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41319 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41320 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41321 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41322 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41323 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41324 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41325 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41326 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41327 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41328 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41329 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41330 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41331 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41332 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41333 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41334 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41335 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41336 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41337 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41338 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41339 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41340 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41341 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41342 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41343 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41344 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41345 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41346 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41347 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41348 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41349 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41350 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41351 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41352 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41353 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41354 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41355 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41356 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41357 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41358 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41359 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41360 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41361 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41362 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41363 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41364 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41365 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41366 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41367 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41368 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41369 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41370 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41371 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41372 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41373 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41374 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41375 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41376 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41377 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41378 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41379 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41380 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41381 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41382
41383 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41384
41385 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41386 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41387 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41388 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41389 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41390 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41391 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41392 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41393 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41394 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41395 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41396 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41397 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41398 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41399 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41400 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41401 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41402 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41403 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41404 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41405 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41406 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41407 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41408 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41409 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41410 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41411 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41412 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41413 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41414 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41415 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41416 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41417 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41418 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41419 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41420 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41451 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41452 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41453 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41454 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41455 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41456 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41457 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41458 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41459 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41460 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41461 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41462 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41463 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41464 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41465 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41466 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41467 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41468 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41469 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41470 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41471 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41472 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41473 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41474 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41475 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41476 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41477 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41478 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41479 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41480 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41481 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41482 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41483 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41484 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41485 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41486 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41487 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41488 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41489 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41490 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41491 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41492 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41493 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41494 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41495 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41496 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41497 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41498 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41499 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41500 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41501 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41502 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41503 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41504 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41505 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41506 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41507 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41508 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41509 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41510 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41511 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41512 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41513 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41514 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41515 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41516 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41517 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41518 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41519 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41520 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41521 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41522 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41523 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41524 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41525 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41526 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41527 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41528 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41529 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41530 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41531 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41532 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41533 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41534 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41535 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41536 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41537 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41538 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41539 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41540 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41541 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41542 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41543 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41544 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41545 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41546 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41547 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41548 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41549 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41550 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41551 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41552 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41553 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41554 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41555 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41556 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41557 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41558 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41559 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41560 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41561 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41562 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41563 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41564 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41565 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41566 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41567 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41568 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41569 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41570 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41571 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41572 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41573 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41574 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41575 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41576 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41577 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41578 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41579 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41580 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41581 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41582 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41583 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41584 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41585 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41586 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41587 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41588 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41589 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41590 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41591 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41592 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41593 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41594 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41595 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41596 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41597 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41598 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41599 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41600 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41601 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41602 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41603 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41604 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41605 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41606 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41607 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41608 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41609 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41610 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41611 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41612 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41613 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41614 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41615 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41616 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41617 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41618 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41619 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41620 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41621 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41622 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41623 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41624 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41625 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41626 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41627 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41628 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41629 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41630 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41631 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41632 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41633 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41634 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41635 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41636 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41637 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41638 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41639 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41640 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41641 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41642 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41643 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41644 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41645 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41646 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41647 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41648 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41649 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41650 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41651 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41652 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41653 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41654 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41655 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41656 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41657 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41658 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41659 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41660 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41661 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41662 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41663 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41664 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41665 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41666 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41667 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41668 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41669 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41670 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41671 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41672 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41673 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41674 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41675 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41676 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41677 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41678 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41679 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41680 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41681 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41682 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41683 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41684 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41685 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41686 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41687 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41688 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41689 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41690 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41691 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41692 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41693 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41694 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41695 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41696 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41697 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41698 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41699 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41700 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41701 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41702 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41703 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41704 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41705 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41706 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41707 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41708 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41709
41710 // Work around a chicken/egg problem in drawlist.cpp
41711 wxPyDrawList_SetAPIPtr();
41712
d55e5bfc
RD
41713}
41714