]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
Add docstrings and a dummy class to be used in builds that don't have wxSearchCtrl.
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d14a1e28 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
0085ce49
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
0085ce49
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
0085ce49
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
0085ce49
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
0085ce49
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d14a1e28
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d14a1e28 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
0085ce49 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d14a1e28 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d14a1e28 714
0085ce49
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
0085ce49
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d14a1e28 846
0085ce49
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
994141e6 1000
0085ce49
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
994141e6 1004
0085ce49
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d14a1e28 1008
0085ce49
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
994141e6 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c32bde28 1017
0085ce49 1018/* Runtime API */
994141e6 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
994141e6 1030
0085ce49 1031/* Runtime API implementation */
c32bde28 1032
0085ce49 1033/* Error manipulation */
c32bde28 1034
0085ce49
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1041}
15afbcd0 1042
0085ce49
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1048}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
c32bde28 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
69223c70 1061
0085ce49
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
093d3ff1 1088 } else {
0085ce49
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
15afbcd0 1100 }
0085ce49
RD
1101 return result;
1102#endif
093d3ff1 1103}
15afbcd0 1104
0085ce49 1105/* Unpack the argument tuple */
15afbcd0 1106
0085ce49
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
093d3ff1
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
32fe5131 1684 return &pyswigobject_type;
15afbcd0
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 1697 return (PyObject *)sobj;
15afbcd0
RD
1698}
1699
093d3ff1
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
c32bde28 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
15afbcd0 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
c32bde28
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
c32bde28 1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
c32bde28 1749{
0085ce49
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
c32bde28
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
c32bde28 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
994141e6
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1 1880}
15afbcd0 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
15afbcd0 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
15afbcd0 1947 }
15afbcd0
RD
1948}
1949
0085ce49
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
093d3ff1 1961 }
0085ce49 1962 return 0;
994141e6
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
994141e6 2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
d14a1e28 2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
7e63a440 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
d14a1e28 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
c32bde28 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d14a1e28 2096
0085ce49
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1 2158}
d14a1e28 2159
0085ce49
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d14a1e28 2180
0085ce49
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
15afbcd0 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
c32bde28
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
994141e6
RD
2224}
2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
15afbcd0 2241#else
093d3ff1
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
15afbcd0 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d14a1e28 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
d14a1e28 2284
0085ce49
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d14a1e28 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
d14a1e28 2321
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
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)
d14a1e28 2640
093d3ff1 2641/* -------- TYPES TABLE (END) -------- */
d14a1e28 2642
0085ce49
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
d14a1e28 2657
093d3ff1
RD
2658/*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661#define SWIG_init init_gdi_
d14a1e28 2662
093d3ff1 2663#define SWIG_name "_gdi_"
d14a1e28 2664
0085ce49 2665#define SWIGVERSION 0x010329
d14a1e28 2666
d14a1e28 2667
0085ce49
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))
d14a1e28
RD
2670
2671
0085ce49
RD
2672#include <stdexcept>
2673
2674
2675namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
093d3ff1 2683 }
0085ce49
RD
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
093d3ff1 2688 }
0085ce49
RD
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
093d3ff1 2718}
d14a1e28 2719
994141e6 2720
0085ce49
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;
69223c70 2730 }
0085ce49 2731 };
15afbcd0
RD
2732}
2733
2734
0085ce49
RD
2735#include "wx/wxPython/wxPython.h"
2736#include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
01f6b6d3
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
0085ce49
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
b88bce5f 2761
b88bce5f 2762
50efceee
RD
2763SWIGINTERN int
2764SWIG_AsVal_long (PyObject* obj, long* val)
2765{
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771}
2772
2773
093d3ff1 2774SWIGINTERN int
0085ce49 2775SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2776{
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2779 return SWIG_TypeError;
093d3ff1
RD
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
0085ce49 2783 return SWIG_OK;
093d3ff1 2784}
d14a1e28
RD
2785
2786
093d3ff1 2787SWIGINTERN int
0085ce49
RD
2788SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789{
093d3ff1 2790 unsigned long v;
0085ce49
RD
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
093d3ff1 2795 } else {
0085ce49 2796 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2797 }
0085ce49
RD
2798 }
2799 return res;
093d3ff1 2800}
33b885b9 2801
d14a1e28 2802
0085ce49
RD
2803SWIGINTERNINLINE PyObject*
2804SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2805{
0085ce49
RD
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2808}
d14a1e28 2809
d14a1e28 2810
0085ce49
RD
2811SWIGINTERNINLINE PyObject *
2812SWIG_From_unsigned_SS_char (unsigned char value)
2813{
2814 return SWIG_From_unsigned_SS_long (value);
2815}
d14a1e28 2816
e9d6f3a4
RD
2817SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
fc46b7f3
RD
2835
2836SWIGINTERN int
2837SWIG_AsVal_bool (PyObject *obj, bool *val)
2838{
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851}
2852
2853SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
fc46b7f3 2858 int alpha = wxALPHA_OPAQUE;
b39fe951 2859 if (self->IsOk()) {
093d3ff1
RD
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
fc46b7f3 2863 alpha = self->Alpha();
093d3ff1
RD
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2870 return rv;
2871 }
0085ce49 2872SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
d14a1e28 2875
0085ce49
RD
2876SWIGINTERN int
2877SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2878{
0085ce49
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;
d14a1e28
RD
2889}
2890
0085ce49 2891SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
5a446332 2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
0085ce49 2904SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 2908
093d3ff1
RD
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
0085ce49
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; }
d14a1e28 2925
fc46b7f3
RD
2926#include <wx/rawbmp.h>
2927
2928
8f514ab4
RD
2929// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2930// appears to me that the other platforms are already doing it, so I'll just
2931// automatically do it for wxMSW here.
2932#ifdef __WXMSW__
2933#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2934#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2935#else
2936#define wxPy_premultiply(p, a) (p)
2937#define wxPy_unpremultiply(p, a) (p)
2938#endif
2939
2940
093d3ff1 2941#include <wx/image.h>
b88bce5f 2942
093d3ff1
RD
2943 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2944 char** cArray = NULL;
2945 int count;
2946
2947 if (!PyList_Check(listOfStrings)) {
2948 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2949 return NULL;
2950 }
2951 count = PyList_Size(listOfStrings);
2952 cArray = new char*[count];
2953
2954 for(int x=0; x<count; x++) {
2955 // TODO: Need some validation and error checking here
2956 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2957 }
2958 return cArray;
b88bce5f 2959 }
b88bce5f
RD
2960
2961
0085ce49 2962SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2963 char** cArray = NULL;
2964 wxBitmap* bmp;
2965
2966 cArray = ConvertListOfStrings(listOfStrings);
2967 if (! cArray)
2968 return NULL;
2969 bmp = new wxBitmap(cArray);
2970 delete [] cArray;
2971 return bmp;
2972 }
0085ce49 2973SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2974 char* buf;
2975 Py_ssize_t length;
2976 PyString_AsStringAndSize(bits, &buf, &length);
2977 return new wxBitmap(buf, width, height, depth);
2978 }
0085ce49 2979SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2980 wxSize size(self->GetWidth(), self->GetHeight());
2981 return size;
2982 }
0085ce49 2983SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2984 wxMask *mask = new wxMask(*self, colour);
2985 self->SetMask(mask);
2986 }
0085ce49 2987SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2988 self->SetWidth(size.x);
2989 self->SetHeight(size.y);
2990 }
8f514ab4
RD
2991SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2992 int height=self->GetHeight();
2993 int width=self->GetWidth();
fc46b7f3 2994
8f514ab4
RD
2995 if (DATASIZE != width * height * 3) {
2996 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2997 }
2998 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
2999 if (! pixData) {
3000 // raise an exception...
3001 wxPyErr_SetString(PyExc_RuntimeError,
3002 "Failed to gain raw access to bitmap data.");
3003 return;
3004 }
fc46b7f3 3005
8f514ab4
RD
3006 wxNativePixelData::Iterator p(pixData);
3007 for (int y=0; y<height; y++) {
3008 wxNativePixelData::Iterator rowStart = p;
3009 for (int x=0; x<width; x++) {
3010 p.Red() = *(data++);
3011 p.Green() = *(data++);
3012 p.Blue() = *(data++);
3013 ++p;
3014 }
3015 p = rowStart;
3016 p.OffsetY(pixData, 1);
3017 }
3018 }
3019SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3020 int height=self->GetHeight();
3021 int width=self->GetWidth();
3022
3023 if (DATASIZE != width * height * 4) {
3024 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3025 }
3026 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3027 if (! pixData) {
3028 // raise an exception...
3029 wxPyErr_SetString(PyExc_RuntimeError,
3030 "Failed to gain raw access to bitmap data.");
3031 return;
3032 }
3033
3034 pixData.UseAlpha();
3035 wxAlphaPixelData::Iterator p(pixData);
3036 for (int y=0; y<height; y++) {
3037 wxAlphaPixelData::Iterator rowStart = p;
3038 for (int x=0; x<width; x++) {
3039 byte a = data[3];
3040 p.Red() = wxPy_premultiply(*(data++), a);
3041 p.Green() = wxPy_premultiply(*(data++), a);
3042 p.Blue() = wxPy_premultiply(*(data++), a);
3043 p.Alpha() = a; data++;
3044 ++p;
3045 }
3046 p = rowStart;
3047 p.OffsetY(pixData, 1);
3048 }
3049 }
3050SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3051SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3052
3053 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3054 buffer data, int DATASIZE,
3055 buffer alpha, int ALPHASIZE)
3056 {
3057 if (DATASIZE != width*height*3) {
3058 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3059 return NULL;
3060 }
3061
3062 if (ALPHASIZE != width*height) {
3063 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3064 return NULL;
3065 }
3066
3067 wxBitmap* bmp = new wxBitmap(width, height, 32);
3068 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3069 if (! pixData) {
3070 // raise an exception...
3071 wxPyErr_SetString(PyExc_RuntimeError,
3072 "Failed to gain raw access to bitmap data.");
3073 return NULL;
3074 }
3075
3076 pixData.UseAlpha();
3077 wxAlphaPixelData::Iterator p(pixData);
3078 for (int y=0; y<height; y++) {
3079 wxAlphaPixelData::Iterator rowStart = p;
3080 for (int x=0; x<width; x++) {
3081 byte a = *(alpha++);
3082 p.Red() = wxPy_premultiply(*(data++), a);
3083 p.Green() = wxPy_premultiply(*(data++), a);
3084 p.Blue() = wxPy_premultiply(*(data++), a);
3085 p.Alpha() = a;
3086 ++p;
3087 }
3088 p = rowStart;
3089 p.OffsetY(pixData, 1);
3090 }
3091 return bmp;
3092 }
3093
3094 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3095 {
3096 if (DATASIZE != width*height*3) {
3097 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3098 return NULL;
3099 }
3100
3101 wxBitmap* bmp = new wxBitmap(width, height, 24);
3102 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3103 if (! pixData) {
3104 // raise an exception...
3105 wxPyErr_SetString(PyExc_RuntimeError,
3106 "Failed to gain raw access to bitmap data.");
3107 return NULL;
3108 }
3109
3110 wxNativePixelData::Iterator p(pixData);
3111 for (int y=0; y<height; y++) {
3112 wxNativePixelData::Iterator rowStart = p;
3113 for (int x=0; x<width; x++) {
3114 p.Red() = *(data++);
3115 p.Green() = *(data++);
3116 p.Blue() = *(data++);
3117 ++p;
3118 }
3119 p = rowStart;
3120 p.OffsetY(pixData, 1);
3121 }
3122 return bmp;
3123 }
3124
3125
3126 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3127 {
3128 if (DATASIZE != width*height*4) {
3129 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3130 return NULL;
3131 }
3132
3133 wxBitmap* bmp = new wxBitmap(width, height, 32);
3134 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3135 if (! pixData) {
3136 // raise an exception...
3137 wxPyErr_SetString(PyExc_RuntimeError,
3138 "Failed to gain raw access to bitmap data.");
3139 return NULL;
3140 }
3141
3142 pixData.UseAlpha();
3143 wxAlphaPixelData::Iterator p(pixData);
3144 for (int y=0; y<height; y++) {
3145 wxAlphaPixelData::Iterator rowStart = p;
3146 for (int x=0; x<width; x++) {
3147 byte a = data[3];
3148 p.Red() = wxPy_premultiply(*(data++), a);
3149 p.Green() = wxPy_premultiply(*(data++), a);
3150 p.Blue() = wxPy_premultiply(*(data++), a);
3151 p.Alpha() = a; data++;
3152 ++p;
3153 }
3154 p = rowStart;
3155 p.OffsetY(pixData, 1);
3156 }
3157 return bmp;
3158 }
3159
3160
3161 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3162
3163SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3164SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3165SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3166 self->Red() = red;
3167 self->Green() = green;
3168 self->Blue() = blue;
3169 }
3170SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3171 PyObject* rv = PyTuple_New(3);
3172 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3173 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3174 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3175 return rv;
3176 }
3177
3178 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3179
3180SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3181SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3182SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3183 self->Red() = wxPy_premultiply(red, alpha);
3184 self->Green() = wxPy_premultiply(green, alpha);
3185 self->Blue() = wxPy_premultiply(blue, alpha);
3186 self->Alpha() = alpha;
3187 }
3188SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3189 PyObject* rv = PyTuple_New(4);
3190 int red = self->Red();
3191 int green = self->Green();
3192 int blue = self->Blue();
3193 int alpha = self->Alpha();
3194
3195 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3196 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3197 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3198 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3199 return rv;
3200 }
0085ce49 3201SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3202 if ( !colour.IsOk() )
093d3ff1
RD
3203 return new wxMask(bitmap, *wxBLACK);
3204 else
3205 return new wxMask(bitmap, colour);
3206 }
d14a1e28 3207
093d3ff1 3208#include <wx/iconbndl.h>
d14a1e28 3209
0085ce49 3210SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3211 wxIcon* icon = new wxIcon();
3212 icon->CopyFromBitmap(bmp);
3213 return icon;
3214 }
0085ce49 3215SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3216 char** cArray = NULL;
3217 wxIcon* icon;
d14a1e28 3218
093d3ff1
RD
3219 cArray = ConvertListOfStrings(listOfStrings);
3220 if (! cArray)
3221 return NULL;
3222 icon = new wxIcon(cArray);
3223 delete [] cArray;
3224 return icon;
3225 }
0085ce49 3226SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
3227
3228
d14a1e28 3229
093d3ff1 3230 return new wxIconLocation(*filename);
d14a1e28 3231
093d3ff1 3232 }
0085ce49 3233SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
3234
3235
d14a1e28 3236
093d3ff1 3237 // do nothing
d14a1e28 3238
093d3ff1 3239 }
0085ce49 3240SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
3241
3242
093d3ff1
RD
3243
3244 return -1;
3245
3246 }
0085ce49 3247SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3248#ifdef __WXGTK__
7557b9b5
RD
3249 wxImage img(cursorName, type);
3250 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3251 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3252 return new wxCursor(img);
093d3ff1 3253#else
7557b9b5 3254 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3255#endif
3256 }
3257
3258
0085ce49 3259SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3260 (*self) ++;
3261 }
0085ce49 3262SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3263 return self->operator bool();
3264 }
3265
3266#include <wx/fontutil.h>
3267#include <wx/fontmap.h>
3268#include <wx/fontenum.h>
3269
0085ce49 3270SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3271 return self->ToString();
3272 }
3273
3274 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3275 static wxNativeEncodingInfo info;
3276 if ( wxGetNativeFontEncoding(encoding, &info) )
3277 return &info;
3278 else
3279 return NULL;
3280 }
3281
0085ce49
RD
3282
3283SWIGINTERNINLINE PyObject *
3284SWIG_From_size_t (size_t value)
3285{
3286 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3287}
3288
3289
3290SWIGINTERNINLINE int
3291SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3292{
3293 unsigned long v;
3294 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3295 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3296 return res;
3297}
3298
3299SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3300 wxFontEncoding alt_enc;
3301 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3302 return PyInt_FromLong(alt_enc);
3303 else {
3304 Py_INCREF(Py_None);
3305 return Py_None;
3306 }
3307 }
0085ce49 3308SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3309 wxNativeFontInfo nfi;
3310 nfi.FromString(info);
3311 return new wxFont(nfi);
3312 }
0085ce49 3313SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3314 return wxFont::New(pointSize, family, flags, face, encoding);
3315 }
0085ce49 3316SWIGINTERN 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
3317 return wxFontBase::New(pixelSize, family,
3318 style, weight, underlined,
3319 face, encoding);
3320 }
0085ce49 3321SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3322 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3323 }
0085ce49
RD
3324SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3325SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3326
3327class wxPyFontEnumerator : public wxFontEnumerator {
3328public:
3329 wxPyFontEnumerator() {}
3330 ~wxPyFontEnumerator() {}
3331
3332 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3333 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3334
3335 PYPRIVATE;
3336};
3337
3338IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3339IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3340
3341
704eda0c 3342SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3343 PyObject* ret;
704eda0c 3344 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3345 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3346 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3347 wxPyEndBlockThreads(blocked);
3348 return ret;
093d3ff1 3349 }
704eda0c 3350SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3351 PyObject* ret;
704eda0c 3352 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3353 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3354 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3355 wxPyEndBlockThreads(blocked);
3356 return ret;
093d3ff1
RD
3357 }
3358
3359#include <locale.h>
3360
0085ce49 3361SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3362 wxLocale* loc;
3363 if (language == -1)
3364 loc = new wxLocale();
3365 else
3366 loc = new wxLocale(language, flags);
3367 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3368 // for the floating point conversions and such to work right.
3369#if PY_VERSION_HEX < 0x02040000
3370 setlocale(LC_NUMERIC, "C");
3371#endif
3372 return loc;
3373 }
0085ce49 3374SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3375 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3376 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3377 // for the floating point conversions and such to work right.
3378#if PY_VERSION_HEX < 0x02040000
3379 setlocale(LC_NUMERIC, "C");
3380#endif
3381 return rc;
3382 }
0085ce49 3383SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3384 bool rc = self->Init(language, flags);
3385 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3386 // for the floating point conversions and such to work right.
3387#if PY_VERSION_HEX < 0x02040000
3388 setlocale(LC_NUMERIC, "C");
3389#endif
3390 return rc;
3391 }
3392
fc46b7f3
RD
3393class wxPyLocale : public wxLocale
3394{
3395public:
3396 wxPyLocale();
3397
3398 wxPyLocale(const wxChar *szName, // name (for messages)
3399 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3400 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3401 bool bLoadDefault = true, // preload wxstd.mo?
3402 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3403
3404 wxPyLocale(int language, // wxLanguage id or custom language
3405 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3406
3407 ~wxPyLocale();
3408
3409 virtual const wxChar *GetString(const wxChar *szOrigString,
3410 const wxChar *szDomain = NULL) const;
3411 virtual const wxChar *GetString(const wxChar *szOrigString,
3412 const wxChar *szOrigString2, size_t n,
3413 const wxChar *szDomain = NULL) const;
3414
3415 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3416 const wxChar *szDomain = NULL) const;
3417 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3418 const wxChar *szOrigString2, size_t n,
3419 const wxChar *szDomain = NULL) const;
3420
3421 PYPRIVATE;
3422private:
3423 DECLARE_NO_COPY_CLASS(wxPyLocale)
3424};
3425
3426wxPyLocale::wxPyLocale() : wxLocale()
3427{
3428}
3429
3430wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3431 const wxChar *szShort, // dir prefix (for msg files)
3432 const wxChar *szLocale, // locale (for setlocale)
3433 bool bLoadDefault, // preload wxstd.mo?
3434 bool bConvertEncoding) // convert Win<->Unix if necessary?
3435 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3436{
3437}
3438
3439wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3440 int flags) : wxLocale(language, flags)
3441{
3442}
3443
3444wxPyLocale::~wxPyLocale()
3445{
3446}
3447
3448const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3449 const wxChar *szDomain) const
3450{
3451 wxChar *str = GetSingularString(szOrigString, szDomain);
3452 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3453}
3454
3455const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3456 const wxChar *szOrigString2, size_t n,
3457 const wxChar *szDomain) const
3458{
3459 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3460 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3461}
3462
3463wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3464 const wxChar *szDomain) const
3465{
3466 bool found;
3467 static wxString str;
3468 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.
3469 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3470 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3471 PyObject* param1 = wx2PyString(szOrigString);
3472 PyObject* param2 = wx2PyString(szDomain);
3473 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3474 Py_DECREF(param1);
3475 Py_DECREF(param2);
3476 if (ret) {
3477 str = Py2wxString(ret);
3478 Py_DECREF(ret);
3479 }
3480 }
3481 wxPyEndBlockThreads(blocked);
3482 return (found ? (wxChar*)str.c_str() : NULL);
3483}
3484
3485wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3486 const wxChar *szOrigString2, size_t n,
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, "GetPluralString"))) {
3494 PyObject* param1 = wx2PyString(szOrigString);
3495 PyObject* param2 = wx2PyString(szOrigString2);
3496 PyObject* param4 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 Py_DECREF(param4);
3501 if( ret) {
3502 str = Py2wxString(ret);
3503 Py_DECREF(ret);
3504 }
3505 }
3506 wxPyEndBlockThreads(blocked);
3507 return (found ? (wxChar*)str.c_str() : NULL);
3508}
3509
3510SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3511 wxPyLocale* loc;
3512 if (language == -1)
3513 loc = new wxPyLocale();
3514 else
3515 loc = new wxPyLocale(language, flags);
3516 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3517 // for the floating point conversions and such to work right.
3518#if PY_VERSION_HEX < 0x02040000
3519 setlocale(LC_NUMERIC, "C");
3520#endif
3521 return loc;
3522 }
3523
093d3ff1
RD
3524#include "wx/wxPython/pydrawxxx.h"
3525
0085ce49 3526SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3527 wxColour col;
3528 self->GetPixel(x, y, &col);
3529 return col;
3530 }
0085ce49 3531SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3532 wxColour col;
3533 self->GetPixel(pt, &col);
3534 return col;
3535 }
3536
3537SWIGINTERN int
0085ce49 3538SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3539{
3540 if (PyNumber_Check(obj)) {
3541 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3542 return SWIG_OK;
093d3ff1 3543 }
0085ce49 3544 return SWIG_TypeError;
093d3ff1
RD
3545}
3546
0085ce49 3547SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
093d3ff1
RD
3548 wxRect rv;
3549 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3550 return rv;
3551 }
0085ce49 3552SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3553 wxRect rect;
3554 self->GetClippingBox(rect);
3555 return rect;
3556 }
0085ce49 3557SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3558 wxArrayInt widths;
3559 self->GetPartialTextExtents(text, widths);
3560 return widths;
3561 }
3562
0085ce49 3563 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3564
0085ce49 3565SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3566 self->SetLogicalOrigin(point.x, point.y);
3567 }
0085ce49 3568SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3569 self->SetDeviceOrigin(point.x, point.y);
3570 }
0085ce49 3571SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3572 self->CalcBoundingBox(point.x, point.y);
3573 }
0085ce49 3574SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3575 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3576 }
0085ce49 3577SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3578 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3579 }
0085ce49 3580SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3581 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3582 }
0085ce49 3583SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3584 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3585 }
0085ce49 3586SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3587 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3588 }
0085ce49 3589SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3590 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3591 }
3592
3593static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3594 *x1 = dc->MinX();
3595 *y1 = dc->MinY();
3596 *x2 = dc->MaxX();
3597 *y2 = dc->MaxY();
3598}
3599
3600
3601#include <wx/dcbuffer.h>
3602
3603
3604#include <wx/dcps.h>
3605
3606
3607class wxMetaFile : public wxObject {
3608public:
3609 wxMetaFile(const wxString&)
3610 { wxPyRaiseNotImplemented(); }
3611};
3612
3613class wxMetaFileDC : public wxClientDC {
3614public:
3615 wxMetaFileDC(const wxString&, int, int, const wxString&)
3616 { wxPyRaiseNotImplemented(); }
3617};
3618
3619
3620
3621class wxPrinterDC : public wxClientDC {
3622public:
3623 wxPrinterDC(const wxPrintData&)
3624 { wxPyRaiseNotImplemented(); }
3625
3626};
3627
3628
72ef6efb
RD
3629#include <wx/graphics.h>
3630
3631
3632#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3633// C++ stub classes for platforms or build configurations that don't have
3634// wxGraphicsContext yet.
72ef6efb 3635
8bd35413
RD
3636class wxGraphicsRenderer;
3637class wxGraphicsMatrix;
3638
70d7cb34
RD
3639
3640class wxGraphicsObject : public wxObject
72ef6efb
RD
3641{
3642public :
8bd35413 3643 wxGraphicsObject() {}
70d7cb34 3644 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3645 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3646 "wx.GraphicsObject is not available on this platform.");
3647 }
3648 wxGraphicsObject( const wxGraphicsObject& ) {}
3649 virtual ~wxGraphicsObject() {}
3650 bool IsNull() const { return false; }
3651 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3652} ;
3653
3654
3655
3656class wxGraphicsPen : public wxGraphicsObject
3657{
8bd35413 3658public:
70d7cb34
RD
3659 wxGraphicsPen() {}
3660 virtual ~wxGraphicsPen() {}
3661} ;
3662wxGraphicsPen wxNullGraphicsPen;
3663
3664
3665
3666class wxGraphicsBrush : public wxGraphicsObject
3667{
3668public :
3669 wxGraphicsBrush() {}
3670 virtual ~wxGraphicsBrush() {}
3671} ;
3672wxGraphicsBrush wxNullGraphicsBrush;
3673
3674
3675
3676class wxGraphicsFont : public wxGraphicsObject
3677{
3678public :
3679 wxGraphicsFont() {}
3680 virtual ~wxGraphicsFont() {}
3681} ;
3682wxGraphicsFont wxNullGraphicsFont;
3683
3684
3685
3686class wxGraphicsPath : public wxGraphicsObject
3687{
3688public :
8bd35413 3689 wxGraphicsPath() { }
70d7cb34
RD
3690 wxGraphicsPath(wxGraphicsRenderer* ) {
3691 PyErr_SetString(PyExc_NotImplementedError,
3692 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3693 }
3694 virtual ~wxGraphicsPath() {}
70d7cb34 3695
72ef6efb 3696 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3697 void MoveToPoint( const wxPoint2DDouble& ) {}
3698 void AddLineToPoint( wxDouble, wxDouble ) {}
3699 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3700 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3701 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3702 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3703 void CloseSubpath() {}
8bd35413
RD
3704 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3705 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3706 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3707 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3708
3709 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3710 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3711 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3712 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3713
70d7cb34
RD
3714 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3715 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3716 void * GetNativePath() const { return NULL; }
8bd35413
RD
3717 void UnGetNativePath(void *) const {}
3718 void Transform( const wxGraphicsMatrix& ) {}
3719 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3720 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3721
8bd35413
RD
3722 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3723 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3724};
5c8c7dd3 3725wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3726
3727
3728class wxGraphicsMatrix : public wxGraphicsObject
3729{
3730public :
8bd35413 3731 wxGraphicsMatrix() { }
70d7cb34
RD
3732 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3733 PyErr_SetString(PyExc_NotImplementedError,
3734 "wx.GraphicsMatrix is not available on this platform.");
3735 }
3736 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3737 virtual void Concat( const wxGraphicsMatrix & ) {}
3738 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3739 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3740 wxDouble , wxDouble ) {}
248802d0
RD
3741 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3742 wxDouble*, wxDouble*, wxDouble*) {}
70d7cb34 3743 virtual void Invert() {}
8bd35413
RD
3744 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3745 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3746 virtual void Translate( wxDouble , wxDouble ) {}
3747 virtual void Scale( wxDouble , wxDouble ) {}
3748 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3749 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3750 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3751 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3752};
5c8c7dd3 3753wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3754
70d7cb34
RD
3755
3756class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3757{
3758public:
70d7cb34
RD
3759
3760 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3761 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3762 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3763 }
70d7cb34 3764
72ef6efb 3765 virtual ~wxGraphicsContext() {}
70d7cb34 3766
8bd35413
RD
3767 static wxGraphicsContext* Create() {
3768 PyErr_SetString(PyExc_NotImplementedError,
3769 "wx.GraphicsContext is not available on this platform.");
3770 return NULL;
3771 }
70d7cb34 3772 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3773 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3774 "wx.GraphicsContext is not available on this platform.");
8bd35413 3775 return NULL;
72ef6efb 3776 }
b876c1e4 3777
70d7cb34 3778 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3779 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3780 "wx.GraphicsContext is not available on this platform.");
8bd35413 3781 return NULL;
70d7cb34 3782 }
b876c1e4 3783
70d7cb34
RD
3784 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3785 PyErr_SetString(PyExc_NotImplementedError,
3786 "wx.GraphicsContext is not available on this platform.");
8bd35413 3787 return NULL;
70d7cb34
RD
3788 }
3789
3790 static wxGraphicsContext* Create( wxWindow* ) {
3791 PyErr_SetString(PyExc_NotImplementedError,
3792 "wx.GraphicsContext is not available on this platform.");
8bd35413 3793 return NULL;
70d7cb34
RD
3794 }
3795
8bd35413 3796 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3797
8bd35413 3798 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3799
8bd35413 3800 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3801
3802 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3803 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3804
3805 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3806 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3807 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3808
8bd35413 3809 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3810
8bd35413
RD
3811 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3812 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3813
3814 virtual void PushState() {}
3815 virtual void PopState() {}
3816 virtual void Clip( const wxRegion & ) {}
3817 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3818 virtual void ResetClip() {}
3819 virtual void * GetNativeContext() { return NULL; }
c8aaaf9e
RD
3820 virtual int GetLogicalFunction() const { return 0; }
3821 virtual bool SetLogicalFunction(int ) {}
70d7cb34
RD
3822 virtual void Translate( wxDouble , wxDouble ) {}
3823 virtual void Scale( wxDouble , wxDouble ) {}
3824 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3825 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3826 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3827 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3828
3829 virtual void SetPen( const wxGraphicsPen& ) {}
3830 void SetPen( const wxPen& ) {}
3831
3832 virtual void SetBrush( const wxGraphicsBrush& ) {}
3833 void SetBrush( const wxBrush& ) {}
3834
3835 virtual void SetFont( const wxGraphicsFont& ) {}
3836 void SetFont( const wxFont&, const wxColour& ) {}
3837
8bd35413
RD
3838 virtual void StrokePath( const wxGraphicsPath & ) {}
3839 virtual void FillPath( const wxGraphicsPath &, int ) {}
3840 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3841
3842 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3843 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3844 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3845 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3846 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3847 wxDouble *, wxDouble * ) const {}
3848 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3849
3850 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3851 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3852
3853 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3854 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3855 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3856 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3857 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
8bd35413 3858 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3859 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3860 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3861 virtual bool ShouldOffset() const { return false; }
3862};
3863
3864
3865class wxGraphicsRenderer : public wxObject
3866{
3867public :
3868 wxGraphicsRenderer() {
3869 PyErr_SetString(PyExc_NotImplementedError,
3870 "wx.GraphicsRenderer is not available on this platform.");
3871 }
3872
3873 virtual ~wxGraphicsRenderer() {}
3874
8bd35413 3875 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3876 PyErr_SetString(PyExc_NotImplementedError,
3877 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3878 return NULL;
3879 }
70d7cb34
RD
3880
3881 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3882 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3883 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3884 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3885 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3886
8bd35413 3887 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3888
8bd35413
RD
3889 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3890 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3891
8bd35413
RD
3892 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3893 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3894 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3895 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3896 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3897 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3898 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3899};
3900
3901
70d7cb34 3902
72ef6efb
RD
3903class wxGCDC: public wxWindowDC
3904{
3905public:
3906 wxGCDC(const wxWindowDC&) {
3907 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3908 PyErr_SetString(PyExc_NotImplementedError,
3909 "wxGCDC is not available on this platform.");
3910 wxPyEndBlockThreads(blocked);
3911 }
70d7cb34 3912
48a0c021
RD
3913 wxGCDC(const wxWindow*) {
3914 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3915 PyErr_SetString(PyExc_NotImplementedError,
3916 "wxGCDC is not available on this platform.");
3917 wxPyEndBlockThreads(blocked);
3918 }
3919
72ef6efb
RD
3920 wxGCDC() {
3921 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3922 PyErr_SetString(PyExc_NotImplementedError,
3923 "wxGCDC is not available on this platform.");
3924 wxPyEndBlockThreads(blocked);
3925 }
70d7cb34 3926
72ef6efb
RD
3927 virtual ~wxGCDC() {}
3928
b876c1e4
RD
3929 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3930 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3931};
3932
3933#endif
3934
f89238b9
RD
3935SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3936 if ( !backgroundBrush.IsNull() )
3937 self->DrawText(str, x, y, backgroundBrush);
3938 else
3939 self->DrawText(str, x, y);
3940 }
3941SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3942 if ( !backgroundBrush.IsNull() )
3943 self->DrawText(str, x, y, angle, backgroundBrush);
3944 else
3945 self->DrawText(str, x, y, angle);
3946 }
be68621e
RD
3947SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3948 wxDouble width = 0.0,
3949 height = 0.0;
3950 self->GetTextExtent(text, &width, &height, NULL, NULL);
3951 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3952 PyObject* rv = PyTuple_New(2);
3953 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3954 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3955 return rv;
3956 }
b39fe951
RD
3957SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3958 wxArrayDouble widths;
3959 self->GetPartialTextExtents(text, widths);
3960 return widths;
3961 }
f8eb59b9 3962SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3963 size_t c1, c2, count;
3964 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3965 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3966
3967 if ( beginP != NULL && endP != NULL )
3968 {
3969 count = wxMin(c1, c2);
3970 self->StrokeLines(count, beginP, endP);
3971 }
3972 delete [] beginP;
3973 delete [] endP;
3974 }
72ef6efb 3975
0a27f394
RD
3976#include "wx/dcgraph.h"
3977
3978
66493fc7
RD
3979#include <wx/overlay.h>
3980
3981
093d3ff1 3982
0085ce49 3983SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3984 self->AddColour(name, wxColour(red, green, blue));
3985 }
3986
50efceee
RD
3987 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3988 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3989 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3990 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3991
3992
093d3ff1
RD
3993#include <wx/effects.h>
3994
8d38bd1d
RD
3995
3996#include "wx/renderer.h"
3997
3998
32fe5131 3999SWIGINTERNINLINE PyObject*
0085ce49 4000 SWIG_From_bool (bool value)
8d38bd1d 4001{
0085ce49 4002 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
4003}
4004
27e45892
RD
4005
4006#include "wx/wxPython/pseudodc.h"
4007
4008SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4009 wxRect rect;
4010 self->GetIdBounds(id, rect);
4011 return rect;
4012 }
093d3ff1
RD
4013#ifdef __cplusplus
4014extern "C" {
4015#endif
0085ce49
RD
4016SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4017 PyObject *resultobj = 0;
4018 wxGDIObject *result = 0 ;
4019
4020 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4021 {
4022 if (!wxPyCheckForApp()) SWIG_fail;
4023 PyThreadState* __tstate = wxPyBeginAllowThreads();
4024 result = (wxGDIObject *)new wxGDIObject();
4025 wxPyEndAllowThreads(__tstate);
4026 if (PyErr_Occurred()) SWIG_fail;
4027 }
4028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4029 return resultobj;
4030fail:
4031 return NULL;
093d3ff1
RD
4032}
4033
4034
0085ce49
RD
4035SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4036 PyObject *resultobj = 0;
4037 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4038 void *argp1 = 0 ;
4039 int res1 = 0 ;
4040 PyObject *swig_obj[1] ;
4041
4042 if (!args) SWIG_fail;
4043 swig_obj[0] = args;
4044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4045 if (!SWIG_IsOK(res1)) {
4046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4047 }
4048 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4049 {
4050 PyThreadState* __tstate = wxPyBeginAllowThreads();
4051 delete arg1;
093d3ff1 4052
0085ce49
RD
4053 wxPyEndAllowThreads(__tstate);
4054 if (PyErr_Occurred()) SWIG_fail;
4055 }
4056 resultobj = SWIG_Py_Void();
4057 return resultobj;
4058fail:
4059 return NULL;
d14a1e28
RD
4060}
4061
4062
0085ce49
RD
4063SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4064 PyObject *resultobj = 0;
4065 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4066 bool result;
4067 void *argp1 = 0 ;
4068 int res1 = 0 ;
4069 PyObject *swig_obj[1] ;
4070
4071 if (!args) SWIG_fail;
4072 swig_obj[0] = args;
4073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4074 if (!SWIG_IsOK(res1)) {
4075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4076 }
4077 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4078 {
4079 PyThreadState* __tstate = wxPyBeginAllowThreads();
4080 result = (bool)(arg1)->IsNull();
4081 wxPyEndAllowThreads(__tstate);
4082 if (PyErr_Occurred()) SWIG_fail;
4083 }
4084 {
4085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4086 }
4087 return resultobj;
4088fail:
4089 return NULL;
4090}
4091
4092
4093SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4094 PyObject *obj;
4095 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4096 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4097 return SWIG_Py_Void();
4098}
4099
4100SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4101 return SWIG_Python_InitShadowInstance(args);
4102}
4103
4104SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4105 PyObject *resultobj = 0;
4106 byte arg1 = (byte) 0 ;
4107 byte arg2 = (byte) 0 ;
4108 byte arg3 = (byte) 0 ;
fc46b7f3 4109 byte arg4 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4110 wxColour *result = 0 ;
4111 unsigned char val1 ;
4112 int ecode1 = 0 ;
4113 unsigned char val2 ;
4114 int ecode2 = 0 ;
4115 unsigned char val3 ;
4116 int ecode3 = 0 ;
fc46b7f3
RD
4117 unsigned char val4 ;
4118 int ecode4 = 0 ;
0085ce49
RD
4119 PyObject * obj0 = 0 ;
4120 PyObject * obj1 = 0 ;
4121 PyObject * obj2 = 0 ;
fc46b7f3 4122 PyObject * obj3 = 0 ;
0085ce49 4123 char * kwnames[] = {
fc46b7f3 4124 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4125 };
4126
fc46b7f3 4127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
4128 if (obj0) {
4129 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4130 if (!SWIG_IsOK(ecode1)) {
4131 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4132 }
4133 arg1 = static_cast< byte >(val1);
4134 }
4135 if (obj1) {
4136 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4137 if (!SWIG_IsOK(ecode2)) {
4138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4139 }
4140 arg2 = static_cast< byte >(val2);
4141 }
4142 if (obj2) {
4143 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4144 if (!SWIG_IsOK(ecode3)) {
4145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4146 }
4147 arg3 = static_cast< byte >(val3);
4148 }
fc46b7f3
RD
4149 if (obj3) {
4150 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4151 if (!SWIG_IsOK(ecode4)) {
4152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4153 }
4154 arg4 = static_cast< byte >(val4);
4155 }
0085ce49
RD
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4158 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
0085ce49
RD
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4163 return resultobj;
4164fail:
4165 return NULL;
d14a1e28
RD
4166}
4167
4168
0085ce49
RD
4169SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4170 PyObject *resultobj = 0;
4171 wxString *arg1 = 0 ;
4172 wxColour *result = 0 ;
4173 bool temp1 = false ;
4174 PyObject * obj0 = 0 ;
4175 char * kwnames[] = {
4176 (char *) "colorName", NULL
4177 };
4178
4179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4180 {
4181 arg1 = wxString_in_helper(obj0);
4182 if (arg1 == NULL) SWIG_fail;
4183 temp1 = true;
4184 }
4185 {
4186 if (!wxPyCheckForApp()) SWIG_fail;
4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
4188 result = (wxColour *)new wxColour((wxString const &)*arg1);
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4193 {
4194 if (temp1)
4195 delete arg1;
4196 }
4197 return resultobj;
4198fail:
4199 {
4200 if (temp1)
4201 delete arg1;
4202 }
4203 return NULL;
d14a1e28
RD
4204}
4205
4206
0085ce49
RD
4207SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4208 PyObject *resultobj = 0;
4209 unsigned long arg1 ;
4210 wxColour *result = 0 ;
4211 unsigned long val1 ;
4212 int ecode1 = 0 ;
4213 PyObject * obj0 = 0 ;
4214 char * kwnames[] = {
4215 (char *) "colRGB", NULL
4216 };
4217
4218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4219 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4220 if (!SWIG_IsOK(ecode1)) {
4221 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4222 }
4223 arg1 = static_cast< unsigned long >(val1);
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (wxColour *)new wxColour(arg1);
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4231 return resultobj;
4232fail:
4233 return NULL;
d14a1e28
RD
4234}
4235
4236
0085ce49
RD
4237SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4238 PyObject *resultobj = 0;
4239 wxColour *arg1 = (wxColour *) 0 ;
4240 void *argp1 = 0 ;
4241 int res1 = 0 ;
4242 PyObject *swig_obj[1] ;
4243
4244 if (!args) SWIG_fail;
4245 swig_obj[0] = args;
4246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4247 if (!SWIG_IsOK(res1)) {
4248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4249 }
4250 arg1 = reinterpret_cast< wxColour * >(argp1);
4251 {
4252 PyThreadState* __tstate = wxPyBeginAllowThreads();
4253 delete arg1;
d14a1e28 4254
0085ce49
RD
4255 wxPyEndAllowThreads(__tstate);
4256 if (PyErr_Occurred()) SWIG_fail;
4257 }
4258 resultobj = SWIG_Py_Void();
4259 return resultobj;
4260fail:
4261 return NULL;
d14a1e28
RD
4262}
4263
4264
0085ce49
RD
4265SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4266 PyObject *resultobj = 0;
4267 wxColour *arg1 = (wxColour *) 0 ;
4268 byte result;
4269 void *argp1 = 0 ;
4270 int res1 = 0 ;
4271 PyObject *swig_obj[1] ;
4272
4273 if (!args) SWIG_fail;
4274 swig_obj[0] = args;
4275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4276 if (!SWIG_IsOK(res1)) {
4277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4278 }
4279 arg1 = reinterpret_cast< wxColour * >(argp1);
4280 {
4281 PyThreadState* __tstate = wxPyBeginAllowThreads();
4282 result = (byte)(arg1)->Red();
4283 wxPyEndAllowThreads(__tstate);
4284 if (PyErr_Occurred()) SWIG_fail;
4285 }
4286 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4287 return resultobj;
4288fail:
4289 return NULL;
d14a1e28
RD
4290}
4291
4292
0085ce49
RD
4293SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4294 PyObject *resultobj = 0;
4295 wxColour *arg1 = (wxColour *) 0 ;
4296 byte result;
4297 void *argp1 = 0 ;
4298 int res1 = 0 ;
4299 PyObject *swig_obj[1] ;
4300
4301 if (!args) SWIG_fail;
4302 swig_obj[0] = args;
4303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4304 if (!SWIG_IsOK(res1)) {
4305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4306 }
4307 arg1 = reinterpret_cast< wxColour * >(argp1);
4308 {
4309 PyThreadState* __tstate = wxPyBeginAllowThreads();
4310 result = (byte)(arg1)->Green();
4311 wxPyEndAllowThreads(__tstate);
4312 if (PyErr_Occurred()) SWIG_fail;
4313 }
4314 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4315 return resultobj;
4316fail:
4317 return NULL;
5cbf236d
RD
4318}
4319
4320
0085ce49
RD
4321SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4322 PyObject *resultobj = 0;
4323 wxColour *arg1 = (wxColour *) 0 ;
4324 byte result;
4325 void *argp1 = 0 ;
4326 int res1 = 0 ;
4327 PyObject *swig_obj[1] ;
4328
4329 if (!args) SWIG_fail;
4330 swig_obj[0] = args;
4331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4332 if (!SWIG_IsOK(res1)) {
4333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4334 }
4335 arg1 = reinterpret_cast< wxColour * >(argp1);
4336 {
4337 PyThreadState* __tstate = wxPyBeginAllowThreads();
4338 result = (byte)(arg1)->Blue();
4339 wxPyEndAllowThreads(__tstate);
4340 if (PyErr_Occurred()) SWIG_fail;
4341 }
4342 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4343 return resultobj;
4344fail:
4345 return NULL;
d14a1e28
RD
4346}
4347
4348
fc46b7f3
RD
4349SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4350 PyObject *resultobj = 0;
4351 wxColour *arg1 = (wxColour *) 0 ;
4352 byte result;
4353 void *argp1 = 0 ;
4354 int res1 = 0 ;
4355 PyObject *swig_obj[1] ;
4356
4357 if (!args) SWIG_fail;
4358 swig_obj[0] = args;
4359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4360 if (!SWIG_IsOK(res1)) {
4361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4362 }
4363 arg1 = reinterpret_cast< wxColour * >(argp1);
4364 {
4365 PyThreadState* __tstate = wxPyBeginAllowThreads();
4366 result = (byte)(arg1)->Alpha();
4367 wxPyEndAllowThreads(__tstate);
4368 if (PyErr_Occurred()) SWIG_fail;
4369 }
4370 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4371 return resultobj;
4372fail:
4373 return NULL;
4374}
4375
4376
b39fe951 4377SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4378 PyObject *resultobj = 0;
4379 wxColour *arg1 = (wxColour *) 0 ;
4380 bool result;
4381 void *argp1 = 0 ;
4382 int res1 = 0 ;
4383 PyObject *swig_obj[1] ;
4384
4385 if (!args) SWIG_fail;
4386 swig_obj[0] = args;
4387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4388 if (!SWIG_IsOK(res1)) {
b39fe951 4389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4390 }
4391 arg1 = reinterpret_cast< wxColour * >(argp1);
4392 {
4393 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4394 result = (bool)(arg1)->IsOk();
0085ce49
RD
4395 wxPyEndAllowThreads(__tstate);
4396 if (PyErr_Occurred()) SWIG_fail;
4397 }
4398 {
4399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4400 }
4401 return resultobj;
4402fail:
4403 return NULL;
4404}
4405
4406
4407SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4408 PyObject *resultobj = 0;
4409 wxColour *arg1 = (wxColour *) 0 ;
4410 byte arg2 ;
4411 byte arg3 ;
4412 byte arg4 ;
fc46b7f3 4413 byte arg5 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4414 void *argp1 = 0 ;
4415 int res1 = 0 ;
4416 unsigned char val2 ;
4417 int ecode2 = 0 ;
4418 unsigned char val3 ;
4419 int ecode3 = 0 ;
4420 unsigned char val4 ;
4421 int ecode4 = 0 ;
fc46b7f3
RD
4422 unsigned char val5 ;
4423 int ecode5 = 0 ;
0085ce49
RD
4424 PyObject * obj0 = 0 ;
4425 PyObject * obj1 = 0 ;
4426 PyObject * obj2 = 0 ;
4427 PyObject * obj3 = 0 ;
fc46b7f3 4428 PyObject * obj4 = 0 ;
0085ce49 4429 char * kwnames[] = {
fc46b7f3 4430 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4431 };
4432
fc46b7f3 4433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
0085ce49
RD
4434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4435 if (!SWIG_IsOK(res1)) {
4436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4437 }
4438 arg1 = reinterpret_cast< wxColour * >(argp1);
4439 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4440 if (!SWIG_IsOK(ecode2)) {
4441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4442 }
4443 arg2 = static_cast< byte >(val2);
4444 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4445 if (!SWIG_IsOK(ecode3)) {
4446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4447 }
4448 arg3 = static_cast< byte >(val3);
4449 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4450 if (!SWIG_IsOK(ecode4)) {
4451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4452 }
4453 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4454 if (obj4) {
4455 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4456 if (!SWIG_IsOK(ecode5)) {
4457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4458 }
4459 arg5 = static_cast< byte >(val5);
4460 }
0085ce49
RD
4461 {
4462 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4463 (arg1)->Set(arg2,arg3,arg4,arg5);
0085ce49
RD
4464 wxPyEndAllowThreads(__tstate);
4465 if (PyErr_Occurred()) SWIG_fail;
4466 }
4467 resultobj = SWIG_Py_Void();
4468 return resultobj;
4469fail:
4470 return NULL;
4471}
4472
4473
4474SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4475 PyObject *resultobj = 0;
4476 wxColour *arg1 = (wxColour *) 0 ;
4477 unsigned long arg2 ;
4478 void *argp1 = 0 ;
4479 int res1 = 0 ;
4480 unsigned long val2 ;
4481 int ecode2 = 0 ;
4482 PyObject * obj0 = 0 ;
4483 PyObject * obj1 = 0 ;
4484 char * kwnames[] = {
4485 (char *) "self",(char *) "colRGB", NULL
4486 };
4487
4488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4490 if (!SWIG_IsOK(res1)) {
4491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4492 }
4493 arg1 = reinterpret_cast< wxColour * >(argp1);
4494 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4495 if (!SWIG_IsOK(ecode2)) {
4496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4497 }
4498 arg2 = static_cast< unsigned long >(val2);
4499 {
4500 PyThreadState* __tstate = wxPyBeginAllowThreads();
4501 (arg1)->Set(arg2);
4502 wxPyEndAllowThreads(__tstate);
4503 if (PyErr_Occurred()) SWIG_fail;
4504 }
4505 resultobj = SWIG_Py_Void();
4506 return resultobj;
4507fail:
4508 return NULL;
4509}
4510
4511
4512SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4513 PyObject *resultobj = 0;
4514 wxColour *arg1 = (wxColour *) 0 ;
4515 wxString *arg2 = 0 ;
4516 void *argp1 = 0 ;
4517 int res1 = 0 ;
4518 bool temp2 = false ;
4519 PyObject * obj0 = 0 ;
4520 PyObject * obj1 = 0 ;
4521 char * kwnames[] = {
4522 (char *) "self",(char *) "colourName", NULL
4523 };
4524
4525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4527 if (!SWIG_IsOK(res1)) {
4528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4529 }
4530 arg1 = reinterpret_cast< wxColour * >(argp1);
4531 {
4532 arg2 = wxString_in_helper(obj1);
4533 if (arg2 == NULL) SWIG_fail;
4534 temp2 = true;
4535 }
4536 {
4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4538 (arg1)->Set((wxString const &)*arg2);
0085ce49
RD
4539 wxPyEndAllowThreads(__tstate);
4540 if (PyErr_Occurred()) SWIG_fail;
4541 }
4542 resultobj = SWIG_Py_Void();
4543 {
4544 if (temp2)
4545 delete arg2;
4546 }
4547 return resultobj;
4548fail:
4549 {
4550 if (temp2)
4551 delete arg2;
4552 }
4553 return NULL;
d14a1e28
RD
4554}
4555
4556
01f6b6d3
RD
4557SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4558 PyObject *resultobj = 0;
4559 wxColour *arg1 = (wxColour *) 0 ;
4560 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4561 wxString result;
4562 void *argp1 = 0 ;
4563 int res1 = 0 ;
4564 long val2 ;
4565 int ecode2 = 0 ;
4566 PyObject * obj0 = 0 ;
4567 PyObject * obj1 = 0 ;
4568 char * kwnames[] = {
4569 (char *) "self",(char *) "flags", NULL
4570 };
4571
4572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4574 if (!SWIG_IsOK(res1)) {
4575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4576 }
4577 arg1 = reinterpret_cast< wxColour * >(argp1);
4578 if (obj1) {
4579 ecode2 = SWIG_AsVal_long(obj1, &val2);
4580 if (!SWIG_IsOK(ecode2)) {
4581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4582 }
4583 arg2 = static_cast< long >(val2);
4584 }
4585 {
4586 PyThreadState* __tstate = wxPyBeginAllowThreads();
4587 result = ((wxColour const *)arg1)->GetAsString(arg2);
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) SWIG_fail;
4590 }
4591 {
4592#if wxUSE_UNICODE
4593 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4594#else
4595 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4596#endif
4597 }
4598 return resultobj;
4599fail:
4600 return NULL;
4601}
4602
4603
0085ce49
RD
4604SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4605 PyObject *resultobj = 0;
4606 wxColour *arg1 = (wxColour *) 0 ;
4607 long result;
4608 void *argp1 = 0 ;
4609 int res1 = 0 ;
4610 PyObject *swig_obj[1] ;
4611
4612 if (!args) SWIG_fail;
4613 swig_obj[0] = args;
4614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4615 if (!SWIG_IsOK(res1)) {
4616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4617 }
4618 arg1 = reinterpret_cast< wxColour * >(argp1);
4619 {
4620 PyThreadState* __tstate = wxPyBeginAllowThreads();
4621 result = (long)((wxColour const *)arg1)->GetPixel();
4622 wxPyEndAllowThreads(__tstate);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 }
4625 resultobj = SWIG_From_long(static_cast< long >(result));
4626 return resultobj;
4627fail:
4628 return NULL;
4629}
4630
4631
4632SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4633 PyObject *resultobj = 0;
4634 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4635 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4636 bool result;
4637 void *argp1 = 0 ;
4638 int res1 = 0 ;
0085ce49
RD
4639 PyObject * obj0 = 0 ;
4640 PyObject * obj1 = 0 ;
4641 char * kwnames[] = {
e9d6f3a4 4642 (char *) "self",(char *) "other", NULL
0085ce49
RD
4643 };
4644
4645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4647 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4649 }
4650 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4651 arg2 = obj1;
0085ce49 4652 {
e9d6f3a4 4653 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
4654 if (PyErr_Occurred()) SWIG_fail;
4655 }
4656 {
4657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4658 }
4659 return resultobj;
4660fail:
4661 return NULL;
4662}
4663
4664
4665SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4668 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4669 bool result;
4670 void *argp1 = 0 ;
4671 int res1 = 0 ;
0085ce49
RD
4672 PyObject * obj0 = 0 ;
4673 PyObject * obj1 = 0 ;
4674 char * kwnames[] = {
e9d6f3a4 4675 (char *) "self",(char *) "other", NULL
0085ce49
RD
4676 };
4677
4678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4680 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4682 }
4683 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4684 arg2 = obj1;
0085ce49 4685 {
e9d6f3a4 4686 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
4687 if (PyErr_Occurred()) SWIG_fail;
4688 }
4689 {
4690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4691 }
4692 return resultobj;
4693fail:
4694 return NULL;
d14a1e28
RD
4695}
4696
4697
fc46b7f3 4698SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
4699 PyObject *resultobj = 0;
4700 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4701 bool arg2 = (bool) false ;
0085ce49
RD
4702 PyObject *result = 0 ;
4703 void *argp1 = 0 ;
4704 int res1 = 0 ;
fc46b7f3
RD
4705 bool val2 ;
4706 int ecode2 = 0 ;
4707 PyObject * obj0 = 0 ;
4708 PyObject * obj1 = 0 ;
4709 char * kwnames[] = {
4710 (char *) "self",(char *) "includeAlpha", NULL
4711 };
0085ce49 4712
fc46b7f3
RD
4713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
0085ce49
RD
4715 if (!SWIG_IsOK(res1)) {
4716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4717 }
4718 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4719 if (obj1) {
4720 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4721 if (!SWIG_IsOK(ecode2)) {
4722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4723 }
4724 arg2 = static_cast< bool >(val2);
4725 }
0085ce49 4726 {
fc46b7f3 4727 result = (PyObject *)wxColour_Get(arg1,arg2);
0085ce49
RD
4728 if (PyErr_Occurred()) SWIG_fail;
4729 }
4730 resultobj = result;
4731 return resultobj;
4732fail:
4733 return NULL;
d14a1e28
RD
4734}
4735
4736
0085ce49
RD
4737SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4738 PyObject *resultobj = 0;
4739 wxColour *arg1 = (wxColour *) 0 ;
4740 unsigned long result;
4741 void *argp1 = 0 ;
4742 int res1 = 0 ;
4743 PyObject *swig_obj[1] ;
4744
4745 if (!args) SWIG_fail;
4746 swig_obj[0] = args;
4747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4748 if (!SWIG_IsOK(res1)) {
4749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4750 }
4751 arg1 = reinterpret_cast< wxColour * >(argp1);
4752 {
0085ce49 4753 result = (unsigned long)wxColour_GetRGB(arg1);
0085ce49
RD
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4757 return resultobj;
4758fail:
4759 return NULL;
4760}
4761
4762
4763SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4764 PyObject *obj;
4765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4766 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4767 return SWIG_Py_Void();
4768}
4769
4770SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4771 return SWIG_Python_InitShadowInstance(args);
4772}
4773
4774SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj = 0;
4776 int arg1 ;
4777 unsigned char *arg2 = (unsigned char *) 0 ;
4778 unsigned char *arg3 = (unsigned char *) 0 ;
4779 unsigned char *arg4 = (unsigned char *) 0 ;
4780 wxPalette *result = 0 ;
4781 int val1 ;
4782 int ecode1 = 0 ;
4783 void *argp2 = 0 ;
4784 int res2 = 0 ;
4785 void *argp3 = 0 ;
4786 int res3 = 0 ;
4787 void *argp4 = 0 ;
4788 int res4 = 0 ;
4789 PyObject * obj0 = 0 ;
4790 PyObject * obj1 = 0 ;
4791 PyObject * obj2 = 0 ;
4792 PyObject * obj3 = 0 ;
4793 char * kwnames[] = {
4794 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4795 };
4796
4797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4798 ecode1 = SWIG_AsVal_int(obj0, &val1);
4799 if (!SWIG_IsOK(ecode1)) {
4800 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4801 }
4802 arg1 = static_cast< int >(val1);
4803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4804 if (!SWIG_IsOK(res2)) {
4805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4806 }
4807 arg2 = reinterpret_cast< unsigned char * >(argp2);
4808 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4809 if (!SWIG_IsOK(res3)) {
4810 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4811 }
4812 arg3 = reinterpret_cast< unsigned char * >(argp3);
4813 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4814 if (!SWIG_IsOK(res4)) {
4815 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4816 }
4817 arg4 = reinterpret_cast< unsigned char * >(argp4);
4818 {
4819 if (!wxPyCheckForApp()) SWIG_fail;
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4826 return resultobj;
4827fail:
4828 return NULL;
d14a1e28
RD
4829}
4830
4831
0085ce49
RD
4832SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4833 PyObject *resultobj = 0;
4834 wxPalette *arg1 = (wxPalette *) 0 ;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4844 }
4845 arg1 = reinterpret_cast< wxPalette * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 delete arg1;
d14a1e28 4849
0085ce49
RD
4850 wxPyEndAllowThreads(__tstate);
4851 if (PyErr_Occurred()) SWIG_fail;
4852 }
4853 resultobj = SWIG_Py_Void();
4854 return resultobj;
4855fail:
4856 return NULL;
4857}
4858
4859
4860SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4861 PyObject *resultobj = 0;
4862 wxPalette *arg1 = (wxPalette *) 0 ;
4863 byte arg2 ;
4864 byte arg3 ;
4865 byte arg4 ;
4866 int result;
4867 void *argp1 = 0 ;
4868 int res1 = 0 ;
4869 unsigned char val2 ;
4870 int ecode2 = 0 ;
4871 unsigned char val3 ;
4872 int ecode3 = 0 ;
4873 unsigned char val4 ;
4874 int ecode4 = 0 ;
4875 PyObject * obj0 = 0 ;
4876 PyObject * obj1 = 0 ;
4877 PyObject * obj2 = 0 ;
4878 PyObject * obj3 = 0 ;
4879 char * kwnames[] = {
4880 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4881 };
4882
4883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4885 if (!SWIG_IsOK(res1)) {
4886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4887 }
4888 arg1 = reinterpret_cast< wxPalette * >(argp1);
4889 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4890 if (!SWIG_IsOK(ecode2)) {
4891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4892 }
4893 arg2 = static_cast< byte >(val2);
4894 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4895 if (!SWIG_IsOK(ecode3)) {
4896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4897 }
4898 arg3 = static_cast< byte >(val3);
4899 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4900 if (!SWIG_IsOK(ecode4)) {
4901 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4902 }
4903 arg4 = static_cast< byte >(val4);
4904 {
4905 PyThreadState* __tstate = wxPyBeginAllowThreads();
4906 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4907 wxPyEndAllowThreads(__tstate);
4908 if (PyErr_Occurred()) SWIG_fail;
4909 }
4910 resultobj = SWIG_From_int(static_cast< int >(result));
4911 return resultobj;
4912fail:
4913 return NULL;
4914}
4915
4916
4917SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4918 PyObject *resultobj = 0;
4919 wxPalette *arg1 = (wxPalette *) 0 ;
4920 int arg2 ;
4921 byte *arg3 = (byte *) 0 ;
4922 byte *arg4 = (byte *) 0 ;
4923 byte *arg5 = (byte *) 0 ;
4924 bool result;
4925 void *argp1 = 0 ;
4926 int res1 = 0 ;
4927 int val2 ;
4928 int ecode2 = 0 ;
4929 byte temp3 ;
4930 int res3 = SWIG_TMPOBJ ;
4931 byte temp4 ;
4932 int res4 = SWIG_TMPOBJ ;
4933 byte temp5 ;
4934 int res5 = SWIG_TMPOBJ ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "pixel", NULL
4939 };
4940
4941 arg3 = &temp3;
4942 arg4 = &temp4;
4943 arg5 = &temp5;
4944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4946 if (!SWIG_IsOK(res1)) {
4947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4948 }
4949 arg1 = reinterpret_cast< wxPalette * >(argp1);
4950 ecode2 = SWIG_AsVal_int(obj1, &val2);
4951 if (!SWIG_IsOK(ecode2)) {
4952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4953 }
4954 arg2 = static_cast< int >(val2);
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4958 wxPyEndAllowThreads(__tstate);
4959 if (PyErr_Occurred()) SWIG_fail;
4960 }
4961 {
4962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4963 }
4964 if (SWIG_IsTmpObj(res3)) {
4965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4966 } else {
4967 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4969 }
4970 if (SWIG_IsTmpObj(res4)) {
4971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4972 } else {
4973 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4975 }
4976 if (SWIG_IsTmpObj(res5)) {
4977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4978 } else {
4979 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4981 }
4982 return resultobj;
4983fail:
4984 return NULL;
d14a1e28
RD
4985}
4986
4987
0085ce49
RD
4988SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4989 PyObject *resultobj = 0;
4990 wxPalette *arg1 = (wxPalette *) 0 ;
4991 int result;
4992 void *argp1 = 0 ;
4993 int res1 = 0 ;
4994 PyObject *swig_obj[1] ;
4995
4996 if (!args) SWIG_fail;
4997 swig_obj[0] = args;
4998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4999 if (!SWIG_IsOK(res1)) {
5000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5001 }
5002 arg1 = reinterpret_cast< wxPalette * >(argp1);
5003 {
5004 PyThreadState* __tstate = wxPyBeginAllowThreads();
5005 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5006 wxPyEndAllowThreads(__tstate);
5007 if (PyErr_Occurred()) SWIG_fail;
5008 }
5009 resultobj = SWIG_From_int(static_cast< int >(result));
5010 return resultobj;
5011fail:
5012 return NULL;
d14a1e28
RD
5013}
5014
5015
b39fe951 5016SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5017 PyObject *resultobj = 0;
5018 wxPalette *arg1 = (wxPalette *) 0 ;
5019 bool result;
5020 void *argp1 = 0 ;
5021 int res1 = 0 ;
5022 PyObject *swig_obj[1] ;
5023
5024 if (!args) SWIG_fail;
5025 swig_obj[0] = args;
5026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5027 if (!SWIG_IsOK(res1)) {
b39fe951 5028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
0085ce49
RD
5029 }
5030 arg1 = reinterpret_cast< wxPalette * >(argp1);
5031 {
5032 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5033 result = (bool)(arg1)->IsOk();
0085ce49
RD
5034 wxPyEndAllowThreads(__tstate);
5035 if (PyErr_Occurred()) SWIG_fail;
5036 }
5037 {
5038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5039 }
5040 return resultobj;
5041fail:
5042 return NULL;
5043}
5044
5045
5046SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5047 PyObject *obj;
5048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5049 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5050 return SWIG_Py_Void();
5051}
5052
5053SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5054 return SWIG_Python_InitShadowInstance(args);
5055}
5056
5057SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5058 PyObject *resultobj = 0;
5059 wxColour *arg1 = 0 ;
5060 int arg2 = (int) 1 ;
5061 int arg3 = (int) wxSOLID ;
5062 wxPen *result = 0 ;
5063 wxColour temp1 ;
5064 int val2 ;
5065 int ecode2 = 0 ;
5066 int val3 ;
5067 int ecode3 = 0 ;
5068 PyObject * obj0 = 0 ;
5069 PyObject * obj1 = 0 ;
5070 PyObject * obj2 = 0 ;
5071 char * kwnames[] = {
5072 (char *) "colour",(char *) "width",(char *) "style", NULL
5073 };
5074
5075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5076 {
5077 arg1 = &temp1;
5078 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5079 }
5080 if (obj1) {
5081 ecode2 = SWIG_AsVal_int(obj1, &val2);
5082 if (!SWIG_IsOK(ecode2)) {
5083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5084 }
5085 arg2 = static_cast< int >(val2);
5086 }
5087 if (obj2) {
5088 ecode3 = SWIG_AsVal_int(obj2, &val3);
5089 if (!SWIG_IsOK(ecode3)) {
5090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5091 }
5092 arg3 = static_cast< int >(val3);
5093 }
5094 {
5095 if (!wxPyCheckForApp()) SWIG_fail;
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5098 wxPyEndAllowThreads(__tstate);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 }
5101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5102 return resultobj;
5103fail:
5104 return NULL;
d14a1e28
RD
5105}
5106
5107
0085ce49
RD
5108SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5109 PyObject *resultobj = 0;
5110 wxPen *arg1 = (wxPen *) 0 ;
5111 void *argp1 = 0 ;
5112 int res1 = 0 ;
5113 PyObject *swig_obj[1] ;
5114
5115 if (!args) SWIG_fail;
5116 swig_obj[0] = args;
5117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5118 if (!SWIG_IsOK(res1)) {
5119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5120 }
5121 arg1 = reinterpret_cast< wxPen * >(argp1);
5122 {
5123 PyThreadState* __tstate = wxPyBeginAllowThreads();
5124 delete arg1;
d14a1e28 5125
0085ce49
RD
5126 wxPyEndAllowThreads(__tstate);
5127 if (PyErr_Occurred()) SWIG_fail;
5128 }
5129 resultobj = SWIG_Py_Void();
5130 return resultobj;
5131fail:
5132 return NULL;
d14a1e28
RD
5133}
5134
5135
0085ce49
RD
5136SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5137 PyObject *resultobj = 0;
5138 wxPen *arg1 = (wxPen *) 0 ;
5139 int result;
5140 void *argp1 = 0 ;
5141 int res1 = 0 ;
5142 PyObject *swig_obj[1] ;
5143
5144 if (!args) SWIG_fail;
5145 swig_obj[0] = args;
5146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5147 if (!SWIG_IsOK(res1)) {
5148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5149 }
5150 arg1 = reinterpret_cast< wxPen * >(argp1);
5151 {
5152 PyThreadState* __tstate = wxPyBeginAllowThreads();
5153 result = (int)(arg1)->GetCap();
5154 wxPyEndAllowThreads(__tstate);
5155 if (PyErr_Occurred()) SWIG_fail;
5156 }
5157 resultobj = SWIG_From_int(static_cast< int >(result));
5158 return resultobj;
5159fail:
5160 return NULL;
d14a1e28
RD
5161}
5162
5163
0085ce49
RD
5164SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5165 PyObject *resultobj = 0;
5166 wxPen *arg1 = (wxPen *) 0 ;
5167 wxColour result;
5168 void *argp1 = 0 ;
5169 int res1 = 0 ;
5170 PyObject *swig_obj[1] ;
5171
5172 if (!args) SWIG_fail;
5173 swig_obj[0] = args;
5174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5175 if (!SWIG_IsOK(res1)) {
5176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5177 }
5178 arg1 = reinterpret_cast< wxPen * >(argp1);
5179 {
5180 PyThreadState* __tstate = wxPyBeginAllowThreads();
5181 result = (arg1)->GetColour();
5182 wxPyEndAllowThreads(__tstate);
5183 if (PyErr_Occurred()) SWIG_fail;
5184 }
5185 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5186 return resultobj;
5187fail:
5188 return NULL;
d14a1e28
RD
5189}
5190
5191
0085ce49
RD
5192SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5193 PyObject *resultobj = 0;
5194 wxPen *arg1 = (wxPen *) 0 ;
5195 int result;
5196 void *argp1 = 0 ;
5197 int res1 = 0 ;
5198 PyObject *swig_obj[1] ;
5199
5200 if (!args) SWIG_fail;
5201 swig_obj[0] = args;
5202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5203 if (!SWIG_IsOK(res1)) {
5204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5205 }
5206 arg1 = reinterpret_cast< wxPen * >(argp1);
5207 {
5208 PyThreadState* __tstate = wxPyBeginAllowThreads();
5209 result = (int)(arg1)->GetJoin();
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 resultobj = SWIG_From_int(static_cast< int >(result));
5214 return resultobj;
5215fail:
5216 return NULL;
d14a1e28
RD
5217}
5218
5219
0085ce49
RD
5220SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5221 PyObject *resultobj = 0;
5222 wxPen *arg1 = (wxPen *) 0 ;
5223 int result;
5224 void *argp1 = 0 ;
5225 int res1 = 0 ;
5226 PyObject *swig_obj[1] ;
5227
5228 if (!args) SWIG_fail;
5229 swig_obj[0] = args;
5230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5231 if (!SWIG_IsOK(res1)) {
5232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5233 }
5234 arg1 = reinterpret_cast< wxPen * >(argp1);
5235 {
5236 PyThreadState* __tstate = wxPyBeginAllowThreads();
5237 result = (int)(arg1)->GetStyle();
5238 wxPyEndAllowThreads(__tstate);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 resultobj = SWIG_From_int(static_cast< int >(result));
5242 return resultobj;
5243fail:
5244 return NULL;
3adfb63b
RD
5245}
5246
5247
0085ce49
RD
5248SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5249 PyObject *resultobj = 0;
5250 wxPen *arg1 = (wxPen *) 0 ;
5251 int result;
5252 void *argp1 = 0 ;
5253 int res1 = 0 ;
5254 PyObject *swig_obj[1] ;
5255
5256 if (!args) SWIG_fail;
5257 swig_obj[0] = args;
5258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5259 if (!SWIG_IsOK(res1)) {
5260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5261 }
5262 arg1 = reinterpret_cast< wxPen * >(argp1);
5263 {
5264 PyThreadState* __tstate = wxPyBeginAllowThreads();
5265 result = (int)(arg1)->GetWidth();
5266 wxPyEndAllowThreads(__tstate);
5267 if (PyErr_Occurred()) SWIG_fail;
5268 }
5269 resultobj = SWIG_From_int(static_cast< int >(result));
5270 return resultobj;
5271fail:
5272 return NULL;
d14a1e28
RD
5273}
5274
5275
b39fe951 5276SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5277 PyObject *resultobj = 0;
5278 wxPen *arg1 = (wxPen *) 0 ;
5279 bool result;
5280 void *argp1 = 0 ;
5281 int res1 = 0 ;
5282 PyObject *swig_obj[1] ;
5283
5284 if (!args) SWIG_fail;
5285 swig_obj[0] = args;
5286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5287 if (!SWIG_IsOK(res1)) {
b39fe951 5288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
0085ce49
RD
5289 }
5290 arg1 = reinterpret_cast< wxPen * >(argp1);
5291 {
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5293 result = (bool)(arg1)->IsOk();
0085ce49
RD
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 {
5298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5299 }
5300 return resultobj;
5301fail:
5302 return NULL;
5303}
5304
5305
5306SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj = 0;
5308 wxPen *arg1 = (wxPen *) 0 ;
5309 int arg2 ;
5310 void *argp1 = 0 ;
5311 int res1 = 0 ;
5312 int val2 ;
5313 int ecode2 = 0 ;
5314 PyObject * obj0 = 0 ;
5315 PyObject * obj1 = 0 ;
5316 char * kwnames[] = {
5317 (char *) "self",(char *) "cap_style", NULL
5318 };
5319
5320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5322 if (!SWIG_IsOK(res1)) {
5323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5324 }
5325 arg1 = reinterpret_cast< wxPen * >(argp1);
5326 ecode2 = SWIG_AsVal_int(obj1, &val2);
5327 if (!SWIG_IsOK(ecode2)) {
5328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5329 }
5330 arg2 = static_cast< int >(val2);
5331 {
5332 PyThreadState* __tstate = wxPyBeginAllowThreads();
5333 (arg1)->SetCap(arg2);
5334 wxPyEndAllowThreads(__tstate);
5335 if (PyErr_Occurred()) SWIG_fail;
5336 }
5337 resultobj = SWIG_Py_Void();
5338 return resultobj;
5339fail:
5340 return NULL;
5341}
5342
5343
5344SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5345 PyObject *resultobj = 0;
5346 wxPen *arg1 = (wxPen *) 0 ;
5347 wxColour *arg2 = 0 ;
5348 void *argp1 = 0 ;
5349 int res1 = 0 ;
5350 wxColour temp2 ;
5351 PyObject * obj0 = 0 ;
5352 PyObject * obj1 = 0 ;
5353 char * kwnames[] = {
5354 (char *) "self",(char *) "colour", NULL
5355 };
5356
5357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5359 if (!SWIG_IsOK(res1)) {
5360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5361 }
5362 arg1 = reinterpret_cast< wxPen * >(argp1);
5363 {
5364 arg2 = &temp2;
5365 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5366 }
5367 {
5368 PyThreadState* __tstate = wxPyBeginAllowThreads();
5369 (arg1)->SetColour(*arg2);
5370 wxPyEndAllowThreads(__tstate);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 }
5373 resultobj = SWIG_Py_Void();
5374 return resultobj;
5375fail:
5376 return NULL;
5377}
5378
5379
5380SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5381 PyObject *resultobj = 0;
5382 wxPen *arg1 = (wxPen *) 0 ;
5383 int arg2 ;
5384 void *argp1 = 0 ;
5385 int res1 = 0 ;
5386 int val2 ;
5387 int ecode2 = 0 ;
5388 PyObject * obj0 = 0 ;
5389 PyObject * obj1 = 0 ;
5390 char * kwnames[] = {
5391 (char *) "self",(char *) "join_style", NULL
5392 };
5393
5394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5396 if (!SWIG_IsOK(res1)) {
5397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5398 }
5399 arg1 = reinterpret_cast< wxPen * >(argp1);
5400 ecode2 = SWIG_AsVal_int(obj1, &val2);
5401 if (!SWIG_IsOK(ecode2)) {
5402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5403 }
5404 arg2 = static_cast< int >(val2);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 (arg1)->SetJoin(arg2);
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_Py_Void();
5412 return resultobj;
5413fail:
5414 return NULL;
5415}
5416
5417
5418SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxPen *arg1 = (wxPen *) 0 ;
5421 int arg2 ;
5422 void *argp1 = 0 ;
5423 int res1 = 0 ;
5424 int val2 ;
5425 int ecode2 = 0 ;
5426 PyObject * obj0 = 0 ;
5427 PyObject * obj1 = 0 ;
5428 char * kwnames[] = {
5429 (char *) "self",(char *) "style", NULL
5430 };
5431
5432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5434 if (!SWIG_IsOK(res1)) {
5435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5436 }
5437 arg1 = reinterpret_cast< wxPen * >(argp1);
5438 ecode2 = SWIG_AsVal_int(obj1, &val2);
5439 if (!SWIG_IsOK(ecode2)) {
5440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5441 }
5442 arg2 = static_cast< int >(val2);
5443 {
5444 PyThreadState* __tstate = wxPyBeginAllowThreads();
5445 (arg1)->SetStyle(arg2);
5446 wxPyEndAllowThreads(__tstate);
5447 if (PyErr_Occurred()) SWIG_fail;
5448 }
5449 resultobj = SWIG_Py_Void();
5450 return resultobj;
5451fail:
5452 return NULL;
5453}
5454
5455
5456SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5457 PyObject *resultobj = 0;
5458 wxPen *arg1 = (wxPen *) 0 ;
5459 int arg2 ;
5460 void *argp1 = 0 ;
5461 int res1 = 0 ;
5462 int val2 ;
5463 int ecode2 = 0 ;
5464 PyObject * obj0 = 0 ;
5465 PyObject * obj1 = 0 ;
5466 char * kwnames[] = {
5467 (char *) "self",(char *) "width", NULL
5468 };
5469
5470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5472 if (!SWIG_IsOK(res1)) {
5473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5474 }
5475 arg1 = reinterpret_cast< wxPen * >(argp1);
5476 ecode2 = SWIG_AsVal_int(obj1, &val2);
5477 if (!SWIG_IsOK(ecode2)) {
5478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5479 }
5480 arg2 = static_cast< int >(val2);
5481 {
5482 PyThreadState* __tstate = wxPyBeginAllowThreads();
5483 (arg1)->SetWidth(arg2);
5484 wxPyEndAllowThreads(__tstate);
5485 if (PyErr_Occurred()) SWIG_fail;
5486 }
5487 resultobj = SWIG_Py_Void();
5488 return resultobj;
5489fail:
5490 return NULL;
5491}
5492
5493
5494SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5495 PyObject *resultobj = 0;
5496 wxPen *arg1 = (wxPen *) 0 ;
5497 int arg2 ;
5498 wxDash *arg3 = (wxDash *) 0 ;
5499 void *argp1 = 0 ;
5500 int res1 = 0 ;
5501 PyObject * obj0 = 0 ;
5502 PyObject * obj1 = 0 ;
5503 char * kwnames[] = {
5504 (char *) "self",(char *) "dashes", NULL
5505 };
5506
5507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5509 if (!SWIG_IsOK(res1)) {
5510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5511 }
5512 arg1 = reinterpret_cast< wxPen * >(argp1);
5513 {
5514 arg2 = PyList_Size(obj1);
5515 arg3 = (wxDash*)byte_LIST_helper(obj1);
5516 if (arg3 == NULL) SWIG_fail;
5517 }
5518 {
5519 PyThreadState* __tstate = wxPyBeginAllowThreads();
5520 (arg1)->SetDashes(arg2,arg3);
5521 wxPyEndAllowThreads(__tstate);
5522 if (PyErr_Occurred()) SWIG_fail;
5523 }
5524 resultobj = SWIG_Py_Void();
5525 {
5526 if (arg3) delete [] arg3;
5527 }
5528 return resultobj;
5529fail:
5530 {
5531 if (arg3) delete [] arg3;
5532 }
5533 return NULL;
d14a1e28
RD
5534}
5535
5536
0085ce49
RD
5537SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5538 PyObject *resultobj = 0;
5539 wxPen *arg1 = (wxPen *) 0 ;
5540 PyObject *result = 0 ;
5541 void *argp1 = 0 ;
5542 int res1 = 0 ;
5543 PyObject *swig_obj[1] ;
5544
5545 if (!args) SWIG_fail;
5546 swig_obj[0] = args;
5547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5548 if (!SWIG_IsOK(res1)) {
5549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5550 }
5551 arg1 = reinterpret_cast< wxPen * >(argp1);
5552 {
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 result = (PyObject *)wxPen_GetDashes(arg1);
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 resultobj = result;
5559 return resultobj;
5560fail:
5561 return NULL;
5562}
5563
5564
5565SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5566 PyObject *resultobj = 0;
5567 wxPen *arg1 = (wxPen *) 0 ;
5568 PyObject *arg2 = (PyObject *) 0 ;
5569 PyObject *arg3 = (PyObject *) 0 ;
5570 void *argp1 = 0 ;
5571 int res1 = 0 ;
5572 PyObject * obj0 = 0 ;
5573 PyObject * obj1 = 0 ;
5574 PyObject * obj2 = 0 ;
5575 char * kwnames[] = {
5576 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5577 };
5578
5579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5581 if (!SWIG_IsOK(res1)) {
5582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5583 }
5584 arg1 = reinterpret_cast< wxPen * >(argp1);
5585 arg2 = obj1;
5586 arg3 = obj2;
5587 {
5588 PyThreadState* __tstate = wxPyBeginAllowThreads();
5589 wxPen__SetDashes(arg1,arg2,arg3);
5590 wxPyEndAllowThreads(__tstate);
5591 if (PyErr_Occurred()) SWIG_fail;
5592 }
5593 resultobj = SWIG_Py_Void();
5594 return resultobj;
5595fail:
5596 return NULL;
d14a1e28
RD
5597}
5598
5599
0085ce49
RD
5600SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5601 PyObject *resultobj = 0;
5602 wxPen *arg1 = (wxPen *) 0 ;
5603 int result;
5604 void *argp1 = 0 ;
5605 int res1 = 0 ;
5606 PyObject *swig_obj[1] ;
5607
5608 if (!args) SWIG_fail;
5609 swig_obj[0] = args;
5610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5611 if (!SWIG_IsOK(res1)) {
5612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5613 }
5614 arg1 = reinterpret_cast< wxPen * >(argp1);
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 result = (int)((wxPen const *)arg1)->GetDashCount();
5618 wxPyEndAllowThreads(__tstate);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 }
5621 resultobj = SWIG_From_int(static_cast< int >(result));
5622 return resultobj;
5623fail:
5624 return NULL;
5625}
5626
5627
5628SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5629 PyObject *resultobj = 0;
5630 wxPen *arg1 = (wxPen *) 0 ;
5631 wxPen *arg2 = (wxPen *) 0 ;
5632 bool result;
5633 void *argp1 = 0 ;
5634 int res1 = 0 ;
5635 void *argp2 = 0 ;
5636 int res2 = 0 ;
5637 PyObject * obj0 = 0 ;
5638 PyObject * obj1 = 0 ;
5639 char * kwnames[] = {
5640 (char *) "self",(char *) "other", NULL
5641 };
5642
5643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5645 if (!SWIG_IsOK(res1)) {
5646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5647 }
5648 arg1 = reinterpret_cast< wxPen * >(argp1);
5649 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5650 if (!SWIG_IsOK(res2)) {
5651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5652 }
5653 arg2 = reinterpret_cast< wxPen * >(argp2);
5654 {
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 {
5661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5662 }
5663 return resultobj;
5664fail:
5665 return NULL;
5666}
5667
5668
5669SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5670 PyObject *resultobj = 0;
5671 wxPen *arg1 = (wxPen *) 0 ;
5672 wxPen *arg2 = (wxPen *) 0 ;
5673 bool result;
5674 void *argp1 = 0 ;
5675 int res1 = 0 ;
5676 void *argp2 = 0 ;
5677 int res2 = 0 ;
5678 PyObject * obj0 = 0 ;
5679 PyObject * obj1 = 0 ;
5680 char * kwnames[] = {
5681 (char *) "self",(char *) "other", NULL
5682 };
5683
5684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5686 if (!SWIG_IsOK(res1)) {
5687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5688 }
5689 arg1 = reinterpret_cast< wxPen * >(argp1);
5690 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5691 if (!SWIG_IsOK(res2)) {
5692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5693 }
5694 arg2 = reinterpret_cast< wxPen * >(argp2);
5695 {
5696 PyThreadState* __tstate = wxPyBeginAllowThreads();
5697 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5698 wxPyEndAllowThreads(__tstate);
5699 if (PyErr_Occurred()) SWIG_fail;
5700 }
5701 {
5702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5703 }
5704 return resultobj;
5705fail:
5706 return NULL;
d14a1e28
RD
5707}
5708
5709
0085ce49
RD
5710SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5711 PyObject *obj;
5712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5713 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5714 return SWIG_Py_Void();
d14a1e28
RD
5715}
5716
0085ce49
RD
5717SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5718 return SWIG_Python_InitShadowInstance(args);
5719}
d14a1e28 5720
0085ce49
RD
5721SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5722 PyObject *resultobj = 0;
5723 wxColour *arg1 = 0 ;
5724 int arg2 = (int) wxSOLID ;
5725 wxBrush *result = 0 ;
5726 wxColour temp1 ;
5727 int val2 ;
5728 int ecode2 = 0 ;
5729 PyObject * obj0 = 0 ;
5730 PyObject * obj1 = 0 ;
5731 char * kwnames[] = {
5732 (char *) "colour",(char *) "style", NULL
5733 };
5734
5735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5736 {
5737 arg1 = &temp1;
5738 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5739 }
5740 if (obj1) {
5741 ecode2 = SWIG_AsVal_int(obj1, &val2);
5742 if (!SWIG_IsOK(ecode2)) {
5743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5744 }
5745 arg2 = static_cast< int >(val2);
5746 }
5747 {
5748 if (!wxPyCheckForApp()) SWIG_fail;
5749 PyThreadState* __tstate = wxPyBeginAllowThreads();
5750 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5751 wxPyEndAllowThreads(__tstate);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 }
5754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5755 return resultobj;
5756fail:
5757 return NULL;
5758}
5759
5760
5761SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5762 PyObject *resultobj = 0;
5763 wxBitmap *arg1 = 0 ;
5764 wxBrush *result = 0 ;
5765 void *argp1 = 0 ;
5766 int res1 = 0 ;
5767 PyObject * obj0 = 0 ;
5768 char * kwnames[] = {
5769 (char *) "stippleBitmap", NULL
5770 };
5771
5772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5773 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5774 if (!SWIG_IsOK(res1)) {
5775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5776 }
5777 if (!argp1) {
5778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5779 }
5780 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5781 {
5782 if (!wxPyCheckForApp()) SWIG_fail;
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5789 return resultobj;
5790fail:
5791 return NULL;
d14a1e28
RD
5792}
5793
5794
0085ce49
RD
5795SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5796 PyObject *resultobj = 0;
5797 wxBrush *arg1 = (wxBrush *) 0 ;
5798 void *argp1 = 0 ;
5799 int res1 = 0 ;
5800 PyObject *swig_obj[1] ;
5801
5802 if (!args) SWIG_fail;
5803 swig_obj[0] = args;
5804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5805 if (!SWIG_IsOK(res1)) {
5806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5807 }
5808 arg1 = reinterpret_cast< wxBrush * >(argp1);
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 delete arg1;
d14a1e28 5812
0085ce49
RD
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 resultobj = SWIG_Py_Void();
5817 return resultobj;
5818fail:
5819 return NULL;
5820}
5821
5822
5823SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5824 PyObject *resultobj = 0;
5825 wxBrush *arg1 = (wxBrush *) 0 ;
5826 wxColour *arg2 = 0 ;
5827 void *argp1 = 0 ;
5828 int res1 = 0 ;
5829 wxColour temp2 ;
5830 PyObject * obj0 = 0 ;
5831 PyObject * obj1 = 0 ;
5832 char * kwnames[] = {
5833 (char *) "self",(char *) "col", NULL
5834 };
5835
5836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5838 if (!SWIG_IsOK(res1)) {
5839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5840 }
5841 arg1 = reinterpret_cast< wxBrush * >(argp1);
5842 {
5843 arg2 = &temp2;
5844 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5845 }
5846 {
5847 PyThreadState* __tstate = wxPyBeginAllowThreads();
5848 (arg1)->SetColour((wxColour const &)*arg2);
5849 wxPyEndAllowThreads(__tstate);
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 resultobj = SWIG_Py_Void();
5853 return resultobj;
5854fail:
5855 return NULL;
5856}
5857
5858
5859SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5860 PyObject *resultobj = 0;
5861 wxBrush *arg1 = (wxBrush *) 0 ;
5862 int arg2 ;
5863 void *argp1 = 0 ;
5864 int res1 = 0 ;
5865 int val2 ;
5866 int ecode2 = 0 ;
5867 PyObject * obj0 = 0 ;
5868 PyObject * obj1 = 0 ;
5869 char * kwnames[] = {
5870 (char *) "self",(char *) "style", NULL
5871 };
5872
5873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5875 if (!SWIG_IsOK(res1)) {
5876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5877 }
5878 arg1 = reinterpret_cast< wxBrush * >(argp1);
5879 ecode2 = SWIG_AsVal_int(obj1, &val2);
5880 if (!SWIG_IsOK(ecode2)) {
5881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5882 }
5883 arg2 = static_cast< int >(val2);
5884 {
5885 PyThreadState* __tstate = wxPyBeginAllowThreads();
5886 (arg1)->SetStyle(arg2);
5887 wxPyEndAllowThreads(__tstate);
5888 if (PyErr_Occurred()) SWIG_fail;
5889 }
5890 resultobj = SWIG_Py_Void();
5891 return resultobj;
5892fail:
5893 return NULL;
5894}
5895
5896
5897SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5898 PyObject *resultobj = 0;
5899 wxBrush *arg1 = (wxBrush *) 0 ;
5900 wxBitmap *arg2 = 0 ;
5901 void *argp1 = 0 ;
5902 int res1 = 0 ;
5903 void *argp2 = 0 ;
5904 int res2 = 0 ;
5905 PyObject * obj0 = 0 ;
5906 PyObject * obj1 = 0 ;
5907 char * kwnames[] = {
5908 (char *) "self",(char *) "stipple", NULL
5909 };
5910
5911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5913 if (!SWIG_IsOK(res1)) {
5914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5915 }
5916 arg1 = reinterpret_cast< wxBrush * >(argp1);
5917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5918 if (!SWIG_IsOK(res2)) {
5919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5920 }
5921 if (!argp2) {
5922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5923 }
5924 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5925 {
5926 PyThreadState* __tstate = wxPyBeginAllowThreads();
5927 (arg1)->SetStipple((wxBitmap const &)*arg2);
5928 wxPyEndAllowThreads(__tstate);
5929 if (PyErr_Occurred()) SWIG_fail;
5930 }
5931 resultobj = SWIG_Py_Void();
5932 return resultobj;
5933fail:
5934 return NULL;
d14a1e28
RD
5935}
5936
5937
0085ce49
RD
5938SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5939 PyObject *resultobj = 0;
5940 wxBrush *arg1 = (wxBrush *) 0 ;
5941 wxColour result;
5942 void *argp1 = 0 ;
5943 int res1 = 0 ;
5944 PyObject *swig_obj[1] ;
5945
5946 if (!args) SWIG_fail;
5947 swig_obj[0] = args;
5948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5949 if (!SWIG_IsOK(res1)) {
5950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5951 }
5952 arg1 = reinterpret_cast< wxBrush * >(argp1);
5953 {
5954 PyThreadState* __tstate = wxPyBeginAllowThreads();
5955 result = ((wxBrush const *)arg1)->GetColour();
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) SWIG_fail;
5958 }
5959 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5960 return resultobj;
5961fail:
5962 return NULL;
d14a1e28
RD
5963}
5964
5965
0085ce49
RD
5966SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5967 PyObject *resultobj = 0;
5968 wxBrush *arg1 = (wxBrush *) 0 ;
5969 int result;
5970 void *argp1 = 0 ;
5971 int res1 = 0 ;
5972 PyObject *swig_obj[1] ;
5973
5974 if (!args) SWIG_fail;
5975 swig_obj[0] = args;
5976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5977 if (!SWIG_IsOK(res1)) {
5978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5979 }
5980 arg1 = reinterpret_cast< wxBrush * >(argp1);
5981 {
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 result = (int)((wxBrush const *)arg1)->GetStyle();
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 }
5987 resultobj = SWIG_From_int(static_cast< int >(result));
5988 return resultobj;
5989fail:
5990 return NULL;
d14a1e28
RD
5991}
5992
5993
0085ce49
RD
5994SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5995 PyObject *resultobj = 0;
5996 wxBrush *arg1 = (wxBrush *) 0 ;
5997 wxBitmap *result = 0 ;
5998 void *argp1 = 0 ;
5999 int res1 = 0 ;
6000 PyObject *swig_obj[1] ;
6001
6002 if (!args) SWIG_fail;
6003 swig_obj[0] = args;
6004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6005 if (!SWIG_IsOK(res1)) {
6006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6007 }
6008 arg1 = reinterpret_cast< wxBrush * >(argp1);
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6016 return resultobj;
6017fail:
6018 return NULL;
d14a1e28
RD
6019}
6020
6021
0085ce49
RD
6022SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6023 PyObject *resultobj = 0;
6024 wxBrush *arg1 = (wxBrush *) 0 ;
6025 bool result;
6026 void *argp1 = 0 ;
6027 int res1 = 0 ;
6028 PyObject *swig_obj[1] ;
6029
6030 if (!args) SWIG_fail;
6031 swig_obj[0] = args;
6032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6033 if (!SWIG_IsOK(res1)) {
6034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6035 }
6036 arg1 = reinterpret_cast< wxBrush * >(argp1);
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 result = (bool)((wxBrush const *)arg1)->IsHatch();
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 {
6044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6045 }
6046 return resultobj;
6047fail:
6048 return NULL;
f78cc896
RD
6049}
6050
6051
b39fe951 6052SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6053 PyObject *resultobj = 0;
6054 wxBrush *arg1 = (wxBrush *) 0 ;
6055 bool result;
6056 void *argp1 = 0 ;
6057 int res1 = 0 ;
6058 PyObject *swig_obj[1] ;
6059
6060 if (!args) SWIG_fail;
6061 swig_obj[0] = args;
6062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6063 if (!SWIG_IsOK(res1)) {
b39fe951 6064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
0085ce49
RD
6065 }
6066 arg1 = reinterpret_cast< wxBrush * >(argp1);
6067 {
6068 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6069 result = (bool)(arg1)->IsOk();
0085ce49
RD
6070 wxPyEndAllowThreads(__tstate);
6071 if (PyErr_Occurred()) SWIG_fail;
6072 }
6073 {
6074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6075 }
6076 return resultobj;
6077fail:
6078 return NULL;
d14a1e28
RD
6079}
6080
6081
0085ce49
RD
6082SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6083 PyObject *obj;
6084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6085 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6086 return SWIG_Py_Void();
d14a1e28
RD
6087}
6088
0085ce49
RD
6089SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6090 return SWIG_Python_InitShadowInstance(args);
6091}
d14a1e28 6092
0085ce49
RD
6093SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6094 PyObject *resultobj = 0;
6095 wxString *arg1 = 0 ;
6096 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6097 wxBitmap *result = 0 ;
6098 bool temp1 = false ;
6099 int val2 ;
6100 int ecode2 = 0 ;
6101 PyObject * obj0 = 0 ;
6102 PyObject * obj1 = 0 ;
6103 char * kwnames[] = {
6104 (char *) "name",(char *) "type", NULL
6105 };
6106
6107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6108 {
6109 arg1 = wxString_in_helper(obj0);
6110 if (arg1 == NULL) SWIG_fail;
6111 temp1 = true;
6112 }
6113 if (obj1) {
6114 ecode2 = SWIG_AsVal_int(obj1, &val2);
6115 if (!SWIG_IsOK(ecode2)) {
6116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6117 }
6118 arg2 = static_cast< wxBitmapType >(val2);
6119 }
6120 {
6121 if (!wxPyCheckForApp()) SWIG_fail;
6122 PyThreadState* __tstate = wxPyBeginAllowThreads();
6123 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6124 wxPyEndAllowThreads(__tstate);
6125 if (PyErr_Occurred()) SWIG_fail;
6126 }
6127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6128 {
6129 if (temp1)
6130 delete arg1;
6131 }
6132 return resultobj;
6133fail:
6134 {
6135 if (temp1)
6136 delete arg1;
6137 }
6138 return NULL;
d14a1e28
RD
6139}
6140
6141
0085ce49
RD
6142SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6143 PyObject *resultobj = 0;
6144 wxBitmap *arg1 = (wxBitmap *) 0 ;
6145 void *argp1 = 0 ;
6146 int res1 = 0 ;
6147 PyObject *swig_obj[1] ;
6148
6149 if (!args) SWIG_fail;
6150 swig_obj[0] = args;
6151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6152 if (!SWIG_IsOK(res1)) {
6153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6154 }
6155 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6156 {
0085ce49 6157 delete arg1;
66c033b4 6158
0085ce49
RD
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
6161 resultobj = SWIG_Py_Void();
6162 return resultobj;
6163fail:
6164 return NULL;
6165}
6166
6167
6168SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6169 PyObject *resultobj = 0;
6170 int arg1 ;
6171 int arg2 ;
6172 int arg3 = (int) -1 ;
6173 wxBitmap *result = 0 ;
6174 int val1 ;
6175 int ecode1 = 0 ;
6176 int val2 ;
6177 int ecode2 = 0 ;
6178 int val3 ;
6179 int ecode3 = 0 ;
6180 PyObject * obj0 = 0 ;
6181 PyObject * obj1 = 0 ;
6182 PyObject * obj2 = 0 ;
6183 char * kwnames[] = {
6184 (char *) "width",(char *) "height",(char *) "depth", NULL
6185 };
6186
6187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6188 ecode1 = SWIG_AsVal_int(obj0, &val1);
6189 if (!SWIG_IsOK(ecode1)) {
6190 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6191 }
6192 arg1 = static_cast< int >(val1);
6193 ecode2 = SWIG_AsVal_int(obj1, &val2);
6194 if (!SWIG_IsOK(ecode2)) {
6195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6196 }
6197 arg2 = static_cast< int >(val2);
6198 if (obj2) {
6199 ecode3 = SWIG_AsVal_int(obj2, &val3);
6200 if (!SWIG_IsOK(ecode3)) {
6201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6202 }
6203 arg3 = static_cast< int >(val3);
6204 }
6205 {
6206 if (!wxPyCheckForApp()) SWIG_fail;
6207 PyThreadState* __tstate = wxPyBeginAllowThreads();
6208 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6213 return resultobj;
6214fail:
6215 return NULL;
6216}
6217
6218
6219SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6220 PyObject *resultobj = 0;
6221 wxIcon *arg1 = 0 ;
6222 wxBitmap *result = 0 ;
6223 void *argp1 = 0 ;
6224 int res1 = 0 ;
6225 PyObject * obj0 = 0 ;
6226 char * kwnames[] = {
6227 (char *) "icon", NULL
6228 };
6229
6230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6231 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6232 if (!SWIG_IsOK(res1)) {
6233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6234 }
6235 if (!argp1) {
6236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6237 }
6238 arg1 = reinterpret_cast< wxIcon * >(argp1);
6239 {
6240 if (!wxPyCheckForApp()) SWIG_fail;
6241 PyThreadState* __tstate = wxPyBeginAllowThreads();
6242 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6243 wxPyEndAllowThreads(__tstate);
6244 if (PyErr_Occurred()) SWIG_fail;
6245 }
6246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6247 return resultobj;
6248fail:
6249 return NULL;
6250}
6251
6252
6253SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6254 PyObject *resultobj = 0;
6255 wxImage *arg1 = 0 ;
6256 int arg2 = (int) -1 ;
6257 wxBitmap *result = 0 ;
6258 void *argp1 = 0 ;
6259 int res1 = 0 ;
6260 int val2 ;
6261 int ecode2 = 0 ;
6262 PyObject * obj0 = 0 ;
6263 PyObject * obj1 = 0 ;
6264 char * kwnames[] = {
6265 (char *) "image",(char *) "depth", NULL
6266 };
6267
6268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6269 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6270 if (!SWIG_IsOK(res1)) {
6271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6272 }
6273 if (!argp1) {
6274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6275 }
6276 arg1 = reinterpret_cast< wxImage * >(argp1);
6277 if (obj1) {
6278 ecode2 = SWIG_AsVal_int(obj1, &val2);
6279 if (!SWIG_IsOK(ecode2)) {
6280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6281 }
6282 arg2 = static_cast< int >(val2);
6283 }
6284 {
6285 if (!wxPyCheckForApp()) SWIG_fail;
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) SWIG_fail;
6290 }
6291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6292 return resultobj;
6293fail:
6294 return NULL;
66c033b4
RD
6295}
6296
6297
0085ce49
RD
6298SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6299 PyObject *resultobj = 0;
6300 PyObject *arg1 = (PyObject *) 0 ;
6301 wxBitmap *result = 0 ;
6302 PyObject * obj0 = 0 ;
6303 char * kwnames[] = {
6304 (char *) "listOfStrings", NULL
6305 };
6306
6307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6308 arg1 = obj0;
6309 {
6310 if (!wxPyCheckForApp()) SWIG_fail;
6311 PyThreadState* __tstate = wxPyBeginAllowThreads();
6312 result = (wxBitmap *)new_wxBitmap(arg1);
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6317 return resultobj;
6318fail:
6319 return NULL;
6320}
6321
6322
6323SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6324 PyObject *resultobj = 0;
6325 PyObject *arg1 = (PyObject *) 0 ;
6326 int arg2 ;
6327 int arg3 ;
6328 int arg4 = (int) 1 ;
6329 wxBitmap *result = 0 ;
6330 int val2 ;
6331 int ecode2 = 0 ;
6332 int val3 ;
6333 int ecode3 = 0 ;
6334 int val4 ;
6335 int ecode4 = 0 ;
6336 PyObject * obj0 = 0 ;
6337 PyObject * obj1 = 0 ;
6338 PyObject * obj2 = 0 ;
6339 PyObject * obj3 = 0 ;
6340 char * kwnames[] = {
6341 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6342 };
6343
6344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6345 arg1 = obj0;
6346 ecode2 = SWIG_AsVal_int(obj1, &val2);
6347 if (!SWIG_IsOK(ecode2)) {
6348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6349 }
6350 arg2 = static_cast< int >(val2);
6351 ecode3 = SWIG_AsVal_int(obj2, &val3);
6352 if (!SWIG_IsOK(ecode3)) {
6353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6354 }
6355 arg3 = static_cast< int >(val3);
6356 if (obj3) {
6357 ecode4 = SWIG_AsVal_int(obj3, &val4);
6358 if (!SWIG_IsOK(ecode4)) {
6359 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6360 }
6361 arg4 = static_cast< int >(val4);
6362 }
6363 {
6364 if (!wxPyCheckForApp()) SWIG_fail;
6365 PyThreadState* __tstate = wxPyBeginAllowThreads();
6366 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6371 return resultobj;
6372fail:
6373 return NULL;
d14a1e28
RD
6374}
6375
6376
b39fe951 6377SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6378 PyObject *resultobj = 0;
6379 wxBitmap *arg1 = (wxBitmap *) 0 ;
6380 bool result;
6381 void *argp1 = 0 ;
6382 int res1 = 0 ;
6383 PyObject *swig_obj[1] ;
6384
6385 if (!args) SWIG_fail;
6386 swig_obj[0] = args;
6387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6388 if (!SWIG_IsOK(res1)) {
b39fe951 6389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
0085ce49
RD
6390 }
6391 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6392 {
b39fe951 6393 result = (bool)(arg1)->IsOk();
0085ce49
RD
6394 if (PyErr_Occurred()) SWIG_fail;
6395 }
6396 {
6397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6398 }
6399 return resultobj;
6400fail:
6401 return NULL;
d14a1e28
RD
6402}
6403
6404
0085ce49
RD
6405SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6406 PyObject *resultobj = 0;
6407 wxBitmap *arg1 = (wxBitmap *) 0 ;
6408 int result;
6409 void *argp1 = 0 ;
6410 int res1 = 0 ;
6411 PyObject *swig_obj[1] ;
6412
6413 if (!args) SWIG_fail;
6414 swig_obj[0] = args;
6415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6416 if (!SWIG_IsOK(res1)) {
6417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6418 }
6419 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6420 {
0085ce49 6421 result = (int)(arg1)->GetWidth();
0085ce49
RD
6422 if (PyErr_Occurred()) SWIG_fail;
6423 }
6424 resultobj = SWIG_From_int(static_cast< int >(result));
6425 return resultobj;
6426fail:
6427 return NULL;
d14a1e28
RD
6428}
6429
6430
0085ce49
RD
6431SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6432 PyObject *resultobj = 0;
6433 wxBitmap *arg1 = (wxBitmap *) 0 ;
6434 int result;
6435 void *argp1 = 0 ;
6436 int res1 = 0 ;
6437 PyObject *swig_obj[1] ;
6438
6439 if (!args) SWIG_fail;
6440 swig_obj[0] = args;
6441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6442 if (!SWIG_IsOK(res1)) {
6443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6444 }
6445 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6446 {
0085ce49 6447 result = (int)(arg1)->GetHeight();
0085ce49
RD
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 resultobj = SWIG_From_int(static_cast< int >(result));
6451 return resultobj;
6452fail:
6453 return NULL;
d14a1e28
RD
6454}
6455
6456
0085ce49
RD
6457SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6458 PyObject *resultobj = 0;
6459 wxBitmap *arg1 = (wxBitmap *) 0 ;
6460 int result;
6461 void *argp1 = 0 ;
6462 int res1 = 0 ;
6463 PyObject *swig_obj[1] ;
6464
6465 if (!args) SWIG_fail;
6466 swig_obj[0] = args;
6467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6468 if (!SWIG_IsOK(res1)) {
6469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6470 }
6471 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6472 {
0085ce49 6473 result = (int)(arg1)->GetDepth();
0085ce49
RD
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 resultobj = SWIG_From_int(static_cast< int >(result));
6477 return resultobj;
6478fail:
6479 return NULL;
d14a1e28
RD
6480}
6481
6482
0085ce49
RD
6483SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6484 PyObject *resultobj = 0;
6485 wxBitmap *arg1 = (wxBitmap *) 0 ;
6486 wxSize result;
6487 void *argp1 = 0 ;
6488 int res1 = 0 ;
6489 PyObject *swig_obj[1] ;
6490
6491 if (!args) SWIG_fail;
6492 swig_obj[0] = args;
6493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6494 if (!SWIG_IsOK(res1)) {
6495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6496 }
6497 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6498 {
0085ce49 6499 result = wxBitmap_GetSize(arg1);
0085ce49
RD
6500 if (PyErr_Occurred()) SWIG_fail;
6501 }
6502 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6503 return resultobj;
6504fail:
6505 return NULL;
d14a1e28
RD
6506}
6507
6508
0085ce49
RD
6509SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6510 PyObject *resultobj = 0;
6511 wxBitmap *arg1 = (wxBitmap *) 0 ;
6512 SwigValueWrapper<wxImage > result;
6513 void *argp1 = 0 ;
6514 int res1 = 0 ;
6515 PyObject *swig_obj[1] ;
6516
6517 if (!args) SWIG_fail;
6518 swig_obj[0] = args;
6519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6520 if (!SWIG_IsOK(res1)) {
6521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6522 }
6523 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6524 {
0085ce49 6525 result = ((wxBitmap const *)arg1)->ConvertToImage();
0085ce49
RD
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6529 return resultobj;
6530fail:
6531 return NULL;
d14a1e28
RD
6532}
6533
6534
0085ce49
RD
6535SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6536 PyObject *resultobj = 0;
6537 wxBitmap *arg1 = (wxBitmap *) 0 ;
6538 wxMask *result = 0 ;
6539 void *argp1 = 0 ;
6540 int res1 = 0 ;
6541 PyObject *swig_obj[1] ;
6542
6543 if (!args) SWIG_fail;
6544 swig_obj[0] = args;
6545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6546 if (!SWIG_IsOK(res1)) {
6547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6548 }
6549 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6550 {
0085ce49 6551 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
0085ce49
RD
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6555 return resultobj;
6556fail:
6557 return NULL;
6558}
6559
6560
6561SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj = 0;
6563 wxBitmap *arg1 = (wxBitmap *) 0 ;
6564 wxMask *arg2 = (wxMask *) 0 ;
6565 void *argp1 = 0 ;
6566 int res1 = 0 ;
6567 int res2 = 0 ;
6568 PyObject * obj0 = 0 ;
6569 PyObject * obj1 = 0 ;
6570 char * kwnames[] = {
6571 (char *) "self",(char *) "mask", NULL
6572 };
6573
6574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6576 if (!SWIG_IsOK(res1)) {
6577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6578 }
6579 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6580 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6581 if (!SWIG_IsOK(res2)) {
6582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6583 }
6584 {
0085ce49 6585 (arg1)->SetMask(arg2);
0085ce49
RD
6586 if (PyErr_Occurred()) SWIG_fail;
6587 }
6588 resultobj = SWIG_Py_Void();
6589 return resultobj;
6590fail:
6591 return NULL;
6592}
6593
6594
6595SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6596 PyObject *resultobj = 0;
6597 wxBitmap *arg1 = (wxBitmap *) 0 ;
6598 wxColour *arg2 = 0 ;
6599 void *argp1 = 0 ;
6600 int res1 = 0 ;
6601 wxColour temp2 ;
6602 PyObject * obj0 = 0 ;
6603 PyObject * obj1 = 0 ;
6604 char * kwnames[] = {
6605 (char *) "self",(char *) "colour", NULL
6606 };
6607
6608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6610 if (!SWIG_IsOK(res1)) {
6611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6612 }
6613 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6614 {
6615 arg2 = &temp2;
6616 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6617 }
6618 {
0085ce49 6619 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
0085ce49
RD
6620 if (PyErr_Occurred()) SWIG_fail;
6621 }
6622 resultobj = SWIG_Py_Void();
6623 return resultobj;
6624fail:
6625 return NULL;
6626}
6627
6628
6629SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6630 PyObject *resultobj = 0;
6631 wxBitmap *arg1 = (wxBitmap *) 0 ;
6632 wxRect *arg2 = 0 ;
6633 SwigValueWrapper<wxBitmap > result;
6634 void *argp1 = 0 ;
6635 int res1 = 0 ;
6636 wxRect temp2 ;
6637 PyObject * obj0 = 0 ;
6638 PyObject * obj1 = 0 ;
6639 char * kwnames[] = {
6640 (char *) "self",(char *) "rect", NULL
6641 };
6642
6643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6645 if (!SWIG_IsOK(res1)) {
6646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6647 }
6648 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6649 {
6650 arg2 = &temp2;
6651 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6652 }
6653 {
0085ce49 6654 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
0085ce49
RD
6655 if (PyErr_Occurred()) SWIG_fail;
6656 }
6657 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6658 return resultobj;
6659fail:
6660 return NULL;
6661}
6662
6663
6664SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6665 PyObject *resultobj = 0;
6666 wxBitmap *arg1 = (wxBitmap *) 0 ;
6667 wxString *arg2 = 0 ;
6668 wxBitmapType arg3 ;
6669 wxPalette *arg4 = (wxPalette *) NULL ;
6670 bool result;
6671 void *argp1 = 0 ;
6672 int res1 = 0 ;
6673 bool temp2 = false ;
6674 int val3 ;
6675 int ecode3 = 0 ;
6676 void *argp4 = 0 ;
6677 int res4 = 0 ;
6678 PyObject * obj0 = 0 ;
6679 PyObject * obj1 = 0 ;
6680 PyObject * obj2 = 0 ;
6681 PyObject * obj3 = 0 ;
6682 char * kwnames[] = {
6683 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6684 };
6685
6686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6690 }
6691 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6692 {
6693 arg2 = wxString_in_helper(obj1);
6694 if (arg2 == NULL) SWIG_fail;
6695 temp2 = true;
6696 }
6697 ecode3 = SWIG_AsVal_int(obj2, &val3);
6698 if (!SWIG_IsOK(ecode3)) {
6699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6700 }
6701 arg3 = static_cast< wxBitmapType >(val3);
6702 if (obj3) {
6703 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6704 if (!SWIG_IsOK(res4)) {
6705 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6706 }
0085ce49
RD
6707 arg4 = reinterpret_cast< wxPalette * >(argp4);
6708 }
6709 {
0085ce49 6710 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
0085ce49
RD
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 {
6714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6715 }
6716 {
6717 if (temp2)
6718 delete arg2;
6719 }
6720 return resultobj;
6721fail:
6722 {
6723 if (temp2)
6724 delete arg2;
6725 }
6726 return NULL;
6727}
6728
6729
6730SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6731 PyObject *resultobj = 0;
6732 wxBitmap *arg1 = (wxBitmap *) 0 ;
6733 wxString *arg2 = 0 ;
6734 wxBitmapType arg3 ;
6735 bool result;
6736 void *argp1 = 0 ;
6737 int res1 = 0 ;
6738 bool temp2 = false ;
6739 int val3 ;
6740 int ecode3 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 PyObject * obj1 = 0 ;
6743 PyObject * obj2 = 0 ;
6744 char * kwnames[] = {
6745 (char *) "self",(char *) "name",(char *) "type", NULL
6746 };
6747
6748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6750 if (!SWIG_IsOK(res1)) {
6751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6752 }
6753 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6754 {
6755 arg2 = wxString_in_helper(obj1);
6756 if (arg2 == NULL) SWIG_fail;
6757 temp2 = true;
6758 }
6759 ecode3 = SWIG_AsVal_int(obj2, &val3);
6760 if (!SWIG_IsOK(ecode3)) {
6761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6762 }
6763 arg3 = static_cast< wxBitmapType >(val3);
6764 {
0085ce49 6765 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
6766 if (PyErr_Occurred()) SWIG_fail;
6767 }
6768 {
6769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6770 }
6771 {
6772 if (temp2)
6773 delete arg2;
6774 }
6775 return resultobj;
6776fail:
6777 {
6778 if (temp2)
6779 delete arg2;
6780 }
6781 return NULL;
d04418a7
RD
6782}
6783
6784
0085ce49
RD
6785SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6786 PyObject *resultobj = 0;
6787 wxBitmap *arg1 = (wxBitmap *) 0 ;
6788 wxPalette *result = 0 ;
6789 void *argp1 = 0 ;
6790 int res1 = 0 ;
6791 PyObject *swig_obj[1] ;
6792
6793 if (!args) SWIG_fail;
6794 swig_obj[0] = args;
6795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6796 if (!SWIG_IsOK(res1)) {
6797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6798 }
6799 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6800 {
0085ce49 6801 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
0085ce49
RD
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6805 return resultobj;
6806fail:
6807 return NULL;
6808}
6809
6810
6811SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6812 PyObject *resultobj = 0;
6813 wxBitmap *arg1 = (wxBitmap *) 0 ;
6814 wxIcon *arg2 = 0 ;
6815 bool result;
6816 void *argp1 = 0 ;
6817 int res1 = 0 ;
6818 void *argp2 = 0 ;
6819 int res2 = 0 ;
6820 PyObject * obj0 = 0 ;
6821 PyObject * obj1 = 0 ;
6822 char * kwnames[] = {
6823 (char *) "self",(char *) "icon", NULL
6824 };
6825
6826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6828 if (!SWIG_IsOK(res1)) {
6829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6830 }
6831 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6832 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6833 if (!SWIG_IsOK(res2)) {
6834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6835 }
6836 if (!argp2) {
6837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6838 }
6839 arg2 = reinterpret_cast< wxIcon * >(argp2);
6840 {
0085ce49 6841 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
0085ce49
RD
6842 if (PyErr_Occurred()) SWIG_fail;
6843 }
6844 {
6845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6846 }
6847 return resultobj;
6848fail:
6849 return NULL;
6850}
6851
6852
6853SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6854 PyObject *resultobj = 0;
6855 wxBitmap *arg1 = (wxBitmap *) 0 ;
6856 int arg2 ;
6857 void *argp1 = 0 ;
6858 int res1 = 0 ;
6859 int val2 ;
6860 int ecode2 = 0 ;
6861 PyObject * obj0 = 0 ;
6862 PyObject * obj1 = 0 ;
6863 char * kwnames[] = {
6864 (char *) "self",(char *) "height", NULL
6865 };
6866
6867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6869 if (!SWIG_IsOK(res1)) {
6870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6871 }
6872 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6873 ecode2 = SWIG_AsVal_int(obj1, &val2);
6874 if (!SWIG_IsOK(ecode2)) {
6875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6876 }
6877 arg2 = static_cast< int >(val2);
6878 {
0085ce49 6879 (arg1)->SetHeight(arg2);
0085ce49
RD
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_Py_Void();
6883 return resultobj;
6884fail:
6885 return NULL;
6886}
6887
6888
6889SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj = 0;
6891 wxBitmap *arg1 = (wxBitmap *) 0 ;
6892 int arg2 ;
6893 void *argp1 = 0 ;
6894 int res1 = 0 ;
6895 int val2 ;
6896 int ecode2 = 0 ;
6897 PyObject * obj0 = 0 ;
6898 PyObject * obj1 = 0 ;
6899 char * kwnames[] = {
6900 (char *) "self",(char *) "width", NULL
6901 };
6902
6903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6905 if (!SWIG_IsOK(res1)) {
6906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6907 }
6908 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6909 ecode2 = SWIG_AsVal_int(obj1, &val2);
6910 if (!SWIG_IsOK(ecode2)) {
6911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6912 }
6913 arg2 = static_cast< int >(val2);
6914 {
0085ce49 6915 (arg1)->SetWidth(arg2);
0085ce49
RD
6916 if (PyErr_Occurred()) SWIG_fail;
6917 }
6918 resultobj = SWIG_Py_Void();
6919 return resultobj;
6920fail:
6921 return NULL;
6922}
6923
6924
6925SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6926 PyObject *resultobj = 0;
6927 wxBitmap *arg1 = (wxBitmap *) 0 ;
6928 int arg2 ;
6929 void *argp1 = 0 ;
6930 int res1 = 0 ;
6931 int val2 ;
6932 int ecode2 = 0 ;
6933 PyObject * obj0 = 0 ;
6934 PyObject * obj1 = 0 ;
6935 char * kwnames[] = {
6936 (char *) "self",(char *) "depth", NULL
6937 };
6938
6939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6941 if (!SWIG_IsOK(res1)) {
6942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6943 }
6944 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6945 ecode2 = SWIG_AsVal_int(obj1, &val2);
6946 if (!SWIG_IsOK(ecode2)) {
6947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6948 }
6949 arg2 = static_cast< int >(val2);
6950 {
0085ce49 6951 (arg1)->SetDepth(arg2);
0085ce49
RD
6952 if (PyErr_Occurred()) SWIG_fail;
6953 }
6954 resultobj = SWIG_Py_Void();
6955 return resultobj;
6956fail:
6957 return NULL;
6958}
6959
6960
6961SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6962 PyObject *resultobj = 0;
6963 wxBitmap *arg1 = (wxBitmap *) 0 ;
6964 wxSize *arg2 = 0 ;
6965 void *argp1 = 0 ;
6966 int res1 = 0 ;
6967 wxSize temp2 ;
6968 PyObject * obj0 = 0 ;
6969 PyObject * obj1 = 0 ;
6970 char * kwnames[] = {
6971 (char *) "self",(char *) "size", NULL
6972 };
6973
6974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6976 if (!SWIG_IsOK(res1)) {
6977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6978 }
6979 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6980 {
6981 arg2 = &temp2;
6982 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6983 }
6984 {
0085ce49 6985 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
0085ce49
RD
6986 if (PyErr_Occurred()) SWIG_fail;
6987 }
6988 resultobj = SWIG_Py_Void();
6989 return resultobj;
6990fail:
6991 return NULL;
6992}
6993
6994
8f514ab4
RD
6995SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6996 PyObject *resultobj = 0;
6997 wxBitmap *arg1 = (wxBitmap *) 0 ;
6998 buffer arg2 ;
6999 int arg3 ;
7000 void *argp1 = 0 ;
7001 int res1 = 0 ;
7002 Py_ssize_t temp2 ;
7003 PyObject * obj0 = 0 ;
7004 PyObject * obj1 = 0 ;
7005 char * kwnames[] = {
7006 (char *) "self",(char *) "data", NULL
7007 };
7008
7009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7011 if (!SWIG_IsOK(res1)) {
7012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7013 }
7014 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7015 {
7016 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7017 arg3 = (int)temp2;
7018 }
7019 {
7020 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7021 if (PyErr_Occurred()) SWIG_fail;
7022 }
7023 resultobj = SWIG_Py_Void();
7024 return resultobj;
7025fail:
7026 return NULL;
7027}
7028
7029
7030SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7031 PyObject *resultobj = 0;
7032 wxBitmap *arg1 = (wxBitmap *) 0 ;
7033 buffer arg2 ;
7034 int arg3 ;
7035 void *argp1 = 0 ;
7036 int res1 = 0 ;
7037 Py_ssize_t temp2 ;
7038 PyObject * obj0 = 0 ;
7039 PyObject * obj1 = 0 ;
7040 char * kwnames[] = {
7041 (char *) "self",(char *) "data", NULL
7042 };
7043
7044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7046 if (!SWIG_IsOK(res1)) {
7047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7048 }
7049 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7050 {
7051 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7052 arg3 = (int)temp2;
7053 }
7054 {
7055 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7056 if (PyErr_Occurred()) SWIG_fail;
7057 }
7058 resultobj = SWIG_Py_Void();
7059 return resultobj;
7060fail:
7061 return NULL;
7062}
7063
7064
0085ce49
RD
7065SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7066 PyObject *resultobj = 0;
7067 wxBitmap *arg1 = (wxBitmap *) 0 ;
7068 wxBitmap *arg2 = (wxBitmap *) 0 ;
7069 bool result;
7070 void *argp1 = 0 ;
7071 int res1 = 0 ;
7072 void *argp2 = 0 ;
7073 int res2 = 0 ;
7074 PyObject * obj0 = 0 ;
7075 PyObject * obj1 = 0 ;
7076 char * kwnames[] = {
7077 (char *) "self",(char *) "other", NULL
7078 };
7079
7080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7082 if (!SWIG_IsOK(res1)) {
7083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7084 }
7085 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7086 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7087 if (!SWIG_IsOK(res2)) {
7088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7089 }
7090 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7091 {
0085ce49 7092 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
0085ce49
RD
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 {
fc46b7f3
RD
7096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7097 }
7098 return resultobj;
7099fail:
7100 return NULL;
7101}
7102
7103
7104SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj = 0;
7106 wxBitmap *arg1 = (wxBitmap *) 0 ;
7107 wxBitmap *arg2 = (wxBitmap *) 0 ;
7108 bool result;
7109 void *argp1 = 0 ;
7110 int res1 = 0 ;
7111 void *argp2 = 0 ;
7112 int res2 = 0 ;
7113 PyObject * obj0 = 0 ;
7114 PyObject * obj1 = 0 ;
7115 char * kwnames[] = {
7116 (char *) "self",(char *) "other", NULL
7117 };
7118
7119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7121 if (!SWIG_IsOK(res1)) {
7122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7123 }
7124 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7125 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7126 if (!SWIG_IsOK(res2)) {
7127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7128 }
7129 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7130 {
7131 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 {
7135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7136 }
7137 return resultobj;
7138fail:
7139 return NULL;
7140}
7141
7142
7143SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7144 PyObject *obj;
7145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7146 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7147 return SWIG_Py_Void();
7148}
7149
7150SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7151 return SWIG_Python_InitShadowInstance(args);
7152}
7153
7154SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7155 PyObject *resultobj = 0;
7156 int arg1 ;
7157 int arg2 ;
7158 buffer arg3 ;
7159 int arg4 ;
7160 buffer arg5 ;
7161 int arg6 ;
7162 wxBitmap *result = 0 ;
7163 int val1 ;
7164 int ecode1 = 0 ;
7165 int val2 ;
7166 int ecode2 = 0 ;
c79fdf86
RD
7167 Py_ssize_t temp3 ;
7168 Py_ssize_t temp5 ;
fc46b7f3
RD
7169 PyObject * obj0 = 0 ;
7170 PyObject * obj1 = 0 ;
7171 PyObject * obj2 = 0 ;
7172 PyObject * obj3 = 0 ;
7173 char * kwnames[] = {
7174 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7175 };
7176
7177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7178 ecode1 = SWIG_AsVal_int(obj0, &val1);
7179 if (!SWIG_IsOK(ecode1)) {
7180 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7181 }
7182 arg1 = static_cast< int >(val1);
7183 ecode2 = SWIG_AsVal_int(obj1, &val2);
7184 if (!SWIG_IsOK(ecode2)) {
7185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7186 }
7187 arg2 = static_cast< int >(val2);
7188 {
c79fdf86
RD
7189 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7190 arg4 = (int)temp3;
fc46b7f3
RD
7191 }
7192 {
7193 if (obj3 != Py_None) {
c79fdf86
RD
7194 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7195 arg6 = (int)temp5;
fc46b7f3
RD
7196 }
7197 }
7198 {
7199 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7200 if (PyErr_Occurred()) SWIG_fail;
7201 }
7202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7203 return resultobj;
7204fail:
7205 return NULL;
7206}
7207
7208
7209SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7210 PyObject *resultobj = 0;
7211 int arg1 ;
7212 int arg2 ;
7213 buffer arg3 ;
7214 int arg4 ;
7215 wxBitmap *result = 0 ;
7216 int val1 ;
7217 int ecode1 = 0 ;
7218 int val2 ;
7219 int ecode2 = 0 ;
c79fdf86 7220 Py_ssize_t temp3 ;
fc46b7f3
RD
7221 PyObject * obj0 = 0 ;
7222 PyObject * obj1 = 0 ;
7223 PyObject * obj2 = 0 ;
7224 char * kwnames[] = {
7225 (char *) "width",(char *) "height",(char *) "data", NULL
7226 };
7227
7228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7229 ecode1 = SWIG_AsVal_int(obj0, &val1);
7230 if (!SWIG_IsOK(ecode1)) {
7231 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7232 }
7233 arg1 = static_cast< int >(val1);
7234 ecode2 = SWIG_AsVal_int(obj1, &val2);
7235 if (!SWIG_IsOK(ecode2)) {
7236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7237 }
7238 arg2 = static_cast< int >(val2);
7239 {
c79fdf86
RD
7240 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7241 arg4 = (int)temp3;
fc46b7f3
RD
7242 }
7243 {
7244 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7248 return resultobj;
7249fail:
7250 return NULL;
7251}
7252
7253
7254SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7255 PyObject *resultobj = 0;
7256 int arg1 ;
7257 int arg2 ;
7258 buffer arg3 ;
7259 int arg4 ;
7260 wxBitmap *result = 0 ;
7261 int val1 ;
7262 int ecode1 = 0 ;
7263 int val2 ;
7264 int ecode2 = 0 ;
c79fdf86 7265 Py_ssize_t temp3 ;
fc46b7f3
RD
7266 PyObject * obj0 = 0 ;
7267 PyObject * obj1 = 0 ;
7268 PyObject * obj2 = 0 ;
7269 char * kwnames[] = {
7270 (char *) "width",(char *) "height",(char *) "data", NULL
7271 };
7272
7273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7274 ecode1 = SWIG_AsVal_int(obj0, &val1);
7275 if (!SWIG_IsOK(ecode1)) {
7276 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7277 }
7278 arg1 = static_cast< int >(val1);
7279 ecode2 = SWIG_AsVal_int(obj1, &val2);
7280 if (!SWIG_IsOK(ecode2)) {
7281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7282 }
7283 arg2 = static_cast< int >(val2);
7284 {
c79fdf86
RD
7285 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7286 arg4 = (int)temp3;
fc46b7f3
RD
7287 }
7288 {
7289 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7290 if (PyErr_Occurred()) SWIG_fail;
7291 }
7292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7293 return resultobj;
7294fail:
7295 return NULL;
7296}
7297
7298
7299SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7300 PyObject *resultobj = 0;
7301 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7302 wxPoint result;
7303 void *argp1 = 0 ;
7304 int res1 = 0 ;
7305 PyObject *swig_obj[1] ;
7306
7307 if (!args) SWIG_fail;
7308 swig_obj[0] = args;
7309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7310 if (!SWIG_IsOK(res1)) {
7311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7312 }
7313 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7314 {
7315 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7316 if (PyErr_Occurred()) SWIG_fail;
7317 }
7318 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7319 return resultobj;
7320fail:
7321 return NULL;
7322}
7323
7324
7325SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7326 PyObject *resultobj = 0;
7327 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7328 int result;
7329 void *argp1 = 0 ;
7330 int res1 = 0 ;
7331 PyObject *swig_obj[1] ;
7332
7333 if (!args) SWIG_fail;
7334 swig_obj[0] = args;
7335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7336 if (!SWIG_IsOK(res1)) {
7337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7338 }
7339 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7340 {
7341 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7342 if (PyErr_Occurred()) SWIG_fail;
7343 }
7344 resultobj = SWIG_From_int(static_cast< int >(result));
7345 return resultobj;
7346fail:
7347 return NULL;
7348}
7349
7350
7351SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7352 PyObject *resultobj = 0;
7353 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7354 int result;
7355 void *argp1 = 0 ;
7356 int res1 = 0 ;
7357 PyObject *swig_obj[1] ;
7358
7359 if (!args) SWIG_fail;
7360 swig_obj[0] = args;
7361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7362 if (!SWIG_IsOK(res1)) {
7363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7364 }
7365 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7366 {
7367 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7368 if (PyErr_Occurred()) SWIG_fail;
7369 }
7370 resultobj = SWIG_From_int(static_cast< int >(result));
7371 return resultobj;
7372fail:
7373 return NULL;
7374}
7375
7376
7377SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7378 PyObject *resultobj = 0;
7379 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7380 wxSize result;
7381 void *argp1 = 0 ;
7382 int res1 = 0 ;
7383 PyObject *swig_obj[1] ;
7384
7385 if (!args) SWIG_fail;
7386 swig_obj[0] = args;
7387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7388 if (!SWIG_IsOK(res1)) {
7389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7390 }
7391 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7392 {
7393 result = ((wxPixelDataBase const *)arg1)->GetSize();
7394 if (PyErr_Occurred()) SWIG_fail;
7395 }
7396 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7397 return resultobj;
7398fail:
7399 return NULL;
7400}
7401
7402
7403SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7404 PyObject *resultobj = 0;
7405 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7406 int result;
7407 void *argp1 = 0 ;
7408 int res1 = 0 ;
7409 PyObject *swig_obj[1] ;
7410
7411 if (!args) SWIG_fail;
7412 swig_obj[0] = args;
7413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7414 if (!SWIG_IsOK(res1)) {
7415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7416 }
7417 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7418 {
7419 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7420 if (PyErr_Occurred()) SWIG_fail;
7421 }
7422 resultobj = SWIG_From_int(static_cast< int >(result));
7423 return resultobj;
7424fail:
7425 return NULL;
7426}
7427
7428
7429SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7430 PyObject *obj;
7431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7432 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7433 return SWIG_Py_Void();
7434}
7435
7436SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7437 PyObject *resultobj = 0;
7438 wxBitmap *arg1 = 0 ;
7439 wxNativePixelData *result = 0 ;
7440 void *argp1 = 0 ;
7441 int res1 = 0 ;
7442
7443 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7445 if (!SWIG_IsOK(res1)) {
7446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7447 }
7448 if (!argp1) {
7449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7450 }
7451 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7452 {
7453 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7454 if (PyErr_Occurred()) SWIG_fail;
7455 }
7456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7457 return resultobj;
7458fail:
7459 return NULL;
7460}
7461
7462
7463SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7464 PyObject *resultobj = 0;
7465 wxBitmap *arg1 = 0 ;
7466 wxRect *arg2 = 0 ;
7467 wxNativePixelData *result = 0 ;
7468 void *argp1 = 0 ;
7469 int res1 = 0 ;
7470 wxRect temp2 ;
7471
7472 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7474 if (!SWIG_IsOK(res1)) {
7475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7476 }
7477 if (!argp1) {
7478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7479 }
7480 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7481 {
7482 arg2 = &temp2;
7483 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7484 }
7485 {
7486 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7487 if (PyErr_Occurred()) SWIG_fail;
7488 }
7489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7490 return resultobj;
7491fail:
7492 return NULL;
7493}
7494
7495
7496SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7497 PyObject *resultobj = 0;
7498 wxBitmap *arg1 = 0 ;
7499 wxPoint *arg2 = 0 ;
7500 wxSize *arg3 = 0 ;
7501 wxNativePixelData *result = 0 ;
7502 void *argp1 = 0 ;
7503 int res1 = 0 ;
7504 wxPoint temp2 ;
7505 wxSize temp3 ;
7506
7507 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7509 if (!SWIG_IsOK(res1)) {
7510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7511 }
7512 if (!argp1) {
7513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7514 }
7515 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7516 {
7517 arg2 = &temp2;
7518 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7519 }
7520 {
7521 arg3 = &temp3;
7522 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7523 }
7524 {
7525 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7526 if (PyErr_Occurred()) SWIG_fail;
7527 }
7528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7529 return resultobj;
7530fail:
7531 return NULL;
7532}
7533
7534
7535SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7536 int argc;
7537 PyObject *argv[4];
7538
7539 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7540 --argc;
7541 if (argc == 1) {
7542 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7543 }
7544 if (argc == 2) {
7545 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7546 }
7547 if (argc == 3) {
7548 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7549 }
7550
7551fail:
7552 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7553 return NULL;
7554}
7555
7556
7557SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7558 PyObject *resultobj = 0;
7559 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7560 void *argp1 = 0 ;
7561 int res1 = 0 ;
7562 PyObject *swig_obj[1] ;
7563
7564 if (!args) SWIG_fail;
7565 swig_obj[0] = args;
7566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7567 if (!SWIG_IsOK(res1)) {
7568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7569 }
7570 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7571 {
7572 delete arg1;
7573
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_Py_Void();
7577 return resultobj;
7578fail:
7579 return NULL;
7580}
7581
7582
7583SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7584 PyObject *resultobj = 0;
7585 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7586 wxNativePixelData_Accessor result;
7587 void *argp1 = 0 ;
7588 int res1 = 0 ;
7589 PyObject *swig_obj[1] ;
7590
7591 if (!args) SWIG_fail;
7592 swig_obj[0] = args;
7593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7594 if (!SWIG_IsOK(res1)) {
7595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7596 }
7597 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7598 {
7599 result = ((wxNativePixelData const *)arg1)->GetPixels();
7600 if (PyErr_Occurred()) SWIG_fail;
7601 }
7602 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7603 return resultobj;
7604fail:
7605 return NULL;
7606}
7607
7608
7609SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7610 PyObject *resultobj = 0;
7611 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7612 void *argp1 = 0 ;
7613 int res1 = 0 ;
7614 PyObject *swig_obj[1] ;
7615
7616 if (!args) SWIG_fail;
7617 swig_obj[0] = args;
7618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7619 if (!SWIG_IsOK(res1)) {
7620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7621 }
7622 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7623 {
7624 (arg1)->UseAlpha();
7625 if (PyErr_Occurred()) SWIG_fail;
7626 }
7627 resultobj = SWIG_Py_Void();
7628 return resultobj;
7629fail:
7630 return NULL;
7631}
7632
7633
7634SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7635 PyObject *resultobj = 0;
7636 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7637 bool result;
7638 void *argp1 = 0 ;
7639 int res1 = 0 ;
7640 PyObject *swig_obj[1] ;
7641
7642 if (!args) SWIG_fail;
7643 swig_obj[0] = args;
7644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7645 if (!SWIG_IsOK(res1)) {
7646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7647 }
7648 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7649 {
7650 result = (bool)wxNativePixelData___nonzero__(arg1);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 {
7654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7655 }
7656 return resultobj;
7657fail:
7658 return NULL;
7659}
7660
7661
7662SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7663 PyObject *obj;
7664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7665 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7666 return SWIG_Py_Void();
7667}
7668
7669SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7670 return SWIG_Python_InitShadowInstance(args);
7671}
7672
7673SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7674 PyObject *resultobj = 0;
7675 wxNativePixelData *arg1 = 0 ;
7676 wxNativePixelData_Accessor *result = 0 ;
7677 void *argp1 = 0 ;
7678 int res1 = 0 ;
7679
7680 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7682 if (!SWIG_IsOK(res1)) {
7683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7684 }
7685 if (!argp1) {
7686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7687 }
7688 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7689 {
7690 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7694 return resultobj;
7695fail:
7696 return NULL;
7697}
7698
7699
7700SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7701 PyObject *resultobj = 0;
7702 wxBitmap *arg1 = 0 ;
7703 wxNativePixelData *arg2 = 0 ;
7704 wxNativePixelData_Accessor *result = 0 ;
7705 void *argp1 = 0 ;
7706 int res1 = 0 ;
7707 void *argp2 = 0 ;
7708 int res2 = 0 ;
7709
7710 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7712 if (!SWIG_IsOK(res1)) {
7713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7714 }
7715 if (!argp1) {
7716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7717 }
7718 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7719 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7720 if (!SWIG_IsOK(res2)) {
7721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7722 }
7723 if (!argp2) {
7724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7725 }
7726 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7727 {
7728 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7732 return resultobj;
7733fail:
7734 return NULL;
7735}
7736
7737
7738SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7739 PyObject *resultobj = 0;
7740 wxNativePixelData_Accessor *result = 0 ;
7741
7742 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7743 {
7744 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7745 if (PyErr_Occurred()) SWIG_fail;
7746 }
7747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7748 return resultobj;
7749fail:
7750 return NULL;
7751}
7752
7753
7754SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7755 int argc;
7756 PyObject *argv[3];
7757
7758 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7759 --argc;
7760 if (argc == 0) {
7761 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7762 }
7763 if (argc == 1) {
7764 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7765 }
7766 if (argc == 2) {
7767 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7768 }
7769
7770fail:
7771 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7772 return NULL;
7773}
7774
7775
7776SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7777 PyObject *resultobj = 0;
7778 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7779 void *argp1 = 0 ;
7780 int res1 = 0 ;
7781 PyObject *swig_obj[1] ;
7782
7783 if (!args) SWIG_fail;
7784 swig_obj[0] = args;
7785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7786 if (!SWIG_IsOK(res1)) {
7787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7788 }
7789 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7790 {
7791 delete arg1;
7792
7793 if (PyErr_Occurred()) SWIG_fail;
7794 }
7795 resultobj = SWIG_Py_Void();
7796 return resultobj;
7797fail:
7798 return NULL;
7799}
7800
7801
7802SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7803 PyObject *resultobj = 0;
7804 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7805 wxNativePixelData *arg2 = 0 ;
7806 void *argp1 = 0 ;
7807 int res1 = 0 ;
7808 void *argp2 = 0 ;
7809 int res2 = 0 ;
7810 PyObject * obj0 = 0 ;
7811 PyObject * obj1 = 0 ;
7812 char * kwnames[] = {
7813 (char *) "self",(char *) "data", NULL
7814 };
7815
7816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7818 if (!SWIG_IsOK(res1)) {
7819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7820 }
7821 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7822 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7823 if (!SWIG_IsOK(res2)) {
7824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7825 }
7826 if (!argp2) {
7827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7828 }
7829 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7830 {
7831 (arg1)->Reset((wxNativePixelData const &)*arg2);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_Py_Void();
7835 return resultobj;
7836fail:
7837 return NULL;
7838}
7839
7840
7841SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7842 PyObject *resultobj = 0;
7843 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7844 bool result;
7845 void *argp1 = 0 ;
7846 int res1 = 0 ;
7847 PyObject *swig_obj[1] ;
7848
7849 if (!args) SWIG_fail;
7850 swig_obj[0] = args;
7851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7852 if (!SWIG_IsOK(res1)) {
7853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7854 }
7855 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7856 {
7857 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7858 if (PyErr_Occurred()) SWIG_fail;
7859 }
7860 {
7861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7862 }
7863 return resultobj;
7864fail:
7865 return NULL;
7866}
7867
7868
7869SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7870 PyObject *resultobj = 0;
7871 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7872 void *argp1 = 0 ;
7873 int res1 = 0 ;
7874 PyObject *swig_obj[1] ;
7875
7876 if (!args) SWIG_fail;
7877 swig_obj[0] = args;
7878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7879 if (!SWIG_IsOK(res1)) {
7880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7881 }
7882 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7883 {
7884 wxNativePixelData_Accessor_nextPixel(arg1);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 resultobj = SWIG_Py_Void();
7888 return resultobj;
7889fail:
7890 return NULL;
7891}
7892
7893
7894SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7895 PyObject *resultobj = 0;
7896 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7897 wxNativePixelData *arg2 = 0 ;
7898 int arg3 ;
7899 int arg4 ;
7900 void *argp1 = 0 ;
7901 int res1 = 0 ;
7902 void *argp2 = 0 ;
7903 int res2 = 0 ;
7904 int val3 ;
7905 int ecode3 = 0 ;
7906 int val4 ;
7907 int ecode4 = 0 ;
7908 PyObject * obj0 = 0 ;
7909 PyObject * obj1 = 0 ;
7910 PyObject * obj2 = 0 ;
7911 PyObject * obj3 = 0 ;
7912 char * kwnames[] = {
7913 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7914 };
7915
7916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7918 if (!SWIG_IsOK(res1)) {
7919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7920 }
7921 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7923 if (!SWIG_IsOK(res2)) {
7924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7925 }
7926 if (!argp2) {
7927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7928 }
7929 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7930 ecode3 = SWIG_AsVal_int(obj2, &val3);
7931 if (!SWIG_IsOK(ecode3)) {
7932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7933 }
7934 arg3 = static_cast< int >(val3);
7935 ecode4 = SWIG_AsVal_int(obj3, &val4);
7936 if (!SWIG_IsOK(ecode4)) {
7937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7938 }
7939 arg4 = static_cast< int >(val4);
7940 {
7941 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7942 if (PyErr_Occurred()) SWIG_fail;
7943 }
7944 resultobj = SWIG_Py_Void();
7945 return resultobj;
7946fail:
7947 return NULL;
7948}
7949
7950
7951SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7952 PyObject *resultobj = 0;
7953 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7954 wxNativePixelData *arg2 = 0 ;
7955 int arg3 ;
7956 void *argp1 = 0 ;
7957 int res1 = 0 ;
7958 void *argp2 = 0 ;
7959 int res2 = 0 ;
7960 int val3 ;
7961 int ecode3 = 0 ;
7962 PyObject * obj0 = 0 ;
7963 PyObject * obj1 = 0 ;
7964 PyObject * obj2 = 0 ;
7965 char * kwnames[] = {
7966 (char *) "self",(char *) "data",(char *) "x", NULL
7967 };
7968
7969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7971 if (!SWIG_IsOK(res1)) {
7972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7973 }
7974 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7976 if (!SWIG_IsOK(res2)) {
7977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7978 }
7979 if (!argp2) {
7980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7981 }
7982 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7983 ecode3 = SWIG_AsVal_int(obj2, &val3);
7984 if (!SWIG_IsOK(ecode3)) {
7985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7986 }
7987 arg3 = static_cast< int >(val3);
7988 {
7989 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7990 if (PyErr_Occurred()) SWIG_fail;
7991 }
7992 resultobj = SWIG_Py_Void();
7993 return resultobj;
7994fail:
7995 return NULL;
7996}
7997
7998
7999SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8000 PyObject *resultobj = 0;
8001 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8002 wxNativePixelData *arg2 = 0 ;
8003 int arg3 ;
8004 void *argp1 = 0 ;
8005 int res1 = 0 ;
8006 void *argp2 = 0 ;
8007 int res2 = 0 ;
8008 int val3 ;
8009 int ecode3 = 0 ;
8010 PyObject * obj0 = 0 ;
8011 PyObject * obj1 = 0 ;
8012 PyObject * obj2 = 0 ;
8013 char * kwnames[] = {
8014 (char *) "self",(char *) "data",(char *) "y", NULL
8015 };
8016
8017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8019 if (!SWIG_IsOK(res1)) {
8020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8021 }
8022 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8023 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8024 if (!SWIG_IsOK(res2)) {
8025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8026 }
8027 if (!argp2) {
8028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8029 }
8030 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8031 ecode3 = SWIG_AsVal_int(obj2, &val3);
8032 if (!SWIG_IsOK(ecode3)) {
8033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8034 }
8035 arg3 = static_cast< int >(val3);
8036 {
8037 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8038 if (PyErr_Occurred()) SWIG_fail;
8039 }
8040 resultobj = SWIG_Py_Void();
8041 return resultobj;
8042fail:
8043 return NULL;
8044}
8045
8046
8047SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8048 PyObject *resultobj = 0;
8049 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8050 wxNativePixelData *arg2 = 0 ;
8051 int arg3 ;
8052 int arg4 ;
8053 void *argp1 = 0 ;
8054 int res1 = 0 ;
8055 void *argp2 = 0 ;
8056 int res2 = 0 ;
8057 int val3 ;
8058 int ecode3 = 0 ;
8059 int val4 ;
8060 int ecode4 = 0 ;
8061 PyObject * obj0 = 0 ;
8062 PyObject * obj1 = 0 ;
8063 PyObject * obj2 = 0 ;
8064 PyObject * obj3 = 0 ;
8065 char * kwnames[] = {
8066 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8067 };
8068
8069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8071 if (!SWIG_IsOK(res1)) {
8072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8073 }
8074 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8075 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8076 if (!SWIG_IsOK(res2)) {
8077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8078 }
8079 if (!argp2) {
8080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8081 }
8082 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8083 ecode3 = SWIG_AsVal_int(obj2, &val3);
8084 if (!SWIG_IsOK(ecode3)) {
8085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8086 }
8087 arg3 = static_cast< int >(val3);
8088 ecode4 = SWIG_AsVal_int(obj3, &val4);
8089 if (!SWIG_IsOK(ecode4)) {
8090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8091 }
8092 arg4 = static_cast< int >(val4);
8093 {
8094 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 resultobj = SWIG_Py_Void();
8098 return resultobj;
8099fail:
8100 return NULL;
8101}
8102
8103
8104SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8105 PyObject *resultobj = 0;
8106 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8107 byte arg2 ;
8108 byte arg3 ;
8109 byte arg4 ;
8110 void *argp1 = 0 ;
8111 int res1 = 0 ;
8112 unsigned char val2 ;
8113 int ecode2 = 0 ;
8114 unsigned char val3 ;
8115 int ecode3 = 0 ;
8116 unsigned char val4 ;
8117 int ecode4 = 0 ;
8118 PyObject * obj0 = 0 ;
8119 PyObject * obj1 = 0 ;
8120 PyObject * obj2 = 0 ;
8121 PyObject * obj3 = 0 ;
8122 char * kwnames[] = {
8123 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8124 };
8125
8126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8128 if (!SWIG_IsOK(res1)) {
8129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8130 }
8131 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8132 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8133 if (!SWIG_IsOK(ecode2)) {
8134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8135 }
8136 arg2 = static_cast< byte >(val2);
8137 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8138 if (!SWIG_IsOK(ecode3)) {
8139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8140 }
8141 arg3 = static_cast< byte >(val3);
8142 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8143 if (!SWIG_IsOK(ecode4)) {
8144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8145 }
8146 arg4 = static_cast< byte >(val4);
8147 {
8148 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 resultobj = SWIG_Py_Void();
8152 return resultobj;
8153fail:
8154 return NULL;
8155}
8156
8157
8158SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8159 PyObject *resultobj = 0;
8160 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8161 PyObject *result = 0 ;
8162 void *argp1 = 0 ;
8163 int res1 = 0 ;
8164 PyObject *swig_obj[1] ;
8165
8166 if (!args) SWIG_fail;
8167 swig_obj[0] = args;
8168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8169 if (!SWIG_IsOK(res1)) {
8170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8171 }
8172 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8173 {
8174 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 resultobj = result;
8178 return resultobj;
8179fail:
8180 return NULL;
8181}
8182
8183
8184SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8185 PyObject *obj;
8186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8187 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8188 return SWIG_Py_Void();
8189}
8190
8191SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8192 return SWIG_Python_InitShadowInstance(args);
8193}
8194
8195SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8196 PyObject *resultobj = 0;
8197 wxBitmap *arg1 = 0 ;
8198 wxAlphaPixelData *result = 0 ;
8199 void *argp1 = 0 ;
8200 int res1 = 0 ;
8201
8202 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8204 if (!SWIG_IsOK(res1)) {
8205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8206 }
8207 if (!argp1) {
8208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8209 }
8210 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8211 {
8212 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8213 if (PyErr_Occurred()) SWIG_fail;
8214 }
8215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8216 return resultobj;
8217fail:
8218 return NULL;
8219}
8220
8221
8222SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8223 PyObject *resultobj = 0;
8224 wxBitmap *arg1 = 0 ;
8225 wxRect *arg2 = 0 ;
8226 wxAlphaPixelData *result = 0 ;
8227 void *argp1 = 0 ;
8228 int res1 = 0 ;
8229 wxRect temp2 ;
8230
8231 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8233 if (!SWIG_IsOK(res1)) {
8234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8235 }
8236 if (!argp1) {
8237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8238 }
8239 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8240 {
8241 arg2 = &temp2;
8242 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8243 }
8244 {
8245 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8249 return resultobj;
8250fail:
8251 return NULL;
8252}
8253
8254
8255SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8256 PyObject *resultobj = 0;
8257 wxBitmap *arg1 = 0 ;
8258 wxPoint *arg2 = 0 ;
8259 wxSize *arg3 = 0 ;
8260 wxAlphaPixelData *result = 0 ;
8261 void *argp1 = 0 ;
8262 int res1 = 0 ;
8263 wxPoint temp2 ;
8264 wxSize temp3 ;
8265
8266 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8268 if (!SWIG_IsOK(res1)) {
8269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8270 }
8271 if (!argp1) {
8272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8273 }
8274 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8275 {
8276 arg2 = &temp2;
8277 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8278 }
8279 {
8280 arg3 = &temp3;
8281 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8282 }
8283 {
8284 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8288 return resultobj;
8289fail:
8290 return NULL;
8291}
8292
8293
8294SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8295 int argc;
8296 PyObject *argv[4];
8297
8298 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8299 --argc;
8300 if (argc == 1) {
8301 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8302 }
8303 if (argc == 2) {
8304 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8305 }
8306 if (argc == 3) {
8307 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8308 }
8309
8310fail:
8311 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8312 return NULL;
8313}
8314
8315
8316SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8317 PyObject *resultobj = 0;
8318 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8319 void *argp1 = 0 ;
8320 int res1 = 0 ;
8321 PyObject *swig_obj[1] ;
8322
8323 if (!args) SWIG_fail;
8324 swig_obj[0] = args;
8325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8326 if (!SWIG_IsOK(res1)) {
8327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8328 }
8329 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8330 {
8331 delete arg1;
8332
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 resultobj = SWIG_Py_Void();
8336 return resultobj;
8337fail:
8338 return NULL;
8339}
8340
8341
8342SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8343 PyObject *resultobj = 0;
8344 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8345 wxAlphaPixelData_Accessor result;
8346 void *argp1 = 0 ;
8347 int res1 = 0 ;
8348 PyObject *swig_obj[1] ;
8349
8350 if (!args) SWIG_fail;
8351 swig_obj[0] = args;
8352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8353 if (!SWIG_IsOK(res1)) {
8354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8355 }
8356 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8357 {
8358 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8359 if (PyErr_Occurred()) SWIG_fail;
8360 }
8361 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8362 return resultobj;
8363fail:
8364 return NULL;
8365}
8366
8367
8368SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8369 PyObject *resultobj = 0;
8370 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8371 void *argp1 = 0 ;
8372 int res1 = 0 ;
8373 PyObject *swig_obj[1] ;
8374
8375 if (!args) SWIG_fail;
8376 swig_obj[0] = args;
8377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8378 if (!SWIG_IsOK(res1)) {
8379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8380 }
8381 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8382 {
8383 (arg1)->UseAlpha();
8384 if (PyErr_Occurred()) SWIG_fail;
8385 }
8386 resultobj = SWIG_Py_Void();
8387 return resultobj;
8388fail:
8389 return NULL;
8390}
8391
8392
8393SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8394 PyObject *resultobj = 0;
8395 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8396 bool result;
8397 void *argp1 = 0 ;
8398 int res1 = 0 ;
8399 PyObject *swig_obj[1] ;
8400
8401 if (!args) SWIG_fail;
8402 swig_obj[0] = args;
8403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8404 if (!SWIG_IsOK(res1)) {
8405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8406 }
8407 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8408 {
8409 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8410 if (PyErr_Occurred()) SWIG_fail;
8411 }
8412 {
8413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8414 }
8415 return resultobj;
8416fail:
8417 return NULL;
8418}
8419
8420
8421SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8422 PyObject *obj;
8423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8424 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8425 return SWIG_Py_Void();
8426}
8427
8428SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8429 return SWIG_Python_InitShadowInstance(args);
8430}
8431
8432SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8433 PyObject *resultobj = 0;
8434 wxAlphaPixelData *arg1 = 0 ;
8435 wxAlphaPixelData_Accessor *result = 0 ;
8436 void *argp1 = 0 ;
8437 int res1 = 0 ;
8438
8439 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8441 if (!SWIG_IsOK(res1)) {
8442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8443 }
8444 if (!argp1) {
8445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8446 }
8447 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8448 {
8449 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8450 if (PyErr_Occurred()) SWIG_fail;
8451 }
8452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8453 return resultobj;
8454fail:
8455 return NULL;
8456}
8457
8458
8459SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8460 PyObject *resultobj = 0;
8461 wxBitmap *arg1 = 0 ;
8462 wxAlphaPixelData *arg2 = 0 ;
8463 wxAlphaPixelData_Accessor *result = 0 ;
8464 void *argp1 = 0 ;
8465 int res1 = 0 ;
8466 void *argp2 = 0 ;
8467 int res2 = 0 ;
8468
8469 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8471 if (!SWIG_IsOK(res1)) {
8472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8473 }
8474 if (!argp1) {
8475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8476 }
8477 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8478 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8479 if (!SWIG_IsOK(res2)) {
8480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8481 }
8482 if (!argp2) {
8483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8484 }
8485 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8486 {
8487 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8488 if (PyErr_Occurred()) SWIG_fail;
8489 }
8490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8491 return resultobj;
8492fail:
8493 return NULL;
8494}
8495
8496
8497SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8498 PyObject *resultobj = 0;
8499 wxAlphaPixelData_Accessor *result = 0 ;
8500
8501 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8502 {
8503 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8504 if (PyErr_Occurred()) SWIG_fail;
8505 }
8506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8507 return resultobj;
8508fail:
8509 return NULL;
8510}
8511
8512
8513SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8514 int argc;
8515 PyObject *argv[3];
8516
8517 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8518 --argc;
8519 if (argc == 0) {
8520 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8521 }
8522 if (argc == 1) {
8523 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8524 }
8525 if (argc == 2) {
8526 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8527 }
8528
8529fail:
8530 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8531 return NULL;
8532}
8533
8534
8535SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8536 PyObject *resultobj = 0;
8537 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8538 void *argp1 = 0 ;
8539 int res1 = 0 ;
8540 PyObject *swig_obj[1] ;
8541
8542 if (!args) SWIG_fail;
8543 swig_obj[0] = args;
8544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8545 if (!SWIG_IsOK(res1)) {
8546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8547 }
8548 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8549 {
8550 delete arg1;
8551
8552 if (PyErr_Occurred()) SWIG_fail;
8553 }
8554 resultobj = SWIG_Py_Void();
8555 return resultobj;
8556fail:
8557 return NULL;
8558}
8559
8560
8561SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8562 PyObject *resultobj = 0;
8563 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8564 wxAlphaPixelData *arg2 = 0 ;
8565 void *argp1 = 0 ;
8566 int res1 = 0 ;
8567 void *argp2 = 0 ;
8568 int res2 = 0 ;
8569 PyObject * obj0 = 0 ;
8570 PyObject * obj1 = 0 ;
8571 char * kwnames[] = {
8572 (char *) "self",(char *) "data", NULL
8573 };
8574
8575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8577 if (!SWIG_IsOK(res1)) {
8578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8579 }
8580 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8582 if (!SWIG_IsOK(res2)) {
8583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8584 }
8585 if (!argp2) {
8586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8587 }
8588 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8589 {
8590 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8591 if (PyErr_Occurred()) SWIG_fail;
8592 }
8593 resultobj = SWIG_Py_Void();
8594 return resultobj;
8595fail:
8596 return NULL;
8597}
8598
8599
8600SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8601 PyObject *resultobj = 0;
8602 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8603 bool result;
8604 void *argp1 = 0 ;
8605 int res1 = 0 ;
8606 PyObject *swig_obj[1] ;
8607
8608 if (!args) SWIG_fail;
8609 swig_obj[0] = args;
8610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8611 if (!SWIG_IsOK(res1)) {
8612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8613 }
8614 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8615 {
8616 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8617 if (PyErr_Occurred()) SWIG_fail;
8618 }
8619 {
8620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8621 }
8622 return resultobj;
8623fail:
8624 return NULL;
8625}
8626
8627
8628SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8629 PyObject *resultobj = 0;
8630 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8631 void *argp1 = 0 ;
8632 int res1 = 0 ;
8633 PyObject *swig_obj[1] ;
8634
8635 if (!args) SWIG_fail;
8636 swig_obj[0] = args;
8637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8638 if (!SWIG_IsOK(res1)) {
8639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8640 }
8641 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8642 {
8643 wxAlphaPixelData_Accessor_nextPixel(arg1);
8644 if (PyErr_Occurred()) SWIG_fail;
8645 }
8646 resultobj = SWIG_Py_Void();
8647 return resultobj;
8648fail:
8649 return NULL;
8650}
8651
8652
8653SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8654 PyObject *resultobj = 0;
8655 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8656 wxAlphaPixelData *arg2 = 0 ;
8657 int arg3 ;
8658 int arg4 ;
8659 void *argp1 = 0 ;
8660 int res1 = 0 ;
8661 void *argp2 = 0 ;
8662 int res2 = 0 ;
8663 int val3 ;
8664 int ecode3 = 0 ;
8665 int val4 ;
8666 int ecode4 = 0 ;
8667 PyObject * obj0 = 0 ;
8668 PyObject * obj1 = 0 ;
8669 PyObject * obj2 = 0 ;
8670 PyObject * obj3 = 0 ;
8671 char * kwnames[] = {
8672 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8673 };
8674
8675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8677 if (!SWIG_IsOK(res1)) {
8678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8679 }
8680 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8682 if (!SWIG_IsOK(res2)) {
8683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8684 }
8685 if (!argp2) {
8686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8687 }
8688 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8689 ecode3 = SWIG_AsVal_int(obj2, &val3);
8690 if (!SWIG_IsOK(ecode3)) {
8691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8692 }
8693 arg3 = static_cast< int >(val3);
8694 ecode4 = SWIG_AsVal_int(obj3, &val4);
8695 if (!SWIG_IsOK(ecode4)) {
8696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8697 }
8698 arg4 = static_cast< int >(val4);
8699 {
8700 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8701 if (PyErr_Occurred()) SWIG_fail;
8702 }
8703 resultobj = SWIG_Py_Void();
8704 return resultobj;
8705fail:
8706 return NULL;
8707}
8708
8709
8710SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8711 PyObject *resultobj = 0;
8712 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8713 wxAlphaPixelData *arg2 = 0 ;
8714 int arg3 ;
8715 void *argp1 = 0 ;
8716 int res1 = 0 ;
8717 void *argp2 = 0 ;
8718 int res2 = 0 ;
8719 int val3 ;
8720 int ecode3 = 0 ;
8721 PyObject * obj0 = 0 ;
8722 PyObject * obj1 = 0 ;
8723 PyObject * obj2 = 0 ;
8724 char * kwnames[] = {
8725 (char *) "self",(char *) "data",(char *) "x", NULL
8726 };
8727
8728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8730 if (!SWIG_IsOK(res1)) {
8731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8732 }
8733 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8735 if (!SWIG_IsOK(res2)) {
8736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8737 }
8738 if (!argp2) {
8739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8740 }
8741 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8742 ecode3 = SWIG_AsVal_int(obj2, &val3);
8743 if (!SWIG_IsOK(ecode3)) {
8744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8745 }
8746 arg3 = static_cast< int >(val3);
8747 {
8748 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 resultobj = SWIG_Py_Void();
8752 return resultobj;
8753fail:
8754 return NULL;
8755}
8756
8757
8758SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8759 PyObject *resultobj = 0;
8760 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8761 wxAlphaPixelData *arg2 = 0 ;
8762 int arg3 ;
8763 void *argp1 = 0 ;
8764 int res1 = 0 ;
8765 void *argp2 = 0 ;
8766 int res2 = 0 ;
8767 int val3 ;
8768 int ecode3 = 0 ;
8769 PyObject * obj0 = 0 ;
8770 PyObject * obj1 = 0 ;
8771 PyObject * obj2 = 0 ;
8772 char * kwnames[] = {
8773 (char *) "self",(char *) "data",(char *) "y", NULL
8774 };
8775
8776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8778 if (!SWIG_IsOK(res1)) {
8779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8780 }
8781 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8783 if (!SWIG_IsOK(res2)) {
8784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8785 }
8786 if (!argp2) {
8787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8788 }
8789 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8790 ecode3 = SWIG_AsVal_int(obj2, &val3);
8791 if (!SWIG_IsOK(ecode3)) {
8792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8793 }
8794 arg3 = static_cast< int >(val3);
8795 {
8796 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8797 if (PyErr_Occurred()) SWIG_fail;
8798 }
8799 resultobj = SWIG_Py_Void();
8800 return resultobj;
8801fail:
8802 return NULL;
8803}
8804
8805
8806SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8807 PyObject *resultobj = 0;
8808 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8809 wxAlphaPixelData *arg2 = 0 ;
8810 int arg3 ;
8811 int arg4 ;
8812 void *argp1 = 0 ;
8813 int res1 = 0 ;
8814 void *argp2 = 0 ;
8815 int res2 = 0 ;
8816 int val3 ;
8817 int ecode3 = 0 ;
8818 int val4 ;
8819 int ecode4 = 0 ;
8820 PyObject * obj0 = 0 ;
8821 PyObject * obj1 = 0 ;
8822 PyObject * obj2 = 0 ;
8823 PyObject * obj3 = 0 ;
8824 char * kwnames[] = {
8825 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8826 };
8827
8828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8830 if (!SWIG_IsOK(res1)) {
8831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8832 }
8833 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8835 if (!SWIG_IsOK(res2)) {
8836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8837 }
8838 if (!argp2) {
8839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8840 }
8841 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8842 ecode3 = SWIG_AsVal_int(obj2, &val3);
8843 if (!SWIG_IsOK(ecode3)) {
8844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8845 }
8846 arg3 = static_cast< int >(val3);
8847 ecode4 = SWIG_AsVal_int(obj3, &val4);
8848 if (!SWIG_IsOK(ecode4)) {
8849 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8850 }
8851 arg4 = static_cast< int >(val4);
8852 {
8853 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 resultobj = SWIG_Py_Void();
8857 return resultobj;
8858fail:
8859 return NULL;
8860}
8861
8862
8863SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8864 PyObject *resultobj = 0;
8865 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8866 byte arg2 ;
8867 byte arg3 ;
8868 byte arg4 ;
8869 byte arg5 ;
8870 void *argp1 = 0 ;
8871 int res1 = 0 ;
8872 unsigned char val2 ;
8873 int ecode2 = 0 ;
8874 unsigned char val3 ;
8875 int ecode3 = 0 ;
8876 unsigned char val4 ;
8877 int ecode4 = 0 ;
8878 unsigned char val5 ;
8879 int ecode5 = 0 ;
8880 PyObject * obj0 = 0 ;
8881 PyObject * obj1 = 0 ;
8882 PyObject * obj2 = 0 ;
8883 PyObject * obj3 = 0 ;
8884 PyObject * obj4 = 0 ;
8885 char * kwnames[] = {
8886 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8887 };
8888
8889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8891 if (!SWIG_IsOK(res1)) {
8892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8893 }
8894 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8895 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8896 if (!SWIG_IsOK(ecode2)) {
8897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8898 }
8899 arg2 = static_cast< byte >(val2);
8900 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8901 if (!SWIG_IsOK(ecode3)) {
8902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8903 }
8904 arg3 = static_cast< byte >(val3);
8905 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8906 if (!SWIG_IsOK(ecode4)) {
8907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8908 }
8909 arg4 = static_cast< byte >(val4);
8910 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8911 if (!SWIG_IsOK(ecode5)) {
8912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8913 }
8914 arg5 = static_cast< byte >(val5);
8915 {
8916 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8917 if (PyErr_Occurred()) SWIG_fail;
0085ce49 8918 }
fc46b7f3 8919 resultobj = SWIG_Py_Void();
0085ce49
RD
8920 return resultobj;
8921fail:
8922 return NULL;
8923}
8924
8925
fc46b7f3 8926SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8927 PyObject *resultobj = 0;
fc46b7f3
RD
8928 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8929 PyObject *result = 0 ;
0085ce49
RD
8930 void *argp1 = 0 ;
8931 int res1 = 0 ;
fc46b7f3 8932 PyObject *swig_obj[1] ;
0085ce49 8933
fc46b7f3
RD
8934 if (!args) SWIG_fail;
8935 swig_obj[0] = args;
8936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
0085ce49 8937 if (!SWIG_IsOK(res1)) {
fc46b7f3 8938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
0085ce49 8939 }
fc46b7f3 8940 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
0085ce49 8941 {
fc46b7f3 8942 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
0085ce49
RD
8943 if (PyErr_Occurred()) SWIG_fail;
8944 }
fc46b7f3 8945 resultobj = result;
0085ce49
RD
8946 return resultobj;
8947fail:
8948 return NULL;
d14a1e28
RD
8949}
8950
8951
fc46b7f3 8952SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8953 PyObject *obj;
8954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8955 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
0085ce49 8956 return SWIG_Py_Void();
b2df227b
RD
8957}
8958
fc46b7f3 8959SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8960 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8961}
8962
0085ce49
RD
8963SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8964 PyObject *resultobj = 0;
8965 wxBitmap *arg1 = 0 ;
8966 wxColour const &arg2_defvalue = wxNullColour ;
8967 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8968 wxMask *result = 0 ;
8969 void *argp1 = 0 ;
8970 int res1 = 0 ;
8971 wxColour temp2 ;
8972 PyObject * obj0 = 0 ;
8973 PyObject * obj1 = 0 ;
8974 char * kwnames[] = {
8975 (char *) "bitmap",(char *) "colour", NULL
8976 };
8977
8978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8979 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8980 if (!SWIG_IsOK(res1)) {
8981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8982 }
8983 if (!argp1) {
8984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8985 }
8986 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8987 if (obj1) {
d14a1e28 8988 {
0085ce49
RD
8989 arg2 = &temp2;
8990 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 8991 }
0085ce49
RD
8992 }
8993 {
8994 if (!wxPyCheckForApp()) SWIG_fail;
8995 PyThreadState* __tstate = wxPyBeginAllowThreads();
8996 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 }
9000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9001 return resultobj;
9002fail:
9003 return NULL;
d14a1e28
RD
9004}
9005
9006
0085ce49
RD
9007SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9008 PyObject *resultobj = 0;
9009 wxMask *arg1 = (wxMask *) 0 ;
9010 void *argp1 = 0 ;
9011 int res1 = 0 ;
9012 PyObject *swig_obj[1] ;
9013
9014 if (!args) SWIG_fail;
9015 swig_obj[0] = args;
9016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9017 if (!SWIG_IsOK(res1)) {
9018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9019 }
9020 arg1 = reinterpret_cast< wxMask * >(argp1);
9021 {
0085ce49 9022 delete arg1;
d14a1e28 9023
0085ce49
RD
9024 if (PyErr_Occurred()) SWIG_fail;
9025 }
9026 resultobj = SWIG_Py_Void();
9027 return resultobj;
9028fail:
9029 return NULL;
9030}
9031
9032
9033SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9034 PyObject *obj;
9035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9036 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9037 return SWIG_Py_Void();
9038}
9039
9040SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9041 return SWIG_Python_InitShadowInstance(args);
9042}
9043
9044SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9045 PyObject *resultobj = 0;
9046 wxString *arg1 = 0 ;
9047 wxBitmapType arg2 ;
9048 int arg3 = (int) -1 ;
9049 int arg4 = (int) -1 ;
9050 wxIcon *result = 0 ;
9051 bool temp1 = false ;
9052 int val2 ;
9053 int ecode2 = 0 ;
9054 int val3 ;
9055 int ecode3 = 0 ;
9056 int val4 ;
9057 int ecode4 = 0 ;
9058 PyObject * obj0 = 0 ;
9059 PyObject * obj1 = 0 ;
9060 PyObject * obj2 = 0 ;
9061 PyObject * obj3 = 0 ;
9062 char * kwnames[] = {
9063 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9064 };
9065
9066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9067 {
9068 arg1 = wxString_in_helper(obj0);
9069 if (arg1 == NULL) SWIG_fail;
9070 temp1 = true;
9071 }
9072 ecode2 = SWIG_AsVal_int(obj1, &val2);
9073 if (!SWIG_IsOK(ecode2)) {
9074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9075 }
9076 arg2 = static_cast< wxBitmapType >(val2);
9077 if (obj2) {
9078 ecode3 = SWIG_AsVal_int(obj2, &val3);
9079 if (!SWIG_IsOK(ecode3)) {
9080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9081 }
9082 arg3 = static_cast< int >(val3);
9083 }
9084 if (obj3) {
9085 ecode4 = SWIG_AsVal_int(obj3, &val4);
9086 if (!SWIG_IsOK(ecode4)) {
9087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9088 }
9089 arg4 = static_cast< int >(val4);
9090 }
9091 {
9092 if (!wxPyCheckForApp()) SWIG_fail;
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9095 wxPyEndAllowThreads(__tstate);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 }
9098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9099 {
9100 if (temp1)
9101 delete arg1;
9102 }
9103 return resultobj;
9104fail:
9105 {
9106 if (temp1)
9107 delete arg1;
9108 }
9109 return NULL;
d14a1e28
RD
9110}
9111
9112
0085ce49
RD
9113SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9114 PyObject *resultobj = 0;
9115 wxIcon *arg1 = (wxIcon *) 0 ;
9116 void *argp1 = 0 ;
9117 int res1 = 0 ;
9118 PyObject *swig_obj[1] ;
9119
9120 if (!args) SWIG_fail;
9121 swig_obj[0] = args;
9122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9123 if (!SWIG_IsOK(res1)) {
9124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9125 }
9126 arg1 = reinterpret_cast< wxIcon * >(argp1);
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 delete arg1;
d14a1e28 9130
0085ce49
RD
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 resultobj = SWIG_Py_Void();
9135 return resultobj;
9136fail:
9137 return NULL;
d14a1e28
RD
9138}
9139
9140
0085ce49
RD
9141SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9142 PyObject *resultobj = 0;
9143 wxIcon *result = 0 ;
9144
9145 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9146 {
9147 if (!wxPyCheckForApp()) SWIG_fail;
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 result = (wxIcon *)new wxIcon();
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9154 return resultobj;
9155fail:
9156 return NULL;
9157}
9158
9159
9160SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9161 PyObject *resultobj = 0;
9162 wxIconLocation *arg1 = 0 ;
9163 wxIcon *result = 0 ;
9164 void *argp1 = 0 ;
9165 int res1 = 0 ;
9166 PyObject * obj0 = 0 ;
9167 char * kwnames[] = {
9168 (char *) "loc", NULL
9169 };
9170
9171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9172 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9173 if (!SWIG_IsOK(res1)) {
9174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9175 }
9176 if (!argp1) {
9177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9178 }
9179 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9180 {
9181 if (!wxPyCheckForApp()) SWIG_fail;
9182 PyThreadState* __tstate = wxPyBeginAllowThreads();
9183 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9184 wxPyEndAllowThreads(__tstate);
9185 if (PyErr_Occurred()) SWIG_fail;
9186 }
9187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9188 return resultobj;
9189fail:
9190 return NULL;
9191}
9192
9193
9194SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9195 PyObject *resultobj = 0;
9196 wxBitmap *arg1 = 0 ;
9197 wxIcon *result = 0 ;
9198 void *argp1 = 0 ;
9199 int res1 = 0 ;
9200 PyObject * obj0 = 0 ;
9201 char * kwnames[] = {
9202 (char *) "bmp", NULL
9203 };
9204
9205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9206 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9207 if (!SWIG_IsOK(res1)) {
9208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9209 }
9210 if (!argp1) {
9211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9212 }
9213 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9214 {
9215 if (!wxPyCheckForApp()) SWIG_fail;
9216 PyThreadState* __tstate = wxPyBeginAllowThreads();
9217 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9218 wxPyEndAllowThreads(__tstate);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9222 return resultobj;
9223fail:
9224 return NULL;
d14a1e28
RD
9225}
9226
9227
0085ce49
RD
9228SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9229 PyObject *resultobj = 0;
9230 PyObject *arg1 = (PyObject *) 0 ;
9231 wxIcon *result = 0 ;
9232 PyObject * obj0 = 0 ;
9233 char * kwnames[] = {
9234 (char *) "listOfStrings", NULL
9235 };
9236
9237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9238 arg1 = obj0;
9239 {
9240 if (!wxPyCheckForApp()) SWIG_fail;
9241 PyThreadState* __tstate = wxPyBeginAllowThreads();
9242 result = (wxIcon *)new_wxIcon(arg1);
9243 wxPyEndAllowThreads(__tstate);
9244 if (PyErr_Occurred()) SWIG_fail;
9245 }
9246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9247 return resultobj;
9248fail:
9249 return NULL;
9250}
9251
9252
9253SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9254 PyObject *resultobj = 0;
9255 wxIcon *arg1 = (wxIcon *) 0 ;
9256 wxString *arg2 = 0 ;
9257 wxBitmapType arg3 ;
9258 bool result;
9259 void *argp1 = 0 ;
9260 int res1 = 0 ;
9261 bool temp2 = false ;
9262 int val3 ;
9263 int ecode3 = 0 ;
9264 PyObject * obj0 = 0 ;
9265 PyObject * obj1 = 0 ;
9266 PyObject * obj2 = 0 ;
9267 char * kwnames[] = {
9268 (char *) "self",(char *) "name",(char *) "type", NULL
9269 };
9270
9271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9273 if (!SWIG_IsOK(res1)) {
9274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9275 }
9276 arg1 = reinterpret_cast< wxIcon * >(argp1);
9277 {
9278 arg2 = wxString_in_helper(obj1);
9279 if (arg2 == NULL) SWIG_fail;
9280 temp2 = true;
9281 }
9282 ecode3 = SWIG_AsVal_int(obj2, &val3);
9283 if (!SWIG_IsOK(ecode3)) {
9284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9285 }
9286 arg3 = static_cast< wxBitmapType >(val3);
9287 {
9288 PyThreadState* __tstate = wxPyBeginAllowThreads();
9289 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9290 wxPyEndAllowThreads(__tstate);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 }
9293 {
9294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9295 }
9296 {
9297 if (temp2)
9298 delete arg2;
9299 }
9300 return resultobj;
9301fail:
9302 {
9303 if (temp2)
9304 delete arg2;
9305 }
9306 return NULL;
d14a1e28
RD
9307}
9308
9309
b39fe951 9310SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
9311 PyObject *resultobj = 0;
9312 wxIcon *arg1 = (wxIcon *) 0 ;
9313 bool result;
9314 void *argp1 = 0 ;
9315 int res1 = 0 ;
9316 PyObject *swig_obj[1] ;
9317
9318 if (!args) SWIG_fail;
9319 swig_obj[0] = args;
9320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9321 if (!SWIG_IsOK(res1)) {
b39fe951 9322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
0085ce49
RD
9323 }
9324 arg1 = reinterpret_cast< wxIcon * >(argp1);
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9327 result = (bool)(arg1)->IsOk();
0085ce49
RD
9328 wxPyEndAllowThreads(__tstate);
9329 if (PyErr_Occurred()) SWIG_fail;
9330 }
9331 {
9332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9333 }
9334 return resultobj;
9335fail:
9336 return NULL;
d14a1e28
RD
9337}
9338
9339
0085ce49
RD
9340SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9341 PyObject *resultobj = 0;
9342 wxIcon *arg1 = (wxIcon *) 0 ;
9343 int result;
9344 void *argp1 = 0 ;
9345 int res1 = 0 ;
9346 PyObject *swig_obj[1] ;
9347
9348 if (!args) SWIG_fail;
9349 swig_obj[0] = args;
9350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9351 if (!SWIG_IsOK(res1)) {
9352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9353 }
9354 arg1 = reinterpret_cast< wxIcon * >(argp1);
9355 {
9356 PyThreadState* __tstate = wxPyBeginAllowThreads();
9357 result = (int)(arg1)->GetWidth();
9358 wxPyEndAllowThreads(__tstate);
9359 if (PyErr_Occurred()) SWIG_fail;
9360 }
9361 resultobj = SWIG_From_int(static_cast< int >(result));
9362 return resultobj;
9363fail:
9364 return NULL;
d3b6e4ff
RD
9365}
9366
9367
0085ce49
RD
9368SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9369 PyObject *resultobj = 0;
9370 wxIcon *arg1 = (wxIcon *) 0 ;
9371 int result;
9372 void *argp1 = 0 ;
9373 int res1 = 0 ;
9374 PyObject *swig_obj[1] ;
9375
9376 if (!args) SWIG_fail;
9377 swig_obj[0] = args;
9378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9379 if (!SWIG_IsOK(res1)) {
9380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9381 }
9382 arg1 = reinterpret_cast< wxIcon * >(argp1);
9383 {
9384 PyThreadState* __tstate = wxPyBeginAllowThreads();
9385 result = (int)(arg1)->GetHeight();
9386 wxPyEndAllowThreads(__tstate);
9387 if (PyErr_Occurred()) SWIG_fail;
9388 }
9389 resultobj = SWIG_From_int(static_cast< int >(result));
9390 return resultobj;
9391fail:
9392 return NULL;
d14a1e28
RD
9393}
9394
9395
0085ce49
RD
9396SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9397 PyObject *resultobj = 0;
9398 wxIcon *arg1 = (wxIcon *) 0 ;
9399 int result;
9400 void *argp1 = 0 ;
9401 int res1 = 0 ;
9402 PyObject *swig_obj[1] ;
9403
9404 if (!args) SWIG_fail;
9405 swig_obj[0] = args;
9406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9407 if (!SWIG_IsOK(res1)) {
9408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9409 }
9410 arg1 = reinterpret_cast< wxIcon * >(argp1);
9411 {
9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
9413 result = (int)(arg1)->GetDepth();
9414 wxPyEndAllowThreads(__tstate);
9415 if (PyErr_Occurred()) SWIG_fail;
9416 }
9417 resultobj = SWIG_From_int(static_cast< int >(result));
9418 return resultobj;
9419fail:
9420 return NULL;
9421}
9422
9423
9424SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9425 PyObject *resultobj = 0;
9426 wxIcon *arg1 = (wxIcon *) 0 ;
9427 int arg2 ;
9428 void *argp1 = 0 ;
9429 int res1 = 0 ;
9430 int val2 ;
9431 int ecode2 = 0 ;
9432 PyObject * obj0 = 0 ;
9433 PyObject * obj1 = 0 ;
9434 char * kwnames[] = {
9435 (char *) "self",(char *) "w", NULL
9436 };
9437
9438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9440 if (!SWIG_IsOK(res1)) {
9441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9442 }
9443 arg1 = reinterpret_cast< wxIcon * >(argp1);
9444 ecode2 = SWIG_AsVal_int(obj1, &val2);
9445 if (!SWIG_IsOK(ecode2)) {
9446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9447 }
9448 arg2 = static_cast< int >(val2);
9449 {
9450 PyThreadState* __tstate = wxPyBeginAllowThreads();
9451 (arg1)->SetWidth(arg2);
9452 wxPyEndAllowThreads(__tstate);
9453 if (PyErr_Occurred()) SWIG_fail;
9454 }
9455 resultobj = SWIG_Py_Void();
9456 return resultobj;
9457fail:
9458 return NULL;
9459}
9460
9461
9462SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9463 PyObject *resultobj = 0;
9464 wxIcon *arg1 = (wxIcon *) 0 ;
9465 int arg2 ;
9466 void *argp1 = 0 ;
9467 int res1 = 0 ;
9468 int val2 ;
9469 int ecode2 = 0 ;
9470 PyObject * obj0 = 0 ;
9471 PyObject * obj1 = 0 ;
9472 char * kwnames[] = {
9473 (char *) "self",(char *) "h", NULL
9474 };
9475
9476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9478 if (!SWIG_IsOK(res1)) {
9479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9480 }
9481 arg1 = reinterpret_cast< wxIcon * >(argp1);
9482 ecode2 = SWIG_AsVal_int(obj1, &val2);
9483 if (!SWIG_IsOK(ecode2)) {
9484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9485 }
9486 arg2 = static_cast< int >(val2);
9487 {
9488 PyThreadState* __tstate = wxPyBeginAllowThreads();
9489 (arg1)->SetHeight(arg2);
9490 wxPyEndAllowThreads(__tstate);
9491 if (PyErr_Occurred()) SWIG_fail;
9492 }
9493 resultobj = SWIG_Py_Void();
9494 return resultobj;
9495fail:
9496 return NULL;
9497}
9498
9499
9500SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9501 PyObject *resultobj = 0;
9502 wxIcon *arg1 = (wxIcon *) 0 ;
9503 int arg2 ;
9504 void *argp1 = 0 ;
9505 int res1 = 0 ;
9506 int val2 ;
9507 int ecode2 = 0 ;
9508 PyObject * obj0 = 0 ;
9509 PyObject * obj1 = 0 ;
9510 char * kwnames[] = {
9511 (char *) "self",(char *) "d", NULL
9512 };
9513
9514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9516 if (!SWIG_IsOK(res1)) {
9517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9518 }
9519 arg1 = reinterpret_cast< wxIcon * >(argp1);
9520 ecode2 = SWIG_AsVal_int(obj1, &val2);
9521 if (!SWIG_IsOK(ecode2)) {
9522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9523 }
9524 arg2 = static_cast< int >(val2);
9525 {
9526 PyThreadState* __tstate = wxPyBeginAllowThreads();
9527 (arg1)->SetDepth(arg2);
9528 wxPyEndAllowThreads(__tstate);
9529 if (PyErr_Occurred()) SWIG_fail;
9530 }
9531 resultobj = SWIG_Py_Void();
9532 return resultobj;
9533fail:
9534 return NULL;
9535}
9536
9537
9538SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9539 PyObject *resultobj = 0;
9540 wxIcon *arg1 = (wxIcon *) 0 ;
9541 wxBitmap *arg2 = 0 ;
9542 void *argp1 = 0 ;
9543 int res1 = 0 ;
9544 void *argp2 = 0 ;
9545 int res2 = 0 ;
9546 PyObject * obj0 = 0 ;
9547 PyObject * obj1 = 0 ;
9548 char * kwnames[] = {
9549 (char *) "self",(char *) "bmp", NULL
9550 };
9551
9552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9554 if (!SWIG_IsOK(res1)) {
9555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9556 }
9557 arg1 = reinterpret_cast< wxIcon * >(argp1);
9558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9559 if (!SWIG_IsOK(res2)) {
9560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9561 }
9562 if (!argp2) {
9563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9564 }
9565 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9566 {
9567 PyThreadState* __tstate = wxPyBeginAllowThreads();
9568 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
9572 resultobj = SWIG_Py_Void();
9573 return resultobj;
9574fail:
9575 return NULL;
d14a1e28
RD
9576}
9577
9578
0085ce49
RD
9579SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9580 PyObject *obj;
9581 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9582 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9583 return SWIG_Py_Void();
d14a1e28
RD
9584}
9585
0085ce49
RD
9586SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9587 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9588}
9589
0085ce49
RD
9590SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9591 PyObject *resultobj = 0;
9592 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9593 int arg2 = (int) 0 ;
9594 wxIconLocation *result = 0 ;
9595 bool temp1 = false ;
9596 int val2 ;
9597 int ecode2 = 0 ;
9598 PyObject * obj0 = 0 ;
9599 PyObject * obj1 = 0 ;
9600 char * kwnames[] = {
9601 (char *) "filename",(char *) "num", NULL
9602 };
9603
9604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9605 if (obj0) {
b2df227b 9606 {
0085ce49
RD
9607 arg1 = wxString_in_helper(obj0);
9608 if (arg1 == NULL) SWIG_fail;
9609 temp1 = true;
b2df227b 9610 }
0085ce49
RD
9611 }
9612 if (obj1) {
9613 ecode2 = SWIG_AsVal_int(obj1, &val2);
9614 if (!SWIG_IsOK(ecode2)) {
9615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9616 }
9617 arg2 = static_cast< int >(val2);
9618 }
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9626 {
9627 if (temp1)
9628 delete arg1;
9629 }
9630 return resultobj;
9631fail:
9632 {
9633 if (temp1)
9634 delete arg1;
9635 }
9636 return NULL;
b2df227b
RD
9637}
9638
9639
0085ce49
RD
9640SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9641 PyObject *resultobj = 0;
9642 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9643 void *argp1 = 0 ;
9644 int res1 = 0 ;
9645 PyObject *swig_obj[1] ;
9646
9647 if (!args) SWIG_fail;
9648 swig_obj[0] = args;
9649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9650 if (!SWIG_IsOK(res1)) {
9651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9652 }
9653 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 delete arg1;
4276dc52 9657
0085ce49
RD
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 resultobj = SWIG_Py_Void();
9662 return resultobj;
9663fail:
9664 return NULL;
4276dc52
RD
9665}
9666
9667
0085ce49
RD
9668SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9669 PyObject *resultobj = 0;
9670 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9671 bool result;
9672 void *argp1 = 0 ;
9673 int res1 = 0 ;
9674 PyObject *swig_obj[1] ;
9675
9676 if (!args) SWIG_fail;
9677 swig_obj[0] = args;
9678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9679 if (!SWIG_IsOK(res1)) {
9680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9681 }
9682 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9683 {
9684 PyThreadState* __tstate = wxPyBeginAllowThreads();
9685 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9686 wxPyEndAllowThreads(__tstate);
9687 if (PyErr_Occurred()) SWIG_fail;
9688 }
9689 {
9690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9691 }
9692 return resultobj;
9693fail:
9694 return NULL;
9695}
9696
9697
9698SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj = 0;
9700 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9701 wxString *arg2 = 0 ;
9702 void *argp1 = 0 ;
9703 int res1 = 0 ;
9704 bool temp2 = false ;
9705 PyObject * obj0 = 0 ;
9706 PyObject * obj1 = 0 ;
9707 char * kwnames[] = {
9708 (char *) "self",(char *) "filename", NULL
9709 };
9710
9711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9713 if (!SWIG_IsOK(res1)) {
9714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9715 }
9716 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9717 {
9718 arg2 = wxString_in_helper(obj1);
9719 if (arg2 == NULL) SWIG_fail;
9720 temp2 = true;
9721 }
9722 {
9723 PyThreadState* __tstate = wxPyBeginAllowThreads();
9724 (arg1)->SetFileName((wxString const &)*arg2);
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 resultobj = SWIG_Py_Void();
9729 {
9730 if (temp2)
9731 delete arg2;
9732 }
9733 return resultobj;
9734fail:
9735 {
9736 if (temp2)
9737 delete arg2;
9738 }
9739 return NULL;
4276dc52
RD
9740}
9741
9742
0085ce49
RD
9743SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9744 PyObject *resultobj = 0;
9745 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9746 wxString *result = 0 ;
9747 void *argp1 = 0 ;
9748 int res1 = 0 ;
9749 PyObject *swig_obj[1] ;
9750
9751 if (!args) SWIG_fail;
9752 swig_obj[0] = args;
9753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9754 if (!SWIG_IsOK(res1)) {
9755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9756 }
9757 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9758 {
9759 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9760 {
0085ce49
RD
9761 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9762 result = (wxString *) &_result_ref;
093d3ff1 9763 }
0085ce49
RD
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 {
9768#if wxUSE_UNICODE
9769 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9770#else
9771 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9772#endif
9773 }
9774 return resultobj;
9775fail:
9776 return NULL;
9777}
9778
9779
9780SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9781 PyObject *resultobj = 0;
9782 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9783 int arg2 ;
9784 void *argp1 = 0 ;
9785 int res1 = 0 ;
9786 int val2 ;
9787 int ecode2 = 0 ;
9788 PyObject * obj0 = 0 ;
9789 PyObject * obj1 = 0 ;
9790 char * kwnames[] = {
9791 (char *) "self",(char *) "num", NULL
9792 };
9793
9794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9796 if (!SWIG_IsOK(res1)) {
9797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9798 }
9799 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9800 ecode2 = SWIG_AsVal_int(obj1, &val2);
9801 if (!SWIG_IsOK(ecode2)) {
9802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9803 }
9804 arg2 = static_cast< int >(val2);
9805 {
9806 PyThreadState* __tstate = wxPyBeginAllowThreads();
9807 wxIconLocation_SetIndex(arg1,arg2);
9808 wxPyEndAllowThreads(__tstate);
9809 if (PyErr_Occurred()) SWIG_fail;
9810 }
9811 resultobj = SWIG_Py_Void();
9812 return resultobj;
9813fail:
9814 return NULL;
d14a1e28
RD
9815}
9816
9817
0085ce49
RD
9818SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9819 PyObject *resultobj = 0;
9820 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9821 int result;
9822 void *argp1 = 0 ;
9823 int res1 = 0 ;
9824 PyObject *swig_obj[1] ;
9825
9826 if (!args) SWIG_fail;
9827 swig_obj[0] = args;
9828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9829 if (!SWIG_IsOK(res1)) {
9830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9831 }
9832 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9833 {
9834 PyThreadState* __tstate = wxPyBeginAllowThreads();
9835 result = (int)wxIconLocation_GetIndex(arg1);
9836 wxPyEndAllowThreads(__tstate);
9837 if (PyErr_Occurred()) SWIG_fail;
9838 }
9839 resultobj = SWIG_From_int(static_cast< int >(result));
9840 return resultobj;
9841fail:
9842 return NULL;
d14a1e28
RD
9843}
9844
9845
0085ce49
RD
9846SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9847 PyObject *obj;
9848 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9849 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9850 return SWIG_Py_Void();
d14a1e28
RD
9851}
9852
0085ce49
RD
9853SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9854 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9855}
9856
0085ce49
RD
9857SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9858 PyObject *resultobj = 0;
9859 wxIconBundle *result = 0 ;
9860
9861 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
9864 result = (wxIconBundle *)new wxIconBundle();
9865 wxPyEndAllowThreads(__tstate);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 }
9868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9869 return resultobj;
9870fail:
9871 return NULL;
9872}
9873
9874
9875SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9876 PyObject *resultobj = 0;
9877 wxString *arg1 = 0 ;
9878 long arg2 ;
9879 wxIconBundle *result = 0 ;
9880 bool temp1 = false ;
9881 long val2 ;
9882 int ecode2 = 0 ;
9883 PyObject * obj0 = 0 ;
9884 PyObject * obj1 = 0 ;
9885 char * kwnames[] = {
9886 (char *) "file",(char *) "type", NULL
9887 };
9888
9889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9890 {
9891 arg1 = wxString_in_helper(obj0);
9892 if (arg1 == NULL) SWIG_fail;
9893 temp1 = true;
9894 }
9895 ecode2 = SWIG_AsVal_long(obj1, &val2);
9896 if (!SWIG_IsOK(ecode2)) {
9897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9898 }
9899 arg2 = static_cast< long >(val2);
9900 {
9901 PyThreadState* __tstate = wxPyBeginAllowThreads();
9902 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9903 wxPyEndAllowThreads(__tstate);
9904 if (PyErr_Occurred()) SWIG_fail;
9905 }
9906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9907 {
9908 if (temp1)
9909 delete arg1;
9910 }
9911 return resultobj;
9912fail:
9913 {
9914 if (temp1)
9915 delete arg1;
9916 }
9917 return NULL;
d14a1e28
RD
9918}
9919
9920
0085ce49
RD
9921SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj = 0;
9923 wxIcon *arg1 = 0 ;
9924 wxIconBundle *result = 0 ;
9925 void *argp1 = 0 ;
9926 int res1 = 0 ;
9927 PyObject * obj0 = 0 ;
9928 char * kwnames[] = {
9929 (char *) "icon", NULL
9930 };
9931
9932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9933 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9934 if (!SWIG_IsOK(res1)) {
9935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9936 }
9937 if (!argp1) {
9938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9939 }
9940 arg1 = reinterpret_cast< wxIcon * >(argp1);
9941 {
9942 PyThreadState* __tstate = wxPyBeginAllowThreads();
9943 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9944 wxPyEndAllowThreads(__tstate);
9945 if (PyErr_Occurred()) SWIG_fail;
9946 }
9947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9948 return resultobj;
9949fail:
9950 return NULL;
d14a1e28
RD
9951}
9952
9953
0085ce49
RD
9954SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9955 PyObject *resultobj = 0;
9956 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9957 void *argp1 = 0 ;
9958 int res1 = 0 ;
9959 PyObject *swig_obj[1] ;
9960
9961 if (!args) SWIG_fail;
9962 swig_obj[0] = args;
9963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9964 if (!SWIG_IsOK(res1)) {
9965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9966 }
9967 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9968 {
9969 PyThreadState* __tstate = wxPyBeginAllowThreads();
9970 delete arg1;
d14a1e28 9971
0085ce49
RD
9972 wxPyEndAllowThreads(__tstate);
9973 if (PyErr_Occurred()) SWIG_fail;
9974 }
9975 resultobj = SWIG_Py_Void();
9976 return resultobj;
9977fail:
9978 return NULL;
9979}
9980
9981
9982SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9983 PyObject *resultobj = 0;
9984 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9985 wxIcon *arg2 = 0 ;
9986 void *argp1 = 0 ;
9987 int res1 = 0 ;
9988 void *argp2 = 0 ;
9989 int res2 = 0 ;
9990 PyObject * obj0 = 0 ;
9991 PyObject * obj1 = 0 ;
9992 char * kwnames[] = {
9993 (char *) "self",(char *) "icon", NULL
9994 };
9995
9996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9998 if (!SWIG_IsOK(res1)) {
9999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10000 }
10001 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10002 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10003 if (!SWIG_IsOK(res2)) {
10004 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10005 }
10006 if (!argp2) {
10007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10008 }
10009 arg2 = reinterpret_cast< wxIcon * >(argp2);
10010 {
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 (arg1)->AddIcon((wxIcon const &)*arg2);
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 resultobj = SWIG_Py_Void();
10017 return resultobj;
10018fail:
10019 return NULL;
10020}
10021
10022
10023SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10024 PyObject *resultobj = 0;
10025 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10026 wxString *arg2 = 0 ;
10027 long arg3 ;
10028 void *argp1 = 0 ;
10029 int res1 = 0 ;
10030 bool temp2 = false ;
10031 long val3 ;
10032 int ecode3 = 0 ;
10033 PyObject * obj0 = 0 ;
10034 PyObject * obj1 = 0 ;
10035 PyObject * obj2 = 0 ;
10036 char * kwnames[] = {
10037 (char *) "self",(char *) "file",(char *) "type", NULL
10038 };
10039
10040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10042 if (!SWIG_IsOK(res1)) {
10043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10044 }
10045 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10046 {
10047 arg2 = wxString_in_helper(obj1);
10048 if (arg2 == NULL) SWIG_fail;
10049 temp2 = true;
10050 }
10051 ecode3 = SWIG_AsVal_long(obj2, &val3);
10052 if (!SWIG_IsOK(ecode3)) {
10053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10054 }
10055 arg3 = static_cast< long >(val3);
10056 {
10057 PyThreadState* __tstate = wxPyBeginAllowThreads();
10058 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10059 wxPyEndAllowThreads(__tstate);
10060 if (PyErr_Occurred()) SWIG_fail;
10061 }
10062 resultobj = SWIG_Py_Void();
10063 {
10064 if (temp2)
10065 delete arg2;
10066 }
10067 return resultobj;
10068fail:
10069 {
10070 if (temp2)
10071 delete arg2;
10072 }
10073 return NULL;
10074}
10075
10076
10077SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10078 PyObject *resultobj = 0;
10079 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10080 wxSize *arg2 = 0 ;
10081 wxIcon *result = 0 ;
10082 void *argp1 = 0 ;
10083 int res1 = 0 ;
10084 wxSize temp2 ;
10085 PyObject * obj0 = 0 ;
10086 PyObject * obj1 = 0 ;
10087 char * kwnames[] = {
10088 (char *) "self",(char *) "size", NULL
10089 };
10090
10091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10093 if (!SWIG_IsOK(res1)) {
10094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10095 }
10096 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10097 {
10098 arg2 = &temp2;
10099 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10100 }
10101 {
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 10103 {
0085ce49
RD
10104 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10105 result = (wxIcon *) &_result_ref;
d14a1e28 10106 }
0085ce49
RD
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 {
10111 wxIcon* resultptr = new wxIcon(*result);
10112 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10113 }
10114 return resultobj;
10115fail:
10116 return NULL;
10117}
10118
10119
10120SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10121 PyObject *obj;
10122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10123 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10124 return SWIG_Py_Void();
10125}
10126
10127SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10128 return SWIG_Python_InitShadowInstance(args);
10129}
10130
10131SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10132 PyObject *resultobj = 0;
10133 wxString *arg1 = 0 ;
10134 long arg2 ;
10135 int arg3 = (int) 0 ;
10136 int arg4 = (int) 0 ;
10137 wxCursor *result = 0 ;
10138 bool temp1 = false ;
10139 long val2 ;
10140 int ecode2 = 0 ;
10141 int val3 ;
10142 int ecode3 = 0 ;
10143 int val4 ;
10144 int ecode4 = 0 ;
10145 PyObject * obj0 = 0 ;
10146 PyObject * obj1 = 0 ;
10147 PyObject * obj2 = 0 ;
10148 PyObject * obj3 = 0 ;
10149 char * kwnames[] = {
10150 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10151 };
10152
10153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10154 {
10155 arg1 = wxString_in_helper(obj0);
10156 if (arg1 == NULL) SWIG_fail;
10157 temp1 = true;
10158 }
10159 ecode2 = SWIG_AsVal_long(obj1, &val2);
10160 if (!SWIG_IsOK(ecode2)) {
10161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10162 }
10163 arg2 = static_cast< long >(val2);
10164 if (obj2) {
10165 ecode3 = SWIG_AsVal_int(obj2, &val3);
10166 if (!SWIG_IsOK(ecode3)) {
10167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10168 }
10169 arg3 = static_cast< int >(val3);
10170 }
10171 if (obj3) {
10172 ecode4 = SWIG_AsVal_int(obj3, &val4);
10173 if (!SWIG_IsOK(ecode4)) {
10174 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10175 }
10176 arg4 = static_cast< int >(val4);
10177 }
10178 {
10179 if (!wxPyCheckForApp()) SWIG_fail;
10180 PyThreadState* __tstate = wxPyBeginAllowThreads();
10181 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10182 wxPyEndAllowThreads(__tstate);
10183 if (PyErr_Occurred()) SWIG_fail;
10184 }
10185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10186 {
10187 if (temp1)
10188 delete arg1;
10189 }
10190 return resultobj;
10191fail:
10192 {
10193 if (temp1)
10194 delete arg1;
10195 }
10196 return NULL;
d14a1e28
RD
10197}
10198
10199
0085ce49
RD
10200SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10201 PyObject *resultobj = 0;
10202 wxCursor *arg1 = (wxCursor *) 0 ;
10203 void *argp1 = 0 ;
10204 int res1 = 0 ;
10205 PyObject *swig_obj[1] ;
10206
10207 if (!args) SWIG_fail;
10208 swig_obj[0] = args;
10209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10210 if (!SWIG_IsOK(res1)) {
10211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10212 }
10213 arg1 = reinterpret_cast< wxCursor * >(argp1);
10214 {
10215 PyThreadState* __tstate = wxPyBeginAllowThreads();
10216 delete arg1;
093d3ff1 10217
0085ce49
RD
10218 wxPyEndAllowThreads(__tstate);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 resultobj = SWIG_Py_Void();
10222 return resultobj;
10223fail:
10224 return NULL;
10225}
10226
10227
10228SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10229 PyObject *resultobj = 0;
10230 int arg1 ;
10231 wxCursor *result = 0 ;
10232 int val1 ;
10233 int ecode1 = 0 ;
10234 PyObject * obj0 = 0 ;
10235 char * kwnames[] = {
10236 (char *) "id", NULL
10237 };
10238
10239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10240 ecode1 = SWIG_AsVal_int(obj0, &val1);
10241 if (!SWIG_IsOK(ecode1)) {
10242 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10243 }
10244 arg1 = static_cast< int >(val1);
10245 {
10246 if (!wxPyCheckForApp()) SWIG_fail;
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (wxCursor *)new wxCursor(arg1);
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10253 return resultobj;
10254fail:
10255 return NULL;
10256}
10257
10258
10259SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10260 PyObject *resultobj = 0;
10261 wxImage *arg1 = 0 ;
10262 wxCursor *result = 0 ;
10263 void *argp1 = 0 ;
10264 int res1 = 0 ;
10265 PyObject * obj0 = 0 ;
10266 char * kwnames[] = {
10267 (char *) "image", NULL
10268 };
10269
10270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10271 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10272 if (!SWIG_IsOK(res1)) {
10273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10274 }
10275 if (!argp1) {
10276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10277 }
10278 arg1 = reinterpret_cast< wxImage * >(argp1);
10279 {
10280 if (!wxPyCheckForApp()) SWIG_fail;
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10287 return resultobj;
10288fail:
10289 return NULL;
093d3ff1
RD
10290}
10291
10292
b39fe951 10293SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
10294 PyObject *resultobj = 0;
10295 wxCursor *arg1 = (wxCursor *) 0 ;
10296 bool result;
10297 void *argp1 = 0 ;
10298 int res1 = 0 ;
10299 PyObject *swig_obj[1] ;
10300
10301 if (!args) SWIG_fail;
10302 swig_obj[0] = args;
10303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10304 if (!SWIG_IsOK(res1)) {
b39fe951 10305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
0085ce49
RD
10306 }
10307 arg1 = reinterpret_cast< wxCursor * >(argp1);
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10310 result = (bool)(arg1)->IsOk();
0085ce49
RD
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 {
10315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10316 }
10317 return resultobj;
10318fail:
10319 return NULL;
10320}
10321
10322
10323SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10324 PyObject *obj;
10325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10326 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10327 return SWIG_Py_Void();
10328}
10329
10330SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10331 return SWIG_Python_InitShadowInstance(args);
10332}
10333
10334SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10335 PyObject *resultobj = 0;
10336 int arg1 = (int) 0 ;
10337 int arg2 = (int) 0 ;
10338 int arg3 = (int) 0 ;
10339 int arg4 = (int) 0 ;
10340 wxRegion *result = 0 ;
10341 int val1 ;
10342 int ecode1 = 0 ;
10343 int val2 ;
10344 int ecode2 = 0 ;
10345 int val3 ;
10346 int ecode3 = 0 ;
10347 int val4 ;
10348 int ecode4 = 0 ;
10349 PyObject * obj0 = 0 ;
10350 PyObject * obj1 = 0 ;
10351 PyObject * obj2 = 0 ;
10352 PyObject * obj3 = 0 ;
10353 char * kwnames[] = {
10354 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10355 };
10356
10357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10358 if (obj0) {
10359 ecode1 = SWIG_AsVal_int(obj0, &val1);
10360 if (!SWIG_IsOK(ecode1)) {
10361 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10362 }
10363 arg1 = static_cast< int >(val1);
10364 }
10365 if (obj1) {
10366 ecode2 = SWIG_AsVal_int(obj1, &val2);
10367 if (!SWIG_IsOK(ecode2)) {
10368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10369 }
10370 arg2 = static_cast< int >(val2);
10371 }
10372 if (obj2) {
10373 ecode3 = SWIG_AsVal_int(obj2, &val3);
10374 if (!SWIG_IsOK(ecode3)) {
10375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10376 }
10377 arg3 = static_cast< int >(val3);
10378 }
10379 if (obj3) {
10380 ecode4 = SWIG_AsVal_int(obj3, &val4);
10381 if (!SWIG_IsOK(ecode4)) {
10382 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10383 }
10384 arg4 = static_cast< int >(val4);
10385 }
10386 {
10387 if (!wxPyCheckForApp()) SWIG_fail;
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10390 wxPyEndAllowThreads(__tstate);
10391 if (PyErr_Occurred()) SWIG_fail;
10392 }
10393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10394 return resultobj;
10395fail:
10396 return NULL;
10397}
10398
10399
10400SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10401 PyObject *resultobj = 0;
10402 wxBitmap *arg1 = 0 ;
10403 wxRegion *result = 0 ;
10404 void *argp1 = 0 ;
10405 int res1 = 0 ;
10406 PyObject * obj0 = 0 ;
10407 char * kwnames[] = {
10408 (char *) "bmp", NULL
10409 };
10410
10411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10412 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10413 if (!SWIG_IsOK(res1)) {
10414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10415 }
10416 if (!argp1) {
10417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10418 }
10419 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10420 {
10421 if (!wxPyCheckForApp()) SWIG_fail;
10422 PyThreadState* __tstate = wxPyBeginAllowThreads();
10423 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10424 wxPyEndAllowThreads(__tstate);
10425 if (PyErr_Occurred()) SWIG_fail;
10426 }
10427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10428 return resultobj;
10429fail:
10430 return NULL;
10431}
10432
10433
10434SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10435 PyObject *resultobj = 0;
10436 wxBitmap *arg1 = 0 ;
10437 wxColour *arg2 = 0 ;
10438 int arg3 = (int) 0 ;
10439 wxRegion *result = 0 ;
10440 void *argp1 = 0 ;
10441 int res1 = 0 ;
10442 wxColour temp2 ;
10443 int val3 ;
10444 int ecode3 = 0 ;
10445 PyObject * obj0 = 0 ;
10446 PyObject * obj1 = 0 ;
10447 PyObject * obj2 = 0 ;
10448 char * kwnames[] = {
10449 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10450 };
10451
10452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10453 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10454 if (!SWIG_IsOK(res1)) {
10455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10456 }
10457 if (!argp1) {
10458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10459 }
10460 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10461 {
10462 arg2 = &temp2;
10463 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10464 }
10465 if (obj2) {
10466 ecode3 = SWIG_AsVal_int(obj2, &val3);
10467 if (!SWIG_IsOK(ecode3)) {
10468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10469 }
10470 arg3 = static_cast< int >(val3);
10471 }
10472 {
10473 if (!wxPyCheckForApp()) SWIG_fail;
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10480 return resultobj;
10481fail:
10482 return NULL;
10483}
10484
10485
10486SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10487 PyObject *resultobj = 0;
10488 int arg1 ;
10489 wxPoint *arg2 = (wxPoint *) 0 ;
10490 int arg3 = (int) wxWINDING_RULE ;
10491 wxRegion *result = 0 ;
10492 int val3 ;
10493 int ecode3 = 0 ;
10494 PyObject * obj0 = 0 ;
10495 PyObject * obj1 = 0 ;
10496 char * kwnames[] = {
10497 (char *) "points",(char *) "fillStyle", NULL
10498 };
10499
10500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10501 {
10502 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10503 if (arg2 == NULL) SWIG_fail;
10504 }
10505 if (obj1) {
10506 ecode3 = SWIG_AsVal_int(obj1, &val3);
10507 if (!SWIG_IsOK(ecode3)) {
10508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10509 }
10510 arg3 = static_cast< int >(val3);
10511 }
10512 {
10513 if (!wxPyCheckForApp()) SWIG_fail;
10514 PyThreadState* __tstate = wxPyBeginAllowThreads();
10515 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10516 wxPyEndAllowThreads(__tstate);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10520 {
10521 if (arg2) delete [] arg2;
10522 }
10523 return resultobj;
10524fail:
10525 {
10526 if (arg2) delete [] arg2;
10527 }
10528 return NULL;
d14a1e28
RD
10529}
10530
10531
0085ce49
RD
10532SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10533 PyObject *resultobj = 0;
10534 wxRegion *arg1 = (wxRegion *) 0 ;
10535 void *argp1 = 0 ;
10536 int res1 = 0 ;
10537 PyObject *swig_obj[1] ;
10538
10539 if (!args) SWIG_fail;
10540 swig_obj[0] = args;
10541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10542 if (!SWIG_IsOK(res1)) {
10543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10544 }
10545 arg1 = reinterpret_cast< wxRegion * >(argp1);
10546 {
10547 PyThreadState* __tstate = wxPyBeginAllowThreads();
10548 delete arg1;
d14a1e28 10549
0085ce49
RD
10550 wxPyEndAllowThreads(__tstate);
10551 if (PyErr_Occurred()) SWIG_fail;
10552 }
10553 resultobj = SWIG_Py_Void();
10554 return resultobj;
10555fail:
10556 return NULL;
d14a1e28
RD
10557}
10558
10559
0085ce49
RD
10560SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10561 PyObject *resultobj = 0;
10562 wxRegion *arg1 = (wxRegion *) 0 ;
10563 void *argp1 = 0 ;
10564 int res1 = 0 ;
10565 PyObject *swig_obj[1] ;
10566
10567 if (!args) SWIG_fail;
10568 swig_obj[0] = args;
10569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10570 if (!SWIG_IsOK(res1)) {
10571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10572 }
10573 arg1 = reinterpret_cast< wxRegion * >(argp1);
10574 {
10575 PyThreadState* __tstate = wxPyBeginAllowThreads();
10576 (arg1)->Clear();
10577 wxPyEndAllowThreads(__tstate);
10578 if (PyErr_Occurred()) SWIG_fail;
10579 }
10580 resultobj = SWIG_Py_Void();
10581 return resultobj;
10582fail:
10583 return NULL;
10584}
10585
10586
10587SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10588 PyObject *resultobj = 0;
10589 wxRegion *arg1 = (wxRegion *) 0 ;
10590 int arg2 ;
10591 int arg3 ;
10592 bool result;
10593 void *argp1 = 0 ;
10594 int res1 = 0 ;
10595 int val2 ;
10596 int ecode2 = 0 ;
10597 int val3 ;
10598 int ecode3 = 0 ;
10599 PyObject * obj0 = 0 ;
10600 PyObject * obj1 = 0 ;
10601 PyObject * obj2 = 0 ;
10602 char * kwnames[] = {
10603 (char *) "self",(char *) "x",(char *) "y", NULL
10604 };
10605
10606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10608 if (!SWIG_IsOK(res1)) {
10609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10610 }
10611 arg1 = reinterpret_cast< wxRegion * >(argp1);
10612 ecode2 = SWIG_AsVal_int(obj1, &val2);
10613 if (!SWIG_IsOK(ecode2)) {
10614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10615 }
10616 arg2 = static_cast< int >(val2);
10617 ecode3 = SWIG_AsVal_int(obj2, &val3);
10618 if (!SWIG_IsOK(ecode3)) {
10619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10620 }
10621 arg3 = static_cast< int >(val3);
10622 {
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 result = (bool)(arg1)->Offset(arg2,arg3);
10625 wxPyEndAllowThreads(__tstate);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 }
10628 {
10629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10630 }
10631 return resultobj;
10632fail:
10633 return NULL;
10634}
10635
10636
10637SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10638 PyObject *resultobj = 0;
10639 wxRegion *arg1 = (wxRegion *) 0 ;
10640 int arg2 ;
10641 int arg3 ;
10642 wxRegionContain result;
10643 void *argp1 = 0 ;
10644 int res1 = 0 ;
10645 int val2 ;
10646 int ecode2 = 0 ;
10647 int val3 ;
10648 int ecode3 = 0 ;
10649 PyObject * obj0 = 0 ;
10650 PyObject * obj1 = 0 ;
10651 PyObject * obj2 = 0 ;
10652 char * kwnames[] = {
10653 (char *) "self",(char *) "x",(char *) "y", NULL
10654 };
10655
10656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10658 if (!SWIG_IsOK(res1)) {
10659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10660 }
10661 arg1 = reinterpret_cast< wxRegion * >(argp1);
10662 ecode2 = SWIG_AsVal_int(obj1, &val2);
10663 if (!SWIG_IsOK(ecode2)) {
10664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10665 }
10666 arg2 = static_cast< int >(val2);
10667 ecode3 = SWIG_AsVal_int(obj2, &val3);
10668 if (!SWIG_IsOK(ecode3)) {
10669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10670 }
10671 arg3 = static_cast< int >(val3);
10672 {
10673 PyThreadState* __tstate = wxPyBeginAllowThreads();
10674 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10675 wxPyEndAllowThreads(__tstate);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 }
10678 resultobj = SWIG_From_int(static_cast< int >(result));
10679 return resultobj;
10680fail:
10681 return NULL;
10682}
10683
10684
10685SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10686 PyObject *resultobj = 0;
10687 wxRegion *arg1 = (wxRegion *) 0 ;
10688 wxPoint *arg2 = 0 ;
10689 wxRegionContain result;
10690 void *argp1 = 0 ;
10691 int res1 = 0 ;
10692 wxPoint temp2 ;
10693 PyObject * obj0 = 0 ;
10694 PyObject * obj1 = 0 ;
10695 char * kwnames[] = {
10696 (char *) "self",(char *) "pt", NULL
10697 };
10698
10699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10701 if (!SWIG_IsOK(res1)) {
10702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10703 }
10704 arg1 = reinterpret_cast< wxRegion * >(argp1);
10705 {
10706 arg2 = &temp2;
10707 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10708 }
10709 {
10710 PyThreadState* __tstate = wxPyBeginAllowThreads();
10711 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10712 wxPyEndAllowThreads(__tstate);
10713 if (PyErr_Occurred()) SWIG_fail;
10714 }
10715 resultobj = SWIG_From_int(static_cast< int >(result));
10716 return resultobj;
10717fail:
10718 return NULL;
10719}
10720
10721
10722SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10723 PyObject *resultobj = 0;
10724 wxRegion *arg1 = (wxRegion *) 0 ;
10725 wxRect *arg2 = 0 ;
10726 wxRegionContain result;
10727 void *argp1 = 0 ;
10728 int res1 = 0 ;
10729 wxRect temp2 ;
10730 PyObject * obj0 = 0 ;
10731 PyObject * obj1 = 0 ;
10732 char * kwnames[] = {
10733 (char *) "self",(char *) "rect", NULL
10734 };
10735
10736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10738 if (!SWIG_IsOK(res1)) {
10739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10740 }
10741 arg1 = reinterpret_cast< wxRegion * >(argp1);
10742 {
10743 arg2 = &temp2;
10744 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10745 }
10746 {
10747 PyThreadState* __tstate = wxPyBeginAllowThreads();
10748 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10749 wxPyEndAllowThreads(__tstate);
10750 if (PyErr_Occurred()) SWIG_fail;
10751 }
10752 resultobj = SWIG_From_int(static_cast< int >(result));
10753 return resultobj;
10754fail:
10755 return NULL;
10756}
10757
10758
10759SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10760 PyObject *resultobj = 0;
10761 wxRegion *arg1 = (wxRegion *) 0 ;
10762 int arg2 ;
10763 int arg3 ;
10764 int arg4 ;
10765 int arg5 ;
10766 wxRegionContain result;
10767 void *argp1 = 0 ;
10768 int res1 = 0 ;
10769 int val2 ;
10770 int ecode2 = 0 ;
10771 int val3 ;
10772 int ecode3 = 0 ;
10773 int val4 ;
10774 int ecode4 = 0 ;
10775 int val5 ;
10776 int ecode5 = 0 ;
10777 PyObject * obj0 = 0 ;
10778 PyObject * obj1 = 0 ;
10779 PyObject * obj2 = 0 ;
10780 PyObject * obj3 = 0 ;
10781 PyObject * obj4 = 0 ;
10782 char * kwnames[] = {
10783 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10784 };
10785
10786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10788 if (!SWIG_IsOK(res1)) {
10789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10790 }
10791 arg1 = reinterpret_cast< wxRegion * >(argp1);
10792 ecode2 = SWIG_AsVal_int(obj1, &val2);
10793 if (!SWIG_IsOK(ecode2)) {
10794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10795 }
10796 arg2 = static_cast< int >(val2);
10797 ecode3 = SWIG_AsVal_int(obj2, &val3);
10798 if (!SWIG_IsOK(ecode3)) {
10799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10800 }
10801 arg3 = static_cast< int >(val3);
10802 ecode4 = SWIG_AsVal_int(obj3, &val4);
10803 if (!SWIG_IsOK(ecode4)) {
10804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10805 }
10806 arg4 = static_cast< int >(val4);
10807 ecode5 = SWIG_AsVal_int(obj4, &val5);
10808 if (!SWIG_IsOK(ecode5)) {
10809 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10810 }
10811 arg5 = static_cast< int >(val5);
10812 {
10813 PyThreadState* __tstate = wxPyBeginAllowThreads();
10814 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10815 wxPyEndAllowThreads(__tstate);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 }
10818 resultobj = SWIG_From_int(static_cast< int >(result));
10819 return resultobj;
10820fail:
10821 return NULL;
d14a1e28
RD
10822}
10823
10824
0085ce49
RD
10825SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10826 PyObject *resultobj = 0;
10827 wxRegion *arg1 = (wxRegion *) 0 ;
10828 wxRect result;
10829 void *argp1 = 0 ;
10830 int res1 = 0 ;
10831 PyObject *swig_obj[1] ;
10832
10833 if (!args) SWIG_fail;
10834 swig_obj[0] = args;
10835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10836 if (!SWIG_IsOK(res1)) {
10837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10838 }
10839 arg1 = reinterpret_cast< wxRegion * >(argp1);
10840 {
10841 PyThreadState* __tstate = wxPyBeginAllowThreads();
10842 result = (arg1)->GetBox();
10843 wxPyEndAllowThreads(__tstate);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 }
10846 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10847 return resultobj;
10848fail:
10849 return NULL;
10850}
10851
10852
10853SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10854 PyObject *resultobj = 0;
10855 wxRegion *arg1 = (wxRegion *) 0 ;
10856 int arg2 ;
10857 int arg3 ;
10858 int arg4 ;
10859 int arg5 ;
10860 bool result;
10861 void *argp1 = 0 ;
10862 int res1 = 0 ;
10863 int val2 ;
10864 int ecode2 = 0 ;
10865 int val3 ;
10866 int ecode3 = 0 ;
10867 int val4 ;
10868 int ecode4 = 0 ;
10869 int val5 ;
10870 int ecode5 = 0 ;
10871 PyObject * obj0 = 0 ;
10872 PyObject * obj1 = 0 ;
10873 PyObject * obj2 = 0 ;
10874 PyObject * obj3 = 0 ;
10875 PyObject * obj4 = 0 ;
10876 char * kwnames[] = {
10877 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10878 };
10879
10880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10882 if (!SWIG_IsOK(res1)) {
10883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10884 }
10885 arg1 = reinterpret_cast< wxRegion * >(argp1);
10886 ecode2 = SWIG_AsVal_int(obj1, &val2);
10887 if (!SWIG_IsOK(ecode2)) {
10888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10889 }
10890 arg2 = static_cast< int >(val2);
10891 ecode3 = SWIG_AsVal_int(obj2, &val3);
10892 if (!SWIG_IsOK(ecode3)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10894 }
10895 arg3 = static_cast< int >(val3);
10896 ecode4 = SWIG_AsVal_int(obj3, &val4);
10897 if (!SWIG_IsOK(ecode4)) {
10898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10899 }
10900 arg4 = static_cast< int >(val4);
10901 ecode5 = SWIG_AsVal_int(obj4, &val5);
10902 if (!SWIG_IsOK(ecode5)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10904 }
10905 arg5 = static_cast< int >(val5);
10906 {
10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
10908 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 {
10913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10914 }
10915 return resultobj;
10916fail:
10917 return NULL;
10918}
10919
10920
10921SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj = 0;
10923 wxRegion *arg1 = (wxRegion *) 0 ;
10924 wxRect *arg2 = 0 ;
10925 bool result;
10926 void *argp1 = 0 ;
10927 int res1 = 0 ;
10928 wxRect temp2 ;
10929 PyObject * obj0 = 0 ;
10930 PyObject * obj1 = 0 ;
10931 char * kwnames[] = {
10932 (char *) "self",(char *) "rect", NULL
10933 };
10934
10935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10937 if (!SWIG_IsOK(res1)) {
10938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10939 }
10940 arg1 = reinterpret_cast< wxRegion * >(argp1);
10941 {
10942 arg2 = &temp2;
10943 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10944 }
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 {
10952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10953 }
10954 return resultobj;
10955fail:
10956 return NULL;
10957}
10958
10959
10960SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10961 PyObject *resultobj = 0;
10962 wxRegion *arg1 = (wxRegion *) 0 ;
10963 wxRegion *arg2 = 0 ;
10964 bool result;
10965 void *argp1 = 0 ;
10966 int res1 = 0 ;
10967 void *argp2 = 0 ;
10968 int res2 = 0 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 char * kwnames[] = {
10972 (char *) "self",(char *) "region", NULL
10973 };
10974
10975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10977 if (!SWIG_IsOK(res1)) {
10978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10979 }
10980 arg1 = reinterpret_cast< wxRegion * >(argp1);
10981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10982 if (!SWIG_IsOK(res2)) {
10983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10984 }
10985 if (!argp2) {
10986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10987 }
10988 arg2 = reinterpret_cast< wxRegion * >(argp2);
10989 {
10990 PyThreadState* __tstate = wxPyBeginAllowThreads();
10991 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10992 wxPyEndAllowThreads(__tstate);
10993 if (PyErr_Occurred()) SWIG_fail;
10994 }
10995 {
10996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10997 }
10998 return resultobj;
10999fail:
11000 return NULL;
d14a1e28
RD
11001}
11002
11003
0085ce49
RD
11004SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11005 PyObject *resultobj = 0;
11006 wxRegion *arg1 = (wxRegion *) 0 ;
11007 bool result;
11008 void *argp1 = 0 ;
11009 int res1 = 0 ;
11010 PyObject *swig_obj[1] ;
11011
11012 if (!args) SWIG_fail;
11013 swig_obj[0] = args;
11014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11015 if (!SWIG_IsOK(res1)) {
11016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11017 }
11018 arg1 = reinterpret_cast< wxRegion * >(argp1);
11019 {
11020 PyThreadState* __tstate = wxPyBeginAllowThreads();
11021 result = (bool)(arg1)->IsEmpty();
11022 wxPyEndAllowThreads(__tstate);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 {
11026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11027 }
11028 return resultobj;
11029fail:
11030 return NULL;
11031}
11032
11033
f5263701
RD
11034SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11035 PyObject *resultobj = 0;
11036 wxRegion *arg1 = (wxRegion *) 0 ;
11037 wxRegion *arg2 = 0 ;
11038 bool result;
11039 void *argp1 = 0 ;
11040 int res1 = 0 ;
11041 void *argp2 = 0 ;
11042 int res2 = 0 ;
11043 PyObject * obj0 = 0 ;
11044 PyObject * obj1 = 0 ;
11045 char * kwnames[] = {
11046 (char *) "self",(char *) "region", NULL
11047 };
11048
11049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11051 if (!SWIG_IsOK(res1)) {
11052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11053 }
11054 arg1 = reinterpret_cast< wxRegion * >(argp1);
11055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11056 if (!SWIG_IsOK(res2)) {
11057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11058 }
11059 if (!argp2) {
11060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11061 }
11062 arg2 = reinterpret_cast< wxRegion * >(argp2);
11063 {
11064 PyThreadState* __tstate = wxPyBeginAllowThreads();
11065 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11066 wxPyEndAllowThreads(__tstate);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 }
11069 {
11070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11071 }
11072 return resultobj;
11073fail:
11074 return NULL;
11075}
11076
11077
0085ce49
RD
11078SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11079 PyObject *resultobj = 0;
11080 wxRegion *arg1 = (wxRegion *) 0 ;
11081 int arg2 ;
11082 int arg3 ;
11083 int arg4 ;
11084 int arg5 ;
11085 bool result;
11086 void *argp1 = 0 ;
11087 int res1 = 0 ;
11088 int val2 ;
11089 int ecode2 = 0 ;
11090 int val3 ;
11091 int ecode3 = 0 ;
11092 int val4 ;
11093 int ecode4 = 0 ;
11094 int val5 ;
11095 int ecode5 = 0 ;
11096 PyObject * obj0 = 0 ;
11097 PyObject * obj1 = 0 ;
11098 PyObject * obj2 = 0 ;
11099 PyObject * obj3 = 0 ;
11100 PyObject * obj4 = 0 ;
11101 char * kwnames[] = {
11102 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11103 };
11104
11105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11107 if (!SWIG_IsOK(res1)) {
11108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11109 }
11110 arg1 = reinterpret_cast< wxRegion * >(argp1);
11111 ecode2 = SWIG_AsVal_int(obj1, &val2);
11112 if (!SWIG_IsOK(ecode2)) {
11113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11114 }
11115 arg2 = static_cast< int >(val2);
11116 ecode3 = SWIG_AsVal_int(obj2, &val3);
11117 if (!SWIG_IsOK(ecode3)) {
11118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11119 }
11120 arg3 = static_cast< int >(val3);
11121 ecode4 = SWIG_AsVal_int(obj3, &val4);
11122 if (!SWIG_IsOK(ecode4)) {
11123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11124 }
11125 arg4 = static_cast< int >(val4);
11126 ecode5 = SWIG_AsVal_int(obj4, &val5);
11127 if (!SWIG_IsOK(ecode5)) {
11128 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11129 }
11130 arg5 = static_cast< int >(val5);
11131 {
11132 PyThreadState* __tstate = wxPyBeginAllowThreads();
11133 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11134 wxPyEndAllowThreads(__tstate);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 }
11137 {
11138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11139 }
11140 return resultobj;
11141fail:
11142 return NULL;
11143}
11144
11145
11146SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11147 PyObject *resultobj = 0;
11148 wxRegion *arg1 = (wxRegion *) 0 ;
11149 wxRect *arg2 = 0 ;
11150 bool result;
11151 void *argp1 = 0 ;
11152 int res1 = 0 ;
11153 wxRect temp2 ;
11154 PyObject * obj0 = 0 ;
11155 PyObject * obj1 = 0 ;
11156 char * kwnames[] = {
11157 (char *) "self",(char *) "rect", NULL
11158 };
11159
11160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11162 if (!SWIG_IsOK(res1)) {
11163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11164 }
11165 arg1 = reinterpret_cast< wxRegion * >(argp1);
11166 {
11167 arg2 = &temp2;
11168 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11169 }
11170 {
11171 PyThreadState* __tstate = wxPyBeginAllowThreads();
11172 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 {
11177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11178 }
11179 return resultobj;
11180fail:
11181 return NULL;
11182}
11183
11184
11185SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11186 PyObject *resultobj = 0;
11187 wxRegion *arg1 = (wxRegion *) 0 ;
11188 wxRegion *arg2 = 0 ;
11189 bool result;
11190 void *argp1 = 0 ;
11191 int res1 = 0 ;
11192 void *argp2 = 0 ;
11193 int res2 = 0 ;
11194 PyObject * obj0 = 0 ;
11195 PyObject * obj1 = 0 ;
11196 char * kwnames[] = {
11197 (char *) "self",(char *) "region", NULL
11198 };
11199
11200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11202 if (!SWIG_IsOK(res1)) {
11203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11204 }
11205 arg1 = reinterpret_cast< wxRegion * >(argp1);
11206 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11207 if (!SWIG_IsOK(res2)) {
11208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11209 }
11210 if (!argp2) {
11211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11212 }
11213 arg2 = reinterpret_cast< wxRegion * >(argp2);
11214 {
11215 PyThreadState* __tstate = wxPyBeginAllowThreads();
11216 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11217 wxPyEndAllowThreads(__tstate);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 {
11221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11222 }
11223 return resultobj;
11224fail:
11225 return NULL;
11226}
11227
11228
11229SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11230 PyObject *resultobj = 0;
11231 wxRegion *arg1 = (wxRegion *) 0 ;
11232 int arg2 ;
11233 int arg3 ;
11234 int arg4 ;
11235 int arg5 ;
11236 bool result;
11237 void *argp1 = 0 ;
11238 int res1 = 0 ;
11239 int val2 ;
11240 int ecode2 = 0 ;
11241 int val3 ;
11242 int ecode3 = 0 ;
11243 int val4 ;
11244 int ecode4 = 0 ;
11245 int val5 ;
11246 int ecode5 = 0 ;
11247 PyObject * obj0 = 0 ;
11248 PyObject * obj1 = 0 ;
11249 PyObject * obj2 = 0 ;
11250 PyObject * obj3 = 0 ;
11251 PyObject * obj4 = 0 ;
11252 char * kwnames[] = {
11253 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11254 };
11255
11256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11258 if (!SWIG_IsOK(res1)) {
11259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11260 }
11261 arg1 = reinterpret_cast< wxRegion * >(argp1);
11262 ecode2 = SWIG_AsVal_int(obj1, &val2);
11263 if (!SWIG_IsOK(ecode2)) {
11264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11265 }
11266 arg2 = static_cast< int >(val2);
11267 ecode3 = SWIG_AsVal_int(obj2, &val3);
11268 if (!SWIG_IsOK(ecode3)) {
11269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11270 }
11271 arg3 = static_cast< int >(val3);
11272 ecode4 = SWIG_AsVal_int(obj3, &val4);
11273 if (!SWIG_IsOK(ecode4)) {
11274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11275 }
11276 arg4 = static_cast< int >(val4);
11277 ecode5 = SWIG_AsVal_int(obj4, &val5);
11278 if (!SWIG_IsOK(ecode5)) {
11279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11280 }
11281 arg5 = static_cast< int >(val5);
11282 {
11283 PyThreadState* __tstate = wxPyBeginAllowThreads();
11284 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11285 wxPyEndAllowThreads(__tstate);
11286 if (PyErr_Occurred()) SWIG_fail;
11287 }
11288 {
11289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11290 }
11291 return resultobj;
11292fail:
11293 return NULL;
11294}
11295
11296
11297SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11298 PyObject *resultobj = 0;
11299 wxRegion *arg1 = (wxRegion *) 0 ;
11300 wxRect *arg2 = 0 ;
11301 bool result;
11302 void *argp1 = 0 ;
11303 int res1 = 0 ;
11304 wxRect temp2 ;
11305 PyObject * obj0 = 0 ;
11306 PyObject * obj1 = 0 ;
11307 char * kwnames[] = {
11308 (char *) "self",(char *) "rect", NULL
11309 };
11310
11311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11313 if (!SWIG_IsOK(res1)) {
11314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11315 }
11316 arg1 = reinterpret_cast< wxRegion * >(argp1);
11317 {
11318 arg2 = &temp2;
11319 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11320 }
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 {
11328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11329 }
11330 return resultobj;
11331fail:
11332 return NULL;
11333}
11334
11335
11336SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11337 PyObject *resultobj = 0;
11338 wxRegion *arg1 = (wxRegion *) 0 ;
11339 wxRegion *arg2 = 0 ;
11340 bool result;
11341 void *argp1 = 0 ;
11342 int res1 = 0 ;
11343 void *argp2 = 0 ;
11344 int res2 = 0 ;
11345 PyObject * obj0 = 0 ;
11346 PyObject * obj1 = 0 ;
11347 char * kwnames[] = {
11348 (char *) "self",(char *) "region", NULL
11349 };
11350
11351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11353 if (!SWIG_IsOK(res1)) {
11354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11355 }
11356 arg1 = reinterpret_cast< wxRegion * >(argp1);
11357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11358 if (!SWIG_IsOK(res2)) {
11359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11360 }
11361 if (!argp2) {
11362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11363 }
11364 arg2 = reinterpret_cast< wxRegion * >(argp2);
11365 {
11366 PyThreadState* __tstate = wxPyBeginAllowThreads();
11367 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 {
11372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11373 }
11374 return resultobj;
11375fail:
11376 return NULL;
11377}
11378
11379
11380SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11381 PyObject *resultobj = 0;
11382 wxRegion *arg1 = (wxRegion *) 0 ;
11383 int arg2 ;
11384 int arg3 ;
11385 int arg4 ;
11386 int arg5 ;
11387 bool result;
11388 void *argp1 = 0 ;
11389 int res1 = 0 ;
11390 int val2 ;
11391 int ecode2 = 0 ;
11392 int val3 ;
11393 int ecode3 = 0 ;
11394 int val4 ;
11395 int ecode4 = 0 ;
11396 int val5 ;
11397 int ecode5 = 0 ;
11398 PyObject * obj0 = 0 ;
11399 PyObject * obj1 = 0 ;
11400 PyObject * obj2 = 0 ;
11401 PyObject * obj3 = 0 ;
11402 PyObject * obj4 = 0 ;
11403 char * kwnames[] = {
11404 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11405 };
11406
11407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11409 if (!SWIG_IsOK(res1)) {
11410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11411 }
11412 arg1 = reinterpret_cast< wxRegion * >(argp1);
11413 ecode2 = SWIG_AsVal_int(obj1, &val2);
11414 if (!SWIG_IsOK(ecode2)) {
11415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11416 }
11417 arg2 = static_cast< int >(val2);
11418 ecode3 = SWIG_AsVal_int(obj2, &val3);
11419 if (!SWIG_IsOK(ecode3)) {
11420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11421 }
11422 arg3 = static_cast< int >(val3);
11423 ecode4 = SWIG_AsVal_int(obj3, &val4);
11424 if (!SWIG_IsOK(ecode4)) {
11425 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11426 }
11427 arg4 = static_cast< int >(val4);
11428 ecode5 = SWIG_AsVal_int(obj4, &val5);
11429 if (!SWIG_IsOK(ecode5)) {
11430 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11431 }
11432 arg5 = static_cast< int >(val5);
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11436 wxPyEndAllowThreads(__tstate);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 }
11439 {
11440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11441 }
11442 return resultobj;
11443fail:
11444 return NULL;
11445}
11446
11447
11448SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11449 PyObject *resultobj = 0;
11450 wxRegion *arg1 = (wxRegion *) 0 ;
11451 wxRect *arg2 = 0 ;
11452 bool result;
11453 void *argp1 = 0 ;
11454 int res1 = 0 ;
11455 wxRect temp2 ;
11456 PyObject * obj0 = 0 ;
11457 PyObject * obj1 = 0 ;
11458 char * kwnames[] = {
11459 (char *) "self",(char *) "rect", NULL
11460 };
11461
11462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11466 }
11467 arg1 = reinterpret_cast< wxRegion * >(argp1);
11468 {
11469 arg2 = &temp2;
11470 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11471 }
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11475 wxPyEndAllowThreads(__tstate);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 }
11478 {
11479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11480 }
11481 return resultobj;
11482fail:
11483 return NULL;
11484}
11485
11486
11487SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11488 PyObject *resultobj = 0;
11489 wxRegion *arg1 = (wxRegion *) 0 ;
11490 wxRegion *arg2 = 0 ;
11491 bool result;
11492 void *argp1 = 0 ;
11493 int res1 = 0 ;
11494 void *argp2 = 0 ;
11495 int res2 = 0 ;
11496 PyObject * obj0 = 0 ;
11497 PyObject * obj1 = 0 ;
11498 char * kwnames[] = {
11499 (char *) "self",(char *) "region", NULL
11500 };
11501
11502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11504 if (!SWIG_IsOK(res1)) {
11505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11506 }
11507 arg1 = reinterpret_cast< wxRegion * >(argp1);
11508 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11509 if (!SWIG_IsOK(res2)) {
11510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11511 }
11512 if (!argp2) {
11513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11514 }
11515 arg2 = reinterpret_cast< wxRegion * >(argp2);
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 {
11523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11524 }
11525 return resultobj;
11526fail:
11527 return NULL;
d14a1e28
RD
11528}
11529
11530
0085ce49
RD
11531SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11532 PyObject *resultobj = 0;
11533 wxRegion *arg1 = (wxRegion *) 0 ;
11534 SwigValueWrapper<wxBitmap > result;
11535 void *argp1 = 0 ;
11536 int res1 = 0 ;
11537 PyObject *swig_obj[1] ;
11538
11539 if (!args) SWIG_fail;
11540 swig_obj[0] = args;
11541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11542 if (!SWIG_IsOK(res1)) {
11543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11544 }
11545 arg1 = reinterpret_cast< wxRegion * >(argp1);
11546 {
11547 PyThreadState* __tstate = wxPyBeginAllowThreads();
11548 result = (arg1)->ConvertToBitmap();
11549 wxPyEndAllowThreads(__tstate);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 }
11552 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11553 return resultobj;
11554fail:
11555 return NULL;
11556}
11557
11558
11559SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11560 PyObject *resultobj = 0;
11561 wxRegion *arg1 = (wxRegion *) 0 ;
11562 wxBitmap *arg2 = 0 ;
11563 bool result;
11564 void *argp1 = 0 ;
11565 int res1 = 0 ;
11566 void *argp2 = 0 ;
11567 int res2 = 0 ;
11568 PyObject * obj0 = 0 ;
11569 PyObject * obj1 = 0 ;
11570 char * kwnames[] = {
11571 (char *) "self",(char *) "bmp", NULL
11572 };
11573
11574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11576 if (!SWIG_IsOK(res1)) {
11577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11578 }
11579 arg1 = reinterpret_cast< wxRegion * >(argp1);
11580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11581 if (!SWIG_IsOK(res2)) {
11582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11583 }
11584 if (!argp2) {
11585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11586 }
11587 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11591 wxPyEndAllowThreads(__tstate);
11592 if (PyErr_Occurred()) SWIG_fail;
11593 }
11594 {
11595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11596 }
11597 return resultobj;
11598fail:
11599 return NULL;
11600}
11601
11602
11603SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11604 PyObject *resultobj = 0;
11605 wxRegion *arg1 = (wxRegion *) 0 ;
11606 wxBitmap *arg2 = 0 ;
11607 wxColour *arg3 = 0 ;
11608 int arg4 = (int) 0 ;
11609 bool result;
11610 void *argp1 = 0 ;
11611 int res1 = 0 ;
11612 void *argp2 = 0 ;
11613 int res2 = 0 ;
11614 wxColour temp3 ;
11615 int val4 ;
11616 int ecode4 = 0 ;
11617 PyObject * obj0 = 0 ;
11618 PyObject * obj1 = 0 ;
11619 PyObject * obj2 = 0 ;
11620 PyObject * obj3 = 0 ;
11621 char * kwnames[] = {
11622 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11623 };
11624
11625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11627 if (!SWIG_IsOK(res1)) {
11628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11629 }
11630 arg1 = reinterpret_cast< wxRegion * >(argp1);
11631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11632 if (!SWIG_IsOK(res2)) {
11633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11634 }
11635 if (!argp2) {
11636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11637 }
11638 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11639 {
11640 arg3 = &temp3;
11641 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11642 }
11643 if (obj3) {
11644 ecode4 = SWIG_AsVal_int(obj3, &val4);
11645 if (!SWIG_IsOK(ecode4)) {
11646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11647 }
11648 arg4 = static_cast< int >(val4);
11649 }
11650 {
11651 PyThreadState* __tstate = wxPyBeginAllowThreads();
11652 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11653 wxPyEndAllowThreads(__tstate);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 }
11656 {
11657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11658 }
11659 return resultobj;
11660fail:
11661 return NULL;
d14a1e28
RD
11662}
11663
11664
0085ce49
RD
11665SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11666 PyObject *obj;
11667 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11668 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11669 return SWIG_Py_Void();
d14a1e28
RD
11670}
11671
0085ce49
RD
11672SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11673 return SWIG_Python_InitShadowInstance(args);
11674}
d14a1e28 11675
0085ce49
RD
11676SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11677 PyObject *resultobj = 0;
11678 wxRegion *arg1 = 0 ;
11679 wxRegionIterator *result = 0 ;
11680 void *argp1 = 0 ;
11681 int res1 = 0 ;
11682 PyObject * obj0 = 0 ;
11683 char * kwnames[] = {
11684 (char *) "region", NULL
11685 };
11686
11687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11688 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11689 if (!SWIG_IsOK(res1)) {
11690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11691 }
11692 if (!argp1) {
11693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11694 }
11695 arg1 = reinterpret_cast< wxRegion * >(argp1);
11696 {
11697 if (!wxPyCheckForApp()) SWIG_fail;
11698 PyThreadState* __tstate = wxPyBeginAllowThreads();
11699 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11700 wxPyEndAllowThreads(__tstate);
11701 if (PyErr_Occurred()) SWIG_fail;
11702 }
11703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11704 return resultobj;
11705fail:
11706 return NULL;
d14a1e28
RD
11707}
11708
11709
0085ce49
RD
11710SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11711 PyObject *resultobj = 0;
11712 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11713 void *argp1 = 0 ;
11714 int res1 = 0 ;
11715 PyObject *swig_obj[1] ;
11716
11717 if (!args) SWIG_fail;
11718 swig_obj[0] = args;
11719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11720 if (!SWIG_IsOK(res1)) {
11721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11722 }
11723 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11724 {
11725 PyThreadState* __tstate = wxPyBeginAllowThreads();
11726 delete arg1;
d14a1e28 11727
0085ce49
RD
11728 wxPyEndAllowThreads(__tstate);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 }
11731 resultobj = SWIG_Py_Void();
11732 return resultobj;
11733fail:
11734 return NULL;
d14a1e28
RD
11735}
11736
11737
0085ce49
RD
11738SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11739 PyObject *resultobj = 0;
11740 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11741 int result;
11742 void *argp1 = 0 ;
11743 int res1 = 0 ;
11744 PyObject *swig_obj[1] ;
11745
11746 if (!args) SWIG_fail;
11747 swig_obj[0] = args;
11748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11749 if (!SWIG_IsOK(res1)) {
11750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11751 }
11752 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11753 {
11754 PyThreadState* __tstate = wxPyBeginAllowThreads();
11755 result = (int)(arg1)->GetX();
11756 wxPyEndAllowThreads(__tstate);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 }
11759 resultobj = SWIG_From_int(static_cast< int >(result));
11760 return resultobj;
11761fail:
11762 return NULL;
d14a1e28
RD
11763}
11764
11765
0085ce49
RD
11766SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11767 PyObject *resultobj = 0;
11768 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11769 int result;
11770 void *argp1 = 0 ;
11771 int res1 = 0 ;
11772 PyObject *swig_obj[1] ;
11773
11774 if (!args) SWIG_fail;
11775 swig_obj[0] = args;
11776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11777 if (!SWIG_IsOK(res1)) {
11778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11779 }
11780 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 result = (int)(arg1)->GetY();
11784 wxPyEndAllowThreads(__tstate);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 resultobj = SWIG_From_int(static_cast< int >(result));
11788 return resultobj;
11789fail:
11790 return NULL;
d14a1e28
RD
11791}
11792
11793
0085ce49
RD
11794SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11795 PyObject *resultobj = 0;
11796 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11797 int result;
11798 void *argp1 = 0 ;
11799 int res1 = 0 ;
11800 PyObject *swig_obj[1] ;
11801
11802 if (!args) SWIG_fail;
11803 swig_obj[0] = args;
11804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11805 if (!SWIG_IsOK(res1)) {
11806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11807 }
11808 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11809 {
11810 PyThreadState* __tstate = wxPyBeginAllowThreads();
11811 result = (int)(arg1)->GetW();
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 resultobj = SWIG_From_int(static_cast< int >(result));
11816 return resultobj;
11817fail:
11818 return NULL;
d14a1e28
RD
11819}
11820
11821
0085ce49
RD
11822SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11823 PyObject *resultobj = 0;
11824 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11825 int result;
11826 void *argp1 = 0 ;
11827 int res1 = 0 ;
11828 PyObject *swig_obj[1] ;
11829
11830 if (!args) SWIG_fail;
11831 swig_obj[0] = args;
11832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11833 if (!SWIG_IsOK(res1)) {
11834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11835 }
11836 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11837 {
11838 PyThreadState* __tstate = wxPyBeginAllowThreads();
11839 result = (int)(arg1)->GetWidth();
11840 wxPyEndAllowThreads(__tstate);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 resultobj = SWIG_From_int(static_cast< int >(result));
11844 return resultobj;
11845fail:
11846 return NULL;
093d3ff1
RD
11847}
11848
11849
0085ce49
RD
11850SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11851 PyObject *resultobj = 0;
11852 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11853 int result;
11854 void *argp1 = 0 ;
11855 int res1 = 0 ;
11856 PyObject *swig_obj[1] ;
11857
11858 if (!args) SWIG_fail;
11859 swig_obj[0] = args;
11860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11861 if (!SWIG_IsOK(res1)) {
11862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11863 }
11864 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 result = (int)(arg1)->GetH();
11868 wxPyEndAllowThreads(__tstate);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 }
11871 resultobj = SWIG_From_int(static_cast< int >(result));
11872 return resultobj;
11873fail:
11874 return NULL;
d14a1e28
RD
11875}
11876
11877
0085ce49
RD
11878SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11879 PyObject *resultobj = 0;
11880 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11881 int result;
11882 void *argp1 = 0 ;
11883 int res1 = 0 ;
11884 PyObject *swig_obj[1] ;
11885
11886 if (!args) SWIG_fail;
11887 swig_obj[0] = args;
11888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11889 if (!SWIG_IsOK(res1)) {
11890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11891 }
11892 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 result = (int)(arg1)->GetHeight();
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 resultobj = SWIG_From_int(static_cast< int >(result));
11900 return resultobj;
11901fail:
11902 return NULL;
093d3ff1
RD
11903}
11904
11905
0085ce49
RD
11906SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11907 PyObject *resultobj = 0;
11908 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11909 wxRect result;
11910 void *argp1 = 0 ;
11911 int res1 = 0 ;
11912 PyObject *swig_obj[1] ;
11913
11914 if (!args) SWIG_fail;
11915 swig_obj[0] = args;
11916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11917 if (!SWIG_IsOK(res1)) {
11918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11919 }
11920 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11921 {
11922 PyThreadState* __tstate = wxPyBeginAllowThreads();
11923 result = (arg1)->GetRect();
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11928 return resultobj;
11929fail:
11930 return NULL;
d14a1e28
RD
11931}
11932
11933
0085ce49
RD
11934SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11935 PyObject *resultobj = 0;
11936 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11937 bool result;
11938 void *argp1 = 0 ;
11939 int res1 = 0 ;
11940 PyObject *swig_obj[1] ;
11941
11942 if (!args) SWIG_fail;
11943 swig_obj[0] = args;
11944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11945 if (!SWIG_IsOK(res1)) {
11946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11947 }
11948 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
11951 result = (bool)(arg1)->HaveRects();
11952 wxPyEndAllowThreads(__tstate);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 }
11955 {
11956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11957 }
11958 return resultobj;
11959fail:
11960 return NULL;
093d3ff1
RD
11961}
11962
11963
0085ce49
RD
11964SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11965 PyObject *resultobj = 0;
11966 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11967 void *argp1 = 0 ;
11968 int res1 = 0 ;
11969 PyObject *swig_obj[1] ;
11970
11971 if (!args) SWIG_fail;
11972 swig_obj[0] = args;
11973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11974 if (!SWIG_IsOK(res1)) {
11975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11976 }
11977 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11978 {
11979 PyThreadState* __tstate = wxPyBeginAllowThreads();
11980 (arg1)->Reset();
11981 wxPyEndAllowThreads(__tstate);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 resultobj = SWIG_Py_Void();
11985 return resultobj;
11986fail:
11987 return NULL;
d14a1e28
RD
11988}
11989
11990
0085ce49
RD
11991SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11992 PyObject *resultobj = 0;
11993 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11994 void *argp1 = 0 ;
11995 int res1 = 0 ;
11996 PyObject *swig_obj[1] ;
11997
11998 if (!args) SWIG_fail;
11999 swig_obj[0] = args;
12000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12001 if (!SWIG_IsOK(res1)) {
12002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12003 }
12004 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12005 {
12006 PyThreadState* __tstate = wxPyBeginAllowThreads();
12007 wxRegionIterator_Next(arg1);
12008 wxPyEndAllowThreads(__tstate);
12009 if (PyErr_Occurred()) SWIG_fail;
12010 }
12011 resultobj = SWIG_Py_Void();
12012 return resultobj;
12013fail:
12014 return NULL;
d14a1e28
RD
12015}
12016
12017
0085ce49
RD
12018SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12019 PyObject *resultobj = 0;
12020 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12021 bool result;
12022 void *argp1 = 0 ;
12023 int res1 = 0 ;
12024 PyObject *swig_obj[1] ;
12025
12026 if (!args) SWIG_fail;
12027 swig_obj[0] = args;
12028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12029 if (!SWIG_IsOK(res1)) {
12030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12031 }
12032 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12033 {
12034 PyThreadState* __tstate = wxPyBeginAllowThreads();
12035 result = (bool)wxRegionIterator___nonzero__(arg1);
12036 wxPyEndAllowThreads(__tstate);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 {
12040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12041 }
12042 return resultobj;
12043fail:
12044 return NULL;
d14a1e28
RD
12045}
12046
12047
0085ce49
RD
12048SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12049 PyObject *obj;
12050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12051 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12052 return SWIG_Py_Void();
d14a1e28
RD
12053}
12054
0085ce49
RD
12055SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12056 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12057}
12058
0085ce49
RD
12059SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12060 PyObject *resultobj = 0;
12061 wxNativeFontInfo *result = 0 ;
12062
12063 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12067 wxPyEndAllowThreads(__tstate);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 }
12070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12071 return resultobj;
12072fail:
12073 return NULL;
d14a1e28
RD
12074}
12075
12076
0085ce49
RD
12077SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12078 PyObject *resultobj = 0;
12079 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12080 void *argp1 = 0 ;
12081 int res1 = 0 ;
12082 PyObject *swig_obj[1] ;
12083
12084 if (!args) SWIG_fail;
12085 swig_obj[0] = args;
12086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12087 if (!SWIG_IsOK(res1)) {
12088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12089 }
12090 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 delete arg1;
d14a1e28 12094
0085ce49
RD
12095 wxPyEndAllowThreads(__tstate);
12096 if (PyErr_Occurred()) SWIG_fail;
12097 }
12098 resultobj = SWIG_Py_Void();
12099 return resultobj;
12100fail:
12101 return NULL;
d14a1e28
RD
12102}
12103
12104
0085ce49
RD
12105SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12106 PyObject *resultobj = 0;
12107 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12108 void *argp1 = 0 ;
12109 int res1 = 0 ;
12110 PyObject *swig_obj[1] ;
12111
12112 if (!args) SWIG_fail;
12113 swig_obj[0] = args;
12114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12115 if (!SWIG_IsOK(res1)) {
12116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12117 }
12118 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
12121 (arg1)->Init();
12122 wxPyEndAllowThreads(__tstate);
12123 if (PyErr_Occurred()) SWIG_fail;
12124 }
12125 resultobj = SWIG_Py_Void();
12126 return resultobj;
12127fail:
12128 return NULL;
12129}
12130
12131
12132SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12133 PyObject *resultobj = 0;
12134 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12135 wxFont *arg2 = 0 ;
12136 void *argp1 = 0 ;
12137 int res1 = 0 ;
12138 void *argp2 = 0 ;
12139 int res2 = 0 ;
12140 PyObject * obj0 = 0 ;
12141 PyObject * obj1 = 0 ;
12142 char * kwnames[] = {
12143 (char *) "self",(char *) "font", NULL
12144 };
12145
12146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12148 if (!SWIG_IsOK(res1)) {
12149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12150 }
12151 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12153 if (!SWIG_IsOK(res2)) {
12154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12155 }
12156 if (!argp2) {
12157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12158 }
12159 arg2 = reinterpret_cast< wxFont * >(argp2);
12160 {
12161 PyThreadState* __tstate = wxPyBeginAllowThreads();
12162 (arg1)->InitFromFont((wxFont const &)*arg2);
12163 wxPyEndAllowThreads(__tstate);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 resultobj = SWIG_Py_Void();
12167 return resultobj;
12168fail:
12169 return NULL;
e6ffcedd
RD
12170}
12171
12172
0085ce49
RD
12173SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12174 PyObject *resultobj = 0;
12175 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12176 int result;
12177 void *argp1 = 0 ;
12178 int res1 = 0 ;
12179 PyObject *swig_obj[1] ;
12180
12181 if (!args) SWIG_fail;
12182 swig_obj[0] = args;
12183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12184 if (!SWIG_IsOK(res1)) {
12185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12186 }
12187 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12188 {
12189 PyThreadState* __tstate = wxPyBeginAllowThreads();
12190 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 resultobj = SWIG_From_int(static_cast< int >(result));
12195 return resultobj;
12196fail:
12197 return NULL;
d14a1e28
RD
12198}
12199
12200
0085ce49
RD
12201SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12202 PyObject *resultobj = 0;
12203 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12204 wxFontStyle result;
12205 void *argp1 = 0 ;
12206 int res1 = 0 ;
12207 PyObject *swig_obj[1] ;
12208
12209 if (!args) SWIG_fail;
12210 swig_obj[0] = args;
12211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12212 if (!SWIG_IsOK(res1)) {
12213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12214 }
12215 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12219 wxPyEndAllowThreads(__tstate);
12220 if (PyErr_Occurred()) SWIG_fail;
12221 }
12222 resultobj = SWIG_From_int(static_cast< int >(result));
12223 return resultobj;
12224fail:
12225 return NULL;
d14a1e28
RD
12226}
12227
12228
0085ce49
RD
12229SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12230 PyObject *resultobj = 0;
12231 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12232 wxFontWeight result;
12233 void *argp1 = 0 ;
12234 int res1 = 0 ;
12235 PyObject *swig_obj[1] ;
12236
12237 if (!args) SWIG_fail;
12238 swig_obj[0] = args;
12239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12240 if (!SWIG_IsOK(res1)) {
12241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12242 }
12243 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 resultobj = SWIG_From_int(static_cast< int >(result));
12251 return resultobj;
12252fail:
12253 return NULL;
d14a1e28
RD
12254}
12255
12256
0085ce49
RD
12257SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12258 PyObject *resultobj = 0;
12259 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12260 bool result;
12261 void *argp1 = 0 ;
12262 int res1 = 0 ;
12263 PyObject *swig_obj[1] ;
12264
12265 if (!args) SWIG_fail;
12266 swig_obj[0] = args;
12267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12268 if (!SWIG_IsOK(res1)) {
12269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12270 }
12271 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12275 wxPyEndAllowThreads(__tstate);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
12278 {
12279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12280 }
12281 return resultobj;
12282fail:
12283 return NULL;
d14a1e28
RD
12284}
12285
12286
0085ce49
RD
12287SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12288 PyObject *resultobj = 0;
12289 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12290 wxString result;
12291 void *argp1 = 0 ;
12292 int res1 = 0 ;
12293 PyObject *swig_obj[1] ;
12294
12295 if (!args) SWIG_fail;
12296 swig_obj[0] = args;
12297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12298 if (!SWIG_IsOK(res1)) {
12299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12300 }
12301 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12302 {
12303 PyThreadState* __tstate = wxPyBeginAllowThreads();
12304 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12305 wxPyEndAllowThreads(__tstate);
12306 if (PyErr_Occurred()) SWIG_fail;
12307 }
12308 {
12309#if wxUSE_UNICODE
12310 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12311#else
12312 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12313#endif
12314 }
12315 return resultobj;
12316fail:
12317 return NULL;
d14a1e28
RD
12318}
12319
12320
0085ce49
RD
12321SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12322 PyObject *resultobj = 0;
12323 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12324 wxFontFamily result;
12325 void *argp1 = 0 ;
12326 int res1 = 0 ;
12327 PyObject *swig_obj[1] ;
12328
12329 if (!args) SWIG_fail;
12330 swig_obj[0] = args;
12331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12332 if (!SWIG_IsOK(res1)) {
12333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12334 }
12335 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12336 {
12337 PyThreadState* __tstate = wxPyBeginAllowThreads();
12338 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12339 wxPyEndAllowThreads(__tstate);
12340 if (PyErr_Occurred()) SWIG_fail;
12341 }
12342 resultobj = SWIG_From_int(static_cast< int >(result));
12343 return resultobj;
12344fail:
12345 return NULL;
d14a1e28
RD
12346}
12347
12348
0085ce49
RD
12349SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12350 PyObject *resultobj = 0;
12351 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12352 wxFontEncoding result;
12353 void *argp1 = 0 ;
12354 int res1 = 0 ;
12355 PyObject *swig_obj[1] ;
12356
12357 if (!args) SWIG_fail;
12358 swig_obj[0] = args;
12359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12360 if (!SWIG_IsOK(res1)) {
12361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12362 }
12363 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 resultobj = SWIG_From_int(static_cast< int >(result));
12371 return resultobj;
12372fail:
12373 return NULL;
12374}
12375
12376
12377SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12378 PyObject *resultobj = 0;
12379 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12380 int arg2 ;
12381 void *argp1 = 0 ;
12382 int res1 = 0 ;
12383 int val2 ;
12384 int ecode2 = 0 ;
12385 PyObject * obj0 = 0 ;
12386 PyObject * obj1 = 0 ;
12387 char * kwnames[] = {
12388 (char *) "self",(char *) "pointsize", NULL
12389 };
12390
12391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12393 if (!SWIG_IsOK(res1)) {
12394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12395 }
12396 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12397 ecode2 = SWIG_AsVal_int(obj1, &val2);
12398 if (!SWIG_IsOK(ecode2)) {
12399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12400 }
12401 arg2 = static_cast< int >(val2);
12402 {
12403 PyThreadState* __tstate = wxPyBeginAllowThreads();
12404 (arg1)->SetPointSize(arg2);
12405 wxPyEndAllowThreads(__tstate);
12406 if (PyErr_Occurred()) SWIG_fail;
12407 }
12408 resultobj = SWIG_Py_Void();
12409 return resultobj;
12410fail:
12411 return NULL;
12412}
12413
12414
12415SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12416 PyObject *resultobj = 0;
12417 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12418 wxFontStyle arg2 ;
12419 void *argp1 = 0 ;
12420 int res1 = 0 ;
12421 int val2 ;
12422 int ecode2 = 0 ;
12423 PyObject * obj0 = 0 ;
12424 PyObject * obj1 = 0 ;
12425 char * kwnames[] = {
12426 (char *) "self",(char *) "style", NULL
12427 };
12428
12429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12431 if (!SWIG_IsOK(res1)) {
12432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12433 }
12434 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12435 ecode2 = SWIG_AsVal_int(obj1, &val2);
12436 if (!SWIG_IsOK(ecode2)) {
12437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12438 }
12439 arg2 = static_cast< wxFontStyle >(val2);
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 (arg1)->SetStyle(arg2);
12443 wxPyEndAllowThreads(__tstate);
12444 if (PyErr_Occurred()) SWIG_fail;
12445 }
12446 resultobj = SWIG_Py_Void();
12447 return resultobj;
12448fail:
12449 return NULL;
12450}
12451
12452
12453SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12454 PyObject *resultobj = 0;
12455 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12456 wxFontWeight arg2 ;
12457 void *argp1 = 0 ;
12458 int res1 = 0 ;
12459 int val2 ;
12460 int ecode2 = 0 ;
12461 PyObject * obj0 = 0 ;
12462 PyObject * obj1 = 0 ;
12463 char * kwnames[] = {
12464 (char *) "self",(char *) "weight", NULL
12465 };
12466
12467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12469 if (!SWIG_IsOK(res1)) {
12470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12471 }
12472 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12473 ecode2 = SWIG_AsVal_int(obj1, &val2);
12474 if (!SWIG_IsOK(ecode2)) {
12475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12476 }
12477 arg2 = static_cast< wxFontWeight >(val2);
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 (arg1)->SetWeight(arg2);
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 resultobj = SWIG_Py_Void();
12485 return resultobj;
12486fail:
12487 return NULL;
12488}
12489
12490
12491SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12492 PyObject *resultobj = 0;
12493 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12494 bool arg2 ;
12495 void *argp1 = 0 ;
12496 int res1 = 0 ;
12497 bool val2 ;
12498 int ecode2 = 0 ;
12499 PyObject * obj0 = 0 ;
12500 PyObject * obj1 = 0 ;
12501 char * kwnames[] = {
12502 (char *) "self",(char *) "underlined", NULL
12503 };
12504
12505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12507 if (!SWIG_IsOK(res1)) {
12508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12509 }
12510 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12511 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12512 if (!SWIG_IsOK(ecode2)) {
12513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12514 }
12515 arg2 = static_cast< bool >(val2);
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 (arg1)->SetUnderlined(arg2);
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 resultobj = SWIG_Py_Void();
12523 return resultobj;
12524fail:
12525 return NULL;
12526}
12527
12528
12529SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12530 PyObject *resultobj = 0;
12531 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12532 wxString arg2 ;
704eda0c 12533 bool result;
0085ce49
RD
12534 void *argp1 = 0 ;
12535 int res1 = 0 ;
12536 PyObject * obj0 = 0 ;
12537 PyObject * obj1 = 0 ;
12538 char * kwnames[] = {
12539 (char *) "self",(char *) "facename", NULL
12540 };
12541
12542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12544 if (!SWIG_IsOK(res1)) {
12545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12546 }
12547 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12548 {
12549 wxString* sptr = wxString_in_helper(obj1);
12550 if (sptr == NULL) SWIG_fail;
12551 arg2 = *sptr;
12552 delete sptr;
12553 }
12554 {
12555 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12556 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
12557 wxPyEndAllowThreads(__tstate);
12558 if (PyErr_Occurred()) SWIG_fail;
12559 }
704eda0c
RD
12560 {
12561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12562 }
0085ce49
RD
12563 return resultobj;
12564fail:
12565 return NULL;
12566}
12567
12568
12569SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12570 PyObject *resultobj = 0;
12571 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12572 wxFontFamily arg2 ;
12573 void *argp1 = 0 ;
12574 int res1 = 0 ;
12575 int val2 ;
12576 int ecode2 = 0 ;
12577 PyObject * obj0 = 0 ;
12578 PyObject * obj1 = 0 ;
12579 char * kwnames[] = {
12580 (char *) "self",(char *) "family", NULL
12581 };
12582
12583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12585 if (!SWIG_IsOK(res1)) {
12586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12587 }
12588 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12589 ecode2 = SWIG_AsVal_int(obj1, &val2);
12590 if (!SWIG_IsOK(ecode2)) {
12591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12592 }
12593 arg2 = static_cast< wxFontFamily >(val2);
12594 {
12595 PyThreadState* __tstate = wxPyBeginAllowThreads();
12596 (arg1)->SetFamily(arg2);
12597 wxPyEndAllowThreads(__tstate);
12598 if (PyErr_Occurred()) SWIG_fail;
12599 }
12600 resultobj = SWIG_Py_Void();
12601 return resultobj;
12602fail:
12603 return NULL;
12604}
12605
12606
12607SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12608 PyObject *resultobj = 0;
12609 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12610 wxFontEncoding arg2 ;
12611 void *argp1 = 0 ;
12612 int res1 = 0 ;
12613 int val2 ;
12614 int ecode2 = 0 ;
12615 PyObject * obj0 = 0 ;
12616 PyObject * obj1 = 0 ;
12617 char * kwnames[] = {
12618 (char *) "self",(char *) "encoding", NULL
12619 };
12620
12621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12623 if (!SWIG_IsOK(res1)) {
12624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12625 }
12626 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12627 ecode2 = SWIG_AsVal_int(obj1, &val2);
12628 if (!SWIG_IsOK(ecode2)) {
12629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12630 }
12631 arg2 = static_cast< wxFontEncoding >(val2);
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 (arg1)->SetEncoding(arg2);
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 resultobj = SWIG_Py_Void();
12639 return resultobj;
12640fail:
12641 return NULL;
12642}
12643
12644
12645SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12646 PyObject *resultobj = 0;
12647 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12648 wxString *arg2 = 0 ;
12649 bool result;
12650 void *argp1 = 0 ;
12651 int res1 = 0 ;
12652 bool temp2 = false ;
12653 PyObject * obj0 = 0 ;
12654 PyObject * obj1 = 0 ;
12655 char * kwnames[] = {
12656 (char *) "self",(char *) "s", NULL
12657 };
12658
12659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12661 if (!SWIG_IsOK(res1)) {
12662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12663 }
12664 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12665 {
12666 arg2 = wxString_in_helper(obj1);
12667 if (arg2 == NULL) SWIG_fail;
12668 temp2 = true;
12669 }
12670 {
12671 PyThreadState* __tstate = wxPyBeginAllowThreads();
12672 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12673 wxPyEndAllowThreads(__tstate);
12674 if (PyErr_Occurred()) SWIG_fail;
12675 }
12676 {
12677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12678 }
12679 {
12680 if (temp2)
12681 delete arg2;
12682 }
12683 return resultobj;
12684fail:
12685 {
12686 if (temp2)
12687 delete arg2;
12688 }
12689 return NULL;
d14a1e28
RD
12690}
12691
12692
0085ce49
RD
12693SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12694 PyObject *resultobj = 0;
12695 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12696 wxString result;
12697 void *argp1 = 0 ;
12698 int res1 = 0 ;
12699 PyObject *swig_obj[1] ;
12700
12701 if (!args) SWIG_fail;
12702 swig_obj[0] = args;
12703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12704 if (!SWIG_IsOK(res1)) {
12705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12706 }
12707 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12708 {
12709 PyThreadState* __tstate = wxPyBeginAllowThreads();
12710 result = ((wxNativeFontInfo const *)arg1)->ToString();
12711 wxPyEndAllowThreads(__tstate);
12712 if (PyErr_Occurred()) SWIG_fail;
12713 }
12714 {
12715#if wxUSE_UNICODE
12716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12717#else
12718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12719#endif
12720 }
12721 return resultobj;
12722fail:
12723 return NULL;
d14a1e28
RD
12724}
12725
12726
0085ce49
RD
12727SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12728 PyObject *resultobj = 0;
12729 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12730 wxString result;
12731 void *argp1 = 0 ;
12732 int res1 = 0 ;
12733 PyObject *swig_obj[1] ;
12734
12735 if (!args) SWIG_fail;
12736 swig_obj[0] = args;
12737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12738 if (!SWIG_IsOK(res1)) {
12739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12740 }
12741 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12742 {
12743 PyThreadState* __tstate = wxPyBeginAllowThreads();
12744 result = wxNativeFontInfo___str__(arg1);
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 {
12749#if wxUSE_UNICODE
12750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12751#else
12752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12753#endif
12754 }
12755 return resultobj;
12756fail:
12757 return NULL;
12758}
12759
12760
12761SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12762 PyObject *resultobj = 0;
12763 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12764 wxString *arg2 = 0 ;
12765 bool result;
12766 void *argp1 = 0 ;
12767 int res1 = 0 ;
12768 bool temp2 = false ;
12769 PyObject * obj0 = 0 ;
12770 PyObject * obj1 = 0 ;
12771 char * kwnames[] = {
12772 (char *) "self",(char *) "s", NULL
12773 };
12774
12775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12777 if (!SWIG_IsOK(res1)) {
12778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12779 }
12780 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12781 {
12782 arg2 = wxString_in_helper(obj1);
12783 if (arg2 == NULL) SWIG_fail;
12784 temp2 = true;
12785 }
12786 {
12787 PyThreadState* __tstate = wxPyBeginAllowThreads();
12788 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12789 wxPyEndAllowThreads(__tstate);
12790 if (PyErr_Occurred()) SWIG_fail;
12791 }
12792 {
12793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12794 }
12795 {
12796 if (temp2)
12797 delete arg2;
12798 }
12799 return resultobj;
12800fail:
12801 {
12802 if (temp2)
12803 delete arg2;
12804 }
12805 return NULL;
d14a1e28
RD
12806}
12807
12808
0085ce49
RD
12809SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12810 PyObject *resultobj = 0;
12811 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12812 wxString result;
12813 void *argp1 = 0 ;
12814 int res1 = 0 ;
12815 PyObject *swig_obj[1] ;
12816
12817 if (!args) SWIG_fail;
12818 swig_obj[0] = args;
12819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12820 if (!SWIG_IsOK(res1)) {
12821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12822 }
12823 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12824 {
12825 PyThreadState* __tstate = wxPyBeginAllowThreads();
12826 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12827 wxPyEndAllowThreads(__tstate);
12828 if (PyErr_Occurred()) SWIG_fail;
12829 }
12830 {
12831#if wxUSE_UNICODE
12832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12833#else
12834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12835#endif
12836 }
12837 return resultobj;
12838fail:
12839 return NULL;
d14a1e28
RD
12840}
12841
12842
0085ce49
RD
12843SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12844 PyObject *obj;
12845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12846 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12847 return SWIG_Py_Void();
d14a1e28
RD
12848}
12849
0085ce49
RD
12850SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12851 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12852}
12853
0085ce49
RD
12854SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12855 PyObject *resultobj = 0;
12856 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12857 wxString *arg2 = (wxString *) 0 ;
12858 void *argp1 = 0 ;
12859 int res1 = 0 ;
12860 bool temp2 = false ;
12861 PyObject *swig_obj[2] ;
12862
12863 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12865 if (!SWIG_IsOK(res1)) {
12866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12867 }
12868 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12869 {
12870 arg2 = wxString_in_helper(swig_obj[1]);
12871 if (arg2 == NULL) SWIG_fail;
12872 temp2 = true;
12873 }
12874 if (arg1) (arg1)->facename = *arg2;
12875
12876 resultobj = SWIG_Py_Void();
12877 {
12878 if (temp2)
12879 delete arg2;
12880 }
12881 return resultobj;
12882fail:
12883 {
12884 if (temp2)
12885 delete arg2;
12886 }
12887 return NULL;
d14a1e28
RD
12888}
12889
12890
0085ce49
RD
12891SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12892 PyObject *resultobj = 0;
12893 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12894 wxString *result = 0 ;
12895 void *argp1 = 0 ;
12896 int res1 = 0 ;
12897 PyObject *swig_obj[1] ;
12898
12899 if (!args) SWIG_fail;
12900 swig_obj[0] = args;
12901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12902 if (!SWIG_IsOK(res1)) {
12903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12904 }
12905 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12906 result = (wxString *)& ((arg1)->facename);
12907 {
12908#if wxUSE_UNICODE
12909 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12910#else
12911 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12912#endif
12913 }
12914 return resultobj;
12915fail:
12916 return NULL;
d14a1e28
RD
12917}
12918
12919
0085ce49
RD
12920SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12921 PyObject *resultobj = 0;
12922 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12923 wxFontEncoding arg2 ;
12924 void *argp1 = 0 ;
12925 int res1 = 0 ;
12926 int val2 ;
12927 int ecode2 = 0 ;
12928 PyObject *swig_obj[2] ;
12929
12930 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12932 if (!SWIG_IsOK(res1)) {
12933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12934 }
12935 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12936 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12937 if (!SWIG_IsOK(ecode2)) {
12938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12939 }
12940 arg2 = static_cast< wxFontEncoding >(val2);
12941 if (arg1) (arg1)->encoding = arg2;
12942
12943 resultobj = SWIG_Py_Void();
12944 return resultobj;
12945fail:
12946 return NULL;
d14a1e28
RD
12947}
12948
12949
0085ce49
RD
12950SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12951 PyObject *resultobj = 0;
12952 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12953 wxFontEncoding result;
12954 void *argp1 = 0 ;
12955 int res1 = 0 ;
12956 PyObject *swig_obj[1] ;
12957
12958 if (!args) SWIG_fail;
12959 swig_obj[0] = args;
12960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12961 if (!SWIG_IsOK(res1)) {
12962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12963 }
12964 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12965 result = (wxFontEncoding) ((arg1)->encoding);
12966 resultobj = SWIG_From_int(static_cast< int >(result));
12967 return resultobj;
12968fail:
12969 return NULL;
d14a1e28
RD
12970}
12971
12972
0085ce49
RD
12973SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12974 PyObject *resultobj = 0;
12975 wxNativeEncodingInfo *result = 0 ;
12976
12977 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12978 {
12979 PyThreadState* __tstate = wxPyBeginAllowThreads();
12980 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12981 wxPyEndAllowThreads(__tstate);
12982 if (PyErr_Occurred()) SWIG_fail;
12983 }
12984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12985 return resultobj;
12986fail:
12987 return NULL;
d14a1e28
RD
12988}
12989
12990
0085ce49
RD
12991SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12992 PyObject *resultobj = 0;
12993 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12994 void *argp1 = 0 ;
12995 int res1 = 0 ;
12996 PyObject *swig_obj[1] ;
12997
12998 if (!args) SWIG_fail;
12999 swig_obj[0] = args;
13000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13001 if (!SWIG_IsOK(res1)) {
13002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13003 }
13004 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13005 {
13006 PyThreadState* __tstate = wxPyBeginAllowThreads();
13007 delete arg1;
d14a1e28 13008
0085ce49
RD
13009 wxPyEndAllowThreads(__tstate);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 resultobj = SWIG_Py_Void();
13013 return resultobj;
13014fail:
13015 return NULL;
13016}
13017
13018
13019SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13020 PyObject *resultobj = 0;
13021 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13022 wxString *arg2 = 0 ;
13023 bool result;
13024 void *argp1 = 0 ;
13025 int res1 = 0 ;
13026 bool temp2 = false ;
13027 PyObject * obj0 = 0 ;
13028 PyObject * obj1 = 0 ;
13029 char * kwnames[] = {
13030 (char *) "self",(char *) "s", NULL
13031 };
13032
13033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13035 if (!SWIG_IsOK(res1)) {
13036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13037 }
13038 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13039 {
13040 arg2 = wxString_in_helper(obj1);
13041 if (arg2 == NULL) SWIG_fail;
13042 temp2 = true;
13043 }
13044 {
13045 PyThreadState* __tstate = wxPyBeginAllowThreads();
13046 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13047 wxPyEndAllowThreads(__tstate);
13048 if (PyErr_Occurred()) SWIG_fail;
13049 }
13050 {
13051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13052 }
13053 {
13054 if (temp2)
13055 delete arg2;
13056 }
13057 return resultobj;
13058fail:
13059 {
13060 if (temp2)
13061 delete arg2;
13062 }
13063 return NULL;
d14a1e28
RD
13064}
13065
13066
0085ce49
RD
13067SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13068 PyObject *resultobj = 0;
13069 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13070 wxString result;
13071 void *argp1 = 0 ;
13072 int res1 = 0 ;
13073 PyObject *swig_obj[1] ;
13074
13075 if (!args) SWIG_fail;
13076 swig_obj[0] = args;
13077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13078 if (!SWIG_IsOK(res1)) {
13079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13080 }
13081 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13082 {
13083 PyThreadState* __tstate = wxPyBeginAllowThreads();
13084 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13085 wxPyEndAllowThreads(__tstate);
13086 if (PyErr_Occurred()) SWIG_fail;
13087 }
13088 {
13089#if wxUSE_UNICODE
13090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13091#else
13092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13093#endif
13094 }
13095 return resultobj;
13096fail:
13097 return NULL;
d14a1e28
RD
13098}
13099
13100
0085ce49
RD
13101SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13102 PyObject *obj;
13103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13104 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13105 return SWIG_Py_Void();
d14a1e28
RD
13106}
13107
0085ce49
RD
13108SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13109 return SWIG_Python_InitShadowInstance(args);
13110}
d14a1e28 13111
0085ce49
RD
13112SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13113 PyObject *resultobj = 0;
13114 wxFontEncoding arg1 ;
13115 wxNativeEncodingInfo *result = 0 ;
13116 int val1 ;
13117 int ecode1 = 0 ;
13118 PyObject * obj0 = 0 ;
13119 char * kwnames[] = {
13120 (char *) "encoding", NULL
13121 };
13122
13123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13124 ecode1 = SWIG_AsVal_int(obj0, &val1);
13125 if (!SWIG_IsOK(ecode1)) {
13126 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13127 }
13128 arg1 = static_cast< wxFontEncoding >(val1);
13129 {
13130 PyThreadState* __tstate = wxPyBeginAllowThreads();
13131 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13132 wxPyEndAllowThreads(__tstate);
13133 if (PyErr_Occurred()) SWIG_fail;
13134 }
13135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13136 return resultobj;
13137fail:
13138 return NULL;
13139}
13140
13141
13142SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13143 PyObject *resultobj = 0;
13144 wxNativeEncodingInfo *arg1 = 0 ;
13145 bool result;
13146 void *argp1 = 0 ;
13147 int res1 = 0 ;
13148 PyObject * obj0 = 0 ;
13149 char * kwnames[] = {
13150 (char *) "info", NULL
13151 };
13152
13153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13154 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13155 if (!SWIG_IsOK(res1)) {
13156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13157 }
13158 if (!argp1) {
13159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13160 }
13161 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13165 wxPyEndAllowThreads(__tstate);
13166 if (PyErr_Occurred()) SWIG_fail;
13167 }
13168 {
13169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13170 }
13171 return resultobj;
13172fail:
13173 return NULL;
d14a1e28
RD
13174}
13175
13176
0085ce49
RD
13177SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13178 PyObject *resultobj = 0;
13179 wxFontMapper *result = 0 ;
13180
13181 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13182 {
13183 PyThreadState* __tstate = wxPyBeginAllowThreads();
13184 result = (wxFontMapper *)new wxFontMapper();
13185 wxPyEndAllowThreads(__tstate);
13186 if (PyErr_Occurred()) SWIG_fail;
13187 }
13188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13189 return resultobj;
13190fail:
13191 return NULL;
d14a1e28
RD
13192}
13193
13194
0085ce49
RD
13195SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13196 PyObject *resultobj = 0;
13197 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13198 void *argp1 = 0 ;
13199 int res1 = 0 ;
13200 PyObject *swig_obj[1] ;
13201
13202 if (!args) SWIG_fail;
13203 swig_obj[0] = args;
13204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13205 if (!SWIG_IsOK(res1)) {
13206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13207 }
13208 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13209 {
13210 PyThreadState* __tstate = wxPyBeginAllowThreads();
13211 delete arg1;
d14a1e28 13212
0085ce49
RD
13213 wxPyEndAllowThreads(__tstate);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 resultobj = SWIG_Py_Void();
13217 return resultobj;
13218fail:
13219 return NULL;
d14a1e28
RD
13220}
13221
13222
0085ce49
RD
13223SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13224 PyObject *resultobj = 0;
13225 wxFontMapper *result = 0 ;
13226
13227 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13228 {
13229 PyThreadState* __tstate = wxPyBeginAllowThreads();
13230 result = (wxFontMapper *)wxFontMapper::Get();
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13235 return resultobj;
13236fail:
13237 return NULL;
13238}
13239
13240
13241SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj = 0;
13243 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13244 wxFontMapper *result = 0 ;
13245 void *argp1 = 0 ;
13246 int res1 = 0 ;
13247 PyObject * obj0 = 0 ;
13248 char * kwnames[] = {
13249 (char *) "mapper", NULL
13250 };
13251
13252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13254 if (!SWIG_IsOK(res1)) {
13255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13256 }
13257 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13258 {
13259 PyThreadState* __tstate = wxPyBeginAllowThreads();
13260 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13261 wxPyEndAllowThreads(__tstate);
13262 if (PyErr_Occurred()) SWIG_fail;
13263 }
13264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13265 return resultobj;
13266fail:
13267 return NULL;
13268}
13269
13270
13271SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13272 PyObject *resultobj = 0;
13273 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13274 wxString *arg2 = 0 ;
13275 bool arg3 = (bool) true ;
13276 wxFontEncoding result;
13277 void *argp1 = 0 ;
13278 int res1 = 0 ;
13279 bool temp2 = false ;
13280 bool val3 ;
13281 int ecode3 = 0 ;
13282 PyObject * obj0 = 0 ;
13283 PyObject * obj1 = 0 ;
13284 PyObject * obj2 = 0 ;
13285 char * kwnames[] = {
13286 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13287 };
13288
13289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13291 if (!SWIG_IsOK(res1)) {
13292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13293 }
13294 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13295 {
13296 arg2 = wxString_in_helper(obj1);
13297 if (arg2 == NULL) SWIG_fail;
13298 temp2 = true;
13299 }
13300 if (obj2) {
13301 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13302 if (!SWIG_IsOK(ecode3)) {
13303 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13304 }
13305 arg3 = static_cast< bool >(val3);
13306 }
13307 {
13308 PyThreadState* __tstate = wxPyBeginAllowThreads();
13309 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 resultobj = SWIG_From_int(static_cast< int >(result));
13314 {
13315 if (temp2)
13316 delete arg2;
13317 }
13318 return resultobj;
13319fail:
13320 {
13321 if (temp2)
13322 delete arg2;
13323 }
13324 return NULL;
e6ffcedd
RD
13325}
13326
13327
0085ce49
RD
13328SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13329 PyObject *resultobj = 0;
13330 size_t result;
13331
13332 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13333 {
13334 PyThreadState* __tstate = wxPyBeginAllowThreads();
13335 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13336 wxPyEndAllowThreads(__tstate);
13337 if (PyErr_Occurred()) SWIG_fail;
13338 }
13339 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13340 return resultobj;
13341fail:
13342 return NULL;
13343}
13344
13345
13346SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13347 PyObject *resultobj = 0;
13348 size_t arg1 ;
13349 wxFontEncoding result;
13350 size_t val1 ;
13351 int ecode1 = 0 ;
13352 PyObject * obj0 = 0 ;
13353 char * kwnames[] = {
13354 (char *) "n", NULL
13355 };
13356
13357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13358 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13359 if (!SWIG_IsOK(ecode1)) {
13360 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13361 }
13362 arg1 = static_cast< size_t >(val1);
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13366 wxPyEndAllowThreads(__tstate);
13367 if (PyErr_Occurred()) SWIG_fail;
13368 }
13369 resultobj = SWIG_From_int(static_cast< int >(result));
13370 return resultobj;
13371fail:
13372 return NULL;
13373}
13374
13375
13376SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13377 PyObject *resultobj = 0;
13378 wxFontEncoding arg1 ;
13379 wxString result;
13380 int val1 ;
13381 int ecode1 = 0 ;
13382 PyObject * obj0 = 0 ;
13383 char * kwnames[] = {
13384 (char *) "encoding", NULL
13385 };
13386
13387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13388 ecode1 = SWIG_AsVal_int(obj0, &val1);
13389 if (!SWIG_IsOK(ecode1)) {
13390 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13391 }
13392 arg1 = static_cast< wxFontEncoding >(val1);
13393 {
13394 PyThreadState* __tstate = wxPyBeginAllowThreads();
13395 result = wxFontMapper::GetEncodingName(arg1);
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 {
13400#if wxUSE_UNICODE
13401 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13402#else
13403 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13404#endif
13405 }
13406 return resultobj;
13407fail:
13408 return NULL;
d14a1e28
RD
13409}
13410
13411
0085ce49
RD
13412SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13413 PyObject *resultobj = 0;
13414 wxFontEncoding arg1 ;
13415 wxString result;
13416 int val1 ;
13417 int ecode1 = 0 ;
13418 PyObject * obj0 = 0 ;
13419 char * kwnames[] = {
13420 (char *) "encoding", NULL
13421 };
13422
13423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13424 ecode1 = SWIG_AsVal_int(obj0, &val1);
13425 if (!SWIG_IsOK(ecode1)) {
13426 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13427 }
13428 arg1 = static_cast< wxFontEncoding >(val1);
13429 {
13430 PyThreadState* __tstate = wxPyBeginAllowThreads();
13431 result = wxFontMapper::GetEncodingDescription(arg1);
13432 wxPyEndAllowThreads(__tstate);
13433 if (PyErr_Occurred()) SWIG_fail;
13434 }
13435 {
13436#if wxUSE_UNICODE
13437 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13438#else
13439 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13440#endif
13441 }
13442 return resultobj;
13443fail:
13444 return NULL;
d14a1e28
RD
13445}
13446
13447
0085ce49
RD
13448SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13449 PyObject *resultobj = 0;
13450 wxString *arg1 = 0 ;
13451 wxFontEncoding result;
13452 bool temp1 = false ;
13453 PyObject * obj0 = 0 ;
13454 char * kwnames[] = {
13455 (char *) "name", NULL
13456 };
13457
13458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13459 {
13460 arg1 = wxString_in_helper(obj0);
13461 if (arg1 == NULL) SWIG_fail;
13462 temp1 = true;
13463 }
13464 {
13465 PyThreadState* __tstate = wxPyBeginAllowThreads();
13466 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13467 wxPyEndAllowThreads(__tstate);
13468 if (PyErr_Occurred()) SWIG_fail;
13469 }
13470 resultobj = SWIG_From_int(static_cast< int >(result));
13471 {
13472 if (temp1)
13473 delete arg1;
13474 }
13475 return resultobj;
13476fail:
13477 {
13478 if (temp1)
13479 delete arg1;
13480 }
13481 return NULL;
d14a1e28
RD
13482}
13483
13484
0085ce49
RD
13485SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13486 PyObject *resultobj = 0;
13487 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13488 wxString *arg2 = 0 ;
13489 void *argp1 = 0 ;
13490 int res1 = 0 ;
13491 bool temp2 = false ;
13492 PyObject * obj0 = 0 ;
13493 PyObject * obj1 = 0 ;
13494 char * kwnames[] = {
13495 (char *) "self",(char *) "prefix", NULL
13496 };
13497
13498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13500 if (!SWIG_IsOK(res1)) {
13501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13502 }
13503 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13504 {
13505 arg2 = wxString_in_helper(obj1);
13506 if (arg2 == NULL) SWIG_fail;
13507 temp2 = true;
13508 }
13509 {
13510 PyThreadState* __tstate = wxPyBeginAllowThreads();
13511 (arg1)->SetConfigPath((wxString const &)*arg2);
13512 wxPyEndAllowThreads(__tstate);
13513 if (PyErr_Occurred()) SWIG_fail;
13514 }
13515 resultobj = SWIG_Py_Void();
13516 {
13517 if (temp2)
13518 delete arg2;
13519 }
13520 return resultobj;
13521fail:
13522 {
13523 if (temp2)
13524 delete arg2;
13525 }
13526 return NULL;
d14a1e28
RD
13527}
13528
13529
0085ce49
RD
13530SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13531 PyObject *resultobj = 0;
13532 wxString result;
13533
13534 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13535 {
13536 PyThreadState* __tstate = wxPyBeginAllowThreads();
13537 result = wxFontMapper::GetDefaultConfigPath();
13538 wxPyEndAllowThreads(__tstate);
13539 if (PyErr_Occurred()) SWIG_fail;
13540 }
13541 {
13542#if wxUSE_UNICODE
13543 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13544#else
13545 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13546#endif
13547 }
13548 return resultobj;
13549fail:
13550 return NULL;
13551}
13552
13553
13554SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13555 PyObject *resultobj = 0;
13556 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13557 wxFontEncoding arg2 ;
13558 wxString const &arg3_defvalue = wxPyEmptyString ;
13559 wxString *arg3 = (wxString *) &arg3_defvalue ;
13560 bool arg4 = (bool) true ;
13561 PyObject *result = 0 ;
13562 void *argp1 = 0 ;
13563 int res1 = 0 ;
13564 int val2 ;
13565 int ecode2 = 0 ;
13566 bool temp3 = false ;
13567 bool val4 ;
13568 int ecode4 = 0 ;
13569 PyObject * obj0 = 0 ;
13570 PyObject * obj1 = 0 ;
13571 PyObject * obj2 = 0 ;
13572 PyObject * obj3 = 0 ;
13573 char * kwnames[] = {
13574 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13575 };
13576
13577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13579 if (!SWIG_IsOK(res1)) {
13580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13581 }
13582 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13583 ecode2 = SWIG_AsVal_int(obj1, &val2);
13584 if (!SWIG_IsOK(ecode2)) {
13585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13586 }
13587 arg2 = static_cast< wxFontEncoding >(val2);
13588 if (obj2) {
093d3ff1 13589 {
0085ce49
RD
13590 arg3 = wxString_in_helper(obj2);
13591 if (arg3 == NULL) SWIG_fail;
13592 temp3 = true;
093d3ff1 13593 }
0085ce49
RD
13594 }
13595 if (obj3) {
13596 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13597 if (!SWIG_IsOK(ecode4)) {
13598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13599 }
13600 arg4 = static_cast< bool >(val4);
13601 }
13602 {
13603 PyThreadState* __tstate = wxPyBeginAllowThreads();
13604 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 resultobj = result;
13609 {
13610 if (temp3)
13611 delete arg3;
13612 }
13613 return resultobj;
13614fail:
13615 {
13616 if (temp3)
13617 delete arg3;
13618 }
13619 return NULL;
13620}
13621
13622
13623SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13624 PyObject *resultobj = 0;
13625 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13626 wxFontEncoding arg2 ;
13627 wxString const &arg3_defvalue = wxPyEmptyString ;
13628 wxString *arg3 = (wxString *) &arg3_defvalue ;
13629 bool result;
13630 void *argp1 = 0 ;
13631 int res1 = 0 ;
13632 int val2 ;
13633 int ecode2 = 0 ;
13634 bool temp3 = false ;
13635 PyObject * obj0 = 0 ;
13636 PyObject * obj1 = 0 ;
13637 PyObject * obj2 = 0 ;
13638 char * kwnames[] = {
13639 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13640 };
13641
13642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13644 if (!SWIG_IsOK(res1)) {
13645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13646 }
13647 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13648 ecode2 = SWIG_AsVal_int(obj1, &val2);
13649 if (!SWIG_IsOK(ecode2)) {
13650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13651 }
13652 arg2 = static_cast< wxFontEncoding >(val2);
13653 if (obj2) {
d14a1e28 13654 {
0085ce49
RD
13655 arg3 = wxString_in_helper(obj2);
13656 if (arg3 == NULL) SWIG_fail;
13657 temp3 = true;
d14a1e28 13658 }
0085ce49
RD
13659 }
13660 {
13661 PyThreadState* __tstate = wxPyBeginAllowThreads();
13662 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13663 wxPyEndAllowThreads(__tstate);
13664 if (PyErr_Occurred()) SWIG_fail;
13665 }
13666 {
13667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13668 }
13669 {
13670 if (temp3)
13671 delete arg3;
13672 }
13673 return resultobj;
13674fail:
13675 {
13676 if (temp3)
13677 delete arg3;
13678 }
13679 return NULL;
13680}
13681
13682
13683SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13684 PyObject *resultobj = 0;
13685 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13686 wxWindow *arg2 = (wxWindow *) 0 ;
13687 void *argp1 = 0 ;
13688 int res1 = 0 ;
13689 void *argp2 = 0 ;
13690 int res2 = 0 ;
13691 PyObject * obj0 = 0 ;
13692 PyObject * obj1 = 0 ;
13693 char * kwnames[] = {
13694 (char *) "self",(char *) "parent", NULL
13695 };
13696
13697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13699 if (!SWIG_IsOK(res1)) {
13700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13701 }
13702 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13704 if (!SWIG_IsOK(res2)) {
13705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13706 }
13707 arg2 = reinterpret_cast< wxWindow * >(argp2);
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 (arg1)->SetDialogParent(arg2);
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 resultobj = SWIG_Py_Void();
13715 return resultobj;
13716fail:
13717 return NULL;
13718}
13719
13720
13721SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj = 0;
13723 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13724 wxString *arg2 = 0 ;
13725 void *argp1 = 0 ;
13726 int res1 = 0 ;
13727 bool temp2 = false ;
13728 PyObject * obj0 = 0 ;
13729 PyObject * obj1 = 0 ;
13730 char * kwnames[] = {
13731 (char *) "self",(char *) "title", NULL
13732 };
13733
13734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13736 if (!SWIG_IsOK(res1)) {
13737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13738 }
13739 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13740 {
13741 arg2 = wxString_in_helper(obj1);
13742 if (arg2 == NULL) SWIG_fail;
13743 temp2 = true;
13744 }
13745 {
13746 PyThreadState* __tstate = wxPyBeginAllowThreads();
13747 (arg1)->SetDialogTitle((wxString const &)*arg2);
13748 wxPyEndAllowThreads(__tstate);
13749 if (PyErr_Occurred()) SWIG_fail;
13750 }
13751 resultobj = SWIG_Py_Void();
13752 {
13753 if (temp2)
13754 delete arg2;
13755 }
13756 return resultobj;
13757fail:
13758 {
13759 if (temp2)
13760 delete arg2;
13761 }
13762 return NULL;
13763}
13764
13765
13766SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13767 PyObject *obj;
13768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13769 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13770 return SWIG_Py_Void();
13771}
13772
13773SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13774 return SWIG_Python_InitShadowInstance(args);
13775}
13776
13777SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13778 PyObject *resultobj = 0;
13779 int arg1 ;
13780 int arg2 ;
13781 int arg3 ;
13782 int arg4 ;
13783 bool arg5 = (bool) false ;
13784 wxString const &arg6_defvalue = wxPyEmptyString ;
13785 wxString *arg6 = (wxString *) &arg6_defvalue ;
13786 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13787 wxFont *result = 0 ;
13788 int val1 ;
13789 int ecode1 = 0 ;
13790 int val2 ;
13791 int ecode2 = 0 ;
13792 int val3 ;
13793 int ecode3 = 0 ;
13794 int val4 ;
13795 int ecode4 = 0 ;
13796 bool val5 ;
13797 int ecode5 = 0 ;
13798 bool temp6 = false ;
13799 int val7 ;
13800 int ecode7 = 0 ;
13801 PyObject * obj0 = 0 ;
13802 PyObject * obj1 = 0 ;
13803 PyObject * obj2 = 0 ;
13804 PyObject * obj3 = 0 ;
13805 PyObject * obj4 = 0 ;
13806 PyObject * obj5 = 0 ;
13807 PyObject * obj6 = 0 ;
13808 char * kwnames[] = {
13809 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13810 };
13811
13812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13813 ecode1 = SWIG_AsVal_int(obj0, &val1);
13814 if (!SWIG_IsOK(ecode1)) {
13815 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13816 }
13817 arg1 = static_cast< int >(val1);
13818 ecode2 = SWIG_AsVal_int(obj1, &val2);
13819 if (!SWIG_IsOK(ecode2)) {
13820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13821 }
13822 arg2 = static_cast< int >(val2);
13823 ecode3 = SWIG_AsVal_int(obj2, &val3);
13824 if (!SWIG_IsOK(ecode3)) {
13825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13826 }
13827 arg3 = static_cast< int >(val3);
13828 ecode4 = SWIG_AsVal_int(obj3, &val4);
13829 if (!SWIG_IsOK(ecode4)) {
13830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13831 }
13832 arg4 = static_cast< int >(val4);
13833 if (obj4) {
13834 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13835 if (!SWIG_IsOK(ecode5)) {
13836 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13837 }
13838 arg5 = static_cast< bool >(val5);
13839 }
13840 if (obj5) {
093d3ff1 13841 {
0085ce49
RD
13842 arg6 = wxString_in_helper(obj5);
13843 if (arg6 == NULL) SWIG_fail;
13844 temp6 = true;
093d3ff1 13845 }
0085ce49
RD
13846 }
13847 if (obj6) {
13848 ecode7 = SWIG_AsVal_int(obj6, &val7);
13849 if (!SWIG_IsOK(ecode7)) {
13850 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13851 }
13852 arg7 = static_cast< wxFontEncoding >(val7);
13853 }
13854 {
13855 if (!wxPyCheckForApp()) SWIG_fail;
13856 PyThreadState* __tstate = wxPyBeginAllowThreads();
13857 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13858 wxPyEndAllowThreads(__tstate);
13859 if (PyErr_Occurred()) SWIG_fail;
13860 }
13861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13862 {
13863 if (temp6)
13864 delete arg6;
13865 }
13866 return resultobj;
13867fail:
13868 {
13869 if (temp6)
13870 delete arg6;
13871 }
13872 return NULL;
d14a1e28
RD
13873}
13874
13875
0085ce49
RD
13876SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13877 PyObject *resultobj = 0;
13878 wxFont *arg1 = (wxFont *) 0 ;
13879 void *argp1 = 0 ;
13880 int res1 = 0 ;
13881 PyObject *swig_obj[1] ;
13882
13883 if (!args) SWIG_fail;
13884 swig_obj[0] = args;
13885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13886 if (!SWIG_IsOK(res1)) {
13887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13888 }
13889 arg1 = reinterpret_cast< wxFont * >(argp1);
13890 {
13891 PyThreadState* __tstate = wxPyBeginAllowThreads();
13892 delete arg1;
d14a1e28 13893
0085ce49
RD
13894 wxPyEndAllowThreads(__tstate);
13895 if (PyErr_Occurred()) SWIG_fail;
13896 }
13897 resultobj = SWIG_Py_Void();
13898 return resultobj;
13899fail:
13900 return NULL;
13901}
13902
13903
13904SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13905 PyObject *resultobj = 0;
13906 wxNativeFontInfo *arg1 = 0 ;
13907 wxFont *result = 0 ;
13908 void *argp1 = 0 ;
13909 int res1 = 0 ;
13910 PyObject * obj0 = 0 ;
13911 char * kwnames[] = {
13912 (char *) "info", NULL
13913 };
13914
13915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13916 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13917 if (!SWIG_IsOK(res1)) {
13918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13919 }
13920 if (!argp1) {
13921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13922 }
13923 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13924 {
13925 if (!wxPyCheckForApp()) SWIG_fail;
13926 PyThreadState* __tstate = wxPyBeginAllowThreads();
13927 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13928 wxPyEndAllowThreads(__tstate);
13929 if (PyErr_Occurred()) SWIG_fail;
13930 }
13931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13932 return resultobj;
13933fail:
13934 return NULL;
d14a1e28
RD
13935}
13936
13937
0085ce49
RD
13938SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13939 PyObject *resultobj = 0;
13940 wxString *arg1 = 0 ;
13941 wxFont *result = 0 ;
13942 bool temp1 = false ;
13943 PyObject * obj0 = 0 ;
13944 char * kwnames[] = {
13945 (char *) "info", NULL
13946 };
13947
13948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13949 {
13950 arg1 = wxString_in_helper(obj0);
13951 if (arg1 == NULL) SWIG_fail;
13952 temp1 = true;
13953 }
13954 {
13955 if (!wxPyCheckForApp()) SWIG_fail;
13956 PyThreadState* __tstate = wxPyBeginAllowThreads();
13957 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13962 {
13963 if (temp1)
13964 delete arg1;
13965 }
13966 return resultobj;
13967fail:
13968 {
13969 if (temp1)
13970 delete arg1;
13971 }
13972 return NULL;
13973}
13974
13975
13976SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13977 PyObject *resultobj = 0;
13978 int arg1 ;
13979 wxFontFamily arg2 ;
13980 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13981 wxString const &arg4_defvalue = wxPyEmptyString ;
13982 wxString *arg4 = (wxString *) &arg4_defvalue ;
13983 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13984 wxFont *result = 0 ;
13985 int val1 ;
13986 int ecode1 = 0 ;
13987 int val2 ;
13988 int ecode2 = 0 ;
13989 int val3 ;
13990 int ecode3 = 0 ;
13991 bool temp4 = false ;
13992 int val5 ;
13993 int ecode5 = 0 ;
13994 PyObject * obj0 = 0 ;
13995 PyObject * obj1 = 0 ;
13996 PyObject * obj2 = 0 ;
13997 PyObject * obj3 = 0 ;
13998 PyObject * obj4 = 0 ;
13999 char * kwnames[] = {
14000 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14001 };
14002
14003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14004 ecode1 = SWIG_AsVal_int(obj0, &val1);
14005 if (!SWIG_IsOK(ecode1)) {
14006 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14007 }
14008 arg1 = static_cast< int >(val1);
14009 ecode2 = SWIG_AsVal_int(obj1, &val2);
14010 if (!SWIG_IsOK(ecode2)) {
14011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14012 }
14013 arg2 = static_cast< wxFontFamily >(val2);
14014 if (obj2) {
14015 ecode3 = SWIG_AsVal_int(obj2, &val3);
14016 if (!SWIG_IsOK(ecode3)) {
14017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14018 }
14019 arg3 = static_cast< int >(val3);
14020 }
14021 if (obj3) {
093d3ff1 14022 {
0085ce49
RD
14023 arg4 = wxString_in_helper(obj3);
14024 if (arg4 == NULL) SWIG_fail;
14025 temp4 = true;
093d3ff1 14026 }
0085ce49
RD
14027 }
14028 if (obj4) {
14029 ecode5 = SWIG_AsVal_int(obj4, &val5);
14030 if (!SWIG_IsOK(ecode5)) {
14031 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14032 }
14033 arg5 = static_cast< wxFontEncoding >(val5);
14034 }
14035 {
14036 if (!wxPyCheckForApp()) SWIG_fail;
14037 PyThreadState* __tstate = wxPyBeginAllowThreads();
14038 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14039 wxPyEndAllowThreads(__tstate);
14040 if (PyErr_Occurred()) SWIG_fail;
14041 }
14042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14043 {
14044 if (temp4)
14045 delete arg4;
14046 }
14047 return resultobj;
14048fail:
14049 {
14050 if (temp4)
14051 delete arg4;
14052 }
14053 return NULL;
14054}
14055
14056
14057SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14058 PyObject *resultobj = 0;
14059 wxSize *arg1 = 0 ;
14060 int arg2 ;
14061 int arg3 ;
14062 int arg4 ;
14063 bool arg5 = (bool) false ;
14064 wxString const &arg6_defvalue = wxEmptyString ;
14065 wxString *arg6 = (wxString *) &arg6_defvalue ;
14066 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14067 wxFont *result = 0 ;
14068 wxSize temp1 ;
14069 int val2 ;
14070 int ecode2 = 0 ;
14071 int val3 ;
14072 int ecode3 = 0 ;
14073 int val4 ;
14074 int ecode4 = 0 ;
14075 bool val5 ;
14076 int ecode5 = 0 ;
14077 bool temp6 = false ;
14078 int val7 ;
14079 int ecode7 = 0 ;
14080 PyObject * obj0 = 0 ;
14081 PyObject * obj1 = 0 ;
14082 PyObject * obj2 = 0 ;
14083 PyObject * obj3 = 0 ;
14084 PyObject * obj4 = 0 ;
14085 PyObject * obj5 = 0 ;
14086 PyObject * obj6 = 0 ;
14087 char * kwnames[] = {
14088 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14089 };
14090
14091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14092 {
14093 arg1 = &temp1;
14094 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14095 }
14096 ecode2 = SWIG_AsVal_int(obj1, &val2);
14097 if (!SWIG_IsOK(ecode2)) {
14098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14099 }
14100 arg2 = static_cast< int >(val2);
14101 ecode3 = SWIG_AsVal_int(obj2, &val3);
14102 if (!SWIG_IsOK(ecode3)) {
14103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14104 }
14105 arg3 = static_cast< int >(val3);
14106 ecode4 = SWIG_AsVal_int(obj3, &val4);
14107 if (!SWIG_IsOK(ecode4)) {
14108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14109 }
14110 arg4 = static_cast< int >(val4);
14111 if (obj4) {
14112 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14113 if (!SWIG_IsOK(ecode5)) {
14114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14115 }
14116 arg5 = static_cast< bool >(val5);
14117 }
14118 if (obj5) {
d14a1e28 14119 {
0085ce49
RD
14120 arg6 = wxString_in_helper(obj5);
14121 if (arg6 == NULL) SWIG_fail;
14122 temp6 = true;
d14a1e28 14123 }
0085ce49
RD
14124 }
14125 if (obj6) {
14126 ecode7 = SWIG_AsVal_int(obj6, &val7);
14127 if (!SWIG_IsOK(ecode7)) {
14128 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14129 }
14130 arg7 = static_cast< wxFontEncoding >(val7);
14131 }
14132 {
14133 if (!wxPyCheckForApp()) SWIG_fail;
14134 PyThreadState* __tstate = wxPyBeginAllowThreads();
14135 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14136 wxPyEndAllowThreads(__tstate);
14137 if (PyErr_Occurred()) SWIG_fail;
14138 }
14139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14140 {
14141 if (temp6)
14142 delete arg6;
14143 }
14144 return resultobj;
14145fail:
14146 {
14147 if (temp6)
14148 delete arg6;
14149 }
14150 return NULL;
14151}
14152
14153
14154SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14155 PyObject *resultobj = 0;
14156 wxSize *arg1 = 0 ;
14157 wxFontFamily arg2 ;
14158 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14159 wxString const &arg4_defvalue = wxEmptyString ;
14160 wxString *arg4 = (wxString *) &arg4_defvalue ;
14161 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14162 wxFont *result = 0 ;
14163 wxSize temp1 ;
14164 int val2 ;
14165 int ecode2 = 0 ;
14166 int val3 ;
14167 int ecode3 = 0 ;
14168 bool temp4 = false ;
14169 int val5 ;
14170 int ecode5 = 0 ;
14171 PyObject * obj0 = 0 ;
14172 PyObject * obj1 = 0 ;
14173 PyObject * obj2 = 0 ;
14174 PyObject * obj3 = 0 ;
14175 PyObject * obj4 = 0 ;
14176 char * kwnames[] = {
14177 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14178 };
14179
14180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14181 {
14182 arg1 = &temp1;
14183 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14184 }
14185 ecode2 = SWIG_AsVal_int(obj1, &val2);
14186 if (!SWIG_IsOK(ecode2)) {
14187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14188 }
14189 arg2 = static_cast< wxFontFamily >(val2);
14190 if (obj2) {
14191 ecode3 = SWIG_AsVal_int(obj2, &val3);
14192 if (!SWIG_IsOK(ecode3)) {
14193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14194 }
14195 arg3 = static_cast< int >(val3);
14196 }
14197 if (obj3) {
093d3ff1 14198 {
0085ce49
RD
14199 arg4 = wxString_in_helper(obj3);
14200 if (arg4 == NULL) SWIG_fail;
14201 temp4 = true;
093d3ff1 14202 }
0085ce49
RD
14203 }
14204 if (obj4) {
14205 ecode5 = SWIG_AsVal_int(obj4, &val5);
14206 if (!SWIG_IsOK(ecode5)) {
14207 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14208 }
14209 arg5 = static_cast< wxFontEncoding >(val5);
14210 }
14211 {
14212 if (!wxPyCheckForApp()) SWIG_fail;
14213 PyThreadState* __tstate = wxPyBeginAllowThreads();
14214 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14215 wxPyEndAllowThreads(__tstate);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 }
14218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14219 {
14220 if (temp4)
14221 delete arg4;
14222 }
14223 return resultobj;
14224fail:
14225 {
14226 if (temp4)
14227 delete arg4;
14228 }
14229 return NULL;
d14a1e28
RD
14230}
14231
14232
b39fe951 14233SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
14234 PyObject *resultobj = 0;
14235 wxFont *arg1 = (wxFont *) 0 ;
14236 bool result;
14237 void *argp1 = 0 ;
14238 int res1 = 0 ;
14239 PyObject *swig_obj[1] ;
14240
14241 if (!args) SWIG_fail;
14242 swig_obj[0] = args;
14243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14244 if (!SWIG_IsOK(res1)) {
b39fe951 14245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
0085ce49
RD
14246 }
14247 arg1 = reinterpret_cast< wxFont * >(argp1);
14248 {
14249 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14250 result = (bool)((wxFont const *)arg1)->IsOk();
0085ce49
RD
14251 wxPyEndAllowThreads(__tstate);
14252 if (PyErr_Occurred()) SWIG_fail;
14253 }
14254 {
14255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14256 }
14257 return resultobj;
14258fail:
14259 return NULL;
14260}
14261
14262
14263SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14264 PyObject *resultobj = 0;
14265 wxFont *arg1 = (wxFont *) 0 ;
14266 wxFont *arg2 = (wxFont *) 0 ;
14267 bool result;
14268 void *argp1 = 0 ;
14269 int res1 = 0 ;
14270 void *argp2 = 0 ;
14271 int res2 = 0 ;
14272 PyObject * obj0 = 0 ;
14273 PyObject * obj1 = 0 ;
14274 char * kwnames[] = {
14275 (char *) "self",(char *) "other", NULL
14276 };
14277
14278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14280 if (!SWIG_IsOK(res1)) {
14281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14282 }
14283 arg1 = reinterpret_cast< wxFont * >(argp1);
14284 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14285 if (!SWIG_IsOK(res2)) {
14286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14287 }
14288 arg2 = reinterpret_cast< wxFont * >(argp2);
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14292 wxPyEndAllowThreads(__tstate);
14293 if (PyErr_Occurred()) SWIG_fail;
14294 }
14295 {
14296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14297 }
14298 return resultobj;
14299fail:
14300 return NULL;
14301}
14302
14303
14304SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14305 PyObject *resultobj = 0;
14306 wxFont *arg1 = (wxFont *) 0 ;
14307 wxFont *arg2 = (wxFont *) 0 ;
14308 bool result;
14309 void *argp1 = 0 ;
14310 int res1 = 0 ;
14311 void *argp2 = 0 ;
14312 int res2 = 0 ;
14313 PyObject * obj0 = 0 ;
14314 PyObject * obj1 = 0 ;
14315 char * kwnames[] = {
14316 (char *) "self",(char *) "other", NULL
14317 };
14318
14319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14321 if (!SWIG_IsOK(res1)) {
14322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14323 }
14324 arg1 = reinterpret_cast< wxFont * >(argp1);
14325 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14326 if (!SWIG_IsOK(res2)) {
14327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14328 }
14329 arg2 = reinterpret_cast< wxFont * >(argp2);
14330 {
14331 PyThreadState* __tstate = wxPyBeginAllowThreads();
14332 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14333 wxPyEndAllowThreads(__tstate);
14334 if (PyErr_Occurred()) SWIG_fail;
14335 }
14336 {
14337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14338 }
14339 return resultobj;
14340fail:
14341 return NULL;
d14a1e28
RD
14342}
14343
14344
0085ce49
RD
14345SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14346 PyObject *resultobj = 0;
14347 wxFont *arg1 = (wxFont *) 0 ;
14348 int result;
14349 void *argp1 = 0 ;
14350 int res1 = 0 ;
14351 PyObject *swig_obj[1] ;
14352
14353 if (!args) SWIG_fail;
14354 swig_obj[0] = args;
14355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14356 if (!SWIG_IsOK(res1)) {
14357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14358 }
14359 arg1 = reinterpret_cast< wxFont * >(argp1);
14360 {
14361 PyThreadState* __tstate = wxPyBeginAllowThreads();
14362 result = (int)((wxFont const *)arg1)->GetPointSize();
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 resultobj = SWIG_From_int(static_cast< int >(result));
14367 return resultobj;
14368fail:
14369 return NULL;
d14a1e28
RD
14370}
14371
14372
0085ce49
RD
14373SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14374 PyObject *resultobj = 0;
14375 wxFont *arg1 = (wxFont *) 0 ;
14376 wxSize result;
14377 void *argp1 = 0 ;
14378 int res1 = 0 ;
14379 PyObject *swig_obj[1] ;
14380
14381 if (!args) SWIG_fail;
14382 swig_obj[0] = args;
14383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14384 if (!SWIG_IsOK(res1)) {
14385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14386 }
14387 arg1 = reinterpret_cast< wxFont * >(argp1);
14388 {
14389 PyThreadState* __tstate = wxPyBeginAllowThreads();
14390 result = ((wxFont const *)arg1)->GetPixelSize();
14391 wxPyEndAllowThreads(__tstate);
14392 if (PyErr_Occurred()) SWIG_fail;
14393 }
14394 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14395 return resultobj;
14396fail:
14397 return NULL;
d14a1e28
RD
14398}
14399
14400
0085ce49
RD
14401SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14402 PyObject *resultobj = 0;
14403 wxFont *arg1 = (wxFont *) 0 ;
14404 bool result;
14405 void *argp1 = 0 ;
14406 int res1 = 0 ;
14407 PyObject *swig_obj[1] ;
14408
14409 if (!args) SWIG_fail;
14410 swig_obj[0] = args;
14411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14412 if (!SWIG_IsOK(res1)) {
14413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14414 }
14415 arg1 = reinterpret_cast< wxFont * >(argp1);
14416 {
14417 PyThreadState* __tstate = wxPyBeginAllowThreads();
14418 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14419 wxPyEndAllowThreads(__tstate);
14420 if (PyErr_Occurred()) SWIG_fail;
14421 }
14422 {
14423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14424 }
14425 return resultobj;
14426fail:
14427 return NULL;
d14a1e28
RD
14428}
14429
14430
0085ce49
RD
14431SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14432 PyObject *resultobj = 0;
14433 wxFont *arg1 = (wxFont *) 0 ;
14434 int result;
14435 void *argp1 = 0 ;
14436 int res1 = 0 ;
14437 PyObject *swig_obj[1] ;
14438
14439 if (!args) SWIG_fail;
14440 swig_obj[0] = args;
14441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14442 if (!SWIG_IsOK(res1)) {
14443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14444 }
14445 arg1 = reinterpret_cast< wxFont * >(argp1);
14446 {
14447 PyThreadState* __tstate = wxPyBeginAllowThreads();
14448 result = (int)((wxFont const *)arg1)->GetFamily();
14449 wxPyEndAllowThreads(__tstate);
14450 if (PyErr_Occurred()) SWIG_fail;
14451 }
14452 resultobj = SWIG_From_int(static_cast< int >(result));
14453 return resultobj;
14454fail:
14455 return NULL;
d14a1e28
RD
14456}
14457
14458
0085ce49
RD
14459SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14460 PyObject *resultobj = 0;
14461 wxFont *arg1 = (wxFont *) 0 ;
14462 int result;
14463 void *argp1 = 0 ;
14464 int res1 = 0 ;
14465 PyObject *swig_obj[1] ;
14466
14467 if (!args) SWIG_fail;
14468 swig_obj[0] = args;
14469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14470 if (!SWIG_IsOK(res1)) {
14471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14472 }
14473 arg1 = reinterpret_cast< wxFont * >(argp1);
14474 {
14475 PyThreadState* __tstate = wxPyBeginAllowThreads();
14476 result = (int)((wxFont const *)arg1)->GetStyle();
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 resultobj = SWIG_From_int(static_cast< int >(result));
14481 return resultobj;
14482fail:
14483 return NULL;
d14a1e28
RD
14484}
14485
14486
0085ce49
RD
14487SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14488 PyObject *resultobj = 0;
14489 wxFont *arg1 = (wxFont *) 0 ;
14490 int result;
14491 void *argp1 = 0 ;
14492 int res1 = 0 ;
14493 PyObject *swig_obj[1] ;
14494
14495 if (!args) SWIG_fail;
14496 swig_obj[0] = args;
14497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14498 if (!SWIG_IsOK(res1)) {
14499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14500 }
14501 arg1 = reinterpret_cast< wxFont * >(argp1);
14502 {
14503 PyThreadState* __tstate = wxPyBeginAllowThreads();
14504 result = (int)((wxFont const *)arg1)->GetWeight();
14505 wxPyEndAllowThreads(__tstate);
14506 if (PyErr_Occurred()) SWIG_fail;
14507 }
14508 resultobj = SWIG_From_int(static_cast< int >(result));
14509 return resultobj;
14510fail:
14511 return NULL;
d14a1e28
RD
14512}
14513
14514
0085ce49
RD
14515SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14516 PyObject *resultobj = 0;
14517 wxFont *arg1 = (wxFont *) 0 ;
14518 bool result;
14519 void *argp1 = 0 ;
14520 int res1 = 0 ;
14521 PyObject *swig_obj[1] ;
14522
14523 if (!args) SWIG_fail;
14524 swig_obj[0] = args;
14525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14526 if (!SWIG_IsOK(res1)) {
14527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14528 }
14529 arg1 = reinterpret_cast< wxFont * >(argp1);
14530 {
14531 PyThreadState* __tstate = wxPyBeginAllowThreads();
14532 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14533 wxPyEndAllowThreads(__tstate);
14534 if (PyErr_Occurred()) SWIG_fail;
14535 }
14536 {
14537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14538 }
14539 return resultobj;
14540fail:
14541 return NULL;
d14a1e28
RD
14542}
14543
14544
0085ce49
RD
14545SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14546 PyObject *resultobj = 0;
14547 wxFont *arg1 = (wxFont *) 0 ;
14548 wxString result;
14549 void *argp1 = 0 ;
14550 int res1 = 0 ;
14551 PyObject *swig_obj[1] ;
14552
14553 if (!args) SWIG_fail;
14554 swig_obj[0] = args;
14555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14556 if (!SWIG_IsOK(res1)) {
14557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14558 }
14559 arg1 = reinterpret_cast< wxFont * >(argp1);
14560 {
14561 PyThreadState* __tstate = wxPyBeginAllowThreads();
14562 result = ((wxFont const *)arg1)->GetFaceName();
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 {
14567#if wxUSE_UNICODE
14568 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14569#else
14570 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14571#endif
14572 }
14573 return resultobj;
14574fail:
14575 return NULL;
d14a1e28
RD
14576}
14577
14578
0085ce49
RD
14579SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14580 PyObject *resultobj = 0;
14581 wxFont *arg1 = (wxFont *) 0 ;
14582 wxFontEncoding result;
14583 void *argp1 = 0 ;
14584 int res1 = 0 ;
14585 PyObject *swig_obj[1] ;
14586
14587 if (!args) SWIG_fail;
14588 swig_obj[0] = args;
14589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14590 if (!SWIG_IsOK(res1)) {
14591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14592 }
14593 arg1 = reinterpret_cast< wxFont * >(argp1);
14594 {
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 resultobj = SWIG_From_int(static_cast< int >(result));
14601 return resultobj;
14602fail:
14603 return NULL;
d14a1e28
RD
14604}
14605
14606
0085ce49
RD
14607SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14608 PyObject *resultobj = 0;
14609 wxFont *arg1 = (wxFont *) 0 ;
14610 wxNativeFontInfo *result = 0 ;
14611 void *argp1 = 0 ;
14612 int res1 = 0 ;
14613 PyObject *swig_obj[1] ;
14614
14615 if (!args) SWIG_fail;
14616 swig_obj[0] = args;
14617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14618 if (!SWIG_IsOK(res1)) {
14619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14620 }
14621 arg1 = reinterpret_cast< wxFont * >(argp1);
14622 {
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14625 wxPyEndAllowThreads(__tstate);
14626 if (PyErr_Occurred()) SWIG_fail;
14627 }
14628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14629 return resultobj;
14630fail:
14631 return NULL;
d14a1e28
RD
14632}
14633
14634
0085ce49
RD
14635SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14636 PyObject *resultobj = 0;
14637 wxFont *arg1 = (wxFont *) 0 ;
14638 bool result;
14639 void *argp1 = 0 ;
14640 int res1 = 0 ;
14641 PyObject *swig_obj[1] ;
14642
14643 if (!args) SWIG_fail;
14644 swig_obj[0] = args;
14645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14646 if (!SWIG_IsOK(res1)) {
14647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14648 }
14649 arg1 = reinterpret_cast< wxFont * >(argp1);
14650 {
14651 PyThreadState* __tstate = wxPyBeginAllowThreads();
14652 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14653 wxPyEndAllowThreads(__tstate);
14654 if (PyErr_Occurred()) SWIG_fail;
14655 }
14656 {
14657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14658 }
14659 return resultobj;
14660fail:
14661 return NULL;
d14a1e28
RD
14662}
14663
14664
0085ce49
RD
14665SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14666 PyObject *resultobj = 0;
14667 wxFont *arg1 = (wxFont *) 0 ;
14668 wxString result;
14669 void *argp1 = 0 ;
14670 int res1 = 0 ;
14671 PyObject *swig_obj[1] ;
14672
14673 if (!args) SWIG_fail;
14674 swig_obj[0] = args;
14675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14676 if (!SWIG_IsOK(res1)) {
14677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14678 }
14679 arg1 = reinterpret_cast< wxFont * >(argp1);
14680 {
14681 PyThreadState* __tstate = wxPyBeginAllowThreads();
14682 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14683 wxPyEndAllowThreads(__tstate);
14684 if (PyErr_Occurred()) SWIG_fail;
14685 }
14686 {
14687#if wxUSE_UNICODE
14688 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14689#else
14690 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14691#endif
14692 }
14693 return resultobj;
14694fail:
14695 return NULL;
d14a1e28
RD
14696}
14697
14698
0085ce49
RD
14699SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14700 PyObject *resultobj = 0;
14701 wxFont *arg1 = (wxFont *) 0 ;
14702 wxString result;
14703 void *argp1 = 0 ;
14704 int res1 = 0 ;
14705 PyObject *swig_obj[1] ;
14706
14707 if (!args) SWIG_fail;
14708 swig_obj[0] = args;
14709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14710 if (!SWIG_IsOK(res1)) {
14711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14712 }
14713 arg1 = reinterpret_cast< wxFont * >(argp1);
14714 {
14715 PyThreadState* __tstate = wxPyBeginAllowThreads();
14716 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14717 wxPyEndAllowThreads(__tstate);
14718 if (PyErr_Occurred()) SWIG_fail;
14719 }
14720 {
14721#if wxUSE_UNICODE
14722 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14723#else
14724 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14725#endif
14726 }
14727 return resultobj;
14728fail:
14729 return NULL;
14730}
14731
14732
14733SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14734 PyObject *resultobj = 0;
14735 wxFont *arg1 = (wxFont *) 0 ;
14736 int arg2 ;
14737 void *argp1 = 0 ;
14738 int res1 = 0 ;
14739 int val2 ;
14740 int ecode2 = 0 ;
14741 PyObject * obj0 = 0 ;
14742 PyObject * obj1 = 0 ;
14743 char * kwnames[] = {
14744 (char *) "self",(char *) "pointSize", NULL
14745 };
14746
14747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14749 if (!SWIG_IsOK(res1)) {
14750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14751 }
14752 arg1 = reinterpret_cast< wxFont * >(argp1);
14753 ecode2 = SWIG_AsVal_int(obj1, &val2);
14754 if (!SWIG_IsOK(ecode2)) {
14755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14756 }
14757 arg2 = static_cast< int >(val2);
14758 {
14759 PyThreadState* __tstate = wxPyBeginAllowThreads();
14760 (arg1)->SetPointSize(arg2);
14761 wxPyEndAllowThreads(__tstate);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 }
14764 resultobj = SWIG_Py_Void();
14765 return resultobj;
14766fail:
14767 return NULL;
14768}
14769
14770
14771SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14772 PyObject *resultobj = 0;
14773 wxFont *arg1 = (wxFont *) 0 ;
14774 wxSize *arg2 = 0 ;
14775 void *argp1 = 0 ;
14776 int res1 = 0 ;
14777 wxSize temp2 ;
14778 PyObject * obj0 = 0 ;
14779 PyObject * obj1 = 0 ;
14780 char * kwnames[] = {
14781 (char *) "self",(char *) "pixelSize", NULL
14782 };
14783
14784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14786 if (!SWIG_IsOK(res1)) {
14787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14788 }
14789 arg1 = reinterpret_cast< wxFont * >(argp1);
14790 {
14791 arg2 = &temp2;
14792 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14793 }
14794 {
14795 PyThreadState* __tstate = wxPyBeginAllowThreads();
14796 (arg1)->SetPixelSize((wxSize const &)*arg2);
14797 wxPyEndAllowThreads(__tstate);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
14800 resultobj = SWIG_Py_Void();
14801 return resultobj;
14802fail:
14803 return NULL;
14804}
14805
14806
14807SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14808 PyObject *resultobj = 0;
14809 wxFont *arg1 = (wxFont *) 0 ;
14810 int arg2 ;
14811 void *argp1 = 0 ;
14812 int res1 = 0 ;
14813 int val2 ;
14814 int ecode2 = 0 ;
14815 PyObject * obj0 = 0 ;
14816 PyObject * obj1 = 0 ;
14817 char * kwnames[] = {
14818 (char *) "self",(char *) "family", NULL
14819 };
14820
14821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14823 if (!SWIG_IsOK(res1)) {
14824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14825 }
14826 arg1 = reinterpret_cast< wxFont * >(argp1);
14827 ecode2 = SWIG_AsVal_int(obj1, &val2);
14828 if (!SWIG_IsOK(ecode2)) {
14829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14830 }
14831 arg2 = static_cast< int >(val2);
14832 {
14833 PyThreadState* __tstate = wxPyBeginAllowThreads();
14834 (arg1)->SetFamily(arg2);
14835 wxPyEndAllowThreads(__tstate);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
14838 resultobj = SWIG_Py_Void();
14839 return resultobj;
14840fail:
14841 return NULL;
14842}
14843
14844
14845SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14846 PyObject *resultobj = 0;
14847 wxFont *arg1 = (wxFont *) 0 ;
14848 int arg2 ;
14849 void *argp1 = 0 ;
14850 int res1 = 0 ;
14851 int val2 ;
14852 int ecode2 = 0 ;
14853 PyObject * obj0 = 0 ;
14854 PyObject * obj1 = 0 ;
14855 char * kwnames[] = {
14856 (char *) "self",(char *) "style", NULL
14857 };
14858
14859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14861 if (!SWIG_IsOK(res1)) {
14862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14863 }
14864 arg1 = reinterpret_cast< wxFont * >(argp1);
14865 ecode2 = SWIG_AsVal_int(obj1, &val2);
14866 if (!SWIG_IsOK(ecode2)) {
14867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14868 }
14869 arg2 = static_cast< int >(val2);
14870 {
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 (arg1)->SetStyle(arg2);
14873 wxPyEndAllowThreads(__tstate);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 }
14876 resultobj = SWIG_Py_Void();
14877 return resultobj;
14878fail:
14879 return NULL;
14880}
14881
14882
14883SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14884 PyObject *resultobj = 0;
14885 wxFont *arg1 = (wxFont *) 0 ;
14886 int arg2 ;
14887 void *argp1 = 0 ;
14888 int res1 = 0 ;
14889 int val2 ;
14890 int ecode2 = 0 ;
14891 PyObject * obj0 = 0 ;
14892 PyObject * obj1 = 0 ;
14893 char * kwnames[] = {
14894 (char *) "self",(char *) "weight", NULL
14895 };
14896
14897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14899 if (!SWIG_IsOK(res1)) {
14900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14901 }
14902 arg1 = reinterpret_cast< wxFont * >(argp1);
14903 ecode2 = SWIG_AsVal_int(obj1, &val2);
14904 if (!SWIG_IsOK(ecode2)) {
14905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14906 }
14907 arg2 = static_cast< int >(val2);
14908 {
14909 PyThreadState* __tstate = wxPyBeginAllowThreads();
14910 (arg1)->SetWeight(arg2);
14911 wxPyEndAllowThreads(__tstate);
14912 if (PyErr_Occurred()) SWIG_fail;
14913 }
14914 resultobj = SWIG_Py_Void();
14915 return resultobj;
14916fail:
14917 return NULL;
14918}
14919
14920
14921SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14922 PyObject *resultobj = 0;
14923 wxFont *arg1 = (wxFont *) 0 ;
14924 wxString *arg2 = 0 ;
704eda0c 14925 bool result;
0085ce49
RD
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 bool temp2 = false ;
14929 PyObject * obj0 = 0 ;
14930 PyObject * obj1 = 0 ;
14931 char * kwnames[] = {
14932 (char *) "self",(char *) "faceName", NULL
14933 };
14934
14935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14937 if (!SWIG_IsOK(res1)) {
14938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14939 }
14940 arg1 = reinterpret_cast< wxFont * >(argp1);
14941 {
14942 arg2 = wxString_in_helper(obj1);
14943 if (arg2 == NULL) SWIG_fail;
14944 temp2 = true;
14945 }
14946 {
14947 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14948 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
14949 wxPyEndAllowThreads(__tstate);
14950 if (PyErr_Occurred()) SWIG_fail;
14951 }
704eda0c
RD
14952 {
14953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14954 }
0085ce49
RD
14955 {
14956 if (temp2)
14957 delete arg2;
14958 }
14959 return resultobj;
14960fail:
14961 {
14962 if (temp2)
14963 delete arg2;
14964 }
14965 return NULL;
14966}
14967
14968
14969SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14970 PyObject *resultobj = 0;
14971 wxFont *arg1 = (wxFont *) 0 ;
14972 bool arg2 ;
14973 void *argp1 = 0 ;
14974 int res1 = 0 ;
14975 bool val2 ;
14976 int ecode2 = 0 ;
14977 PyObject * obj0 = 0 ;
14978 PyObject * obj1 = 0 ;
14979 char * kwnames[] = {
14980 (char *) "self",(char *) "underlined", NULL
14981 };
14982
14983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14985 if (!SWIG_IsOK(res1)) {
14986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14987 }
14988 arg1 = reinterpret_cast< wxFont * >(argp1);
14989 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14990 if (!SWIG_IsOK(ecode2)) {
14991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14992 }
14993 arg2 = static_cast< bool >(val2);
14994 {
14995 PyThreadState* __tstate = wxPyBeginAllowThreads();
14996 (arg1)->SetUnderlined(arg2);
14997 wxPyEndAllowThreads(__tstate);
14998 if (PyErr_Occurred()) SWIG_fail;
14999 }
15000 resultobj = SWIG_Py_Void();
15001 return resultobj;
15002fail:
15003 return NULL;
15004}
15005
15006
15007SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15008 PyObject *resultobj = 0;
15009 wxFont *arg1 = (wxFont *) 0 ;
15010 wxFontEncoding arg2 ;
15011 void *argp1 = 0 ;
15012 int res1 = 0 ;
15013 int val2 ;
15014 int ecode2 = 0 ;
15015 PyObject * obj0 = 0 ;
15016 PyObject * obj1 = 0 ;
15017 char * kwnames[] = {
15018 (char *) "self",(char *) "encoding", NULL
15019 };
15020
15021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15023 if (!SWIG_IsOK(res1)) {
15024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15025 }
15026 arg1 = reinterpret_cast< wxFont * >(argp1);
15027 ecode2 = SWIG_AsVal_int(obj1, &val2);
15028 if (!SWIG_IsOK(ecode2)) {
15029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15030 }
15031 arg2 = static_cast< wxFontEncoding >(val2);
15032 {
15033 PyThreadState* __tstate = wxPyBeginAllowThreads();
15034 (arg1)->SetEncoding(arg2);
15035 wxPyEndAllowThreads(__tstate);
15036 if (PyErr_Occurred()) SWIG_fail;
15037 }
15038 resultobj = SWIG_Py_Void();
15039 return resultobj;
15040fail:
15041 return NULL;
15042}
15043
15044
15045SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15046 PyObject *resultobj = 0;
15047 wxFont *arg1 = (wxFont *) 0 ;
15048 wxNativeFontInfo *arg2 = 0 ;
15049 void *argp1 = 0 ;
15050 int res1 = 0 ;
15051 void *argp2 = 0 ;
15052 int res2 = 0 ;
15053 PyObject * obj0 = 0 ;
15054 PyObject * obj1 = 0 ;
15055 char * kwnames[] = {
15056 (char *) "self",(char *) "info", NULL
15057 };
15058
15059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15061 if (!SWIG_IsOK(res1)) {
15062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15063 }
15064 arg1 = reinterpret_cast< wxFont * >(argp1);
15065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15066 if (!SWIG_IsOK(res2)) {
15067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15068 }
15069 if (!argp2) {
15070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15071 }
15072 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 resultobj = SWIG_Py_Void();
15080 return resultobj;
15081fail:
15082 return NULL;
15083}
15084
15085
15086SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15087 PyObject *resultobj = 0;
15088 wxFont *arg1 = (wxFont *) 0 ;
15089 wxString *arg2 = 0 ;
704eda0c 15090 bool result;
0085ce49
RD
15091 void *argp1 = 0 ;
15092 int res1 = 0 ;
15093 bool temp2 = false ;
15094 PyObject * obj0 = 0 ;
15095 PyObject * obj1 = 0 ;
15096 char * kwnames[] = {
15097 (char *) "self",(char *) "info", NULL
15098 };
15099
15100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15102 if (!SWIG_IsOK(res1)) {
15103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15104 }
15105 arg1 = reinterpret_cast< wxFont * >(argp1);
15106 {
15107 arg2 = wxString_in_helper(obj1);
15108 if (arg2 == NULL) SWIG_fail;
15109 temp2 = true;
15110 }
15111 {
15112 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15113 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
15114 wxPyEndAllowThreads(__tstate);
15115 if (PyErr_Occurred()) SWIG_fail;
15116 }
704eda0c
RD
15117 {
15118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15119 }
0085ce49
RD
15120 {
15121 if (temp2)
15122 delete arg2;
15123 }
15124 return resultobj;
15125fail:
15126 {
15127 if (temp2)
15128 delete arg2;
15129 }
15130 return NULL;
d14a1e28
RD
15131}
15132
15133
0085ce49
RD
15134SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15135 PyObject *resultobj = 0;
15136 wxFont *arg1 = (wxFont *) 0 ;
15137 wxString *arg2 = 0 ;
704eda0c 15138 bool result;
0085ce49
RD
15139 void *argp1 = 0 ;
15140 int res1 = 0 ;
15141 bool temp2 = false ;
15142 PyObject * obj0 = 0 ;
15143 PyObject * obj1 = 0 ;
15144 char * kwnames[] = {
15145 (char *) "self",(char *) "info", NULL
15146 };
15147
15148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15150 if (!SWIG_IsOK(res1)) {
15151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15152 }
15153 arg1 = reinterpret_cast< wxFont * >(argp1);
15154 {
15155 arg2 = wxString_in_helper(obj1);
15156 if (arg2 == NULL) SWIG_fail;
15157 temp2 = true;
15158 }
15159 {
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15161 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
15162 wxPyEndAllowThreads(__tstate);
15163 if (PyErr_Occurred()) SWIG_fail;
15164 }
704eda0c
RD
15165 {
15166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15167 }
0085ce49
RD
15168 {
15169 if (temp2)
15170 delete arg2;
15171 }
15172 return resultobj;
15173fail:
15174 {
15175 if (temp2)
15176 delete arg2;
15177 }
15178 return NULL;
d14a1e28
RD
15179}
15180
15181
0085ce49
RD
15182SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15183 PyObject *resultobj = 0;
15184 wxFont *arg1 = (wxFont *) 0 ;
15185 wxString result;
15186 void *argp1 = 0 ;
15187 int res1 = 0 ;
15188 PyObject *swig_obj[1] ;
15189
15190 if (!args) SWIG_fail;
15191 swig_obj[0] = args;
15192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15193 if (!SWIG_IsOK(res1)) {
15194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15195 }
15196 arg1 = reinterpret_cast< wxFont * >(argp1);
15197 {
15198 PyThreadState* __tstate = wxPyBeginAllowThreads();
15199 result = ((wxFont const *)arg1)->GetFamilyString();
15200 wxPyEndAllowThreads(__tstate);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 {
15204#if wxUSE_UNICODE
15205 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15206#else
15207 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15208#endif
15209 }
15210 return resultobj;
15211fail:
15212 return NULL;
d14a1e28
RD
15213}
15214
15215
0085ce49
RD
15216SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15217 PyObject *resultobj = 0;
15218 wxFont *arg1 = (wxFont *) 0 ;
15219 wxString result;
15220 void *argp1 = 0 ;
15221 int res1 = 0 ;
15222 PyObject *swig_obj[1] ;
15223
15224 if (!args) SWIG_fail;
15225 swig_obj[0] = args;
15226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15227 if (!SWIG_IsOK(res1)) {
15228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15229 }
15230 arg1 = reinterpret_cast< wxFont * >(argp1);
15231 {
15232 PyThreadState* __tstate = wxPyBeginAllowThreads();
15233 result = ((wxFont const *)arg1)->GetStyleString();
15234 wxPyEndAllowThreads(__tstate);
15235 if (PyErr_Occurred()) SWIG_fail;
15236 }
15237 {
15238#if wxUSE_UNICODE
15239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15240#else
15241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15242#endif
15243 }
15244 return resultobj;
15245fail:
15246 return NULL;
d14a1e28
RD
15247}
15248
15249
0085ce49
RD
15250SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15251 PyObject *resultobj = 0;
15252 wxFont *arg1 = (wxFont *) 0 ;
15253 wxString result;
15254 void *argp1 = 0 ;
15255 int res1 = 0 ;
15256 PyObject *swig_obj[1] ;
15257
15258 if (!args) SWIG_fail;
15259 swig_obj[0] = args;
15260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15261 if (!SWIG_IsOK(res1)) {
15262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15263 }
15264 arg1 = reinterpret_cast< wxFont * >(argp1);
15265 {
15266 PyThreadState* __tstate = wxPyBeginAllowThreads();
15267 result = ((wxFont const *)arg1)->GetWeightString();
15268 wxPyEndAllowThreads(__tstate);
15269 if (PyErr_Occurred()) SWIG_fail;
15270 }
15271 {
d14a1e28 15272#if wxUSE_UNICODE
0085ce49 15273 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 15274#else
0085ce49 15275 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 15276#endif
0085ce49
RD
15277 }
15278 return resultobj;
15279fail:
15280 return NULL;
15281}
15282
15283
15284SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15285 PyObject *resultobj = 0;
15286 wxFont *arg1 = (wxFont *) 0 ;
15287 bool arg2 = (bool) true ;
15288 void *argp1 = 0 ;
15289 int res1 = 0 ;
15290 bool val2 ;
15291 int ecode2 = 0 ;
15292 PyObject * obj0 = 0 ;
15293 PyObject * obj1 = 0 ;
15294 char * kwnames[] = {
15295 (char *) "self",(char *) "no", NULL
15296 };
15297
15298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15300 if (!SWIG_IsOK(res1)) {
15301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15302 }
15303 arg1 = reinterpret_cast< wxFont * >(argp1);
15304 if (obj1) {
15305 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15306 if (!SWIG_IsOK(ecode2)) {
15307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15308 }
15309 arg2 = static_cast< bool >(val2);
15310 }
15311 {
15312 PyThreadState* __tstate = wxPyBeginAllowThreads();
15313 (arg1)->SetNoAntiAliasing(arg2);
15314 wxPyEndAllowThreads(__tstate);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 resultobj = SWIG_Py_Void();
15318 return resultobj;
15319fail:
15320 return NULL;
d14a1e28
RD
15321}
15322
15323
0085ce49
RD
15324SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15325 PyObject *resultobj = 0;
15326 wxFont *arg1 = (wxFont *) 0 ;
15327 bool result;
15328 void *argp1 = 0 ;
15329 int res1 = 0 ;
15330 PyObject *swig_obj[1] ;
15331
15332 if (!args) SWIG_fail;
15333 swig_obj[0] = args;
15334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15335 if (!SWIG_IsOK(res1)) {
15336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15337 }
15338 arg1 = reinterpret_cast< wxFont * >(argp1);
15339 {
15340 PyThreadState* __tstate = wxPyBeginAllowThreads();
15341 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15342 wxPyEndAllowThreads(__tstate);
15343 if (PyErr_Occurred()) SWIG_fail;
15344 }
15345 {
15346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15347 }
15348 return resultobj;
15349fail:
15350 return NULL;
d14a1e28
RD
15351}
15352
15353
0085ce49
RD
15354SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15355 PyObject *resultobj = 0;
15356 wxFontEncoding result;
15357
15358 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15359 {
15360 if (!wxPyCheckForApp()) SWIG_fail;
15361 PyThreadState* __tstate = wxPyBeginAllowThreads();
15362 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15363 wxPyEndAllowThreads(__tstate);
15364 if (PyErr_Occurred()) SWIG_fail;
15365 }
15366 resultobj = SWIG_From_int(static_cast< int >(result));
15367 return resultobj;
15368fail:
15369 return NULL;
d14a1e28
RD
15370}
15371
15372
0085ce49
RD
15373SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15374 PyObject *resultobj = 0;
15375 wxFontEncoding arg1 ;
15376 int val1 ;
15377 int ecode1 = 0 ;
15378 PyObject * obj0 = 0 ;
15379 char * kwnames[] = {
15380 (char *) "encoding", NULL
15381 };
15382
15383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15384 ecode1 = SWIG_AsVal_int(obj0, &val1);
15385 if (!SWIG_IsOK(ecode1)) {
15386 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15387 }
15388 arg1 = static_cast< wxFontEncoding >(val1);
15389 {
15390 if (!wxPyCheckForApp()) SWIG_fail;
15391 PyThreadState* __tstate = wxPyBeginAllowThreads();
15392 wxFont::SetDefaultEncoding(arg1);
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 resultobj = SWIG_Py_Void();
15397 return resultobj;
15398fail:
15399 return NULL;
d14a1e28
RD
15400}
15401
15402
0085ce49
RD
15403SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15404 PyObject *obj;
15405 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15406 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15407 return SWIG_Py_Void();
d14a1e28
RD
15408}
15409
0085ce49
RD
15410SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15411 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15412}
15413
0085ce49
RD
15414SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15415 PyObject *resultobj = 0;
15416 wxPyFontEnumerator *result = 0 ;
15417
15418 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15419 {
15420 if (!wxPyCheckForApp()) SWIG_fail;
15421 PyThreadState* __tstate = wxPyBeginAllowThreads();
15422 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15423 wxPyEndAllowThreads(__tstate);
15424 if (PyErr_Occurred()) SWIG_fail;
15425 }
15426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15427 return resultobj;
15428fail:
15429 return NULL;
d14a1e28
RD
15430}
15431
15432
0085ce49
RD
15433SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15434 PyObject *resultobj = 0;
15435 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15436 void *argp1 = 0 ;
15437 int res1 = 0 ;
15438 PyObject *swig_obj[1] ;
15439
15440 if (!args) SWIG_fail;
15441 swig_obj[0] = args;
15442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15443 if (!SWIG_IsOK(res1)) {
15444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15445 }
15446 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15447 {
15448 PyThreadState* __tstate = wxPyBeginAllowThreads();
15449 delete arg1;
d14a1e28 15450
0085ce49
RD
15451 wxPyEndAllowThreads(__tstate);
15452 if (PyErr_Occurred()) SWIG_fail;
15453 }
15454 resultobj = SWIG_Py_Void();
15455 return resultobj;
15456fail:
15457 return NULL;
15458}
15459
15460
15461SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15462 PyObject *resultobj = 0;
15463 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15464 PyObject *arg2 = (PyObject *) 0 ;
15465 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 15466 int arg4 = (int) 0 ;
0085ce49
RD
15467 void *argp1 = 0 ;
15468 int res1 = 0 ;
c25f90f6 15469 int val4 ;
0085ce49
RD
15470 int ecode4 = 0 ;
15471 PyObject * obj0 = 0 ;
15472 PyObject * obj1 = 0 ;
15473 PyObject * obj2 = 0 ;
15474 PyObject * obj3 = 0 ;
15475 char * kwnames[] = {
15476 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15477 };
15478
c25f90f6 15479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
15480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15481 if (!SWIG_IsOK(res1)) {
15482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15483 }
15484 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15485 arg2 = obj1;
15486 arg3 = obj2;
c25f90f6
RD
15487 if (obj3) {
15488 ecode4 = SWIG_AsVal_int(obj3, &val4);
15489 if (!SWIG_IsOK(ecode4)) {
15490 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15491 }
15492 arg4 = static_cast< int >(val4);
15493 }
0085ce49
RD
15494 {
15495 PyThreadState* __tstate = wxPyBeginAllowThreads();
15496 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15497 wxPyEndAllowThreads(__tstate);
15498 if (PyErr_Occurred()) SWIG_fail;
15499 }
15500 resultobj = SWIG_Py_Void();
15501 return resultobj;
15502fail:
15503 return NULL;
15504}
15505
15506
15507SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15508 PyObject *resultobj = 0;
15509 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15510 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15511 bool arg3 = (bool) false ;
15512 bool result;
15513 void *argp1 = 0 ;
15514 int res1 = 0 ;
15515 int val2 ;
15516 int ecode2 = 0 ;
15517 bool val3 ;
15518 int ecode3 = 0 ;
15519 PyObject * obj0 = 0 ;
15520 PyObject * obj1 = 0 ;
15521 PyObject * obj2 = 0 ;
15522 char * kwnames[] = {
15523 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15524 };
15525
15526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15528 if (!SWIG_IsOK(res1)) {
15529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15530 }
15531 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15532 if (obj1) {
15533 ecode2 = SWIG_AsVal_int(obj1, &val2);
15534 if (!SWIG_IsOK(ecode2)) {
15535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15536 }
15537 arg2 = static_cast< wxFontEncoding >(val2);
15538 }
15539 if (obj2) {
15540 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15541 if (!SWIG_IsOK(ecode3)) {
15542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15543 }
15544 arg3 = static_cast< bool >(val3);
15545 }
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15549 wxPyEndAllowThreads(__tstate);
15550 if (PyErr_Occurred()) SWIG_fail;
15551 }
15552 {
15553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15554 }
15555 return resultobj;
15556fail:
15557 return NULL;
15558}
15559
15560
15561SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15562 PyObject *resultobj = 0;
15563 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15564 wxString const &arg2_defvalue = wxPyEmptyString ;
15565 wxString *arg2 = (wxString *) &arg2_defvalue ;
15566 bool result;
15567 void *argp1 = 0 ;
15568 int res1 = 0 ;
15569 bool temp2 = false ;
15570 PyObject * obj0 = 0 ;
15571 PyObject * obj1 = 0 ;
15572 char * kwnames[] = {
15573 (char *) "self",(char *) "facename", NULL
15574 };
15575
15576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15578 if (!SWIG_IsOK(res1)) {
15579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15580 }
15581 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15582 if (obj1) {
d14a1e28 15583 {
0085ce49
RD
15584 arg2 = wxString_in_helper(obj1);
15585 if (arg2 == NULL) SWIG_fail;
15586 temp2 = true;
d14a1e28 15587 }
0085ce49
RD
15588 }
15589 {
15590 PyThreadState* __tstate = wxPyBeginAllowThreads();
15591 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15592 wxPyEndAllowThreads(__tstate);
15593 if (PyErr_Occurred()) SWIG_fail;
15594 }
15595 {
15596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15597 }
15598 {
15599 if (temp2)
15600 delete arg2;
15601 }
15602 return resultobj;
15603fail:
15604 {
15605 if (temp2)
15606 delete arg2;
15607 }
15608 return NULL;
d14a1e28
RD
15609}
15610
15611
0085ce49
RD
15612SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15613 PyObject *resultobj = 0;
0085ce49 15614 PyObject *result = 0 ;
0085ce49 15615
704eda0c 15616 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
15617 {
15618 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15619 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
15620 wxPyEndAllowThreads(__tstate);
15621 if (PyErr_Occurred()) SWIG_fail;
15622 }
15623 resultobj = result;
15624 return resultobj;
15625fail:
15626 return NULL;
d14a1e28
RD
15627}
15628
15629
0085ce49
RD
15630SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15631 PyObject *resultobj = 0;
0085ce49 15632 PyObject *result = 0 ;
0085ce49 15633
704eda0c 15634 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
15635 {
15636 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15637 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
15638 wxPyEndAllowThreads(__tstate);
15639 if (PyErr_Occurred()) SWIG_fail;
15640 }
15641 resultobj = result;
15642 return resultobj;
15643fail:
15644 return NULL;
d14a1e28
RD
15645}
15646
15647
704eda0c
RD
15648SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15649 PyObject *resultobj = 0;
15650 wxString *arg1 = 0 ;
15651 bool result;
15652 bool temp1 = false ;
15653 PyObject * obj0 = 0 ;
15654 char * kwnames[] = {
15655 (char *) "str", NULL
15656 };
15657
15658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15659 {
15660 arg1 = wxString_in_helper(obj0);
15661 if (arg1 == NULL) SWIG_fail;
15662 temp1 = true;
15663 }
15664 {
15665 PyThreadState* __tstate = wxPyBeginAllowThreads();
15666 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15667 wxPyEndAllowThreads(__tstate);
15668 if (PyErr_Occurred()) SWIG_fail;
15669 }
15670 {
15671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15672 }
15673 {
15674 if (temp1)
15675 delete arg1;
15676 }
15677 return resultobj;
15678fail:
15679 {
15680 if (temp1)
15681 delete arg1;
15682 }
15683 return NULL;
15684}
15685
15686
0085ce49
RD
15687SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15688 PyObject *obj;
15689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15690 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15691 return SWIG_Py_Void();
d14a1e28
RD
15692}
15693
0085ce49
RD
15694SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15695 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15696}
15697
0085ce49
RD
15698SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15699 PyObject *resultobj = 0;
15700 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15701 int arg2 ;
15702 void *argp1 = 0 ;
15703 int res1 = 0 ;
15704 int val2 ;
15705 int ecode2 = 0 ;
15706 PyObject *swig_obj[2] ;
15707
15708 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15710 if (!SWIG_IsOK(res1)) {
15711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15712 }
15713 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15714 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15715 if (!SWIG_IsOK(ecode2)) {
15716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15717 }
15718 arg2 = static_cast< int >(val2);
15719 if (arg1) (arg1)->Language = arg2;
15720
15721 resultobj = SWIG_Py_Void();
15722 return resultobj;
15723fail:
15724 return NULL;
d14a1e28
RD
15725}
15726
15727
0085ce49
RD
15728SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15729 PyObject *resultobj = 0;
15730 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15731 int result;
15732 void *argp1 = 0 ;
15733 int res1 = 0 ;
15734 PyObject *swig_obj[1] ;
15735
15736 if (!args) SWIG_fail;
15737 swig_obj[0] = args;
15738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15739 if (!SWIG_IsOK(res1)) {
15740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15741 }
15742 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15743 result = (int) ((arg1)->Language);
15744 resultobj = SWIG_From_int(static_cast< int >(result));
15745 return resultobj;
15746fail:
15747 return NULL;
15748}
15749
15750
15751SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15752 PyObject *resultobj = 0;
15753 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15754 wxString *arg2 = (wxString *) 0 ;
15755 void *argp1 = 0 ;
15756 int res1 = 0 ;
15757 bool temp2 = false ;
15758 PyObject *swig_obj[2] ;
15759
15760 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15762 if (!SWIG_IsOK(res1)) {
15763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15764 }
15765 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15766 {
15767 arg2 = wxString_in_helper(swig_obj[1]);
15768 if (arg2 == NULL) SWIG_fail;
15769 temp2 = true;
15770 }
15771 if (arg1) (arg1)->CanonicalName = *arg2;
15772
15773 resultobj = SWIG_Py_Void();
15774 {
15775 if (temp2)
15776 delete arg2;
15777 }
15778 return resultobj;
15779fail:
15780 {
15781 if (temp2)
15782 delete arg2;
15783 }
15784 return NULL;
d14a1e28
RD
15785}
15786
15787
0085ce49
RD
15788SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15789 PyObject *resultobj = 0;
15790 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15791 wxString *result = 0 ;
15792 void *argp1 = 0 ;
15793 int res1 = 0 ;
15794 PyObject *swig_obj[1] ;
15795
15796 if (!args) SWIG_fail;
15797 swig_obj[0] = args;
15798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15799 if (!SWIG_IsOK(res1)) {
15800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15801 }
15802 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15803 result = (wxString *)& ((arg1)->CanonicalName);
15804 {
093d3ff1 15805#if wxUSE_UNICODE
0085ce49 15806 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 15807#else
0085ce49 15808 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 15809#endif
0085ce49
RD
15810 }
15811 return resultobj;
15812fail:
15813 return NULL;
d14a1e28
RD
15814}
15815
15816
0085ce49
RD
15817SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15818 PyObject *resultobj = 0;
15819 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15820 wxString *arg2 = (wxString *) 0 ;
15821 void *argp1 = 0 ;
15822 int res1 = 0 ;
15823 bool temp2 = false ;
15824 PyObject *swig_obj[2] ;
15825
15826 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15828 if (!SWIG_IsOK(res1)) {
15829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15830 }
15831 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15832 {
15833 arg2 = wxString_in_helper(swig_obj[1]);
15834 if (arg2 == NULL) SWIG_fail;
15835 temp2 = true;
15836 }
15837 if (arg1) (arg1)->Description = *arg2;
15838
15839 resultobj = SWIG_Py_Void();
15840 {
15841 if (temp2)
15842 delete arg2;
15843 }
15844 return resultobj;
15845fail:
15846 {
15847 if (temp2)
15848 delete arg2;
15849 }
15850 return NULL;
d14a1e28
RD
15851}
15852
15853
0085ce49
RD
15854SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15855 PyObject *resultobj = 0;
15856 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15857 wxString *result = 0 ;
15858 void *argp1 = 0 ;
15859 int res1 = 0 ;
15860 PyObject *swig_obj[1] ;
15861
15862 if (!args) SWIG_fail;
15863 swig_obj[0] = args;
15864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15865 if (!SWIG_IsOK(res1)) {
15866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15867 }
15868 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15869 result = (wxString *)& ((arg1)->Description);
15870 {
d14a1e28 15871#if wxUSE_UNICODE
0085ce49 15872 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 15873#else
0085ce49 15874 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 15875#endif
0085ce49
RD
15876 }
15877 return resultobj;
15878fail:
15879 return NULL;
15880}
15881
15882
15883SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15884 PyObject *obj;
15885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15886 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15887 return SWIG_Py_Void();
15888}
15889
15890SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15891 PyObject *resultobj = 0;
15892 int arg1 = (int) -1 ;
15893 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15894 wxLocale *result = 0 ;
15895 int val1 ;
15896 int ecode1 = 0 ;
15897 int val2 ;
15898 int ecode2 = 0 ;
15899 PyObject * obj0 = 0 ;
15900 PyObject * obj1 = 0 ;
15901 char * kwnames[] = {
15902 (char *) "language",(char *) "flags", NULL
15903 };
15904
15905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15906 if (obj0) {
15907 ecode1 = SWIG_AsVal_int(obj0, &val1);
15908 if (!SWIG_IsOK(ecode1)) {
15909 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15910 }
15911 arg1 = static_cast< int >(val1);
15912 }
15913 if (obj1) {
15914 ecode2 = SWIG_AsVal_int(obj1, &val2);
15915 if (!SWIG_IsOK(ecode2)) {
15916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15917 }
15918 arg2 = static_cast< int >(val2);
15919 }
15920 {
15921 PyThreadState* __tstate = wxPyBeginAllowThreads();
15922 result = (wxLocale *)new_wxLocale(arg1,arg2);
15923 wxPyEndAllowThreads(__tstate);
15924 if (PyErr_Occurred()) SWIG_fail;
15925 }
15926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15927 return resultobj;
15928fail:
15929 return NULL;
d14a1e28
RD
15930}
15931
15932
0085ce49
RD
15933SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15934 PyObject *resultobj = 0;
15935 wxLocale *arg1 = (wxLocale *) 0 ;
15936 void *argp1 = 0 ;
15937 int res1 = 0 ;
15938 PyObject *swig_obj[1] ;
15939
15940 if (!args) SWIG_fail;
15941 swig_obj[0] = args;
15942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15943 if (!SWIG_IsOK(res1)) {
15944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15945 }
15946 arg1 = reinterpret_cast< wxLocale * >(argp1);
15947 {
15948 PyThreadState* __tstate = wxPyBeginAllowThreads();
15949 delete arg1;
d14a1e28 15950
0085ce49
RD
15951 wxPyEndAllowThreads(__tstate);
15952 if (PyErr_Occurred()) SWIG_fail;
15953 }
15954 resultobj = SWIG_Py_Void();
15955 return resultobj;
15956fail:
15957 return NULL;
15958}
15959
15960
15961SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15962 PyObject *resultobj = 0;
15963 wxLocale *arg1 = (wxLocale *) 0 ;
15964 wxString *arg2 = 0 ;
15965 wxString const &arg3_defvalue = wxPyEmptyString ;
15966 wxString *arg3 = (wxString *) &arg3_defvalue ;
15967 wxString const &arg4_defvalue = wxPyEmptyString ;
15968 wxString *arg4 = (wxString *) &arg4_defvalue ;
15969 bool arg5 = (bool) true ;
15970 bool arg6 = (bool) false ;
15971 bool result;
15972 void *argp1 = 0 ;
15973 int res1 = 0 ;
15974 bool temp2 = false ;
15975 bool temp3 = false ;
15976 bool temp4 = false ;
15977 bool val5 ;
15978 int ecode5 = 0 ;
15979 bool val6 ;
15980 int ecode6 = 0 ;
15981 PyObject * obj0 = 0 ;
15982 PyObject * obj1 = 0 ;
15983 PyObject * obj2 = 0 ;
15984 PyObject * obj3 = 0 ;
15985 PyObject * obj4 = 0 ;
15986 PyObject * obj5 = 0 ;
15987 char * kwnames[] = {
15988 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15989 };
15990
15991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15993 if (!SWIG_IsOK(res1)) {
15994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15995 }
15996 arg1 = reinterpret_cast< wxLocale * >(argp1);
15997 {
15998 arg2 = wxString_in_helper(obj1);
15999 if (arg2 == NULL) SWIG_fail;
16000 temp2 = true;
16001 }
16002 if (obj2) {
d14a1e28 16003 {
0085ce49
RD
16004 arg3 = wxString_in_helper(obj2);
16005 if (arg3 == NULL) SWIG_fail;
16006 temp3 = true;
d14a1e28 16007 }
0085ce49
RD
16008 }
16009 if (obj3) {
093d3ff1 16010 {
0085ce49
RD
16011 arg4 = wxString_in_helper(obj3);
16012 if (arg4 == NULL) SWIG_fail;
16013 temp4 = true;
093d3ff1 16014 }
0085ce49
RD
16015 }
16016 if (obj4) {
16017 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16018 if (!SWIG_IsOK(ecode5)) {
16019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16020 }
16021 arg5 = static_cast< bool >(val5);
16022 }
16023 if (obj5) {
16024 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16025 if (!SWIG_IsOK(ecode6)) {
16026 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16027 }
16028 arg6 = static_cast< bool >(val6);
16029 }
16030 {
16031 PyThreadState* __tstate = wxPyBeginAllowThreads();
16032 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16033 wxPyEndAllowThreads(__tstate);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 {
16037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16038 }
16039 {
16040 if (temp2)
16041 delete arg2;
16042 }
16043 {
16044 if (temp3)
16045 delete arg3;
16046 }
16047 {
16048 if (temp4)
16049 delete arg4;
16050 }
16051 return resultobj;
16052fail:
16053 {
16054 if (temp2)
16055 delete arg2;
16056 }
16057 {
16058 if (temp3)
16059 delete arg3;
16060 }
16061 {
16062 if (temp4)
16063 delete arg4;
16064 }
16065 return NULL;
16066}
16067
16068
16069SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16070 PyObject *resultobj = 0;
16071 wxLocale *arg1 = (wxLocale *) 0 ;
16072 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16073 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16074 bool result;
16075 void *argp1 = 0 ;
16076 int res1 = 0 ;
16077 int val2 ;
16078 int ecode2 = 0 ;
16079 int val3 ;
16080 int ecode3 = 0 ;
16081 PyObject * obj0 = 0 ;
16082 PyObject * obj1 = 0 ;
16083 PyObject * obj2 = 0 ;
16084 char * kwnames[] = {
16085 (char *) "self",(char *) "language",(char *) "flags", NULL
16086 };
16087
16088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16090 if (!SWIG_IsOK(res1)) {
16091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16092 }
16093 arg1 = reinterpret_cast< wxLocale * >(argp1);
16094 if (obj1) {
16095 ecode2 = SWIG_AsVal_int(obj1, &val2);
16096 if (!SWIG_IsOK(ecode2)) {
16097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16098 }
16099 arg2 = static_cast< int >(val2);
16100 }
16101 if (obj2) {
16102 ecode3 = SWIG_AsVal_int(obj2, &val3);
16103 if (!SWIG_IsOK(ecode3)) {
16104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16105 }
16106 arg3 = static_cast< int >(val3);
16107 }
16108 {
16109 PyThreadState* __tstate = wxPyBeginAllowThreads();
16110 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16111 wxPyEndAllowThreads(__tstate);
16112 if (PyErr_Occurred()) SWIG_fail;
16113 }
16114 {
16115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16116 }
16117 return resultobj;
16118fail:
16119 return NULL;
093d3ff1
RD
16120}
16121
16122
0085ce49
RD
16123SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16124 PyObject *resultobj = 0;
16125 int result;
16126
16127 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16128 {
16129 PyThreadState* __tstate = wxPyBeginAllowThreads();
16130 result = (int)wxLocale::GetSystemLanguage();
16131 wxPyEndAllowThreads(__tstate);
16132 if (PyErr_Occurred()) SWIG_fail;
16133 }
16134 resultobj = SWIG_From_int(static_cast< int >(result));
16135 return resultobj;
16136fail:
16137 return NULL;
d14a1e28
RD
16138}
16139
16140
0085ce49
RD
16141SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16142 PyObject *resultobj = 0;
16143 wxFontEncoding result;
16144
16145 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16146 {
16147 PyThreadState* __tstate = wxPyBeginAllowThreads();
16148 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16149 wxPyEndAllowThreads(__tstate);
16150 if (PyErr_Occurred()) SWIG_fail;
16151 }
16152 resultobj = SWIG_From_int(static_cast< int >(result));
16153 return resultobj;
16154fail:
16155 return NULL;
d14a1e28
RD
16156}
16157
16158
0085ce49
RD
16159SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16160 PyObject *resultobj = 0;
16161 wxString result;
16162
16163 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16164 {
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 result = wxLocale::GetSystemEncodingName();
16167 wxPyEndAllowThreads(__tstate);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 {
d14a1e28 16171#if wxUSE_UNICODE
0085ce49 16172 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 16173#else
0085ce49 16174 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 16175#endif
0085ce49
RD
16176 }
16177 return resultobj;
16178fail:
16179 return NULL;
d14a1e28
RD
16180}
16181
16182
0085ce49
RD
16183SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16184 PyObject *resultobj = 0;
16185 wxLocale *arg1 = (wxLocale *) 0 ;
16186 bool result;
16187 void *argp1 = 0 ;
16188 int res1 = 0 ;
16189 PyObject *swig_obj[1] ;
16190
16191 if (!args) SWIG_fail;
16192 swig_obj[0] = args;
16193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16194 if (!SWIG_IsOK(res1)) {
16195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16196 }
16197 arg1 = reinterpret_cast< wxLocale * >(argp1);
16198 {
16199 PyThreadState* __tstate = wxPyBeginAllowThreads();
16200 result = (bool)((wxLocale const *)arg1)->IsOk();
16201 wxPyEndAllowThreads(__tstate);
16202 if (PyErr_Occurred()) SWIG_fail;
16203 }
16204 {
16205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16206 }
16207 return resultobj;
16208fail:
16209 return NULL;
093d3ff1 16210}
0085ce49
RD
16211
16212
16213SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16214 PyObject *resultobj = 0;
16215 wxLocale *arg1 = (wxLocale *) 0 ;
16216 wxString result;
16217 void *argp1 = 0 ;
16218 int res1 = 0 ;
16219 PyObject *swig_obj[1] ;
16220
16221 if (!args) SWIG_fail;
16222 swig_obj[0] = args;
16223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16224 if (!SWIG_IsOK(res1)) {
16225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16226 }
16227 arg1 = reinterpret_cast< wxLocale * >(argp1);
16228 {
16229 PyThreadState* __tstate = wxPyBeginAllowThreads();
16230 result = ((wxLocale const *)arg1)->GetLocale();
16231 wxPyEndAllowThreads(__tstate);
16232 if (PyErr_Occurred()) SWIG_fail;
16233 }
16234 {
16235#if wxUSE_UNICODE
16236 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16237#else
16238 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16239#endif
16240 }
16241 return resultobj;
16242fail:
16243 return NULL;
d14a1e28
RD
16244}
16245
16246
0085ce49
RD
16247SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16248 PyObject *resultobj = 0;
16249 wxLocale *arg1 = (wxLocale *) 0 ;
16250 int result;
16251 void *argp1 = 0 ;
16252 int res1 = 0 ;
16253 PyObject *swig_obj[1] ;
16254
16255 if (!args) SWIG_fail;
16256 swig_obj[0] = args;
16257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16258 if (!SWIG_IsOK(res1)) {
16259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16260 }
16261 arg1 = reinterpret_cast< wxLocale * >(argp1);
16262 {
16263 PyThreadState* __tstate = wxPyBeginAllowThreads();
16264 result = (int)((wxLocale const *)arg1)->GetLanguage();
16265 wxPyEndAllowThreads(__tstate);
16266 if (PyErr_Occurred()) SWIG_fail;
16267 }
16268 resultobj = SWIG_From_int(static_cast< int >(result));
16269 return resultobj;
16270fail:
16271 return NULL;
d14a1e28
RD
16272}
16273
16274
0085ce49
RD
16275SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16276 PyObject *resultobj = 0;
16277 wxLocale *arg1 = (wxLocale *) 0 ;
16278 wxString result;
16279 void *argp1 = 0 ;
16280 int res1 = 0 ;
16281 PyObject *swig_obj[1] ;
16282
16283 if (!args) SWIG_fail;
16284 swig_obj[0] = args;
16285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16286 if (!SWIG_IsOK(res1)) {
16287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16288 }
16289 arg1 = reinterpret_cast< wxLocale * >(argp1);
16290 {
16291 PyThreadState* __tstate = wxPyBeginAllowThreads();
16292 result = ((wxLocale const *)arg1)->GetSysName();
16293 wxPyEndAllowThreads(__tstate);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 {
16297#if wxUSE_UNICODE
16298 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16299#else
16300 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16301#endif
16302 }
16303 return resultobj;
16304fail:
16305 return NULL;
d14a1e28
RD
16306}
16307
16308
0085ce49
RD
16309SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16310 PyObject *resultobj = 0;
16311 wxLocale *arg1 = (wxLocale *) 0 ;
16312 wxString result;
16313 void *argp1 = 0 ;
16314 int res1 = 0 ;
16315 PyObject *swig_obj[1] ;
16316
16317 if (!args) SWIG_fail;
16318 swig_obj[0] = args;
16319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16320 if (!SWIG_IsOK(res1)) {
16321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16322 }
16323 arg1 = reinterpret_cast< wxLocale * >(argp1);
16324 {
16325 PyThreadState* __tstate = wxPyBeginAllowThreads();
16326 result = ((wxLocale const *)arg1)->GetCanonicalName();
16327 wxPyEndAllowThreads(__tstate);
16328 if (PyErr_Occurred()) SWIG_fail;
16329 }
16330 {
16331#if wxUSE_UNICODE
16332 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16333#else
16334 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16335#endif
16336 }
16337 return resultobj;
16338fail:
16339 return NULL;
d14a1e28
RD
16340}
16341
16342
0085ce49
RD
16343SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16344 PyObject *resultobj = 0;
16345 wxString *arg1 = 0 ;
16346 bool temp1 = false ;
16347 PyObject * obj0 = 0 ;
16348 char * kwnames[] = {
16349 (char *) "prefix", NULL
16350 };
16351
16352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16353 {
16354 arg1 = wxString_in_helper(obj0);
16355 if (arg1 == NULL) SWIG_fail;
16356 temp1 = true;
16357 }
16358 {
16359 PyThreadState* __tstate = wxPyBeginAllowThreads();
16360 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16361 wxPyEndAllowThreads(__tstate);
16362 if (PyErr_Occurred()) SWIG_fail;
16363 }
16364 resultobj = SWIG_Py_Void();
16365 {
16366 if (temp1)
16367 delete arg1;
16368 }
16369 return resultobj;
16370fail:
16371 {
16372 if (temp1)
16373 delete arg1;
16374 }
16375 return NULL;
16376}
16377
16378
16379SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16380 PyObject *resultobj = 0;
16381 wxLocale *arg1 = (wxLocale *) 0 ;
16382 wxString *arg2 = 0 ;
16383 bool result;
16384 void *argp1 = 0 ;
16385 int res1 = 0 ;
16386 bool temp2 = false ;
16387 PyObject * obj0 = 0 ;
16388 PyObject * obj1 = 0 ;
16389 char * kwnames[] = {
16390 (char *) "self",(char *) "szDomain", NULL
16391 };
16392
16393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16395 if (!SWIG_IsOK(res1)) {
16396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16397 }
16398 arg1 = reinterpret_cast< wxLocale * >(argp1);
16399 {
16400 arg2 = wxString_in_helper(obj1);
16401 if (arg2 == NULL) SWIG_fail;
16402 temp2 = true;
16403 }
16404 {
16405 PyThreadState* __tstate = wxPyBeginAllowThreads();
16406 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16407 wxPyEndAllowThreads(__tstate);
16408 if (PyErr_Occurred()) SWIG_fail;
16409 }
16410 {
16411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16412 }
16413 {
16414 if (temp2)
16415 delete arg2;
16416 }
16417 return resultobj;
16418fail:
16419 {
16420 if (temp2)
16421 delete arg2;
16422 }
16423 return NULL;
16424}
16425
16426
33d6fd3b
RD
16427SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16428 PyObject *resultobj = 0;
16429 int arg1 ;
16430 bool result;
16431 int val1 ;
16432 int ecode1 = 0 ;
16433 PyObject * obj0 = 0 ;
16434 char * kwnames[] = {
16435 (char *) "lang", NULL
16436 };
16437
16438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16439 ecode1 = SWIG_AsVal_int(obj0, &val1);
16440 if (!SWIG_IsOK(ecode1)) {
16441 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16442 }
16443 arg1 = static_cast< int >(val1);
16444 {
16445 PyThreadState* __tstate = wxPyBeginAllowThreads();
16446 result = (bool)wxLocale::IsAvailable(arg1);
16447 wxPyEndAllowThreads(__tstate);
16448 if (PyErr_Occurred()) SWIG_fail;
16449 }
16450 {
16451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16452 }
16453 return resultobj;
16454fail:
16455 return NULL;
16456}
16457
16458
0085ce49
RD
16459SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16460 PyObject *resultobj = 0;
16461 wxLocale *arg1 = (wxLocale *) 0 ;
16462 wxString *arg2 = 0 ;
16463 bool result;
16464 void *argp1 = 0 ;
16465 int res1 = 0 ;
16466 bool temp2 = false ;
16467 PyObject * obj0 = 0 ;
16468 PyObject * obj1 = 0 ;
16469 char * kwnames[] = {
16470 (char *) "self",(char *) "szDomain", NULL
16471 };
16472
16473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16475 if (!SWIG_IsOK(res1)) {
16476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16477 }
16478 arg1 = reinterpret_cast< wxLocale * >(argp1);
16479 {
16480 arg2 = wxString_in_helper(obj1);
16481 if (arg2 == NULL) SWIG_fail;
16482 temp2 = true;
16483 }
16484 {
16485 PyThreadState* __tstate = wxPyBeginAllowThreads();
16486 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16487 wxPyEndAllowThreads(__tstate);
16488 if (PyErr_Occurred()) SWIG_fail;
16489 }
16490 {
16491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16492 }
16493 {
16494 if (temp2)
16495 delete arg2;
16496 }
16497 return resultobj;
16498fail:
16499 {
16500 if (temp2)
16501 delete arg2;
16502 }
16503 return NULL;
d14a1e28
RD
16504}
16505
16506
0085ce49
RD
16507SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16508 PyObject *resultobj = 0;
16509 int arg1 ;
16510 wxLanguageInfo *result = 0 ;
16511 int val1 ;
16512 int ecode1 = 0 ;
16513 PyObject * obj0 = 0 ;
16514 char * kwnames[] = {
16515 (char *) "lang", NULL
16516 };
16517
16518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16519 ecode1 = SWIG_AsVal_int(obj0, &val1);
16520 if (!SWIG_IsOK(ecode1)) {
16521 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16522 }
16523 arg1 = static_cast< int >(val1);
16524 {
16525 PyThreadState* __tstate = wxPyBeginAllowThreads();
16526 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16527 wxPyEndAllowThreads(__tstate);
16528 if (PyErr_Occurred()) SWIG_fail;
16529 }
16530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16531 return resultobj;
16532fail:
16533 return NULL;
16534}
16535
16536
16537SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16538 PyObject *resultobj = 0;
16539 int arg1 ;
16540 wxString result;
16541 int val1 ;
16542 int ecode1 = 0 ;
16543 PyObject * obj0 = 0 ;
16544 char * kwnames[] = {
16545 (char *) "lang", NULL
16546 };
16547
16548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16549 ecode1 = SWIG_AsVal_int(obj0, &val1);
16550 if (!SWIG_IsOK(ecode1)) {
16551 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16552 }
16553 arg1 = static_cast< int >(val1);
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
16556 result = wxLocale::GetLanguageName(arg1);
16557 wxPyEndAllowThreads(__tstate);
16558 if (PyErr_Occurred()) SWIG_fail;
16559 }
16560 {
16561#if wxUSE_UNICODE
16562 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16563#else
16564 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16565#endif
16566 }
16567 return resultobj;
16568fail:
16569 return NULL;
d14a1e28
RD
16570}
16571
16572
0085ce49
RD
16573SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16574 PyObject *resultobj = 0;
16575 wxString *arg1 = 0 ;
16576 wxLanguageInfo *result = 0 ;
16577 bool temp1 = false ;
16578 PyObject * obj0 = 0 ;
16579 char * kwnames[] = {
16580 (char *) "locale", NULL
16581 };
16582
16583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16584 {
16585 arg1 = wxString_in_helper(obj0);
16586 if (arg1 == NULL) SWIG_fail;
16587 temp1 = true;
16588 }
16589 {
16590 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16591 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16592 wxPyEndAllowThreads(__tstate);
16593 if (PyErr_Occurred()) SWIG_fail;
16594 }
16595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16596 {
16597 if (temp1)
16598 delete arg1;
16599 }
16600 return resultobj;
16601fail:
16602 {
16603 if (temp1)
16604 delete arg1;
16605 }
16606 return NULL;
16607}
16608
16609
16610SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16611 PyObject *resultobj = 0;
16612 wxLanguageInfo *arg1 = 0 ;
16613 void *argp1 = 0 ;
16614 int res1 = 0 ;
16615 PyObject * obj0 = 0 ;
16616 char * kwnames[] = {
16617 (char *) "info", NULL
16618 };
16619
16620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16621 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16622 if (!SWIG_IsOK(res1)) {
16623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16624 }
16625 if (!argp1) {
16626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16627 }
16628 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16629 {
16630 PyThreadState* __tstate = wxPyBeginAllowThreads();
16631 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16632 wxPyEndAllowThreads(__tstate);
16633 if (PyErr_Occurred()) SWIG_fail;
16634 }
16635 resultobj = SWIG_Py_Void();
16636 return resultobj;
16637fail:
16638 return NULL;
16639}
16640
16641
16642SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16643 PyObject *resultobj = 0;
16644 wxLocale *arg1 = (wxLocale *) 0 ;
16645 wxString *arg2 = 0 ;
16646 wxString const &arg3_defvalue = wxPyEmptyString ;
16647 wxString *arg3 = (wxString *) &arg3_defvalue ;
16648 wxString result;
16649 void *argp1 = 0 ;
16650 int res1 = 0 ;
16651 bool temp2 = false ;
16652 bool temp3 = false ;
16653 PyObject * obj0 = 0 ;
16654 PyObject * obj1 = 0 ;
16655 PyObject * obj2 = 0 ;
16656 char * kwnames[] = {
16657 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16658 };
16659
16660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16662 if (!SWIG_IsOK(res1)) {
16663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16664 }
16665 arg1 = reinterpret_cast< wxLocale * >(argp1);
16666 {
16667 arg2 = wxString_in_helper(obj1);
16668 if (arg2 == NULL) SWIG_fail;
16669 temp2 = true;
16670 }
16671 if (obj2) {
16672 {
16673 arg3 = wxString_in_helper(obj2);
16674 if (arg3 == NULL) SWIG_fail;
16675 temp3 = true;
16676 }
16677 }
16678 {
16679 PyThreadState* __tstate = wxPyBeginAllowThreads();
16680 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16681 wxPyEndAllowThreads(__tstate);
16682 if (PyErr_Occurred()) SWIG_fail;
16683 }
16684 {
16685#if wxUSE_UNICODE
16686 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16687#else
16688 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16689#endif
16690 }
16691 {
16692 if (temp2)
16693 delete arg2;
16694 }
16695 {
16696 if (temp3)
16697 delete arg3;
16698 }
16699 return resultobj;
16700fail:
16701 {
16702 if (temp2)
16703 delete arg2;
16704 }
16705 {
16706 if (temp3)
16707 delete arg3;
16708 }
16709 return NULL;
16710}
16711
16712
16713SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16714 PyObject *resultobj = 0;
16715 wxLocale *arg1 = (wxLocale *) 0 ;
16716 wxString *result = 0 ;
16717 void *argp1 = 0 ;
16718 int res1 = 0 ;
16719 PyObject *swig_obj[1] ;
16720
16721 if (!args) SWIG_fail;
16722 swig_obj[0] = args;
16723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16724 if (!SWIG_IsOK(res1)) {
16725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16726 }
16727 arg1 = reinterpret_cast< wxLocale * >(argp1);
16728 {
16729 PyThreadState* __tstate = wxPyBeginAllowThreads();
16730 {
16731 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16732 result = (wxString *) &_result_ref;
16733 }
16734 wxPyEndAllowThreads(__tstate);
16735 if (PyErr_Occurred()) SWIG_fail;
16736 }
16737 {
16738#if wxUSE_UNICODE
16739 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16740#else
16741 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16742#endif
16743 }
16744 return resultobj;
16745fail:
16746 return NULL;
16747}
16748
16749
16750SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16751 PyObject *obj;
16752 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16753 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16754 return SWIG_Py_Void();
16755}
16756
16757SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16758 return SWIG_Python_InitShadowInstance(args);
16759}
16760
16761SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16762 PyObject *resultobj = 0;
16763 int arg1 = (int) -1 ;
16764 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16765 wxPyLocale *result = 0 ;
16766 int val1 ;
16767 int ecode1 = 0 ;
16768 int val2 ;
16769 int ecode2 = 0 ;
16770 PyObject * obj0 = 0 ;
16771 PyObject * obj1 = 0 ;
16772 char * kwnames[] = {
16773 (char *) "language",(char *) "flags", NULL
16774 };
16775
16776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16777 if (obj0) {
16778 ecode1 = SWIG_AsVal_int(obj0, &val1);
16779 if (!SWIG_IsOK(ecode1)) {
16780 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16781 }
16782 arg1 = static_cast< int >(val1);
16783 }
16784 if (obj1) {
16785 ecode2 = SWIG_AsVal_int(obj1, &val2);
16786 if (!SWIG_IsOK(ecode2)) {
16787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16788 }
16789 arg2 = static_cast< int >(val2);
16790 }
16791 {
16792 PyThreadState* __tstate = wxPyBeginAllowThreads();
16793 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16794 wxPyEndAllowThreads(__tstate);
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16798 return resultobj;
16799fail:
16800 return NULL;
16801}
16802
16803
16804SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16805 PyObject *resultobj = 0;
16806 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16807 void *argp1 = 0 ;
16808 int res1 = 0 ;
16809 PyObject *swig_obj[1] ;
16810
16811 if (!args) SWIG_fail;
16812 swig_obj[0] = args;
16813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16814 if (!SWIG_IsOK(res1)) {
16815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16816 }
16817 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16818 {
16819 PyThreadState* __tstate = wxPyBeginAllowThreads();
16820 delete arg1;
16821
0085ce49
RD
16822 wxPyEndAllowThreads(__tstate);
16823 if (PyErr_Occurred()) SWIG_fail;
16824 }
fc46b7f3 16825 resultobj = SWIG_Py_Void();
0085ce49
RD
16826 return resultobj;
16827fail:
0085ce49 16828 return NULL;
d14a1e28
RD
16829}
16830
16831
fc46b7f3 16832SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16833 PyObject *resultobj = 0;
fc46b7f3
RD
16834 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16835 PyObject *arg2 = (PyObject *) 0 ;
16836 PyObject *arg3 = (PyObject *) 0 ;
0085ce49
RD
16837 void *argp1 = 0 ;
16838 int res1 = 0 ;
16839 PyObject * obj0 = 0 ;
fc46b7f3
RD
16840 PyObject * obj1 = 0 ;
16841 PyObject * obj2 = 0 ;
0085ce49 16842 char * kwnames[] = {
fc46b7f3 16843 (char *) "self",(char *) "self",(char *) "_class", NULL
0085ce49
RD
16844 };
16845
fc46b7f3
RD
16846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16848 if (!SWIG_IsOK(res1)) {
fc46b7f3 16849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
0085ce49 16850 }
fc46b7f3
RD
16851 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16852 arg2 = obj1;
16853 arg3 = obj2;
0085ce49
RD
16854 {
16855 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16856 (arg1)->_setCallbackInfo(arg2,arg3);
0085ce49
RD
16857 wxPyEndAllowThreads(__tstate);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 resultobj = SWIG_Py_Void();
16861 return resultobj;
16862fail:
16863 return NULL;
16864}
16865
16866
fc46b7f3 16867SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16868 PyObject *resultobj = 0;
fc46b7f3
RD
16869 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16870 wxChar *arg2 = (wxChar *) 0 ;
16871 wxChar *arg3 = (wxChar *) NULL ;
16872 wxChar *result = 0 ;
0085ce49
RD
16873 void *argp1 = 0 ;
16874 int res1 = 0 ;
fc46b7f3
RD
16875 void *argp2 = 0 ;
16876 int res2 = 0 ;
16877 void *argp3 = 0 ;
16878 int res3 = 0 ;
0085ce49
RD
16879 PyObject * obj0 = 0 ;
16880 PyObject * obj1 = 0 ;
16881 PyObject * obj2 = 0 ;
16882 char * kwnames[] = {
16883 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16884 };
16885
fc46b7f3
RD
16886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16888 if (!SWIG_IsOK(res1)) {
fc46b7f3 16889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
0085ce49 16890 }
fc46b7f3
RD
16891 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16892 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16893 if (!SWIG_IsOK(res2)) {
16894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
0085ce49 16895 }
fc46b7f3 16896 arg2 = reinterpret_cast< wxChar * >(argp2);
0085ce49 16897 if (obj2) {
fc46b7f3
RD
16898 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16899 if (!SWIG_IsOK(res3)) {
16900 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
b6294124 16901 }
fc46b7f3 16902 arg3 = reinterpret_cast< wxChar * >(argp3);
0085ce49
RD
16903 }
16904 {
16905 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16906 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
0085ce49
RD
16907 wxPyEndAllowThreads(__tstate);
16908 if (PyErr_Occurred()) SWIG_fail;
16909 }
fc46b7f3 16910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16911 return resultobj;
16912fail:
0085ce49 16913 return NULL;
b6294124
RD
16914}
16915
16916
fc46b7f3 16917SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16918 PyObject *resultobj = 0;
fc46b7f3
RD
16919 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16920 wxChar *arg2 = (wxChar *) 0 ;
16921 wxChar *arg3 = (wxChar *) 0 ;
16922 size_t arg4 ;
16923 wxChar *arg5 = (wxChar *) NULL ;
16924 wxChar *result = 0 ;
0085ce49
RD
16925 void *argp1 = 0 ;
16926 int res1 = 0 ;
fc46b7f3
RD
16927 void *argp2 = 0 ;
16928 int res2 = 0 ;
16929 void *argp3 = 0 ;
16930 int res3 = 0 ;
16931 size_t val4 ;
16932 int ecode4 = 0 ;
16933 void *argp5 = 0 ;
16934 int res5 = 0 ;
16935 PyObject * obj0 = 0 ;
16936 PyObject * obj1 = 0 ;
16937 PyObject * obj2 = 0 ;
16938 PyObject * obj3 = 0 ;
16939 PyObject * obj4 = 0 ;
16940 char * kwnames[] = {
16941 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16942 };
0085ce49 16943
fc46b7f3
RD
16944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16946 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16948 }
16949 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16950 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16951 if (!SWIG_IsOK(res2)) {
16952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16953 }
16954 arg2 = reinterpret_cast< wxChar * >(argp2);
16955 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16956 if (!SWIG_IsOK(res3)) {
16957 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16958 }
16959 arg3 = reinterpret_cast< wxChar * >(argp3);
16960 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16961 if (!SWIG_IsOK(ecode4)) {
16962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16963 }
16964 arg4 = static_cast< size_t >(val4);
16965 if (obj4) {
16966 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16967 if (!SWIG_IsOK(res5)) {
16968 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16969 }
16970 arg5 = reinterpret_cast< wxChar * >(argp5);
0085ce49 16971 }
0085ce49
RD
16972 {
16973 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16974 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
0085ce49
RD
16975 wxPyEndAllowThreads(__tstate);
16976 if (PyErr_Occurred()) SWIG_fail;
16977 }
fc46b7f3 16978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16979 return resultobj;
16980fail:
16981 return NULL;
d14a1e28
RD
16982}
16983
16984
fc46b7f3 16985SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16986 PyObject *obj;
16987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16988 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
0085ce49 16989 return SWIG_Py_Void();
d14a1e28
RD
16990}
16991
fc46b7f3 16992SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16993 return SWIG_Python_InitShadowInstance(args);
16994}
d14a1e28 16995
0085ce49
RD
16996SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16997 PyObject *resultobj = 0;
16998 wxLocale *result = 0 ;
16999
17000 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17001 {
17002 PyThreadState* __tstate = wxPyBeginAllowThreads();
17003 result = (wxLocale *)wxGetLocale();
17004 wxPyEndAllowThreads(__tstate);
17005 if (PyErr_Occurred()) SWIG_fail;
17006 }
17007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17008 return resultobj;
17009fail:
17010 return NULL;
d14a1e28
RD
17011}
17012
17013
0085ce49
RD
17014SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17015 PyObject *resultobj = 0;
17016 wxString *arg1 = 0 ;
17017 wxString result;
17018 bool temp1 = false ;
17019
17020 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17021 {
17022 arg1 = wxString_in_helper(swig_obj[0]);
17023 if (arg1 == NULL) SWIG_fail;
17024 temp1 = true;
17025 }
17026 {
17027 PyThreadState* __tstate = wxPyBeginAllowThreads();
17028 result = wxGetTranslation((wxString const &)*arg1);
17029 wxPyEndAllowThreads(__tstate);
17030 if (PyErr_Occurred()) SWIG_fail;
17031 }
17032 {
093d3ff1 17033#if wxUSE_UNICODE
0085ce49 17034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17035#else
0085ce49 17036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17037#endif
0085ce49
RD
17038 }
17039 {
17040 if (temp1)
17041 delete arg1;
17042 }
17043 return resultobj;
17044fail:
17045 {
17046 if (temp1)
17047 delete arg1;
17048 }
17049 return NULL;
b6294124
RD
17050}
17051
17052
0085ce49 17053SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17054 PyObject *resultobj = 0;
17055 wxString *arg1 = 0 ;
17056 wxString *arg2 = 0 ;
17057 wxString result;
17058 bool temp1 = false ;
17059 bool temp2 = false ;
17060
17061 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17062 {
17063 arg1 = wxString_in_helper(swig_obj[0]);
17064 if (arg1 == NULL) SWIG_fail;
17065 temp1 = true;
17066 }
17067 {
17068 arg2 = wxString_in_helper(swig_obj[1]);
17069 if (arg2 == NULL) SWIG_fail;
17070 temp2 = true;
17071 }
17072 {
17073 PyThreadState* __tstate = wxPyBeginAllowThreads();
17074 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17075 wxPyEndAllowThreads(__tstate);
17076 if (PyErr_Occurred()) SWIG_fail;
17077 }
17078 {
17079#if wxUSE_UNICODE
17080 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17081#else
17082 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17083#endif
17084 }
17085 {
17086 if (temp1)
17087 delete arg1;
17088 }
17089 {
17090 if (temp2)
17091 delete arg2;
17092 }
17093 return resultobj;
17094fail:
17095 {
17096 if (temp1)
17097 delete arg1;
17098 }
17099 {
17100 if (temp2)
17101 delete arg2;
17102 }
17103 return NULL;
17104}
17105
17106
17107SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
17108 PyObject *resultobj = 0;
17109 wxString *arg1 = 0 ;
17110 wxString *arg2 = 0 ;
17111 size_t arg3 ;
17112 wxString result;
17113 bool temp1 = false ;
17114 bool temp2 = false ;
17115 size_t val3 ;
17116 int ecode3 = 0 ;
17117
17118 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17119 {
17120 arg1 = wxString_in_helper(swig_obj[0]);
17121 if (arg1 == NULL) SWIG_fail;
17122 temp1 = true;
17123 }
17124 {
17125 arg2 = wxString_in_helper(swig_obj[1]);
17126 if (arg2 == NULL) SWIG_fail;
17127 temp2 = true;
17128 }
17129 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17130 if (!SWIG_IsOK(ecode3)) {
17131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17132 }
17133 arg3 = static_cast< size_t >(val3);
17134 {
17135 PyThreadState* __tstate = wxPyBeginAllowThreads();
17136 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17137 wxPyEndAllowThreads(__tstate);
17138 if (PyErr_Occurred()) SWIG_fail;
17139 }
17140 {
17141#if wxUSE_UNICODE
17142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17143#else
17144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17145#endif
17146 }
17147 {
17148 if (temp1)
17149 delete arg1;
17150 }
17151 {
17152 if (temp2)
17153 delete arg2;
17154 }
17155 return resultobj;
17156fail:
17157 {
17158 if (temp1)
17159 delete arg1;
17160 }
17161 {
17162 if (temp2)
17163 delete arg2;
17164 }
17165 return NULL;
d14a1e28
RD
17166}
17167
17168
fc46b7f3
RD
17169SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17170 PyObject *resultobj = 0;
17171 wxString *arg1 = 0 ;
17172 wxString *arg2 = 0 ;
17173 size_t arg3 ;
17174 wxString *arg4 = 0 ;
17175 wxString result;
17176 bool temp1 = false ;
17177 bool temp2 = false ;
17178 size_t val3 ;
17179 int ecode3 = 0 ;
17180 bool temp4 = false ;
17181
17182 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17183 {
17184 arg1 = wxString_in_helper(swig_obj[0]);
17185 if (arg1 == NULL) SWIG_fail;
17186 temp1 = true;
17187 }
17188 {
17189 arg2 = wxString_in_helper(swig_obj[1]);
17190 if (arg2 == NULL) SWIG_fail;
17191 temp2 = true;
17192 }
17193 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17194 if (!SWIG_IsOK(ecode3)) {
17195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17196 }
17197 arg3 = static_cast< size_t >(val3);
17198 {
17199 arg4 = wxString_in_helper(swig_obj[3]);
17200 if (arg4 == NULL) SWIG_fail;
17201 temp4 = true;
17202 }
17203 {
17204 PyThreadState* __tstate = wxPyBeginAllowThreads();
17205 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17206 wxPyEndAllowThreads(__tstate);
17207 if (PyErr_Occurred()) SWIG_fail;
17208 }
17209 {
17210#if wxUSE_UNICODE
17211 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17212#else
17213 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17214#endif
17215 }
17216 {
17217 if (temp1)
17218 delete arg1;
17219 }
17220 {
17221 if (temp2)
17222 delete arg2;
17223 }
17224 {
17225 if (temp4)
17226 delete arg4;
17227 }
17228 return resultobj;
17229fail:
17230 {
17231 if (temp1)
17232 delete arg1;
17233 }
17234 {
17235 if (temp2)
17236 delete arg2;
17237 }
17238 {
17239 if (temp4)
17240 delete arg4;
17241 }
17242 return NULL;
17243}
17244
17245
0085ce49
RD
17246SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17247 int argc;
fc46b7f3 17248 PyObject *argv[5];
0085ce49 17249
fc46b7f3 17250 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
0085ce49
RD
17251 --argc;
17252 if (argc == 1) {
17253 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17254 }
fc46b7f3 17255 if (argc == 2) {
0085ce49
RD
17256 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17257 }
fc46b7f3
RD
17258 if (argc == 3) {
17259 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17260 }
17261 if (argc == 4) {
17262 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17263 }
0085ce49
RD
17264
17265fail:
17266 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17267 return NULL;
d14a1e28
RD
17268}
17269
17270
0085ce49
RD
17271SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17272 PyObject *resultobj = 0;
17273 wxEncodingConverter *result = 0 ;
17274
17275 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17276 {
17277 PyThreadState* __tstate = wxPyBeginAllowThreads();
17278 result = (wxEncodingConverter *)new wxEncodingConverter();
17279 wxPyEndAllowThreads(__tstate);
17280 if (PyErr_Occurred()) SWIG_fail;
17281 }
17282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17283 return resultobj;
17284fail:
17285 return NULL;
d14a1e28
RD
17286}
17287
17288
0085ce49
RD
17289SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17290 PyObject *resultobj = 0;
17291 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17292 void *argp1 = 0 ;
17293 int res1 = 0 ;
17294 PyObject *swig_obj[1] ;
17295
17296 if (!args) SWIG_fail;
17297 swig_obj[0] = args;
17298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17299 if (!SWIG_IsOK(res1)) {
17300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17301 }
17302 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17303 {
17304 PyThreadState* __tstate = wxPyBeginAllowThreads();
17305 delete arg1;
d14a1e28 17306
0085ce49
RD
17307 wxPyEndAllowThreads(__tstate);
17308 if (PyErr_Occurred()) SWIG_fail;
17309 }
17310 resultobj = SWIG_Py_Void();
17311 return resultobj;
17312fail:
17313 return NULL;
17314}
17315
17316
17317SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17318 PyObject *resultobj = 0;
17319 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17320 wxFontEncoding arg2 ;
17321 wxFontEncoding arg3 ;
17322 int arg4 = (int) wxCONVERT_STRICT ;
17323 bool result;
17324 void *argp1 = 0 ;
17325 int res1 = 0 ;
17326 int val2 ;
17327 int ecode2 = 0 ;
17328 int val3 ;
17329 int ecode3 = 0 ;
17330 int val4 ;
17331 int ecode4 = 0 ;
17332 PyObject * obj0 = 0 ;
17333 PyObject * obj1 = 0 ;
17334 PyObject * obj2 = 0 ;
17335 PyObject * obj3 = 0 ;
17336 char * kwnames[] = {
17337 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17338 };
17339
17340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17342 if (!SWIG_IsOK(res1)) {
17343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17344 }
17345 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17346 ecode2 = SWIG_AsVal_int(obj1, &val2);
17347 if (!SWIG_IsOK(ecode2)) {
17348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17349 }
17350 arg2 = static_cast< wxFontEncoding >(val2);
17351 ecode3 = SWIG_AsVal_int(obj2, &val3);
17352 if (!SWIG_IsOK(ecode3)) {
17353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17354 }
17355 arg3 = static_cast< wxFontEncoding >(val3);
17356 if (obj3) {
17357 ecode4 = SWIG_AsVal_int(obj3, &val4);
17358 if (!SWIG_IsOK(ecode4)) {
17359 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17360 }
17361 arg4 = static_cast< int >(val4);
17362 }
17363 {
17364 PyThreadState* __tstate = wxPyBeginAllowThreads();
17365 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17366 wxPyEndAllowThreads(__tstate);
17367 if (PyErr_Occurred()) SWIG_fail;
17368 }
17369 {
17370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17371 }
17372 return resultobj;
17373fail:
17374 return NULL;
17375}
17376
17377
17378SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17379 PyObject *resultobj = 0;
17380 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17381 wxString *arg2 = 0 ;
17382 wxString result;
17383 void *argp1 = 0 ;
17384 int res1 = 0 ;
17385 bool temp2 = false ;
17386 PyObject * obj0 = 0 ;
17387 PyObject * obj1 = 0 ;
17388 char * kwnames[] = {
17389 (char *) "self",(char *) "input", NULL
17390 };
17391
17392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17394 if (!SWIG_IsOK(res1)) {
17395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17396 }
17397 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17398 {
17399 arg2 = wxString_in_helper(obj1);
17400 if (arg2 == NULL) SWIG_fail;
17401 temp2 = true;
17402 }
17403 {
17404 PyThreadState* __tstate = wxPyBeginAllowThreads();
17405 result = (arg1)->Convert((wxString const &)*arg2);
17406 wxPyEndAllowThreads(__tstate);
17407 if (PyErr_Occurred()) SWIG_fail;
17408 }
17409 {
17410#if wxUSE_UNICODE
17411 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17412#else
17413 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17414#endif
17415 }
17416 {
17417 if (temp2)
17418 delete arg2;
17419 }
17420 return resultobj;
17421fail:
17422 {
17423 if (temp2)
17424 delete arg2;
17425 }
17426 return NULL;
17427}
17428
17429
17430SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17431 PyObject *resultobj = 0;
17432 wxFontEncoding arg1 ;
17433 int arg2 = (int) wxPLATFORM_CURRENT ;
17434 wxFontEncodingArray result;
17435 int val1 ;
17436 int ecode1 = 0 ;
17437 int val2 ;
17438 int ecode2 = 0 ;
17439 PyObject * obj0 = 0 ;
17440 PyObject * obj1 = 0 ;
17441 char * kwnames[] = {
17442 (char *) "enc",(char *) "platform", NULL
17443 };
17444
17445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17446 ecode1 = SWIG_AsVal_int(obj0, &val1);
17447 if (!SWIG_IsOK(ecode1)) {
17448 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17449 }
17450 arg1 = static_cast< wxFontEncoding >(val1);
17451 if (obj1) {
17452 ecode2 = SWIG_AsVal_int(obj1, &val2);
17453 if (!SWIG_IsOK(ecode2)) {
17454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17455 }
17456 arg2 = static_cast< int >(val2);
17457 }
17458 {
17459 PyThreadState* __tstate = wxPyBeginAllowThreads();
17460 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17461 wxPyEndAllowThreads(__tstate);
17462 if (PyErr_Occurred()) SWIG_fail;
17463 }
17464 {
17465 resultobj = PyList_New(0);
17466 for (size_t i=0; i < (&result)->GetCount(); i++) {
17467 PyObject* number = PyInt_FromLong((&result)->Item(i));
17468 PyList_Append(resultobj, number);
17469 Py_DECREF(number);
093d3ff1 17470 }
0085ce49
RD
17471 }
17472 return resultobj;
17473fail:
17474 return NULL;
d14a1e28
RD
17475}
17476
17477
0085ce49
RD
17478SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17479 PyObject *resultobj = 0;
17480 wxFontEncoding arg1 ;
17481 wxFontEncodingArray result;
17482 int val1 ;
17483 int ecode1 = 0 ;
17484 PyObject * obj0 = 0 ;
17485 char * kwnames[] = {
17486 (char *) "enc", NULL
17487 };
17488
17489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17490 ecode1 = SWIG_AsVal_int(obj0, &val1);
17491 if (!SWIG_IsOK(ecode1)) {
17492 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17493 }
17494 arg1 = static_cast< wxFontEncoding >(val1);
17495 {
17496 PyThreadState* __tstate = wxPyBeginAllowThreads();
17497 result = wxEncodingConverter::GetAllEquivalents(arg1);
17498 wxPyEndAllowThreads(__tstate);
17499 if (PyErr_Occurred()) SWIG_fail;
17500 }
17501 {
17502 resultobj = PyList_New(0);
17503 for (size_t i=0; i < (&result)->GetCount(); i++) {
17504 PyObject* number = PyInt_FromLong((&result)->Item(i));
17505 PyList_Append(resultobj, number);
17506 Py_DECREF(number);
093d3ff1 17507 }
0085ce49
RD
17508 }
17509 return resultobj;
17510fail:
17511 return NULL;
17512}
17513
17514
17515SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17516 PyObject *resultobj = 0;
17517 wxFontEncoding arg1 ;
17518 wxFontEncoding arg2 ;
17519 bool result;
17520 int val1 ;
17521 int ecode1 = 0 ;
17522 int val2 ;
17523 int ecode2 = 0 ;
17524 PyObject * obj0 = 0 ;
17525 PyObject * obj1 = 0 ;
17526 char * kwnames[] = {
17527 (char *) "encIn",(char *) "encOut", NULL
17528 };
17529
17530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17531 ecode1 = SWIG_AsVal_int(obj0, &val1);
17532 if (!SWIG_IsOK(ecode1)) {
17533 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17534 }
17535 arg1 = static_cast< wxFontEncoding >(val1);
17536 ecode2 = SWIG_AsVal_int(obj1, &val2);
17537 if (!SWIG_IsOK(ecode2)) {
17538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17539 }
17540 arg2 = static_cast< wxFontEncoding >(val2);
17541 {
17542 PyThreadState* __tstate = wxPyBeginAllowThreads();
17543 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17544 wxPyEndAllowThreads(__tstate);
17545 if (PyErr_Occurred()) SWIG_fail;
17546 }
17547 {
17548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17549 }
17550 return resultobj;
17551fail:
17552 return NULL;
d14a1e28
RD
17553}
17554
17555
0085ce49
RD
17556SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17557 PyObject *obj;
17558 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17559 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17560 return SWIG_Py_Void();
d14a1e28
RD
17561}
17562
0085ce49
RD
17563SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17564 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
17565}
17566
0085ce49
RD
17567SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17568 PyObject *resultobj = 0;
17569 wxDC *arg1 = (wxDC *) 0 ;
17570 void *argp1 = 0 ;
17571 int res1 = 0 ;
17572 PyObject *swig_obj[1] ;
17573
17574 if (!args) SWIG_fail;
17575 swig_obj[0] = args;
17576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17577 if (!SWIG_IsOK(res1)) {
17578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17579 }
17580 arg1 = reinterpret_cast< wxDC * >(argp1);
17581 {
17582 PyThreadState* __tstate = wxPyBeginAllowThreads();
17583 delete arg1;
d14a1e28 17584
0085ce49
RD
17585 wxPyEndAllowThreads(__tstate);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 }
17588 resultobj = SWIG_Py_Void();
17589 return resultobj;
17590fail:
17591 return NULL;
17592}
17593
17594
17595SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17596 PyObject *resultobj = 0;
17597 wxDC *arg1 = (wxDC *) 0 ;
17598 int arg2 ;
17599 int arg3 ;
17600 wxColour *arg4 = 0 ;
17601 int arg5 = (int) wxFLOOD_SURFACE ;
17602 bool result;
17603 void *argp1 = 0 ;
17604 int res1 = 0 ;
17605 int val2 ;
17606 int ecode2 = 0 ;
17607 int val3 ;
17608 int ecode3 = 0 ;
17609 wxColour temp4 ;
17610 int val5 ;
17611 int ecode5 = 0 ;
17612 PyObject * obj0 = 0 ;
17613 PyObject * obj1 = 0 ;
17614 PyObject * obj2 = 0 ;
17615 PyObject * obj3 = 0 ;
17616 PyObject * obj4 = 0 ;
17617 char * kwnames[] = {
17618 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17619 };
17620
17621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17623 if (!SWIG_IsOK(res1)) {
17624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17625 }
17626 arg1 = reinterpret_cast< wxDC * >(argp1);
17627 ecode2 = SWIG_AsVal_int(obj1, &val2);
17628 if (!SWIG_IsOK(ecode2)) {
17629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17630 }
17631 arg2 = static_cast< int >(val2);
17632 ecode3 = SWIG_AsVal_int(obj2, &val3);
17633 if (!SWIG_IsOK(ecode3)) {
17634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17635 }
17636 arg3 = static_cast< int >(val3);
17637 {
17638 arg4 = &temp4;
17639 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17640 }
17641 if (obj4) {
17642 ecode5 = SWIG_AsVal_int(obj4, &val5);
17643 if (!SWIG_IsOK(ecode5)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17645 }
17646 arg5 = static_cast< int >(val5);
17647 }
17648 {
17649 PyThreadState* __tstate = wxPyBeginAllowThreads();
17650 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17651 wxPyEndAllowThreads(__tstate);
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 {
17655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17656 }
17657 return resultobj;
17658fail:
17659 return NULL;
17660}
17661
17662
17663SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17664 PyObject *resultobj = 0;
17665 wxDC *arg1 = (wxDC *) 0 ;
17666 wxPoint *arg2 = 0 ;
17667 wxColour *arg3 = 0 ;
17668 int arg4 = (int) wxFLOOD_SURFACE ;
17669 bool result;
17670 void *argp1 = 0 ;
17671 int res1 = 0 ;
17672 wxPoint temp2 ;
17673 wxColour temp3 ;
17674 int val4 ;
17675 int ecode4 = 0 ;
17676 PyObject * obj0 = 0 ;
17677 PyObject * obj1 = 0 ;
17678 PyObject * obj2 = 0 ;
17679 PyObject * obj3 = 0 ;
17680 char * kwnames[] = {
17681 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17682 };
17683
17684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17686 if (!SWIG_IsOK(res1)) {
17687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17688 }
17689 arg1 = reinterpret_cast< wxDC * >(argp1);
17690 {
17691 arg2 = &temp2;
17692 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17693 }
17694 {
17695 arg3 = &temp3;
17696 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17697 }
17698 if (obj3) {
17699 ecode4 = SWIG_AsVal_int(obj3, &val4);
17700 if (!SWIG_IsOK(ecode4)) {
17701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17702 }
17703 arg4 = static_cast< int >(val4);
17704 }
17705 {
17706 PyThreadState* __tstate = wxPyBeginAllowThreads();
17707 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17708 wxPyEndAllowThreads(__tstate);
17709 if (PyErr_Occurred()) SWIG_fail;
17710 }
17711 {
17712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17713 }
17714 return resultobj;
17715fail:
17716 return NULL;
17717}
17718
17719
17720SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17721 PyObject *resultobj = 0;
17722 wxDC *arg1 = (wxDC *) 0 ;
17723 wxRect *arg2 = 0 ;
17724 wxColour *arg3 = 0 ;
17725 wxColour *arg4 = 0 ;
17726 wxPoint *arg5 = 0 ;
17727 void *argp1 = 0 ;
17728 int res1 = 0 ;
17729 wxRect temp2 ;
17730 wxColour temp3 ;
17731 wxColour temp4 ;
17732 wxPoint temp5 ;
17733 PyObject * obj0 = 0 ;
17734 PyObject * obj1 = 0 ;
17735 PyObject * obj2 = 0 ;
17736 PyObject * obj3 = 0 ;
17737 PyObject * obj4 = 0 ;
17738 char * kwnames[] = {
17739 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17740 };
17741
17742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17744 if (!SWIG_IsOK(res1)) {
17745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17746 }
17747 arg1 = reinterpret_cast< wxDC * >(argp1);
17748 {
17749 arg2 = &temp2;
17750 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17751 }
17752 {
17753 arg3 = &temp3;
17754 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17755 }
17756 {
17757 arg4 = &temp4;
17758 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17759 }
17760 {
17761 arg5 = &temp5;
17762 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17763 }
17764 {
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 resultobj = SWIG_Py_Void();
17771 return resultobj;
17772fail:
17773 return NULL;
17774}
17775
17776
17777SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17778 PyObject *resultobj = 0;
17779 wxDC *arg1 = (wxDC *) 0 ;
17780 wxRect *arg2 = 0 ;
17781 wxColour *arg3 = 0 ;
17782 wxColour *arg4 = 0 ;
17783 wxDirection arg5 = (wxDirection) wxEAST ;
17784 void *argp1 = 0 ;
17785 int res1 = 0 ;
17786 wxRect temp2 ;
17787 wxColour temp3 ;
17788 wxColour temp4 ;
17789 int val5 ;
17790 int ecode5 = 0 ;
17791 PyObject * obj0 = 0 ;
17792 PyObject * obj1 = 0 ;
17793 PyObject * obj2 = 0 ;
17794 PyObject * obj3 = 0 ;
17795 PyObject * obj4 = 0 ;
17796 char * kwnames[] = {
17797 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17798 };
17799
17800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17802 if (!SWIG_IsOK(res1)) {
17803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17804 }
17805 arg1 = reinterpret_cast< wxDC * >(argp1);
17806 {
17807 arg2 = &temp2;
17808 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17809 }
17810 {
17811 arg3 = &temp3;
17812 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17813 }
17814 {
17815 arg4 = &temp4;
17816 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17817 }
17818 if (obj4) {
17819 ecode5 = SWIG_AsVal_int(obj4, &val5);
17820 if (!SWIG_IsOK(ecode5)) {
17821 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17822 }
17823 arg5 = static_cast< wxDirection >(val5);
17824 }
17825 {
17826 PyThreadState* __tstate = wxPyBeginAllowThreads();
17827 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17828 wxPyEndAllowThreads(__tstate);
17829 if (PyErr_Occurred()) SWIG_fail;
17830 }
17831 resultobj = SWIG_Py_Void();
17832 return resultobj;
17833fail:
17834 return NULL;
17835}
17836
17837
17838SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17839 PyObject *resultobj = 0;
17840 wxDC *arg1 = (wxDC *) 0 ;
17841 int arg2 ;
17842 int arg3 ;
17843 wxColour result;
17844 void *argp1 = 0 ;
17845 int res1 = 0 ;
17846 int val2 ;
17847 int ecode2 = 0 ;
17848 int val3 ;
17849 int ecode3 = 0 ;
17850 PyObject * obj0 = 0 ;
17851 PyObject * obj1 = 0 ;
17852 PyObject * obj2 = 0 ;
17853 char * kwnames[] = {
17854 (char *) "self",(char *) "x",(char *) "y", NULL
17855 };
17856
17857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17859 if (!SWIG_IsOK(res1)) {
17860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17861 }
17862 arg1 = reinterpret_cast< wxDC * >(argp1);
17863 ecode2 = SWIG_AsVal_int(obj1, &val2);
17864 if (!SWIG_IsOK(ecode2)) {
17865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17866 }
17867 arg2 = static_cast< int >(val2);
17868 ecode3 = SWIG_AsVal_int(obj2, &val3);
17869 if (!SWIG_IsOK(ecode3)) {
17870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17871 }
17872 arg3 = static_cast< int >(val3);
17873 {
17874 PyThreadState* __tstate = wxPyBeginAllowThreads();
17875 result = wxDC_GetPixel(arg1,arg2,arg3);
17876 wxPyEndAllowThreads(__tstate);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 }
17879 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17880 return resultobj;
17881fail:
17882 return NULL;
17883}
17884
17885
17886SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17887 PyObject *resultobj = 0;
17888 wxDC *arg1 = (wxDC *) 0 ;
17889 wxPoint *arg2 = 0 ;
17890 wxColour result;
17891 void *argp1 = 0 ;
17892 int res1 = 0 ;
17893 wxPoint temp2 ;
17894 PyObject * obj0 = 0 ;
17895 PyObject * obj1 = 0 ;
17896 char * kwnames[] = {
17897 (char *) "self",(char *) "pt", NULL
17898 };
17899
17900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17902 if (!SWIG_IsOK(res1)) {
17903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17904 }
17905 arg1 = reinterpret_cast< wxDC * >(argp1);
17906 {
17907 arg2 = &temp2;
17908 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17909 }
17910 {
17911 PyThreadState* __tstate = wxPyBeginAllowThreads();
17912 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17913 wxPyEndAllowThreads(__tstate);
17914 if (PyErr_Occurred()) SWIG_fail;
17915 }
17916 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17917 return resultobj;
17918fail:
17919 return NULL;
17920}
17921
17922
17923SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17924 PyObject *resultobj = 0;
17925 wxDC *arg1 = (wxDC *) 0 ;
17926 int arg2 ;
17927 int arg3 ;
17928 int arg4 ;
17929 int arg5 ;
17930 void *argp1 = 0 ;
17931 int res1 = 0 ;
17932 int val2 ;
17933 int ecode2 = 0 ;
17934 int val3 ;
17935 int ecode3 = 0 ;
17936 int val4 ;
17937 int ecode4 = 0 ;
17938 int val5 ;
17939 int ecode5 = 0 ;
17940 PyObject * obj0 = 0 ;
17941 PyObject * obj1 = 0 ;
17942 PyObject * obj2 = 0 ;
17943 PyObject * obj3 = 0 ;
17944 PyObject * obj4 = 0 ;
17945 char * kwnames[] = {
17946 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17947 };
17948
17949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17951 if (!SWIG_IsOK(res1)) {
17952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17953 }
17954 arg1 = reinterpret_cast< wxDC * >(argp1);
17955 ecode2 = SWIG_AsVal_int(obj1, &val2);
17956 if (!SWIG_IsOK(ecode2)) {
17957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17958 }
17959 arg2 = static_cast< int >(val2);
17960 ecode3 = SWIG_AsVal_int(obj2, &val3);
17961 if (!SWIG_IsOK(ecode3)) {
17962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17963 }
17964 arg3 = static_cast< int >(val3);
17965 ecode4 = SWIG_AsVal_int(obj3, &val4);
17966 if (!SWIG_IsOK(ecode4)) {
17967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17968 }
17969 arg4 = static_cast< int >(val4);
17970 ecode5 = SWIG_AsVal_int(obj4, &val5);
17971 if (!SWIG_IsOK(ecode5)) {
17972 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17973 }
17974 arg5 = static_cast< int >(val5);
17975 {
17976 PyThreadState* __tstate = wxPyBeginAllowThreads();
17977 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17978 wxPyEndAllowThreads(__tstate);
17979 if (PyErr_Occurred()) SWIG_fail;
17980 }
17981 resultobj = SWIG_Py_Void();
17982 return resultobj;
17983fail:
17984 return NULL;
17985}
17986
17987
17988SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17989 PyObject *resultobj = 0;
17990 wxDC *arg1 = (wxDC *) 0 ;
17991 wxPoint *arg2 = 0 ;
17992 wxPoint *arg3 = 0 ;
17993 void *argp1 = 0 ;
17994 int res1 = 0 ;
17995 wxPoint temp2 ;
17996 wxPoint temp3 ;
17997 PyObject * obj0 = 0 ;
17998 PyObject * obj1 = 0 ;
17999 PyObject * obj2 = 0 ;
18000 char * kwnames[] = {
18001 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18002 };
18003
18004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18006 if (!SWIG_IsOK(res1)) {
18007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18008 }
18009 arg1 = reinterpret_cast< wxDC * >(argp1);
18010 {
18011 arg2 = &temp2;
18012 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18013 }
18014 {
18015 arg3 = &temp3;
18016 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18017 }
18018 {
18019 PyThreadState* __tstate = wxPyBeginAllowThreads();
18020 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 resultobj = SWIG_Py_Void();
18025 return resultobj;
18026fail:
18027 return NULL;
18028}
18029
18030
18031SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18032 PyObject *resultobj = 0;
18033 wxDC *arg1 = (wxDC *) 0 ;
18034 int arg2 ;
18035 int arg3 ;
18036 void *argp1 = 0 ;
18037 int res1 = 0 ;
18038 int val2 ;
18039 int ecode2 = 0 ;
18040 int val3 ;
18041 int ecode3 = 0 ;
18042 PyObject * obj0 = 0 ;
18043 PyObject * obj1 = 0 ;
18044 PyObject * obj2 = 0 ;
18045 char * kwnames[] = {
18046 (char *) "self",(char *) "x",(char *) "y", NULL
18047 };
18048
18049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18051 if (!SWIG_IsOK(res1)) {
18052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18053 }
18054 arg1 = reinterpret_cast< wxDC * >(argp1);
18055 ecode2 = SWIG_AsVal_int(obj1, &val2);
18056 if (!SWIG_IsOK(ecode2)) {
18057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18058 }
18059 arg2 = static_cast< int >(val2);
18060 ecode3 = SWIG_AsVal_int(obj2, &val3);
18061 if (!SWIG_IsOK(ecode3)) {
18062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18063 }
18064 arg3 = static_cast< int >(val3);
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 (arg1)->CrossHair(arg2,arg3);
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_Py_Void();
18072 return resultobj;
18073fail:
18074 return NULL;
18075}
18076
18077
18078SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18079 PyObject *resultobj = 0;
18080 wxDC *arg1 = (wxDC *) 0 ;
18081 wxPoint *arg2 = 0 ;
18082 void *argp1 = 0 ;
18083 int res1 = 0 ;
18084 wxPoint temp2 ;
18085 PyObject * obj0 = 0 ;
18086 PyObject * obj1 = 0 ;
18087 char * kwnames[] = {
18088 (char *) "self",(char *) "pt", NULL
18089 };
18090
18091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18093 if (!SWIG_IsOK(res1)) {
18094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18095 }
18096 arg1 = reinterpret_cast< wxDC * >(argp1);
18097 {
18098 arg2 = &temp2;
18099 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18100 }
18101 {
18102 PyThreadState* __tstate = wxPyBeginAllowThreads();
18103 (arg1)->CrossHair((wxPoint const &)*arg2);
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 resultobj = SWIG_Py_Void();
18108 return resultobj;
18109fail:
18110 return NULL;
18111}
18112
18113
18114SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18115 PyObject *resultobj = 0;
18116 wxDC *arg1 = (wxDC *) 0 ;
18117 int arg2 ;
18118 int arg3 ;
18119 int arg4 ;
18120 int arg5 ;
18121 int arg6 ;
18122 int arg7 ;
18123 void *argp1 = 0 ;
18124 int res1 = 0 ;
18125 int val2 ;
18126 int ecode2 = 0 ;
18127 int val3 ;
18128 int ecode3 = 0 ;
18129 int val4 ;
18130 int ecode4 = 0 ;
18131 int val5 ;
18132 int ecode5 = 0 ;
18133 int val6 ;
18134 int ecode6 = 0 ;
18135 int val7 ;
18136 int ecode7 = 0 ;
18137 PyObject * obj0 = 0 ;
18138 PyObject * obj1 = 0 ;
18139 PyObject * obj2 = 0 ;
18140 PyObject * obj3 = 0 ;
18141 PyObject * obj4 = 0 ;
18142 PyObject * obj5 = 0 ;
18143 PyObject * obj6 = 0 ;
18144 char * kwnames[] = {
18145 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18146 };
18147
18148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18150 if (!SWIG_IsOK(res1)) {
18151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18152 }
18153 arg1 = reinterpret_cast< wxDC * >(argp1);
18154 ecode2 = SWIG_AsVal_int(obj1, &val2);
18155 if (!SWIG_IsOK(ecode2)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18157 }
18158 arg2 = static_cast< int >(val2);
18159 ecode3 = SWIG_AsVal_int(obj2, &val3);
18160 if (!SWIG_IsOK(ecode3)) {
18161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18162 }
18163 arg3 = static_cast< int >(val3);
18164 ecode4 = SWIG_AsVal_int(obj3, &val4);
18165 if (!SWIG_IsOK(ecode4)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18167 }
18168 arg4 = static_cast< int >(val4);
18169 ecode5 = SWIG_AsVal_int(obj4, &val5);
18170 if (!SWIG_IsOK(ecode5)) {
18171 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18172 }
18173 arg5 = static_cast< int >(val5);
18174 ecode6 = SWIG_AsVal_int(obj5, &val6);
18175 if (!SWIG_IsOK(ecode6)) {
18176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18177 }
18178 arg6 = static_cast< int >(val6);
18179 ecode7 = SWIG_AsVal_int(obj6, &val7);
18180 if (!SWIG_IsOK(ecode7)) {
18181 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18182 }
18183 arg7 = static_cast< int >(val7);
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18187 wxPyEndAllowThreads(__tstate);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 resultobj = SWIG_Py_Void();
18191 return resultobj;
18192fail:
18193 return NULL;
18194}
18195
18196
18197SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18198 PyObject *resultobj = 0;
18199 wxDC *arg1 = (wxDC *) 0 ;
18200 wxPoint *arg2 = 0 ;
18201 wxPoint *arg3 = 0 ;
18202 wxPoint *arg4 = 0 ;
18203 void *argp1 = 0 ;
18204 int res1 = 0 ;
18205 wxPoint temp2 ;
18206 wxPoint temp3 ;
18207 wxPoint temp4 ;
18208 PyObject * obj0 = 0 ;
18209 PyObject * obj1 = 0 ;
18210 PyObject * obj2 = 0 ;
18211 PyObject * obj3 = 0 ;
18212 char * kwnames[] = {
18213 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18214 };
18215
18216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18218 if (!SWIG_IsOK(res1)) {
18219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18220 }
18221 arg1 = reinterpret_cast< wxDC * >(argp1);
18222 {
18223 arg2 = &temp2;
18224 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18225 }
18226 {
18227 arg3 = &temp3;
18228 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18229 }
18230 {
18231 arg4 = &temp4;
18232 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18233 }
18234 {
18235 PyThreadState* __tstate = wxPyBeginAllowThreads();
18236 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18237 wxPyEndAllowThreads(__tstate);
18238 if (PyErr_Occurred()) SWIG_fail;
18239 }
18240 resultobj = SWIG_Py_Void();
18241 return resultobj;
18242fail:
18243 return NULL;
18244}
18245
18246
18247SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18248 PyObject *resultobj = 0;
18249 wxDC *arg1 = (wxDC *) 0 ;
18250 int arg2 ;
18251 int arg3 ;
18252 int arg4 ;
18253 int arg5 ;
18254 void *argp1 = 0 ;
18255 int res1 = 0 ;
18256 int val2 ;
18257 int ecode2 = 0 ;
18258 int val3 ;
18259 int ecode3 = 0 ;
18260 int val4 ;
18261 int ecode4 = 0 ;
18262 int val5 ;
18263 int ecode5 = 0 ;
18264 PyObject * obj0 = 0 ;
18265 PyObject * obj1 = 0 ;
18266 PyObject * obj2 = 0 ;
18267 PyObject * obj3 = 0 ;
18268 PyObject * obj4 = 0 ;
18269 char * kwnames[] = {
18270 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18271 };
18272
18273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18275 if (!SWIG_IsOK(res1)) {
18276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18277 }
18278 arg1 = reinterpret_cast< wxDC * >(argp1);
18279 ecode2 = SWIG_AsVal_int(obj1, &val2);
18280 if (!SWIG_IsOK(ecode2)) {
18281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18282 }
18283 arg2 = static_cast< int >(val2);
18284 ecode3 = SWIG_AsVal_int(obj2, &val3);
18285 if (!SWIG_IsOK(ecode3)) {
18286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18287 }
18288 arg3 = static_cast< int >(val3);
18289 ecode4 = SWIG_AsVal_int(obj3, &val4);
18290 if (!SWIG_IsOK(ecode4)) {
18291 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18292 }
18293 arg4 = static_cast< int >(val4);
18294 ecode5 = SWIG_AsVal_int(obj4, &val5);
18295 if (!SWIG_IsOK(ecode5)) {
18296 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18297 }
18298 arg5 = static_cast< int >(val5);
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 resultobj = SWIG_Py_Void();
18306 return resultobj;
18307fail:
18308 return NULL;
18309}
18310
18311
18312SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj = 0;
18314 wxDC *arg1 = (wxDC *) 0 ;
18315 wxRect *arg2 = 0 ;
18316 void *argp1 = 0 ;
18317 int res1 = 0 ;
18318 wxRect temp2 ;
18319 PyObject * obj0 = 0 ;
18320 PyObject * obj1 = 0 ;
18321 char * kwnames[] = {
18322 (char *) "self",(char *) "rect", NULL
18323 };
18324
18325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18327 if (!SWIG_IsOK(res1)) {
18328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18329 }
18330 arg1 = reinterpret_cast< wxDC * >(argp1);
18331 {
18332 arg2 = &temp2;
18333 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18334 }
18335 {
18336 PyThreadState* __tstate = wxPyBeginAllowThreads();
18337 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 resultobj = SWIG_Py_Void();
18342 return resultobj;
18343fail:
18344 return NULL;
18345}
18346
18347
18348SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18349 PyObject *resultobj = 0;
18350 wxDC *arg1 = (wxDC *) 0 ;
18351 int arg2 ;
18352 int arg3 ;
18353 int arg4 ;
18354 int arg5 ;
18355 double arg6 ;
18356 double arg7 ;
18357 void *argp1 = 0 ;
18358 int res1 = 0 ;
18359 int val2 ;
18360 int ecode2 = 0 ;
18361 int val3 ;
18362 int ecode3 = 0 ;
18363 int val4 ;
18364 int ecode4 = 0 ;
18365 int val5 ;
18366 int ecode5 = 0 ;
18367 double val6 ;
18368 int ecode6 = 0 ;
18369 double val7 ;
18370 int ecode7 = 0 ;
18371 PyObject * obj0 = 0 ;
18372 PyObject * obj1 = 0 ;
18373 PyObject * obj2 = 0 ;
18374 PyObject * obj3 = 0 ;
18375 PyObject * obj4 = 0 ;
18376 PyObject * obj5 = 0 ;
18377 PyObject * obj6 = 0 ;
18378 char * kwnames[] = {
18379 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18380 };
18381
18382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18384 if (!SWIG_IsOK(res1)) {
18385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18386 }
18387 arg1 = reinterpret_cast< wxDC * >(argp1);
18388 ecode2 = SWIG_AsVal_int(obj1, &val2);
18389 if (!SWIG_IsOK(ecode2)) {
18390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18391 }
18392 arg2 = static_cast< int >(val2);
18393 ecode3 = SWIG_AsVal_int(obj2, &val3);
18394 if (!SWIG_IsOK(ecode3)) {
18395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18396 }
18397 arg3 = static_cast< int >(val3);
18398 ecode4 = SWIG_AsVal_int(obj3, &val4);
18399 if (!SWIG_IsOK(ecode4)) {
18400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18401 }
18402 arg4 = static_cast< int >(val4);
18403 ecode5 = SWIG_AsVal_int(obj4, &val5);
18404 if (!SWIG_IsOK(ecode5)) {
18405 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18406 }
18407 arg5 = static_cast< int >(val5);
18408 ecode6 = SWIG_AsVal_double(obj5, &val6);
18409 if (!SWIG_IsOK(ecode6)) {
18410 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18411 }
18412 arg6 = static_cast< double >(val6);
18413 ecode7 = SWIG_AsVal_double(obj6, &val7);
18414 if (!SWIG_IsOK(ecode7)) {
18415 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18416 }
18417 arg7 = static_cast< double >(val7);
18418 {
18419 PyThreadState* __tstate = wxPyBeginAllowThreads();
18420 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18421 wxPyEndAllowThreads(__tstate);
18422 if (PyErr_Occurred()) SWIG_fail;
18423 }
18424 resultobj = SWIG_Py_Void();
18425 return resultobj;
18426fail:
18427 return NULL;
18428}
18429
18430
18431SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18432 PyObject *resultobj = 0;
18433 wxDC *arg1 = (wxDC *) 0 ;
18434 wxPoint *arg2 = 0 ;
18435 wxSize *arg3 = 0 ;
18436 double arg4 ;
18437 double arg5 ;
18438 void *argp1 = 0 ;
18439 int res1 = 0 ;
18440 wxPoint temp2 ;
18441 wxSize temp3 ;
18442 double val4 ;
18443 int ecode4 = 0 ;
18444 double val5 ;
18445 int ecode5 = 0 ;
18446 PyObject * obj0 = 0 ;
18447 PyObject * obj1 = 0 ;
18448 PyObject * obj2 = 0 ;
18449 PyObject * obj3 = 0 ;
18450 PyObject * obj4 = 0 ;
18451 char * kwnames[] = {
18452 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18453 };
18454
18455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18457 if (!SWIG_IsOK(res1)) {
18458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18459 }
18460 arg1 = reinterpret_cast< wxDC * >(argp1);
18461 {
18462 arg2 = &temp2;
18463 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18464 }
18465 {
18466 arg3 = &temp3;
18467 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18468 }
18469 ecode4 = SWIG_AsVal_double(obj3, &val4);
18470 if (!SWIG_IsOK(ecode4)) {
18471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18472 }
18473 arg4 = static_cast< double >(val4);
18474 ecode5 = SWIG_AsVal_double(obj4, &val5);
18475 if (!SWIG_IsOK(ecode5)) {
18476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18477 }
18478 arg5 = static_cast< double >(val5);
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18482 wxPyEndAllowThreads(__tstate);
18483 if (PyErr_Occurred()) SWIG_fail;
18484 }
18485 resultobj = SWIG_Py_Void();
18486 return resultobj;
18487fail:
18488 return NULL;
18489}
18490
18491
18492SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18493 PyObject *resultobj = 0;
18494 wxDC *arg1 = (wxDC *) 0 ;
18495 int arg2 ;
18496 int arg3 ;
18497 void *argp1 = 0 ;
18498 int res1 = 0 ;
18499 int val2 ;
18500 int ecode2 = 0 ;
18501 int val3 ;
18502 int ecode3 = 0 ;
18503 PyObject * obj0 = 0 ;
18504 PyObject * obj1 = 0 ;
18505 PyObject * obj2 = 0 ;
18506 char * kwnames[] = {
18507 (char *) "self",(char *) "x",(char *) "y", NULL
18508 };
18509
18510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18512 if (!SWIG_IsOK(res1)) {
18513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18514 }
18515 arg1 = reinterpret_cast< wxDC * >(argp1);
18516 ecode2 = SWIG_AsVal_int(obj1, &val2);
18517 if (!SWIG_IsOK(ecode2)) {
18518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18519 }
18520 arg2 = static_cast< int >(val2);
18521 ecode3 = SWIG_AsVal_int(obj2, &val3);
18522 if (!SWIG_IsOK(ecode3)) {
18523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18524 }
18525 arg3 = static_cast< int >(val3);
18526 {
18527 PyThreadState* __tstate = wxPyBeginAllowThreads();
18528 (arg1)->DrawPoint(arg2,arg3);
18529 wxPyEndAllowThreads(__tstate);
18530 if (PyErr_Occurred()) SWIG_fail;
18531 }
18532 resultobj = SWIG_Py_Void();
18533 return resultobj;
18534fail:
18535 return NULL;
18536}
18537
18538
18539SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18540 PyObject *resultobj = 0;
18541 wxDC *arg1 = (wxDC *) 0 ;
18542 wxPoint *arg2 = 0 ;
18543 void *argp1 = 0 ;
18544 int res1 = 0 ;
18545 wxPoint temp2 ;
18546 PyObject * obj0 = 0 ;
18547 PyObject * obj1 = 0 ;
18548 char * kwnames[] = {
18549 (char *) "self",(char *) "pt", NULL
18550 };
18551
18552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18554 if (!SWIG_IsOK(res1)) {
18555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18556 }
18557 arg1 = reinterpret_cast< wxDC * >(argp1);
18558 {
18559 arg2 = &temp2;
18560 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18561 }
18562 {
18563 PyThreadState* __tstate = wxPyBeginAllowThreads();
18564 (arg1)->DrawPoint((wxPoint const &)*arg2);
18565 wxPyEndAllowThreads(__tstate);
18566 if (PyErr_Occurred()) SWIG_fail;
18567 }
18568 resultobj = SWIG_Py_Void();
18569 return resultobj;
18570fail:
18571 return NULL;
18572}
18573
18574
18575SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18576 PyObject *resultobj = 0;
18577 wxDC *arg1 = (wxDC *) 0 ;
18578 int arg2 ;
18579 int arg3 ;
18580 int arg4 ;
18581 int arg5 ;
18582 void *argp1 = 0 ;
18583 int res1 = 0 ;
18584 int val2 ;
18585 int ecode2 = 0 ;
18586 int val3 ;
18587 int ecode3 = 0 ;
18588 int val4 ;
18589 int ecode4 = 0 ;
18590 int val5 ;
18591 int ecode5 = 0 ;
18592 PyObject * obj0 = 0 ;
18593 PyObject * obj1 = 0 ;
18594 PyObject * obj2 = 0 ;
18595 PyObject * obj3 = 0 ;
18596 PyObject * obj4 = 0 ;
18597 char * kwnames[] = {
18598 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18599 };
18600
18601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18603 if (!SWIG_IsOK(res1)) {
18604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18605 }
18606 arg1 = reinterpret_cast< wxDC * >(argp1);
18607 ecode2 = SWIG_AsVal_int(obj1, &val2);
18608 if (!SWIG_IsOK(ecode2)) {
18609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18610 }
18611 arg2 = static_cast< int >(val2);
18612 ecode3 = SWIG_AsVal_int(obj2, &val3);
18613 if (!SWIG_IsOK(ecode3)) {
18614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18615 }
18616 arg3 = static_cast< int >(val3);
18617 ecode4 = SWIG_AsVal_int(obj3, &val4);
18618 if (!SWIG_IsOK(ecode4)) {
18619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18620 }
18621 arg4 = static_cast< int >(val4);
18622 ecode5 = SWIG_AsVal_int(obj4, &val5);
18623 if (!SWIG_IsOK(ecode5)) {
18624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18625 }
18626 arg5 = static_cast< int >(val5);
18627 {
18628 PyThreadState* __tstate = wxPyBeginAllowThreads();
18629 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18630 wxPyEndAllowThreads(__tstate);
18631 if (PyErr_Occurred()) SWIG_fail;
18632 }
18633 resultobj = SWIG_Py_Void();
18634 return resultobj;
18635fail:
18636 return NULL;
18637}
18638
18639
18640SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18641 PyObject *resultobj = 0;
18642 wxDC *arg1 = (wxDC *) 0 ;
18643 wxRect *arg2 = 0 ;
18644 void *argp1 = 0 ;
18645 int res1 = 0 ;
18646 wxRect temp2 ;
18647 PyObject * obj0 = 0 ;
18648 PyObject * obj1 = 0 ;
18649 char * kwnames[] = {
18650 (char *) "self",(char *) "rect", NULL
18651 };
18652
18653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18655 if (!SWIG_IsOK(res1)) {
18656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18657 }
18658 arg1 = reinterpret_cast< wxDC * >(argp1);
18659 {
18660 arg2 = &temp2;
18661 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18662 }
18663 {
18664 PyThreadState* __tstate = wxPyBeginAllowThreads();
18665 (arg1)->DrawRectangle((wxRect const &)*arg2);
18666 wxPyEndAllowThreads(__tstate);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 resultobj = SWIG_Py_Void();
18670 return resultobj;
18671fail:
18672 return NULL;
18673}
18674
18675
18676SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18677 PyObject *resultobj = 0;
18678 wxDC *arg1 = (wxDC *) 0 ;
18679 wxPoint *arg2 = 0 ;
18680 wxSize *arg3 = 0 ;
18681 void *argp1 = 0 ;
18682 int res1 = 0 ;
18683 wxPoint temp2 ;
18684 wxSize temp3 ;
18685 PyObject * obj0 = 0 ;
18686 PyObject * obj1 = 0 ;
18687 PyObject * obj2 = 0 ;
18688 char * kwnames[] = {
18689 (char *) "self",(char *) "pt",(char *) "sz", NULL
18690 };
18691
18692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18694 if (!SWIG_IsOK(res1)) {
18695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18696 }
18697 arg1 = reinterpret_cast< wxDC * >(argp1);
18698 {
18699 arg2 = &temp2;
18700 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18701 }
18702 {
18703 arg3 = &temp3;
18704 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18705 }
18706 {
18707 PyThreadState* __tstate = wxPyBeginAllowThreads();
18708 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18709 wxPyEndAllowThreads(__tstate);
18710 if (PyErr_Occurred()) SWIG_fail;
18711 }
18712 resultobj = SWIG_Py_Void();
18713 return resultobj;
18714fail:
18715 return NULL;
18716}
18717
18718
18719SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18720 PyObject *resultobj = 0;
18721 wxDC *arg1 = (wxDC *) 0 ;
18722 int arg2 ;
18723 int arg3 ;
18724 int arg4 ;
18725 int arg5 ;
18726 double arg6 ;
18727 void *argp1 = 0 ;
18728 int res1 = 0 ;
18729 int val2 ;
18730 int ecode2 = 0 ;
18731 int val3 ;
18732 int ecode3 = 0 ;
18733 int val4 ;
18734 int ecode4 = 0 ;
18735 int val5 ;
18736 int ecode5 = 0 ;
18737 double val6 ;
18738 int ecode6 = 0 ;
18739 PyObject * obj0 = 0 ;
18740 PyObject * obj1 = 0 ;
18741 PyObject * obj2 = 0 ;
18742 PyObject * obj3 = 0 ;
18743 PyObject * obj4 = 0 ;
18744 PyObject * obj5 = 0 ;
18745 char * kwnames[] = {
18746 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18747 };
18748
18749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18751 if (!SWIG_IsOK(res1)) {
18752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18753 }
18754 arg1 = reinterpret_cast< wxDC * >(argp1);
18755 ecode2 = SWIG_AsVal_int(obj1, &val2);
18756 if (!SWIG_IsOK(ecode2)) {
18757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18758 }
18759 arg2 = static_cast< int >(val2);
18760 ecode3 = SWIG_AsVal_int(obj2, &val3);
18761 if (!SWIG_IsOK(ecode3)) {
18762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18763 }
18764 arg3 = static_cast< int >(val3);
18765 ecode4 = SWIG_AsVal_int(obj3, &val4);
18766 if (!SWIG_IsOK(ecode4)) {
18767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18768 }
18769 arg4 = static_cast< int >(val4);
18770 ecode5 = SWIG_AsVal_int(obj4, &val5);
18771 if (!SWIG_IsOK(ecode5)) {
18772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18773 }
18774 arg5 = static_cast< int >(val5);
18775 ecode6 = SWIG_AsVal_double(obj5, &val6);
18776 if (!SWIG_IsOK(ecode6)) {
18777 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18778 }
18779 arg6 = static_cast< double >(val6);
18780 {
18781 PyThreadState* __tstate = wxPyBeginAllowThreads();
18782 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18783 wxPyEndAllowThreads(__tstate);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 resultobj = SWIG_Py_Void();
18787 return resultobj;
18788fail:
18789 return NULL;
18790}
18791
18792
18793SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18794 PyObject *resultobj = 0;
18795 wxDC *arg1 = (wxDC *) 0 ;
18796 wxRect *arg2 = 0 ;
18797 double arg3 ;
18798 void *argp1 = 0 ;
18799 int res1 = 0 ;
18800 wxRect temp2 ;
18801 double val3 ;
18802 int ecode3 = 0 ;
18803 PyObject * obj0 = 0 ;
18804 PyObject * obj1 = 0 ;
18805 PyObject * obj2 = 0 ;
18806 char * kwnames[] = {
18807 (char *) "self",(char *) "r",(char *) "radius", NULL
18808 };
18809
18810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18812 if (!SWIG_IsOK(res1)) {
18813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18814 }
18815 arg1 = reinterpret_cast< wxDC * >(argp1);
18816 {
18817 arg2 = &temp2;
18818 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18819 }
18820 ecode3 = SWIG_AsVal_double(obj2, &val3);
18821 if (!SWIG_IsOK(ecode3)) {
18822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18823 }
18824 arg3 = static_cast< double >(val3);
18825 {
18826 PyThreadState* __tstate = wxPyBeginAllowThreads();
18827 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18828 wxPyEndAllowThreads(__tstate);
18829 if (PyErr_Occurred()) SWIG_fail;
18830 }
18831 resultobj = SWIG_Py_Void();
18832 return resultobj;
18833fail:
18834 return NULL;
18835}
18836
18837
18838SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18839 PyObject *resultobj = 0;
18840 wxDC *arg1 = (wxDC *) 0 ;
18841 wxPoint *arg2 = 0 ;
18842 wxSize *arg3 = 0 ;
18843 double arg4 ;
18844 void *argp1 = 0 ;
18845 int res1 = 0 ;
18846 wxPoint temp2 ;
18847 wxSize temp3 ;
18848 double val4 ;
18849 int ecode4 = 0 ;
18850 PyObject * obj0 = 0 ;
18851 PyObject * obj1 = 0 ;
18852 PyObject * obj2 = 0 ;
18853 PyObject * obj3 = 0 ;
18854 char * kwnames[] = {
18855 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18856 };
18857
18858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18860 if (!SWIG_IsOK(res1)) {
18861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18862 }
18863 arg1 = reinterpret_cast< wxDC * >(argp1);
18864 {
18865 arg2 = &temp2;
18866 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18867 }
18868 {
18869 arg3 = &temp3;
18870 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18871 }
18872 ecode4 = SWIG_AsVal_double(obj3, &val4);
18873 if (!SWIG_IsOK(ecode4)) {
18874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18875 }
18876 arg4 = static_cast< double >(val4);
18877 {
18878 PyThreadState* __tstate = wxPyBeginAllowThreads();
18879 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18880 wxPyEndAllowThreads(__tstate);
18881 if (PyErr_Occurred()) SWIG_fail;
18882 }
18883 resultobj = SWIG_Py_Void();
18884 return resultobj;
18885fail:
18886 return NULL;
18887}
18888
18889
18890SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18891 PyObject *resultobj = 0;
18892 wxDC *arg1 = (wxDC *) 0 ;
18893 int arg2 ;
18894 int arg3 ;
18895 int arg4 ;
18896 void *argp1 = 0 ;
18897 int res1 = 0 ;
18898 int val2 ;
18899 int ecode2 = 0 ;
18900 int val3 ;
18901 int ecode3 = 0 ;
18902 int val4 ;
18903 int ecode4 = 0 ;
18904 PyObject * obj0 = 0 ;
18905 PyObject * obj1 = 0 ;
18906 PyObject * obj2 = 0 ;
18907 PyObject * obj3 = 0 ;
18908 char * kwnames[] = {
18909 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18910 };
18911
18912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18914 if (!SWIG_IsOK(res1)) {
18915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18916 }
18917 arg1 = reinterpret_cast< wxDC * >(argp1);
18918 ecode2 = SWIG_AsVal_int(obj1, &val2);
18919 if (!SWIG_IsOK(ecode2)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18921 }
18922 arg2 = static_cast< int >(val2);
18923 ecode3 = SWIG_AsVal_int(obj2, &val3);
18924 if (!SWIG_IsOK(ecode3)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18926 }
18927 arg3 = static_cast< int >(val3);
18928 ecode4 = SWIG_AsVal_int(obj3, &val4);
18929 if (!SWIG_IsOK(ecode4)) {
18930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18931 }
18932 arg4 = static_cast< int >(val4);
18933 {
18934 PyThreadState* __tstate = wxPyBeginAllowThreads();
18935 (arg1)->DrawCircle(arg2,arg3,arg4);
18936 wxPyEndAllowThreads(__tstate);
18937 if (PyErr_Occurred()) SWIG_fail;
18938 }
18939 resultobj = SWIG_Py_Void();
18940 return resultobj;
18941fail:
18942 return NULL;
18943}
18944
18945
18946SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18947 PyObject *resultobj = 0;
18948 wxDC *arg1 = (wxDC *) 0 ;
18949 wxPoint *arg2 = 0 ;
18950 int arg3 ;
18951 void *argp1 = 0 ;
18952 int res1 = 0 ;
18953 wxPoint temp2 ;
18954 int val3 ;
18955 int ecode3 = 0 ;
18956 PyObject * obj0 = 0 ;
18957 PyObject * obj1 = 0 ;
18958 PyObject * obj2 = 0 ;
18959 char * kwnames[] = {
18960 (char *) "self",(char *) "pt",(char *) "radius", NULL
18961 };
18962
18963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18965 if (!SWIG_IsOK(res1)) {
18966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18967 }
18968 arg1 = reinterpret_cast< wxDC * >(argp1);
18969 {
18970 arg2 = &temp2;
18971 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18972 }
18973 ecode3 = SWIG_AsVal_int(obj2, &val3);
18974 if (!SWIG_IsOK(ecode3)) {
18975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18976 }
18977 arg3 = static_cast< int >(val3);
18978 {
18979 PyThreadState* __tstate = wxPyBeginAllowThreads();
18980 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18981 wxPyEndAllowThreads(__tstate);
18982 if (PyErr_Occurred()) SWIG_fail;
18983 }
18984 resultobj = SWIG_Py_Void();
18985 return resultobj;
18986fail:
18987 return NULL;
18988}
18989
18990
18991SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18992 PyObject *resultobj = 0;
18993 wxDC *arg1 = (wxDC *) 0 ;
18994 int arg2 ;
18995 int arg3 ;
18996 int arg4 ;
18997 int arg5 ;
18998 void *argp1 = 0 ;
18999 int res1 = 0 ;
19000 int val2 ;
19001 int ecode2 = 0 ;
19002 int val3 ;
19003 int ecode3 = 0 ;
19004 int val4 ;
19005 int ecode4 = 0 ;
19006 int val5 ;
19007 int ecode5 = 0 ;
19008 PyObject * obj0 = 0 ;
19009 PyObject * obj1 = 0 ;
19010 PyObject * obj2 = 0 ;
19011 PyObject * obj3 = 0 ;
19012 PyObject * obj4 = 0 ;
19013 char * kwnames[] = {
19014 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19015 };
19016
19017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19019 if (!SWIG_IsOK(res1)) {
19020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19021 }
19022 arg1 = reinterpret_cast< wxDC * >(argp1);
19023 ecode2 = SWIG_AsVal_int(obj1, &val2);
19024 if (!SWIG_IsOK(ecode2)) {
19025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19026 }
19027 arg2 = static_cast< int >(val2);
19028 ecode3 = SWIG_AsVal_int(obj2, &val3);
19029 if (!SWIG_IsOK(ecode3)) {
19030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19031 }
19032 arg3 = static_cast< int >(val3);
19033 ecode4 = SWIG_AsVal_int(obj3, &val4);
19034 if (!SWIG_IsOK(ecode4)) {
19035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19036 }
19037 arg4 = static_cast< int >(val4);
19038 ecode5 = SWIG_AsVal_int(obj4, &val5);
19039 if (!SWIG_IsOK(ecode5)) {
19040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19041 }
19042 arg5 = static_cast< int >(val5);
19043 {
19044 PyThreadState* __tstate = wxPyBeginAllowThreads();
19045 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19046 wxPyEndAllowThreads(__tstate);
19047 if (PyErr_Occurred()) SWIG_fail;
19048 }
19049 resultobj = SWIG_Py_Void();
19050 return resultobj;
19051fail:
19052 return NULL;
19053}
19054
19055
19056SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19057 PyObject *resultobj = 0;
19058 wxDC *arg1 = (wxDC *) 0 ;
19059 wxRect *arg2 = 0 ;
19060 void *argp1 = 0 ;
19061 int res1 = 0 ;
19062 wxRect temp2 ;
19063 PyObject * obj0 = 0 ;
19064 PyObject * obj1 = 0 ;
19065 char * kwnames[] = {
19066 (char *) "self",(char *) "rect", NULL
19067 };
19068
19069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19071 if (!SWIG_IsOK(res1)) {
19072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19073 }
19074 arg1 = reinterpret_cast< wxDC * >(argp1);
19075 {
19076 arg2 = &temp2;
19077 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19078 }
19079 {
19080 PyThreadState* __tstate = wxPyBeginAllowThreads();
19081 (arg1)->DrawEllipse((wxRect const &)*arg2);
19082 wxPyEndAllowThreads(__tstate);
19083 if (PyErr_Occurred()) SWIG_fail;
19084 }
19085 resultobj = SWIG_Py_Void();
19086 return resultobj;
19087fail:
19088 return NULL;
19089}
19090
19091
19092SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19093 PyObject *resultobj = 0;
19094 wxDC *arg1 = (wxDC *) 0 ;
19095 wxPoint *arg2 = 0 ;
19096 wxSize *arg3 = 0 ;
19097 void *argp1 = 0 ;
19098 int res1 = 0 ;
19099 wxPoint temp2 ;
19100 wxSize temp3 ;
19101 PyObject * obj0 = 0 ;
19102 PyObject * obj1 = 0 ;
19103 PyObject * obj2 = 0 ;
19104 char * kwnames[] = {
19105 (char *) "self",(char *) "pt",(char *) "sz", NULL
19106 };
19107
19108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19110 if (!SWIG_IsOK(res1)) {
19111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19112 }
19113 arg1 = reinterpret_cast< wxDC * >(argp1);
19114 {
19115 arg2 = &temp2;
19116 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19117 }
19118 {
19119 arg3 = &temp3;
19120 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19121 }
19122 {
19123 PyThreadState* __tstate = wxPyBeginAllowThreads();
19124 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19125 wxPyEndAllowThreads(__tstate);
19126 if (PyErr_Occurred()) SWIG_fail;
19127 }
19128 resultobj = SWIG_Py_Void();
19129 return resultobj;
19130fail:
19131 return NULL;
19132}
19133
19134
19135SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19136 PyObject *resultobj = 0;
19137 wxDC *arg1 = (wxDC *) 0 ;
19138 wxIcon *arg2 = 0 ;
19139 int arg3 ;
19140 int arg4 ;
19141 void *argp1 = 0 ;
19142 int res1 = 0 ;
19143 void *argp2 = 0 ;
19144 int res2 = 0 ;
19145 int val3 ;
19146 int ecode3 = 0 ;
19147 int val4 ;
19148 int ecode4 = 0 ;
19149 PyObject * obj0 = 0 ;
19150 PyObject * obj1 = 0 ;
19151 PyObject * obj2 = 0 ;
19152 PyObject * obj3 = 0 ;
19153 char * kwnames[] = {
19154 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19155 };
19156
19157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19159 if (!SWIG_IsOK(res1)) {
19160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19161 }
19162 arg1 = reinterpret_cast< wxDC * >(argp1);
19163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19164 if (!SWIG_IsOK(res2)) {
19165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19166 }
19167 if (!argp2) {
19168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19169 }
19170 arg2 = reinterpret_cast< wxIcon * >(argp2);
19171 ecode3 = SWIG_AsVal_int(obj2, &val3);
19172 if (!SWIG_IsOK(ecode3)) {
19173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19174 }
19175 arg3 = static_cast< int >(val3);
19176 ecode4 = SWIG_AsVal_int(obj3, &val4);
19177 if (!SWIG_IsOK(ecode4)) {
19178 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19179 }
19180 arg4 = static_cast< int >(val4);
19181 {
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19184 wxPyEndAllowThreads(__tstate);
19185 if (PyErr_Occurred()) SWIG_fail;
19186 }
19187 resultobj = SWIG_Py_Void();
19188 return resultobj;
19189fail:
19190 return NULL;
19191}
19192
19193
19194SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj = 0;
19196 wxDC *arg1 = (wxDC *) 0 ;
19197 wxIcon *arg2 = 0 ;
19198 wxPoint *arg3 = 0 ;
19199 void *argp1 = 0 ;
19200 int res1 = 0 ;
19201 void *argp2 = 0 ;
19202 int res2 = 0 ;
19203 wxPoint temp3 ;
19204 PyObject * obj0 = 0 ;
19205 PyObject * obj1 = 0 ;
19206 PyObject * obj2 = 0 ;
19207 char * kwnames[] = {
19208 (char *) "self",(char *) "icon",(char *) "pt", NULL
19209 };
19210
19211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19213 if (!SWIG_IsOK(res1)) {
19214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19215 }
19216 arg1 = reinterpret_cast< wxDC * >(argp1);
19217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19218 if (!SWIG_IsOK(res2)) {
19219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19220 }
19221 if (!argp2) {
19222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19223 }
19224 arg2 = reinterpret_cast< wxIcon * >(argp2);
19225 {
19226 arg3 = &temp3;
19227 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19228 }
19229 {
19230 PyThreadState* __tstate = wxPyBeginAllowThreads();
19231 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19232 wxPyEndAllowThreads(__tstate);
19233 if (PyErr_Occurred()) SWIG_fail;
19234 }
19235 resultobj = SWIG_Py_Void();
19236 return resultobj;
19237fail:
19238 return NULL;
19239}
19240
19241
19242SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19243 PyObject *resultobj = 0;
19244 wxDC *arg1 = (wxDC *) 0 ;
19245 wxBitmap *arg2 = 0 ;
19246 int arg3 ;
19247 int arg4 ;
19248 bool arg5 = (bool) false ;
19249 void *argp1 = 0 ;
19250 int res1 = 0 ;
19251 void *argp2 = 0 ;
19252 int res2 = 0 ;
19253 int val3 ;
19254 int ecode3 = 0 ;
19255 int val4 ;
19256 int ecode4 = 0 ;
19257 bool val5 ;
19258 int ecode5 = 0 ;
19259 PyObject * obj0 = 0 ;
19260 PyObject * obj1 = 0 ;
19261 PyObject * obj2 = 0 ;
19262 PyObject * obj3 = 0 ;
19263 PyObject * obj4 = 0 ;
19264 char * kwnames[] = {
19265 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19266 };
19267
19268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19270 if (!SWIG_IsOK(res1)) {
19271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19272 }
19273 arg1 = reinterpret_cast< wxDC * >(argp1);
19274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19275 if (!SWIG_IsOK(res2)) {
19276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19277 }
19278 if (!argp2) {
19279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19280 }
19281 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19282 ecode3 = SWIG_AsVal_int(obj2, &val3);
19283 if (!SWIG_IsOK(ecode3)) {
19284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19285 }
19286 arg3 = static_cast< int >(val3);
19287 ecode4 = SWIG_AsVal_int(obj3, &val4);
19288 if (!SWIG_IsOK(ecode4)) {
19289 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19290 }
19291 arg4 = static_cast< int >(val4);
19292 if (obj4) {
19293 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19294 if (!SWIG_IsOK(ecode5)) {
19295 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19296 }
19297 arg5 = static_cast< bool >(val5);
19298 }
19299 {
19300 PyThreadState* __tstate = wxPyBeginAllowThreads();
19301 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19302 wxPyEndAllowThreads(__tstate);
19303 if (PyErr_Occurred()) SWIG_fail;
19304 }
19305 resultobj = SWIG_Py_Void();
19306 return resultobj;
19307fail:
19308 return NULL;
19309}
19310
19311
19312SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19313 PyObject *resultobj = 0;
19314 wxDC *arg1 = (wxDC *) 0 ;
19315 wxBitmap *arg2 = 0 ;
19316 wxPoint *arg3 = 0 ;
19317 bool arg4 = (bool) false ;
19318 void *argp1 = 0 ;
19319 int res1 = 0 ;
19320 void *argp2 = 0 ;
19321 int res2 = 0 ;
19322 wxPoint temp3 ;
19323 bool val4 ;
19324 int ecode4 = 0 ;
19325 PyObject * obj0 = 0 ;
19326 PyObject * obj1 = 0 ;
19327 PyObject * obj2 = 0 ;
19328 PyObject * obj3 = 0 ;
19329 char * kwnames[] = {
19330 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19331 };
19332
19333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19335 if (!SWIG_IsOK(res1)) {
19336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19337 }
19338 arg1 = reinterpret_cast< wxDC * >(argp1);
19339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19340 if (!SWIG_IsOK(res2)) {
19341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19342 }
19343 if (!argp2) {
19344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19345 }
19346 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19347 {
19348 arg3 = &temp3;
19349 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19350 }
19351 if (obj3) {
19352 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19353 if (!SWIG_IsOK(ecode4)) {
19354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19355 }
19356 arg4 = static_cast< bool >(val4);
19357 }
19358 {
19359 PyThreadState* __tstate = wxPyBeginAllowThreads();
19360 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19361 wxPyEndAllowThreads(__tstate);
19362 if (PyErr_Occurred()) SWIG_fail;
19363 }
19364 resultobj = SWIG_Py_Void();
19365 return resultobj;
19366fail:
19367 return NULL;
19368}
19369
19370
19371SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19372 PyObject *resultobj = 0;
19373 wxDC *arg1 = (wxDC *) 0 ;
19374 wxString *arg2 = 0 ;
19375 int arg3 ;
19376 int arg4 ;
19377 void *argp1 = 0 ;
19378 int res1 = 0 ;
19379 bool temp2 = false ;
19380 int val3 ;
19381 int ecode3 = 0 ;
19382 int val4 ;
19383 int ecode4 = 0 ;
19384 PyObject * obj0 = 0 ;
19385 PyObject * obj1 = 0 ;
19386 PyObject * obj2 = 0 ;
19387 PyObject * obj3 = 0 ;
19388 char * kwnames[] = {
19389 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19390 };
19391
19392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19394 if (!SWIG_IsOK(res1)) {
19395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19396 }
19397 arg1 = reinterpret_cast< wxDC * >(argp1);
19398 {
19399 arg2 = wxString_in_helper(obj1);
19400 if (arg2 == NULL) SWIG_fail;
19401 temp2 = true;
19402 }
19403 ecode3 = SWIG_AsVal_int(obj2, &val3);
19404 if (!SWIG_IsOK(ecode3)) {
19405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19406 }
19407 arg3 = static_cast< int >(val3);
19408 ecode4 = SWIG_AsVal_int(obj3, &val4);
19409 if (!SWIG_IsOK(ecode4)) {
19410 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19411 }
19412 arg4 = static_cast< int >(val4);
19413 {
19414 PyThreadState* __tstate = wxPyBeginAllowThreads();
19415 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19416 wxPyEndAllowThreads(__tstate);
19417 if (PyErr_Occurred()) SWIG_fail;
19418 }
19419 resultobj = SWIG_Py_Void();
19420 {
19421 if (temp2)
19422 delete arg2;
19423 }
19424 return resultobj;
19425fail:
19426 {
19427 if (temp2)
19428 delete arg2;
19429 }
19430 return NULL;
19431}
19432
19433
19434SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19435 PyObject *resultobj = 0;
19436 wxDC *arg1 = (wxDC *) 0 ;
19437 wxString *arg2 = 0 ;
19438 wxPoint *arg3 = 0 ;
19439 void *argp1 = 0 ;
19440 int res1 = 0 ;
19441 bool temp2 = false ;
19442 wxPoint temp3 ;
19443 PyObject * obj0 = 0 ;
19444 PyObject * obj1 = 0 ;
19445 PyObject * obj2 = 0 ;
19446 char * kwnames[] = {
19447 (char *) "self",(char *) "text",(char *) "pt", NULL
19448 };
19449
19450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19452 if (!SWIG_IsOK(res1)) {
19453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19454 }
19455 arg1 = reinterpret_cast< wxDC * >(argp1);
19456 {
19457 arg2 = wxString_in_helper(obj1);
19458 if (arg2 == NULL) SWIG_fail;
19459 temp2 = true;
19460 }
19461 {
19462 arg3 = &temp3;
19463 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19464 }
19465 {
19466 PyThreadState* __tstate = wxPyBeginAllowThreads();
19467 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19468 wxPyEndAllowThreads(__tstate);
19469 if (PyErr_Occurred()) SWIG_fail;
19470 }
19471 resultobj = SWIG_Py_Void();
19472 {
19473 if (temp2)
19474 delete arg2;
19475 }
19476 return resultobj;
19477fail:
19478 {
19479 if (temp2)
19480 delete arg2;
19481 }
19482 return NULL;
19483}
19484
19485
19486SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19487 PyObject *resultobj = 0;
19488 wxDC *arg1 = (wxDC *) 0 ;
19489 wxString *arg2 = 0 ;
19490 int arg3 ;
19491 int arg4 ;
19492 double arg5 ;
19493 void *argp1 = 0 ;
19494 int res1 = 0 ;
19495 bool temp2 = false ;
19496 int val3 ;
19497 int ecode3 = 0 ;
19498 int val4 ;
19499 int ecode4 = 0 ;
19500 double val5 ;
19501 int ecode5 = 0 ;
19502 PyObject * obj0 = 0 ;
19503 PyObject * obj1 = 0 ;
19504 PyObject * obj2 = 0 ;
19505 PyObject * obj3 = 0 ;
19506 PyObject * obj4 = 0 ;
19507 char * kwnames[] = {
19508 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19509 };
19510
19511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19513 if (!SWIG_IsOK(res1)) {
19514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19515 }
19516 arg1 = reinterpret_cast< wxDC * >(argp1);
19517 {
19518 arg2 = wxString_in_helper(obj1);
19519 if (arg2 == NULL) SWIG_fail;
19520 temp2 = true;
19521 }
19522 ecode3 = SWIG_AsVal_int(obj2, &val3);
19523 if (!SWIG_IsOK(ecode3)) {
19524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19525 }
19526 arg3 = static_cast< int >(val3);
19527 ecode4 = SWIG_AsVal_int(obj3, &val4);
19528 if (!SWIG_IsOK(ecode4)) {
19529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19530 }
19531 arg4 = static_cast< int >(val4);
19532 ecode5 = SWIG_AsVal_double(obj4, &val5);
19533 if (!SWIG_IsOK(ecode5)) {
19534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19535 }
19536 arg5 = static_cast< double >(val5);
19537 {
19538 PyThreadState* __tstate = wxPyBeginAllowThreads();
19539 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19540 wxPyEndAllowThreads(__tstate);
19541 if (PyErr_Occurred()) SWIG_fail;
19542 }
19543 resultobj = SWIG_Py_Void();
19544 {
19545 if (temp2)
19546 delete arg2;
19547 }
19548 return resultobj;
19549fail:
19550 {
19551 if (temp2)
19552 delete arg2;
19553 }
19554 return NULL;
19555}
19556
19557
19558SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19559 PyObject *resultobj = 0;
19560 wxDC *arg1 = (wxDC *) 0 ;
19561 wxString *arg2 = 0 ;
19562 wxPoint *arg3 = 0 ;
19563 double arg4 ;
19564 void *argp1 = 0 ;
19565 int res1 = 0 ;
19566 bool temp2 = false ;
19567 wxPoint temp3 ;
19568 double val4 ;
19569 int ecode4 = 0 ;
19570 PyObject * obj0 = 0 ;
19571 PyObject * obj1 = 0 ;
19572 PyObject * obj2 = 0 ;
19573 PyObject * obj3 = 0 ;
19574 char * kwnames[] = {
19575 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19576 };
19577
19578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19580 if (!SWIG_IsOK(res1)) {
19581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19582 }
19583 arg1 = reinterpret_cast< wxDC * >(argp1);
19584 {
19585 arg2 = wxString_in_helper(obj1);
19586 if (arg2 == NULL) SWIG_fail;
19587 temp2 = true;
19588 }
19589 {
19590 arg3 = &temp3;
19591 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19592 }
19593 ecode4 = SWIG_AsVal_double(obj3, &val4);
19594 if (!SWIG_IsOK(ecode4)) {
19595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19596 }
19597 arg4 = static_cast< double >(val4);
19598 {
19599 PyThreadState* __tstate = wxPyBeginAllowThreads();
19600 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19601 wxPyEndAllowThreads(__tstate);
19602 if (PyErr_Occurred()) SWIG_fail;
19603 }
19604 resultobj = SWIG_Py_Void();
19605 {
19606 if (temp2)
19607 delete arg2;
19608 }
19609 return resultobj;
19610fail:
19611 {
19612 if (temp2)
19613 delete arg2;
19614 }
19615 return NULL;
19616}
19617
19618
19619SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19620 PyObject *resultobj = 0;
19621 wxDC *arg1 = (wxDC *) 0 ;
19622 int arg2 ;
19623 int arg3 ;
19624 int arg4 ;
19625 int arg5 ;
19626 wxDC *arg6 = (wxDC *) 0 ;
19627 int arg7 ;
19628 int arg8 ;
19629 int arg9 = (int) wxCOPY ;
19630 bool arg10 = (bool) false ;
19631 int arg11 = (int) -1 ;
19632 int arg12 = (int) -1 ;
19633 bool result;
19634 void *argp1 = 0 ;
19635 int res1 = 0 ;
19636 int val2 ;
19637 int ecode2 = 0 ;
19638 int val3 ;
19639 int ecode3 = 0 ;
19640 int val4 ;
19641 int ecode4 = 0 ;
19642 int val5 ;
19643 int ecode5 = 0 ;
19644 void *argp6 = 0 ;
19645 int res6 = 0 ;
19646 int val7 ;
19647 int ecode7 = 0 ;
19648 int val8 ;
19649 int ecode8 = 0 ;
19650 int val9 ;
19651 int ecode9 = 0 ;
19652 bool val10 ;
19653 int ecode10 = 0 ;
19654 int val11 ;
19655 int ecode11 = 0 ;
19656 int val12 ;
19657 int ecode12 = 0 ;
19658 PyObject * obj0 = 0 ;
19659 PyObject * obj1 = 0 ;
19660 PyObject * obj2 = 0 ;
19661 PyObject * obj3 = 0 ;
19662 PyObject * obj4 = 0 ;
19663 PyObject * obj5 = 0 ;
19664 PyObject * obj6 = 0 ;
19665 PyObject * obj7 = 0 ;
19666 PyObject * obj8 = 0 ;
19667 PyObject * obj9 = 0 ;
19668 PyObject * obj10 = 0 ;
19669 PyObject * obj11 = 0 ;
19670 char * kwnames[] = {
19671 (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
19672 };
19673
19674 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;
19675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19676 if (!SWIG_IsOK(res1)) {
19677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19678 }
19679 arg1 = reinterpret_cast< wxDC * >(argp1);
19680 ecode2 = SWIG_AsVal_int(obj1, &val2);
19681 if (!SWIG_IsOK(ecode2)) {
19682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19683 }
19684 arg2 = static_cast< int >(val2);
19685 ecode3 = SWIG_AsVal_int(obj2, &val3);
19686 if (!SWIG_IsOK(ecode3)) {
19687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19688 }
19689 arg3 = static_cast< int >(val3);
19690 ecode4 = SWIG_AsVal_int(obj3, &val4);
19691 if (!SWIG_IsOK(ecode4)) {
19692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19693 }
19694 arg4 = static_cast< int >(val4);
19695 ecode5 = SWIG_AsVal_int(obj4, &val5);
19696 if (!SWIG_IsOK(ecode5)) {
19697 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19698 }
19699 arg5 = static_cast< int >(val5);
19700 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19701 if (!SWIG_IsOK(res6)) {
19702 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19703 }
19704 arg6 = reinterpret_cast< wxDC * >(argp6);
19705 ecode7 = SWIG_AsVal_int(obj6, &val7);
19706 if (!SWIG_IsOK(ecode7)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19708 }
19709 arg7 = static_cast< int >(val7);
19710 ecode8 = SWIG_AsVal_int(obj7, &val8);
19711 if (!SWIG_IsOK(ecode8)) {
19712 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19713 }
19714 arg8 = static_cast< int >(val8);
19715 if (obj8) {
19716 ecode9 = SWIG_AsVal_int(obj8, &val9);
19717 if (!SWIG_IsOK(ecode9)) {
19718 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19719 }
19720 arg9 = static_cast< int >(val9);
19721 }
19722 if (obj9) {
19723 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19724 if (!SWIG_IsOK(ecode10)) {
19725 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19726 }
19727 arg10 = static_cast< bool >(val10);
19728 }
19729 if (obj10) {
19730 ecode11 = SWIG_AsVal_int(obj10, &val11);
19731 if (!SWIG_IsOK(ecode11)) {
19732 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19733 }
19734 arg11 = static_cast< int >(val11);
19735 }
19736 if (obj11) {
19737 ecode12 = SWIG_AsVal_int(obj11, &val12);
19738 if (!SWIG_IsOK(ecode12)) {
19739 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19740 }
19741 arg12 = static_cast< int >(val12);
19742 }
19743 {
19744 PyThreadState* __tstate = wxPyBeginAllowThreads();
19745 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19746 wxPyEndAllowThreads(__tstate);
19747 if (PyErr_Occurred()) SWIG_fail;
19748 }
19749 {
19750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19751 }
19752 return resultobj;
19753fail:
19754 return NULL;
19755}
19756
19757
19758SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19759 PyObject *resultobj = 0;
19760 wxDC *arg1 = (wxDC *) 0 ;
19761 wxPoint *arg2 = 0 ;
19762 wxSize *arg3 = 0 ;
19763 wxDC *arg4 = (wxDC *) 0 ;
19764 wxPoint *arg5 = 0 ;
19765 int arg6 = (int) wxCOPY ;
19766 bool arg7 = (bool) false ;
19767 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19768 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19769 bool result;
19770 void *argp1 = 0 ;
19771 int res1 = 0 ;
19772 wxPoint temp2 ;
19773 wxSize temp3 ;
19774 void *argp4 = 0 ;
19775 int res4 = 0 ;
19776 wxPoint temp5 ;
19777 int val6 ;
19778 int ecode6 = 0 ;
19779 bool val7 ;
19780 int ecode7 = 0 ;
19781 wxPoint temp8 ;
19782 PyObject * obj0 = 0 ;
19783 PyObject * obj1 = 0 ;
19784 PyObject * obj2 = 0 ;
19785 PyObject * obj3 = 0 ;
19786 PyObject * obj4 = 0 ;
19787 PyObject * obj5 = 0 ;
19788 PyObject * obj6 = 0 ;
19789 PyObject * obj7 = 0 ;
19790 char * kwnames[] = {
19791 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19792 };
19793
19794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19796 if (!SWIG_IsOK(res1)) {
19797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19798 }
19799 arg1 = reinterpret_cast< wxDC * >(argp1);
19800 {
19801 arg2 = &temp2;
19802 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19803 }
19804 {
19805 arg3 = &temp3;
19806 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19807 }
19808 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19809 if (!SWIG_IsOK(res4)) {
19810 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19811 }
19812 arg4 = reinterpret_cast< wxDC * >(argp4);
19813 {
19814 arg5 = &temp5;
19815 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19816 }
19817 if (obj5) {
19818 ecode6 = SWIG_AsVal_int(obj5, &val6);
19819 if (!SWIG_IsOK(ecode6)) {
19820 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19821 }
19822 arg6 = static_cast< int >(val6);
19823 }
19824 if (obj6) {
19825 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19826 if (!SWIG_IsOK(ecode7)) {
19827 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19828 }
19829 arg7 = static_cast< bool >(val7);
19830 }
19831 if (obj7) {
093d3ff1 19832 {
0085ce49
RD
19833 arg8 = &temp8;
19834 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19835 }
0085ce49
RD
19836 }
19837 {
19838 PyThreadState* __tstate = wxPyBeginAllowThreads();
19839 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19840 wxPyEndAllowThreads(__tstate);
19841 if (PyErr_Occurred()) SWIG_fail;
19842 }
19843 {
19844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19845 }
19846 return resultobj;
19847fail:
19848 return NULL;
19849}
19850
19851
8f514ab4
RD
19852SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19853 PyObject *resultobj = 0;
19854 wxDC *arg1 = (wxDC *) 0 ;
19855 wxRect *arg2 = (wxRect *) NULL ;
19856 SwigValueWrapper<wxBitmap > result;
19857 void *argp1 = 0 ;
19858 int res1 = 0 ;
19859 void *argp2 = 0 ;
19860 int res2 = 0 ;
19861 PyObject * obj0 = 0 ;
19862 PyObject * obj1 = 0 ;
19863 char * kwnames[] = {
19864 (char *) "self",(char *) "subrect", NULL
19865 };
19866
19867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19869 if (!SWIG_IsOK(res1)) {
19870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19871 }
19872 arg1 = reinterpret_cast< wxDC * >(argp1);
19873 if (obj1) {
19874 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19875 if (!SWIG_IsOK(res2)) {
19876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19877 }
19878 arg2 = reinterpret_cast< wxRect * >(argp2);
19879 }
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19883 wxPyEndAllowThreads(__tstate);
19884 if (PyErr_Occurred()) SWIG_fail;
19885 }
19886 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19887 return resultobj;
19888fail:
19889 return NULL;
19890}
19891
19892
0085ce49
RD
19893SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19894 PyObject *resultobj = 0;
19895 wxDC *arg1 = (wxDC *) 0 ;
19896 int arg2 ;
19897 int arg3 ;
19898 int arg4 ;
19899 int arg5 ;
19900 void *argp1 = 0 ;
19901 int res1 = 0 ;
19902 int val2 ;
19903 int ecode2 = 0 ;
19904 int val3 ;
19905 int ecode3 = 0 ;
19906 int val4 ;
19907 int ecode4 = 0 ;
19908 int val5 ;
19909 int ecode5 = 0 ;
19910 PyObject * obj0 = 0 ;
19911 PyObject * obj1 = 0 ;
19912 PyObject * obj2 = 0 ;
19913 PyObject * obj3 = 0 ;
19914 PyObject * obj4 = 0 ;
19915 char * kwnames[] = {
19916 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19917 };
19918
19919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19921 if (!SWIG_IsOK(res1)) {
19922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19923 }
19924 arg1 = reinterpret_cast< wxDC * >(argp1);
19925 ecode2 = SWIG_AsVal_int(obj1, &val2);
19926 if (!SWIG_IsOK(ecode2)) {
19927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19928 }
19929 arg2 = static_cast< int >(val2);
19930 ecode3 = SWIG_AsVal_int(obj2, &val3);
19931 if (!SWIG_IsOK(ecode3)) {
19932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19933 }
19934 arg3 = static_cast< int >(val3);
19935 ecode4 = SWIG_AsVal_int(obj3, &val4);
19936 if (!SWIG_IsOK(ecode4)) {
19937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19938 }
19939 arg4 = static_cast< int >(val4);
19940 ecode5 = SWIG_AsVal_int(obj4, &val5);
19941 if (!SWIG_IsOK(ecode5)) {
19942 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19943 }
19944 arg5 = static_cast< int >(val5);
19945 {
19946 PyThreadState* __tstate = wxPyBeginAllowThreads();
19947 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19948 wxPyEndAllowThreads(__tstate);
19949 if (PyErr_Occurred()) SWIG_fail;
19950 }
19951 resultobj = SWIG_Py_Void();
19952 return resultobj;
19953fail:
19954 return NULL;
19955}
19956
19957
19958SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19959 PyObject *resultobj = 0;
19960 wxDC *arg1 = (wxDC *) 0 ;
19961 wxPoint *arg2 = 0 ;
19962 wxSize *arg3 = 0 ;
19963 void *argp1 = 0 ;
19964 int res1 = 0 ;
19965 wxPoint temp2 ;
19966 wxSize temp3 ;
19967 PyObject * obj0 = 0 ;
19968 PyObject * obj1 = 0 ;
19969 PyObject * obj2 = 0 ;
19970 char * kwnames[] = {
19971 (char *) "self",(char *) "pt",(char *) "sz", NULL
19972 };
19973
19974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19976 if (!SWIG_IsOK(res1)) {
19977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19978 }
19979 arg1 = reinterpret_cast< wxDC * >(argp1);
19980 {
19981 arg2 = &temp2;
19982 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19983 }
19984 {
19985 arg3 = &temp3;
19986 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19987 }
19988 {
19989 PyThreadState* __tstate = wxPyBeginAllowThreads();
19990 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19991 wxPyEndAllowThreads(__tstate);
19992 if (PyErr_Occurred()) SWIG_fail;
19993 }
19994 resultobj = SWIG_Py_Void();
19995 return resultobj;
19996fail:
19997 return NULL;
19998}
19999
20000
20001SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20002 PyObject *resultobj = 0;
20003 wxDC *arg1 = (wxDC *) 0 ;
20004 wxRegion *arg2 = 0 ;
20005 void *argp1 = 0 ;
20006 int res1 = 0 ;
20007 void *argp2 = 0 ;
20008 int res2 = 0 ;
20009 PyObject * obj0 = 0 ;
20010 PyObject * obj1 = 0 ;
20011 char * kwnames[] = {
20012 (char *) "self",(char *) "region", NULL
20013 };
20014
20015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20017 if (!SWIG_IsOK(res1)) {
20018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20019 }
20020 arg1 = reinterpret_cast< wxDC * >(argp1);
20021 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20022 if (!SWIG_IsOK(res2)) {
20023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20024 }
20025 if (!argp2) {
20026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20027 }
20028 arg2 = reinterpret_cast< wxRegion * >(argp2);
20029 {
20030 PyThreadState* __tstate = wxPyBeginAllowThreads();
20031 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20032 wxPyEndAllowThreads(__tstate);
20033 if (PyErr_Occurred()) SWIG_fail;
20034 }
20035 resultobj = SWIG_Py_Void();
20036 return resultobj;
20037fail:
20038 return NULL;
20039}
20040
20041
20042SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20043 PyObject *resultobj = 0;
20044 wxDC *arg1 = (wxDC *) 0 ;
20045 wxRect *arg2 = 0 ;
20046 void *argp1 = 0 ;
20047 int res1 = 0 ;
20048 wxRect temp2 ;
20049 PyObject * obj0 = 0 ;
20050 PyObject * obj1 = 0 ;
20051 char * kwnames[] = {
20052 (char *) "self",(char *) "rect", NULL
20053 };
20054
20055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20057 if (!SWIG_IsOK(res1)) {
20058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20059 }
20060 arg1 = reinterpret_cast< wxDC * >(argp1);
20061 {
20062 arg2 = &temp2;
20063 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20064 }
20065 {
20066 PyThreadState* __tstate = wxPyBeginAllowThreads();
20067 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20068 wxPyEndAllowThreads(__tstate);
20069 if (PyErr_Occurred()) SWIG_fail;
20070 }
20071 resultobj = SWIG_Py_Void();
20072 return resultobj;
20073fail:
20074 return NULL;
20075}
20076
20077
20078SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20079 PyObject *resultobj = 0;
20080 wxDC *arg1 = (wxDC *) 0 ;
20081 int arg2 ;
20082 wxPoint *arg3 = (wxPoint *) 0 ;
20083 int arg4 = (int) 0 ;
20084 int arg5 = (int) 0 ;
20085 void *argp1 = 0 ;
20086 int res1 = 0 ;
20087 int val4 ;
20088 int ecode4 = 0 ;
20089 int val5 ;
20090 int ecode5 = 0 ;
20091 PyObject * obj0 = 0 ;
20092 PyObject * obj1 = 0 ;
20093 PyObject * obj2 = 0 ;
20094 PyObject * obj3 = 0 ;
20095 char * kwnames[] = {
20096 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20097 };
20098
20099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20101 if (!SWIG_IsOK(res1)) {
20102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20103 }
20104 arg1 = reinterpret_cast< wxDC * >(argp1);
20105 {
20106 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20107 if (arg3 == NULL) SWIG_fail;
20108 }
20109 if (obj2) {
20110 ecode4 = SWIG_AsVal_int(obj2, &val4);
20111 if (!SWIG_IsOK(ecode4)) {
20112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20113 }
20114 arg4 = static_cast< int >(val4);
20115 }
20116 if (obj3) {
20117 ecode5 = SWIG_AsVal_int(obj3, &val5);
20118 if (!SWIG_IsOK(ecode5)) {
20119 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20120 }
20121 arg5 = static_cast< int >(val5);
20122 }
20123 {
20124 PyThreadState* __tstate = wxPyBeginAllowThreads();
20125 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20126 wxPyEndAllowThreads(__tstate);
20127 if (PyErr_Occurred()) SWIG_fail;
20128 }
20129 resultobj = SWIG_Py_Void();
20130 {
20131 if (arg3) delete [] arg3;
20132 }
20133 return resultobj;
20134fail:
20135 {
20136 if (arg3) delete [] arg3;
20137 }
20138 return NULL;
20139}
20140
20141
20142SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20143 PyObject *resultobj = 0;
20144 wxDC *arg1 = (wxDC *) 0 ;
20145 int arg2 ;
20146 wxPoint *arg3 = (wxPoint *) 0 ;
20147 int arg4 = (int) 0 ;
20148 int arg5 = (int) 0 ;
20149 int arg6 = (int) wxODDEVEN_RULE ;
20150 void *argp1 = 0 ;
20151 int res1 = 0 ;
20152 int val4 ;
20153 int ecode4 = 0 ;
20154 int val5 ;
20155 int ecode5 = 0 ;
20156 int val6 ;
20157 int ecode6 = 0 ;
20158 PyObject * obj0 = 0 ;
20159 PyObject * obj1 = 0 ;
20160 PyObject * obj2 = 0 ;
20161 PyObject * obj3 = 0 ;
20162 PyObject * obj4 = 0 ;
20163 char * kwnames[] = {
20164 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20165 };
20166
20167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20169 if (!SWIG_IsOK(res1)) {
20170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20171 }
20172 arg1 = reinterpret_cast< wxDC * >(argp1);
20173 {
20174 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20175 if (arg3 == NULL) SWIG_fail;
20176 }
20177 if (obj2) {
20178 ecode4 = SWIG_AsVal_int(obj2, &val4);
20179 if (!SWIG_IsOK(ecode4)) {
20180 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20181 }
20182 arg4 = static_cast< int >(val4);
20183 }
20184 if (obj3) {
20185 ecode5 = SWIG_AsVal_int(obj3, &val5);
20186 if (!SWIG_IsOK(ecode5)) {
20187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20188 }
20189 arg5 = static_cast< int >(val5);
20190 }
20191 if (obj4) {
20192 ecode6 = SWIG_AsVal_int(obj4, &val6);
20193 if (!SWIG_IsOK(ecode6)) {
20194 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20195 }
20196 arg6 = static_cast< int >(val6);
20197 }
20198 {
20199 PyThreadState* __tstate = wxPyBeginAllowThreads();
20200 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20201 wxPyEndAllowThreads(__tstate);
20202 if (PyErr_Occurred()) SWIG_fail;
20203 }
20204 resultobj = SWIG_Py_Void();
20205 {
20206 if (arg3) delete [] arg3;
20207 }
20208 return resultobj;
20209fail:
20210 {
20211 if (arg3) delete [] arg3;
20212 }
20213 return NULL;
20214}
20215
20216
20217SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20218 PyObject *resultobj = 0;
20219 wxDC *arg1 = (wxDC *) 0 ;
20220 wxString *arg2 = 0 ;
20221 wxRect *arg3 = 0 ;
20222 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20223 int arg5 = (int) -1 ;
20224 void *argp1 = 0 ;
20225 int res1 = 0 ;
20226 bool temp2 = false ;
20227 wxRect temp3 ;
20228 int val4 ;
20229 int ecode4 = 0 ;
20230 int val5 ;
20231 int ecode5 = 0 ;
20232 PyObject * obj0 = 0 ;
20233 PyObject * obj1 = 0 ;
20234 PyObject * obj2 = 0 ;
20235 PyObject * obj3 = 0 ;
20236 PyObject * obj4 = 0 ;
20237 char * kwnames[] = {
20238 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20239 };
20240
20241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20243 if (!SWIG_IsOK(res1)) {
20244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20245 }
20246 arg1 = reinterpret_cast< wxDC * >(argp1);
20247 {
20248 arg2 = wxString_in_helper(obj1);
20249 if (arg2 == NULL) SWIG_fail;
20250 temp2 = true;
20251 }
20252 {
20253 arg3 = &temp3;
20254 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20255 }
20256 if (obj3) {
20257 ecode4 = SWIG_AsVal_int(obj3, &val4);
20258 if (!SWIG_IsOK(ecode4)) {
20259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20260 }
20261 arg4 = static_cast< int >(val4);
20262 }
20263 if (obj4) {
20264 ecode5 = SWIG_AsVal_int(obj4, &val5);
20265 if (!SWIG_IsOK(ecode5)) {
20266 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20267 }
20268 arg5 = static_cast< int >(val5);
20269 }
20270 {
20271 PyThreadState* __tstate = wxPyBeginAllowThreads();
20272 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20273 wxPyEndAllowThreads(__tstate);
20274 if (PyErr_Occurred()) SWIG_fail;
20275 }
20276 resultobj = SWIG_Py_Void();
20277 {
20278 if (temp2)
20279 delete arg2;
20280 }
20281 return resultobj;
20282fail:
20283 {
20284 if (temp2)
20285 delete arg2;
20286 }
20287 return NULL;
20288}
20289
20290
20291SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20292 PyObject *resultobj = 0;
20293 wxDC *arg1 = (wxDC *) 0 ;
20294 wxString *arg2 = 0 ;
20295 wxBitmap *arg3 = 0 ;
20296 wxRect *arg4 = 0 ;
20297 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20298 int arg6 = (int) -1 ;
20299 wxRect result;
20300 void *argp1 = 0 ;
20301 int res1 = 0 ;
20302 bool temp2 = false ;
20303 void *argp3 = 0 ;
20304 int res3 = 0 ;
20305 wxRect temp4 ;
20306 int val5 ;
20307 int ecode5 = 0 ;
20308 int val6 ;
20309 int ecode6 = 0 ;
20310 PyObject * obj0 = 0 ;
20311 PyObject * obj1 = 0 ;
20312 PyObject * obj2 = 0 ;
20313 PyObject * obj3 = 0 ;
20314 PyObject * obj4 = 0 ;
20315 PyObject * obj5 = 0 ;
20316 char * kwnames[] = {
20317 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20318 };
20319
20320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20322 if (!SWIG_IsOK(res1)) {
20323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20324 }
20325 arg1 = reinterpret_cast< wxDC * >(argp1);
20326 {
20327 arg2 = wxString_in_helper(obj1);
20328 if (arg2 == NULL) SWIG_fail;
20329 temp2 = true;
20330 }
20331 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20332 if (!SWIG_IsOK(res3)) {
20333 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20334 }
20335 if (!argp3) {
20336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20337 }
20338 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20339 {
20340 arg4 = &temp4;
20341 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20342 }
20343 if (obj4) {
20344 ecode5 = SWIG_AsVal_int(obj4, &val5);
20345 if (!SWIG_IsOK(ecode5)) {
20346 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20347 }
20348 arg5 = static_cast< int >(val5);
20349 }
20350 if (obj5) {
20351 ecode6 = SWIG_AsVal_int(obj5, &val6);
20352 if (!SWIG_IsOK(ecode6)) {
20353 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20354 }
20355 arg6 = static_cast< int >(val6);
20356 }
20357 {
20358 PyThreadState* __tstate = wxPyBeginAllowThreads();
20359 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20360 wxPyEndAllowThreads(__tstate);
20361 if (PyErr_Occurred()) SWIG_fail;
20362 }
20363 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20364 {
20365 if (temp2)
20366 delete arg2;
20367 }
20368 return resultobj;
20369fail:
20370 {
20371 if (temp2)
20372 delete arg2;
20373 }
20374 return NULL;
20375}
20376
20377
20378SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20379 PyObject *resultobj = 0;
20380 wxDC *arg1 = (wxDC *) 0 ;
20381 int arg2 ;
20382 wxPoint *arg3 = (wxPoint *) 0 ;
20383 void *argp1 = 0 ;
20384 int res1 = 0 ;
20385 PyObject * obj0 = 0 ;
20386 PyObject * obj1 = 0 ;
20387 char * kwnames[] = {
20388 (char *) "self",(char *) "points", NULL
20389 };
20390
20391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20393 if (!SWIG_IsOK(res1)) {
20394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20395 }
20396 arg1 = reinterpret_cast< wxDC * >(argp1);
20397 {
20398 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20399 if (arg3 == NULL) SWIG_fail;
20400 }
20401 {
20402 PyThreadState* __tstate = wxPyBeginAllowThreads();
20403 (arg1)->DrawSpline(arg2,arg3);
20404 wxPyEndAllowThreads(__tstate);
20405 if (PyErr_Occurred()) SWIG_fail;
20406 }
20407 resultobj = SWIG_Py_Void();
20408 {
20409 if (arg3) delete [] arg3;
20410 }
20411 return resultobj;
20412fail:
20413 {
20414 if (arg3) delete [] arg3;
20415 }
20416 return NULL;
20417}
20418
20419
20420SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20421 PyObject *resultobj = 0;
20422 wxDC *arg1 = (wxDC *) 0 ;
20423 void *argp1 = 0 ;
20424 int res1 = 0 ;
20425 PyObject *swig_obj[1] ;
20426
20427 if (!args) SWIG_fail;
20428 swig_obj[0] = args;
20429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20430 if (!SWIG_IsOK(res1)) {
20431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20432 }
20433 arg1 = reinterpret_cast< wxDC * >(argp1);
20434 {
20435 PyThreadState* __tstate = wxPyBeginAllowThreads();
20436 (arg1)->Clear();
20437 wxPyEndAllowThreads(__tstate);
20438 if (PyErr_Occurred()) SWIG_fail;
20439 }
20440 resultobj = SWIG_Py_Void();
20441 return resultobj;
20442fail:
20443 return NULL;
20444}
20445
20446
20447SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20448 PyObject *resultobj = 0;
20449 wxDC *arg1 = (wxDC *) 0 ;
20450 wxString *arg2 = 0 ;
20451 bool result;
20452 void *argp1 = 0 ;
20453 int res1 = 0 ;
20454 bool temp2 = false ;
20455 PyObject * obj0 = 0 ;
20456 PyObject * obj1 = 0 ;
20457 char * kwnames[] = {
20458 (char *) "self",(char *) "message", NULL
20459 };
20460
20461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20463 if (!SWIG_IsOK(res1)) {
20464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20465 }
20466 arg1 = reinterpret_cast< wxDC * >(argp1);
20467 {
20468 arg2 = wxString_in_helper(obj1);
20469 if (arg2 == NULL) SWIG_fail;
20470 temp2 = true;
20471 }
20472 {
20473 PyThreadState* __tstate = wxPyBeginAllowThreads();
20474 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20475 wxPyEndAllowThreads(__tstate);
20476 if (PyErr_Occurred()) SWIG_fail;
20477 }
20478 {
20479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20480 }
20481 {
20482 if (temp2)
20483 delete arg2;
20484 }
20485 return resultobj;
20486fail:
20487 {
20488 if (temp2)
20489 delete arg2;
20490 }
20491 return NULL;
20492}
20493
20494
20495SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20496 PyObject *resultobj = 0;
20497 wxDC *arg1 = (wxDC *) 0 ;
20498 void *argp1 = 0 ;
20499 int res1 = 0 ;
20500 PyObject *swig_obj[1] ;
20501
20502 if (!args) SWIG_fail;
20503 swig_obj[0] = args;
20504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20505 if (!SWIG_IsOK(res1)) {
20506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20507 }
20508 arg1 = reinterpret_cast< wxDC * >(argp1);
20509 {
20510 PyThreadState* __tstate = wxPyBeginAllowThreads();
20511 (arg1)->EndDoc();
20512 wxPyEndAllowThreads(__tstate);
20513 if (PyErr_Occurred()) SWIG_fail;
20514 }
20515 resultobj = SWIG_Py_Void();
20516 return resultobj;
20517fail:
20518 return NULL;
20519}
20520
20521
20522SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20523 PyObject *resultobj = 0;
20524 wxDC *arg1 = (wxDC *) 0 ;
20525 void *argp1 = 0 ;
20526 int res1 = 0 ;
20527 PyObject *swig_obj[1] ;
20528
20529 if (!args) SWIG_fail;
20530 swig_obj[0] = args;
20531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20532 if (!SWIG_IsOK(res1)) {
20533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20534 }
20535 arg1 = reinterpret_cast< wxDC * >(argp1);
20536 {
20537 PyThreadState* __tstate = wxPyBeginAllowThreads();
20538 (arg1)->StartPage();
20539 wxPyEndAllowThreads(__tstate);
20540 if (PyErr_Occurred()) SWIG_fail;
20541 }
20542 resultobj = SWIG_Py_Void();
20543 return resultobj;
20544fail:
20545 return NULL;
20546}
20547
20548
20549SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20550 PyObject *resultobj = 0;
20551 wxDC *arg1 = (wxDC *) 0 ;
20552 void *argp1 = 0 ;
20553 int res1 = 0 ;
20554 PyObject *swig_obj[1] ;
20555
20556 if (!args) SWIG_fail;
20557 swig_obj[0] = args;
20558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20559 if (!SWIG_IsOK(res1)) {
20560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20561 }
20562 arg1 = reinterpret_cast< wxDC * >(argp1);
20563 {
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 (arg1)->EndPage();
20566 wxPyEndAllowThreads(__tstate);
20567 if (PyErr_Occurred()) SWIG_fail;
20568 }
20569 resultobj = SWIG_Py_Void();
20570 return resultobj;
20571fail:
20572 return NULL;
20573}
20574
20575
20576SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20577 PyObject *resultobj = 0;
20578 wxDC *arg1 = (wxDC *) 0 ;
20579 wxFont *arg2 = 0 ;
20580 void *argp1 = 0 ;
20581 int res1 = 0 ;
20582 void *argp2 = 0 ;
20583 int res2 = 0 ;
20584 PyObject * obj0 = 0 ;
20585 PyObject * obj1 = 0 ;
20586 char * kwnames[] = {
20587 (char *) "self",(char *) "font", NULL
20588 };
20589
20590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20592 if (!SWIG_IsOK(res1)) {
20593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20594 }
20595 arg1 = reinterpret_cast< wxDC * >(argp1);
20596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20597 if (!SWIG_IsOK(res2)) {
20598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20599 }
20600 if (!argp2) {
20601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20602 }
20603 arg2 = reinterpret_cast< wxFont * >(argp2);
20604 {
20605 PyThreadState* __tstate = wxPyBeginAllowThreads();
20606 (arg1)->SetFont((wxFont const &)*arg2);
20607 wxPyEndAllowThreads(__tstate);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 resultobj = SWIG_Py_Void();
20611 return resultobj;
20612fail:
20613 return NULL;
20614}
20615
20616
20617SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20618 PyObject *resultobj = 0;
20619 wxDC *arg1 = (wxDC *) 0 ;
20620 wxPen *arg2 = 0 ;
20621 void *argp1 = 0 ;
20622 int res1 = 0 ;
20623 void *argp2 = 0 ;
20624 int res2 = 0 ;
20625 PyObject * obj0 = 0 ;
20626 PyObject * obj1 = 0 ;
20627 char * kwnames[] = {
20628 (char *) "self",(char *) "pen", NULL
20629 };
20630
20631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20633 if (!SWIG_IsOK(res1)) {
20634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20635 }
20636 arg1 = reinterpret_cast< wxDC * >(argp1);
20637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20638 if (!SWIG_IsOK(res2)) {
20639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20640 }
20641 if (!argp2) {
20642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20643 }
20644 arg2 = reinterpret_cast< wxPen * >(argp2);
20645 {
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 (arg1)->SetPen((wxPen const &)*arg2);
20648 wxPyEndAllowThreads(__tstate);
20649 if (PyErr_Occurred()) SWIG_fail;
20650 }
20651 resultobj = SWIG_Py_Void();
20652 return resultobj;
20653fail:
20654 return NULL;
20655}
20656
20657
20658SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20659 PyObject *resultobj = 0;
20660 wxDC *arg1 = (wxDC *) 0 ;
20661 wxBrush *arg2 = 0 ;
20662 void *argp1 = 0 ;
20663 int res1 = 0 ;
20664 void *argp2 = 0 ;
20665 int res2 = 0 ;
20666 PyObject * obj0 = 0 ;
20667 PyObject * obj1 = 0 ;
20668 char * kwnames[] = {
20669 (char *) "self",(char *) "brush", NULL
20670 };
20671
20672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20674 if (!SWIG_IsOK(res1)) {
20675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20676 }
20677 arg1 = reinterpret_cast< wxDC * >(argp1);
20678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20679 if (!SWIG_IsOK(res2)) {
20680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20681 }
20682 if (!argp2) {
20683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20684 }
20685 arg2 = reinterpret_cast< wxBrush * >(argp2);
20686 {
20687 PyThreadState* __tstate = wxPyBeginAllowThreads();
20688 (arg1)->SetBrush((wxBrush const &)*arg2);
20689 wxPyEndAllowThreads(__tstate);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 }
20692 resultobj = SWIG_Py_Void();
20693 return resultobj;
20694fail:
20695 return NULL;
20696}
20697
20698
20699SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20700 PyObject *resultobj = 0;
20701 wxDC *arg1 = (wxDC *) 0 ;
20702 wxBrush *arg2 = 0 ;
20703 void *argp1 = 0 ;
20704 int res1 = 0 ;
20705 void *argp2 = 0 ;
20706 int res2 = 0 ;
20707 PyObject * obj0 = 0 ;
20708 PyObject * obj1 = 0 ;
20709 char * kwnames[] = {
20710 (char *) "self",(char *) "brush", NULL
20711 };
20712
20713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20715 if (!SWIG_IsOK(res1)) {
20716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20717 }
20718 arg1 = reinterpret_cast< wxDC * >(argp1);
20719 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20720 if (!SWIG_IsOK(res2)) {
20721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20722 }
20723 if (!argp2) {
20724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20725 }
20726 arg2 = reinterpret_cast< wxBrush * >(argp2);
20727 {
20728 PyThreadState* __tstate = wxPyBeginAllowThreads();
20729 (arg1)->SetBackground((wxBrush const &)*arg2);
20730 wxPyEndAllowThreads(__tstate);
20731 if (PyErr_Occurred()) SWIG_fail;
20732 }
20733 resultobj = SWIG_Py_Void();
20734 return resultobj;
20735fail:
20736 return NULL;
20737}
20738
20739
20740SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20741 PyObject *resultobj = 0;
20742 wxDC *arg1 = (wxDC *) 0 ;
20743 int arg2 ;
20744 void *argp1 = 0 ;
20745 int res1 = 0 ;
20746 int val2 ;
20747 int ecode2 = 0 ;
20748 PyObject * obj0 = 0 ;
20749 PyObject * obj1 = 0 ;
20750 char * kwnames[] = {
20751 (char *) "self",(char *) "mode", NULL
20752 };
20753
20754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20756 if (!SWIG_IsOK(res1)) {
20757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20758 }
20759 arg1 = reinterpret_cast< wxDC * >(argp1);
20760 ecode2 = SWIG_AsVal_int(obj1, &val2);
20761 if (!SWIG_IsOK(ecode2)) {
20762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20763 }
20764 arg2 = static_cast< int >(val2);
20765 {
20766 PyThreadState* __tstate = wxPyBeginAllowThreads();
20767 (arg1)->SetBackgroundMode(arg2);
20768 wxPyEndAllowThreads(__tstate);
20769 if (PyErr_Occurred()) SWIG_fail;
20770 }
20771 resultobj = SWIG_Py_Void();
20772 return resultobj;
20773fail:
20774 return NULL;
20775}
20776
20777
20778SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20779 PyObject *resultobj = 0;
20780 wxDC *arg1 = (wxDC *) 0 ;
20781 wxPalette *arg2 = 0 ;
20782 void *argp1 = 0 ;
20783 int res1 = 0 ;
20784 void *argp2 = 0 ;
20785 int res2 = 0 ;
20786 PyObject * obj0 = 0 ;
20787 PyObject * obj1 = 0 ;
20788 char * kwnames[] = {
20789 (char *) "self",(char *) "palette", NULL
20790 };
20791
20792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20794 if (!SWIG_IsOK(res1)) {
20795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20796 }
20797 arg1 = reinterpret_cast< wxDC * >(argp1);
20798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20799 if (!SWIG_IsOK(res2)) {
20800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20801 }
20802 if (!argp2) {
20803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20804 }
20805 arg2 = reinterpret_cast< wxPalette * >(argp2);
20806 {
20807 PyThreadState* __tstate = wxPyBeginAllowThreads();
20808 (arg1)->SetPalette((wxPalette const &)*arg2);
20809 wxPyEndAllowThreads(__tstate);
20810 if (PyErr_Occurred()) SWIG_fail;
20811 }
20812 resultobj = SWIG_Py_Void();
20813 return resultobj;
20814fail:
20815 return NULL;
20816}
20817
20818
20819SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20820 PyObject *resultobj = 0;
20821 wxDC *arg1 = (wxDC *) 0 ;
20822 void *argp1 = 0 ;
20823 int res1 = 0 ;
20824 PyObject *swig_obj[1] ;
20825
20826 if (!args) SWIG_fail;
20827 swig_obj[0] = args;
20828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20829 if (!SWIG_IsOK(res1)) {
20830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20831 }
20832 arg1 = reinterpret_cast< wxDC * >(argp1);
20833 {
20834 PyThreadState* __tstate = wxPyBeginAllowThreads();
20835 (arg1)->DestroyClippingRegion();
20836 wxPyEndAllowThreads(__tstate);
20837 if (PyErr_Occurred()) SWIG_fail;
20838 }
20839 resultobj = SWIG_Py_Void();
20840 return resultobj;
20841fail:
20842 return NULL;
20843}
20844
20845
20846SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20847 PyObject *resultobj = 0;
20848 wxDC *arg1 = (wxDC *) 0 ;
20849 int *arg2 = (int *) 0 ;
20850 int *arg3 = (int *) 0 ;
20851 int *arg4 = (int *) 0 ;
20852 int *arg5 = (int *) 0 ;
20853 void *argp1 = 0 ;
20854 int res1 = 0 ;
20855 int temp2 ;
20856 int res2 = SWIG_TMPOBJ ;
20857 int temp3 ;
20858 int res3 = SWIG_TMPOBJ ;
20859 int temp4 ;
20860 int res4 = SWIG_TMPOBJ ;
20861 int temp5 ;
20862 int res5 = SWIG_TMPOBJ ;
20863 PyObject *swig_obj[1] ;
20864
20865 arg2 = &temp2;
20866 arg3 = &temp3;
20867 arg4 = &temp4;
20868 arg5 = &temp5;
20869 if (!args) SWIG_fail;
20870 swig_obj[0] = args;
20871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20872 if (!SWIG_IsOK(res1)) {
20873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20874 }
20875 arg1 = reinterpret_cast< wxDC * >(argp1);
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20879 wxPyEndAllowThreads(__tstate);
20880 if (PyErr_Occurred()) SWIG_fail;
20881 }
20882 resultobj = SWIG_Py_Void();
20883 if (SWIG_IsTmpObj(res2)) {
20884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20885 } else {
20886 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20888 }
20889 if (SWIG_IsTmpObj(res3)) {
20890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20891 } else {
20892 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20894 }
20895 if (SWIG_IsTmpObj(res4)) {
20896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20897 } else {
20898 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20900 }
20901 if (SWIG_IsTmpObj(res5)) {
20902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20903 } else {
20904 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20906 }
20907 return resultobj;
20908fail:
20909 return NULL;
20910}
20911
20912
20913SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20914 PyObject *resultobj = 0;
20915 wxDC *arg1 = (wxDC *) 0 ;
20916 wxRect result;
20917 void *argp1 = 0 ;
20918 int res1 = 0 ;
20919 PyObject *swig_obj[1] ;
20920
20921 if (!args) SWIG_fail;
20922 swig_obj[0] = args;
20923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20924 if (!SWIG_IsOK(res1)) {
20925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20926 }
20927 arg1 = reinterpret_cast< wxDC * >(argp1);
20928 {
20929 PyThreadState* __tstate = wxPyBeginAllowThreads();
20930 result = wxDC_GetClippingRect(arg1);
20931 wxPyEndAllowThreads(__tstate);
20932 if (PyErr_Occurred()) SWIG_fail;
20933 }
20934 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20935 return resultobj;
20936fail:
20937 return NULL;
20938}
20939
20940
20941SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20942 PyObject *resultobj = 0;
20943 wxDC *arg1 = (wxDC *) 0 ;
20944 int result;
20945 void *argp1 = 0 ;
20946 int res1 = 0 ;
20947 PyObject *swig_obj[1] ;
20948
20949 if (!args) SWIG_fail;
20950 swig_obj[0] = args;
20951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20952 if (!SWIG_IsOK(res1)) {
20953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20954 }
20955 arg1 = reinterpret_cast< wxDC * >(argp1);
20956 {
20957 PyThreadState* __tstate = wxPyBeginAllowThreads();
20958 result = (int)((wxDC const *)arg1)->GetCharHeight();
20959 wxPyEndAllowThreads(__tstate);
20960 if (PyErr_Occurred()) SWIG_fail;
20961 }
20962 resultobj = SWIG_From_int(static_cast< int >(result));
20963 return resultobj;
20964fail:
20965 return NULL;
20966}
20967
20968
20969SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20970 PyObject *resultobj = 0;
20971 wxDC *arg1 = (wxDC *) 0 ;
20972 int result;
20973 void *argp1 = 0 ;
20974 int res1 = 0 ;
20975 PyObject *swig_obj[1] ;
20976
20977 if (!args) SWIG_fail;
20978 swig_obj[0] = args;
20979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20980 if (!SWIG_IsOK(res1)) {
20981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20982 }
20983 arg1 = reinterpret_cast< wxDC * >(argp1);
20984 {
20985 PyThreadState* __tstate = wxPyBeginAllowThreads();
20986 result = (int)((wxDC const *)arg1)->GetCharWidth();
20987 wxPyEndAllowThreads(__tstate);
20988 if (PyErr_Occurred()) SWIG_fail;
20989 }
20990 resultobj = SWIG_From_int(static_cast< int >(result));
20991 return resultobj;
20992fail:
20993 return NULL;
20994}
20995
20996
20997SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20998 PyObject *resultobj = 0;
20999 wxDC *arg1 = (wxDC *) 0 ;
21000 wxString *arg2 = 0 ;
21001 int *arg3 = (int *) 0 ;
21002 int *arg4 = (int *) 0 ;
21003 void *argp1 = 0 ;
21004 int res1 = 0 ;
21005 bool temp2 = false ;
21006 int temp3 ;
21007 int res3 = SWIG_TMPOBJ ;
21008 int temp4 ;
21009 int res4 = SWIG_TMPOBJ ;
21010 PyObject * obj0 = 0 ;
21011 PyObject * obj1 = 0 ;
21012 char * kwnames[] = {
21013 (char *) "self",(char *) "string", NULL
21014 };
21015
21016 arg3 = &temp3;
21017 arg4 = &temp4;
21018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21020 if (!SWIG_IsOK(res1)) {
21021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21022 }
21023 arg1 = reinterpret_cast< wxDC * >(argp1);
21024 {
21025 arg2 = wxString_in_helper(obj1);
21026 if (arg2 == NULL) SWIG_fail;
21027 temp2 = true;
21028 }
21029 {
21030 PyThreadState* __tstate = wxPyBeginAllowThreads();
21031 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21032 wxPyEndAllowThreads(__tstate);
21033 if (PyErr_Occurred()) SWIG_fail;
21034 }
21035 resultobj = SWIG_Py_Void();
21036 if (SWIG_IsTmpObj(res3)) {
21037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21038 } else {
21039 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21041 }
21042 if (SWIG_IsTmpObj(res4)) {
21043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21044 } else {
21045 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21047 }
21048 {
21049 if (temp2)
21050 delete arg2;
21051 }
21052 return resultobj;
21053fail:
21054 {
21055 if (temp2)
21056 delete arg2;
21057 }
21058 return NULL;
21059}
21060
21061
21062SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21063 PyObject *resultobj = 0;
21064 wxDC *arg1 = (wxDC *) 0 ;
21065 wxString *arg2 = 0 ;
21066 int *arg3 = (int *) 0 ;
21067 int *arg4 = (int *) 0 ;
21068 int *arg5 = (int *) 0 ;
21069 int *arg6 = (int *) 0 ;
21070 wxFont *arg7 = (wxFont *) NULL ;
21071 void *argp1 = 0 ;
21072 int res1 = 0 ;
21073 bool temp2 = false ;
21074 int temp3 ;
21075 int res3 = SWIG_TMPOBJ ;
21076 int temp4 ;
21077 int res4 = SWIG_TMPOBJ ;
21078 int temp5 ;
21079 int res5 = SWIG_TMPOBJ ;
21080 int temp6 ;
21081 int res6 = SWIG_TMPOBJ ;
21082 void *argp7 = 0 ;
21083 int res7 = 0 ;
21084 PyObject * obj0 = 0 ;
21085 PyObject * obj1 = 0 ;
21086 PyObject * obj2 = 0 ;
21087 char * kwnames[] = {
21088 (char *) "self",(char *) "string",(char *) "font", NULL
21089 };
21090
21091 arg3 = &temp3;
21092 arg4 = &temp4;
21093 arg5 = &temp5;
21094 arg6 = &temp6;
21095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21097 if (!SWIG_IsOK(res1)) {
21098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21099 }
21100 arg1 = reinterpret_cast< wxDC * >(argp1);
21101 {
21102 arg2 = wxString_in_helper(obj1);
21103 if (arg2 == NULL) SWIG_fail;
21104 temp2 = true;
21105 }
21106 if (obj2) {
21107 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21108 if (!SWIG_IsOK(res7)) {
21109 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21110 }
0085ce49
RD
21111 arg7 = reinterpret_cast< wxFont * >(argp7);
21112 }
21113 {
21114 PyThreadState* __tstate = wxPyBeginAllowThreads();
21115 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21116 wxPyEndAllowThreads(__tstate);
21117 if (PyErr_Occurred()) SWIG_fail;
21118 }
21119 resultobj = SWIG_Py_Void();
21120 if (SWIG_IsTmpObj(res3)) {
21121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21122 } else {
21123 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21125 }
21126 if (SWIG_IsTmpObj(res4)) {
21127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21128 } else {
21129 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21130 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21131 }
21132 if (SWIG_IsTmpObj(res5)) {
21133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21134 } else {
21135 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21137 }
21138 if (SWIG_IsTmpObj(res6)) {
21139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21140 } else {
21141 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21143 }
21144 {
21145 if (temp2)
21146 delete arg2;
21147 }
21148 return resultobj;
21149fail:
21150 {
21151 if (temp2)
21152 delete arg2;
21153 }
21154 return NULL;
21155}
21156
21157
21158SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21159 PyObject *resultobj = 0;
21160 wxDC *arg1 = (wxDC *) 0 ;
21161 wxString *arg2 = 0 ;
21162 int *arg3 = (int *) 0 ;
21163 int *arg4 = (int *) 0 ;
21164 int *arg5 = (int *) 0 ;
21165 wxFont *arg6 = (wxFont *) NULL ;
21166 void *argp1 = 0 ;
21167 int res1 = 0 ;
21168 bool temp2 = false ;
21169 int temp3 ;
21170 int res3 = SWIG_TMPOBJ ;
21171 int temp4 ;
21172 int res4 = SWIG_TMPOBJ ;
21173 int temp5 ;
21174 int res5 = SWIG_TMPOBJ ;
21175 void *argp6 = 0 ;
21176 int res6 = 0 ;
21177 PyObject * obj0 = 0 ;
21178 PyObject * obj1 = 0 ;
21179 PyObject * obj2 = 0 ;
21180 char * kwnames[] = {
21181 (char *) "self",(char *) "text",(char *) "font", NULL
21182 };
21183
21184 arg3 = &temp3;
21185 arg4 = &temp4;
21186 arg5 = &temp5;
21187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21189 if (!SWIG_IsOK(res1)) {
21190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21191 }
21192 arg1 = reinterpret_cast< wxDC * >(argp1);
21193 {
21194 arg2 = wxString_in_helper(obj1);
21195 if (arg2 == NULL) SWIG_fail;
21196 temp2 = true;
21197 }
21198 if (obj2) {
21199 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21200 if (!SWIG_IsOK(res6)) {
21201 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21202 }
0085ce49
RD
21203 arg6 = reinterpret_cast< wxFont * >(argp6);
21204 }
21205 {
21206 PyThreadState* __tstate = wxPyBeginAllowThreads();
21207 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21208 wxPyEndAllowThreads(__tstate);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 resultobj = SWIG_Py_Void();
21212 if (SWIG_IsTmpObj(res3)) {
21213 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21214 } else {
21215 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21216 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21217 }
21218 if (SWIG_IsTmpObj(res4)) {
21219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21220 } else {
21221 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21223 }
21224 if (SWIG_IsTmpObj(res5)) {
21225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21226 } else {
21227 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21229 }
21230 {
21231 if (temp2)
21232 delete arg2;
21233 }
21234 return resultobj;
21235fail:
21236 {
21237 if (temp2)
21238 delete arg2;
21239 }
21240 return NULL;
21241}
21242
21243
21244SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21245 PyObject *resultobj = 0;
21246 wxDC *arg1 = (wxDC *) 0 ;
21247 wxString *arg2 = 0 ;
21248 wxArrayInt result;
21249 void *argp1 = 0 ;
21250 int res1 = 0 ;
21251 bool temp2 = false ;
21252 PyObject * obj0 = 0 ;
21253 PyObject * obj1 = 0 ;
21254 char * kwnames[] = {
21255 (char *) "self",(char *) "text", NULL
21256 };
21257
21258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21260 if (!SWIG_IsOK(res1)) {
21261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21262 }
21263 arg1 = reinterpret_cast< wxDC * >(argp1);
21264 {
21265 arg2 = wxString_in_helper(obj1);
21266 if (arg2 == NULL) SWIG_fail;
21267 temp2 = true;
21268 }
21269 {
21270 PyThreadState* __tstate = wxPyBeginAllowThreads();
21271 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21272 wxPyEndAllowThreads(__tstate);
21273 if (PyErr_Occurred()) SWIG_fail;
21274 }
21275 {
b39fe951 21276 resultobj = wxArrayInt2PyList_helper(result);
0085ce49
RD
21277 }
21278 {
21279 if (temp2)
21280 delete arg2;
21281 }
21282 return resultobj;
21283fail:
21284 {
21285 if (temp2)
21286 delete arg2;
21287 }
21288 return NULL;
21289}
21290
21291
21292SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21293 PyObject *resultobj = 0;
21294 wxDC *arg1 = (wxDC *) 0 ;
21295 wxSize result;
21296 void *argp1 = 0 ;
21297 int res1 = 0 ;
21298 PyObject *swig_obj[1] ;
21299
21300 if (!args) SWIG_fail;
21301 swig_obj[0] = args;
21302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21303 if (!SWIG_IsOK(res1)) {
21304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21305 }
21306 arg1 = reinterpret_cast< wxDC * >(argp1);
21307 {
21308 PyThreadState* __tstate = wxPyBeginAllowThreads();
21309 result = (arg1)->GetSize();
21310 wxPyEndAllowThreads(__tstate);
21311 if (PyErr_Occurred()) SWIG_fail;
21312 }
21313 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21314 return resultobj;
21315fail:
21316 return NULL;
21317}
21318
21319
21320SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21321 PyObject *resultobj = 0;
21322 wxDC *arg1 = (wxDC *) 0 ;
21323 int *arg2 = (int *) 0 ;
21324 int *arg3 = (int *) 0 ;
21325 void *argp1 = 0 ;
21326 int res1 = 0 ;
21327 int temp2 ;
21328 int res2 = SWIG_TMPOBJ ;
21329 int temp3 ;
21330 int res3 = SWIG_TMPOBJ ;
21331 PyObject *swig_obj[1] ;
21332
21333 arg2 = &temp2;
21334 arg3 = &temp3;
21335 if (!args) SWIG_fail;
21336 swig_obj[0] = args;
21337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21338 if (!SWIG_IsOK(res1)) {
21339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21340 }
21341 arg1 = reinterpret_cast< wxDC * >(argp1);
21342 {
21343 PyThreadState* __tstate = wxPyBeginAllowThreads();
21344 (arg1)->GetSize(arg2,arg3);
21345 wxPyEndAllowThreads(__tstate);
21346 if (PyErr_Occurred()) SWIG_fail;
21347 }
21348 resultobj = SWIG_Py_Void();
21349 if (SWIG_IsTmpObj(res2)) {
21350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21351 } else {
21352 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21354 }
21355 if (SWIG_IsTmpObj(res3)) {
21356 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21357 } else {
21358 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21359 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21360 }
21361 return resultobj;
21362fail:
21363 return NULL;
21364}
21365
21366
21367SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21368 PyObject *resultobj = 0;
21369 wxDC *arg1 = (wxDC *) 0 ;
21370 wxSize result;
21371 void *argp1 = 0 ;
21372 int res1 = 0 ;
21373 PyObject *swig_obj[1] ;
21374
21375 if (!args) SWIG_fail;
21376 swig_obj[0] = args;
21377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21378 if (!SWIG_IsOK(res1)) {
21379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21380 }
21381 arg1 = reinterpret_cast< wxDC * >(argp1);
21382 {
21383 PyThreadState* __tstate = wxPyBeginAllowThreads();
21384 result = ((wxDC const *)arg1)->GetSizeMM();
21385 wxPyEndAllowThreads(__tstate);
21386 if (PyErr_Occurred()) SWIG_fail;
21387 }
21388 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21389 return resultobj;
21390fail:
21391 return NULL;
21392}
21393
21394
21395SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21396 PyObject *resultobj = 0;
21397 wxDC *arg1 = (wxDC *) 0 ;
21398 int *arg2 = (int *) 0 ;
21399 int *arg3 = (int *) 0 ;
21400 void *argp1 = 0 ;
21401 int res1 = 0 ;
21402 int temp2 ;
21403 int res2 = SWIG_TMPOBJ ;
21404 int temp3 ;
21405 int res3 = SWIG_TMPOBJ ;
21406 PyObject *swig_obj[1] ;
21407
21408 arg2 = &temp2;
21409 arg3 = &temp3;
21410 if (!args) SWIG_fail;
21411 swig_obj[0] = args;
21412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21413 if (!SWIG_IsOK(res1)) {
21414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21415 }
21416 arg1 = reinterpret_cast< wxDC * >(argp1);
21417 {
21418 PyThreadState* __tstate = wxPyBeginAllowThreads();
21419 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21420 wxPyEndAllowThreads(__tstate);
21421 if (PyErr_Occurred()) SWIG_fail;
21422 }
21423 resultobj = SWIG_Py_Void();
21424 if (SWIG_IsTmpObj(res2)) {
21425 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21426 } else {
21427 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21428 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21429 }
21430 if (SWIG_IsTmpObj(res3)) {
21431 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21432 } else {
21433 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21434 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21435 }
21436 return resultobj;
21437fail:
21438 return NULL;
21439}
21440
21441
21442SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21443 PyObject *resultobj = 0;
21444 wxDC *arg1 = (wxDC *) 0 ;
21445 int arg2 ;
21446 int result;
21447 void *argp1 = 0 ;
21448 int res1 = 0 ;
21449 int val2 ;
21450 int ecode2 = 0 ;
21451 PyObject * obj0 = 0 ;
21452 PyObject * obj1 = 0 ;
21453 char * kwnames[] = {
21454 (char *) "self",(char *) "x", NULL
21455 };
21456
21457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21459 if (!SWIG_IsOK(res1)) {
21460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21461 }
21462 arg1 = reinterpret_cast< wxDC * >(argp1);
21463 ecode2 = SWIG_AsVal_int(obj1, &val2);
21464 if (!SWIG_IsOK(ecode2)) {
21465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21466 }
21467 arg2 = static_cast< int >(val2);
21468 {
21469 PyThreadState* __tstate = wxPyBeginAllowThreads();
21470 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21471 wxPyEndAllowThreads(__tstate);
21472 if (PyErr_Occurred()) SWIG_fail;
21473 }
21474 resultobj = SWIG_From_int(static_cast< int >(result));
21475 return resultobj;
21476fail:
21477 return NULL;
21478}
21479
21480
21481SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21482 PyObject *resultobj = 0;
21483 wxDC *arg1 = (wxDC *) 0 ;
21484 int arg2 ;
21485 int result;
21486 void *argp1 = 0 ;
21487 int res1 = 0 ;
21488 int val2 ;
21489 int ecode2 = 0 ;
21490 PyObject * obj0 = 0 ;
21491 PyObject * obj1 = 0 ;
21492 char * kwnames[] = {
21493 (char *) "self",(char *) "y", NULL
21494 };
21495
21496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21498 if (!SWIG_IsOK(res1)) {
21499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21500 }
21501 arg1 = reinterpret_cast< wxDC * >(argp1);
21502 ecode2 = SWIG_AsVal_int(obj1, &val2);
21503 if (!SWIG_IsOK(ecode2)) {
21504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21505 }
21506 arg2 = static_cast< int >(val2);
21507 {
21508 PyThreadState* __tstate = wxPyBeginAllowThreads();
21509 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21510 wxPyEndAllowThreads(__tstate);
21511 if (PyErr_Occurred()) SWIG_fail;
21512 }
21513 resultobj = SWIG_From_int(static_cast< int >(result));
21514 return resultobj;
21515fail:
21516 return NULL;
21517}
21518
21519
21520SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21521 PyObject *resultobj = 0;
21522 wxDC *arg1 = (wxDC *) 0 ;
21523 int arg2 ;
21524 int result;
21525 void *argp1 = 0 ;
21526 int res1 = 0 ;
21527 int val2 ;
21528 int ecode2 = 0 ;
21529 PyObject * obj0 = 0 ;
21530 PyObject * obj1 = 0 ;
21531 char * kwnames[] = {
21532 (char *) "self",(char *) "x", NULL
21533 };
21534
21535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21537 if (!SWIG_IsOK(res1)) {
21538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21539 }
21540 arg1 = reinterpret_cast< wxDC * >(argp1);
21541 ecode2 = SWIG_AsVal_int(obj1, &val2);
21542 if (!SWIG_IsOK(ecode2)) {
21543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21544 }
21545 arg2 = static_cast< int >(val2);
21546 {
21547 PyThreadState* __tstate = wxPyBeginAllowThreads();
21548 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21549 wxPyEndAllowThreads(__tstate);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 }
21552 resultobj = SWIG_From_int(static_cast< int >(result));
21553 return resultobj;
21554fail:
21555 return NULL;
21556}
21557
21558
21559SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21560 PyObject *resultobj = 0;
21561 wxDC *arg1 = (wxDC *) 0 ;
21562 int arg2 ;
21563 int result;
21564 void *argp1 = 0 ;
21565 int res1 = 0 ;
21566 int val2 ;
21567 int ecode2 = 0 ;
21568 PyObject * obj0 = 0 ;
21569 PyObject * obj1 = 0 ;
21570 char * kwnames[] = {
21571 (char *) "self",(char *) "y", NULL
21572 };
21573
21574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21576 if (!SWIG_IsOK(res1)) {
21577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21578 }
21579 arg1 = reinterpret_cast< wxDC * >(argp1);
21580 ecode2 = SWIG_AsVal_int(obj1, &val2);
21581 if (!SWIG_IsOK(ecode2)) {
21582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21583 }
21584 arg2 = static_cast< int >(val2);
21585 {
21586 PyThreadState* __tstate = wxPyBeginAllowThreads();
21587 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21588 wxPyEndAllowThreads(__tstate);
21589 if (PyErr_Occurred()) SWIG_fail;
21590 }
21591 resultobj = SWIG_From_int(static_cast< int >(result));
21592 return resultobj;
21593fail:
21594 return NULL;
21595}
21596
21597
21598SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21599 PyObject *resultobj = 0;
21600 wxDC *arg1 = (wxDC *) 0 ;
21601 int arg2 ;
21602 int result;
21603 void *argp1 = 0 ;
21604 int res1 = 0 ;
21605 int val2 ;
21606 int ecode2 = 0 ;
21607 PyObject * obj0 = 0 ;
21608 PyObject * obj1 = 0 ;
21609 char * kwnames[] = {
21610 (char *) "self",(char *) "x", NULL
21611 };
21612
21613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21615 if (!SWIG_IsOK(res1)) {
21616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21617 }
21618 arg1 = reinterpret_cast< wxDC * >(argp1);
21619 ecode2 = SWIG_AsVal_int(obj1, &val2);
21620 if (!SWIG_IsOK(ecode2)) {
21621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21622 }
21623 arg2 = static_cast< int >(val2);
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21627 wxPyEndAllowThreads(__tstate);
21628 if (PyErr_Occurred()) SWIG_fail;
21629 }
21630 resultobj = SWIG_From_int(static_cast< int >(result));
21631 return resultobj;
21632fail:
21633 return NULL;
21634}
21635
21636
21637SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21638 PyObject *resultobj = 0;
21639 wxDC *arg1 = (wxDC *) 0 ;
21640 int arg2 ;
21641 int result;
21642 void *argp1 = 0 ;
21643 int res1 = 0 ;
21644 int val2 ;
21645 int ecode2 = 0 ;
21646 PyObject * obj0 = 0 ;
21647 PyObject * obj1 = 0 ;
21648 char * kwnames[] = {
21649 (char *) "self",(char *) "y", NULL
21650 };
21651
21652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21654 if (!SWIG_IsOK(res1)) {
21655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21656 }
21657 arg1 = reinterpret_cast< wxDC * >(argp1);
21658 ecode2 = SWIG_AsVal_int(obj1, &val2);
21659 if (!SWIG_IsOK(ecode2)) {
21660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21661 }
21662 arg2 = static_cast< int >(val2);
21663 {
21664 PyThreadState* __tstate = wxPyBeginAllowThreads();
21665 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21666 wxPyEndAllowThreads(__tstate);
21667 if (PyErr_Occurred()) SWIG_fail;
21668 }
21669 resultobj = SWIG_From_int(static_cast< int >(result));
21670 return resultobj;
21671fail:
21672 return NULL;
21673}
21674
21675
21676SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21677 PyObject *resultobj = 0;
21678 wxDC *arg1 = (wxDC *) 0 ;
21679 int arg2 ;
21680 int result;
21681 void *argp1 = 0 ;
21682 int res1 = 0 ;
21683 int val2 ;
21684 int ecode2 = 0 ;
21685 PyObject * obj0 = 0 ;
21686 PyObject * obj1 = 0 ;
21687 char * kwnames[] = {
21688 (char *) "self",(char *) "x", NULL
21689 };
21690
21691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21693 if (!SWIG_IsOK(res1)) {
21694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21695 }
21696 arg1 = reinterpret_cast< wxDC * >(argp1);
21697 ecode2 = SWIG_AsVal_int(obj1, &val2);
21698 if (!SWIG_IsOK(ecode2)) {
21699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21700 }
21701 arg2 = static_cast< int >(val2);
21702 {
21703 PyThreadState* __tstate = wxPyBeginAllowThreads();
21704 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21705 wxPyEndAllowThreads(__tstate);
21706 if (PyErr_Occurred()) SWIG_fail;
21707 }
21708 resultobj = SWIG_From_int(static_cast< int >(result));
21709 return resultobj;
21710fail:
21711 return NULL;
21712}
21713
21714
21715SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21716 PyObject *resultobj = 0;
21717 wxDC *arg1 = (wxDC *) 0 ;
21718 int arg2 ;
21719 int result;
21720 void *argp1 = 0 ;
21721 int res1 = 0 ;
21722 int val2 ;
21723 int ecode2 = 0 ;
21724 PyObject * obj0 = 0 ;
21725 PyObject * obj1 = 0 ;
21726 char * kwnames[] = {
21727 (char *) "self",(char *) "y", NULL
21728 };
21729
21730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21732 if (!SWIG_IsOK(res1)) {
21733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21734 }
21735 arg1 = reinterpret_cast< wxDC * >(argp1);
21736 ecode2 = SWIG_AsVal_int(obj1, &val2);
21737 if (!SWIG_IsOK(ecode2)) {
21738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21739 }
21740 arg2 = static_cast< int >(val2);
21741 {
21742 PyThreadState* __tstate = wxPyBeginAllowThreads();
21743 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21744 wxPyEndAllowThreads(__tstate);
21745 if (PyErr_Occurred()) SWIG_fail;
21746 }
21747 resultobj = SWIG_From_int(static_cast< int >(result));
21748 return resultobj;
21749fail:
21750 return NULL;
21751}
21752
21753
21754SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21755 PyObject *resultobj = 0;
21756 wxDC *arg1 = (wxDC *) 0 ;
21757 bool result;
21758 void *argp1 = 0 ;
21759 int res1 = 0 ;
21760 PyObject *swig_obj[1] ;
21761
21762 if (!args) SWIG_fail;
21763 swig_obj[0] = args;
21764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21765 if (!SWIG_IsOK(res1)) {
21766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21767 }
21768 arg1 = reinterpret_cast< wxDC * >(argp1);
21769 {
21770 PyThreadState* __tstate = wxPyBeginAllowThreads();
21771 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21772 wxPyEndAllowThreads(__tstate);
21773 if (PyErr_Occurred()) SWIG_fail;
21774 }
21775 {
21776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21777 }
21778 return resultobj;
21779fail:
21780 return NULL;
21781}
21782
21783
21784SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21785 PyObject *resultobj = 0;
21786 wxDC *arg1 = (wxDC *) 0 ;
21787 bool result;
21788 void *argp1 = 0 ;
21789 int res1 = 0 ;
21790 PyObject *swig_obj[1] ;
21791
21792 if (!args) SWIG_fail;
21793 swig_obj[0] = args;
21794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21795 if (!SWIG_IsOK(res1)) {
21796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21797 }
21798 arg1 = reinterpret_cast< wxDC * >(argp1);
21799 {
21800 PyThreadState* __tstate = wxPyBeginAllowThreads();
21801 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21802 wxPyEndAllowThreads(__tstate);
21803 if (PyErr_Occurred()) SWIG_fail;
21804 }
21805 {
21806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21807 }
21808 return resultobj;
21809fail:
21810 return NULL;
21811}
21812
21813
21814SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21815 PyObject *resultobj = 0;
21816 wxDC *arg1 = (wxDC *) 0 ;
21817 int result;
21818 void *argp1 = 0 ;
21819 int res1 = 0 ;
21820 PyObject *swig_obj[1] ;
21821
21822 if (!args) SWIG_fail;
21823 swig_obj[0] = args;
21824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21825 if (!SWIG_IsOK(res1)) {
21826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21827 }
21828 arg1 = reinterpret_cast< wxDC * >(argp1);
21829 {
21830 PyThreadState* __tstate = wxPyBeginAllowThreads();
21831 result = (int)((wxDC const *)arg1)->GetDepth();
21832 wxPyEndAllowThreads(__tstate);
21833 if (PyErr_Occurred()) SWIG_fail;
21834 }
21835 resultobj = SWIG_From_int(static_cast< int >(result));
21836 return resultobj;
21837fail:
21838 return NULL;
21839}
21840
21841
21842SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21843 PyObject *resultobj = 0;
21844 wxDC *arg1 = (wxDC *) 0 ;
21845 wxSize result;
21846 void *argp1 = 0 ;
21847 int res1 = 0 ;
21848 PyObject *swig_obj[1] ;
21849
21850 if (!args) SWIG_fail;
21851 swig_obj[0] = args;
21852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21853 if (!SWIG_IsOK(res1)) {
21854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21855 }
21856 arg1 = reinterpret_cast< wxDC * >(argp1);
21857 {
21858 PyThreadState* __tstate = wxPyBeginAllowThreads();
21859 result = ((wxDC const *)arg1)->GetPPI();
21860 wxPyEndAllowThreads(__tstate);
21861 if (PyErr_Occurred()) SWIG_fail;
21862 }
21863 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21864 return resultobj;
21865fail:
21866 return NULL;
21867}
21868
21869
b39fe951 21870SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
21871 PyObject *resultobj = 0;
21872 wxDC *arg1 = (wxDC *) 0 ;
21873 bool result;
21874 void *argp1 = 0 ;
21875 int res1 = 0 ;
21876 PyObject *swig_obj[1] ;
21877
21878 if (!args) SWIG_fail;
21879 swig_obj[0] = args;
21880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21881 if (!SWIG_IsOK(res1)) {
b39fe951 21882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
0085ce49
RD
21883 }
21884 arg1 = reinterpret_cast< wxDC * >(argp1);
21885 {
21886 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21887 result = (bool)((wxDC const *)arg1)->IsOk();
0085ce49
RD
21888 wxPyEndAllowThreads(__tstate);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 }
21891 {
21892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21893 }
21894 return resultobj;
21895fail:
21896 return NULL;
21897}
21898
21899
21900SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21901 PyObject *resultobj = 0;
21902 wxDC *arg1 = (wxDC *) 0 ;
21903 int result;
21904 void *argp1 = 0 ;
21905 int res1 = 0 ;
21906 PyObject *swig_obj[1] ;
21907
21908 if (!args) SWIG_fail;
21909 swig_obj[0] = args;
21910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21911 if (!SWIG_IsOK(res1)) {
21912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21913 }
21914 arg1 = reinterpret_cast< wxDC * >(argp1);
21915 {
21916 PyThreadState* __tstate = wxPyBeginAllowThreads();
21917 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21918 wxPyEndAllowThreads(__tstate);
21919 if (PyErr_Occurred()) SWIG_fail;
21920 }
21921 resultobj = SWIG_From_int(static_cast< int >(result));
21922 return resultobj;
21923fail:
21924 return NULL;
21925}
21926
21927
21928SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21929 PyObject *resultobj = 0;
21930 wxDC *arg1 = (wxDC *) 0 ;
21931 wxBrush *result = 0 ;
21932 void *argp1 = 0 ;
21933 int res1 = 0 ;
21934 PyObject *swig_obj[1] ;
21935
21936 if (!args) SWIG_fail;
21937 swig_obj[0] = args;
21938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21939 if (!SWIG_IsOK(res1)) {
21940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21941 }
21942 arg1 = reinterpret_cast< wxDC * >(argp1);
21943 {
21944 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21945 {
0085ce49
RD
21946 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21947 result = (wxBrush *) &_result_ref;
093d3ff1 21948 }
0085ce49
RD
21949 wxPyEndAllowThreads(__tstate);
21950 if (PyErr_Occurred()) SWIG_fail;
21951 }
21952 {
21953 wxBrush* resultptr = new wxBrush(*result);
21954 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21955 }
21956 return resultobj;
21957fail:
21958 return NULL;
21959}
21960
21961
21962SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21963 PyObject *resultobj = 0;
21964 wxDC *arg1 = (wxDC *) 0 ;
21965 wxBrush *result = 0 ;
21966 void *argp1 = 0 ;
21967 int res1 = 0 ;
21968 PyObject *swig_obj[1] ;
21969
21970 if (!args) SWIG_fail;
21971 swig_obj[0] = args;
21972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21973 if (!SWIG_IsOK(res1)) {
21974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21975 }
21976 arg1 = reinterpret_cast< wxDC * >(argp1);
21977 {
21978 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21979 {
0085ce49
RD
21980 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21981 result = (wxBrush *) &_result_ref;
093d3ff1 21982 }
0085ce49
RD
21983 wxPyEndAllowThreads(__tstate);
21984 if (PyErr_Occurred()) SWIG_fail;
21985 }
21986 {
21987 wxBrush* resultptr = new wxBrush(*result);
21988 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21989 }
21990 return resultobj;
21991fail:
21992 return NULL;
21993}
21994
21995
21996SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21997 PyObject *resultobj = 0;
21998 wxDC *arg1 = (wxDC *) 0 ;
21999 wxFont *result = 0 ;
22000 void *argp1 = 0 ;
22001 int res1 = 0 ;
22002 PyObject *swig_obj[1] ;
22003
22004 if (!args) SWIG_fail;
22005 swig_obj[0] = args;
22006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22007 if (!SWIG_IsOK(res1)) {
22008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22009 }
22010 arg1 = reinterpret_cast< wxDC * >(argp1);
22011 {
22012 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22013 {
0085ce49
RD
22014 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22015 result = (wxFont *) &_result_ref;
093d3ff1 22016 }
0085ce49
RD
22017 wxPyEndAllowThreads(__tstate);
22018 if (PyErr_Occurred()) SWIG_fail;
22019 }
22020 {
22021 wxFont* resultptr = new wxFont(*result);
22022 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22023 }
22024 return resultobj;
22025fail:
22026 return NULL;
22027}
22028
22029
22030SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22031 PyObject *resultobj = 0;
22032 wxDC *arg1 = (wxDC *) 0 ;
22033 wxPen *result = 0 ;
22034 void *argp1 = 0 ;
22035 int res1 = 0 ;
22036 PyObject *swig_obj[1] ;
22037
22038 if (!args) SWIG_fail;
22039 swig_obj[0] = args;
22040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22041 if (!SWIG_IsOK(res1)) {
22042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22043 }
22044 arg1 = reinterpret_cast< wxDC * >(argp1);
22045 {
22046 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22047 {
0085ce49
RD
22048 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22049 result = (wxPen *) &_result_ref;
093d3ff1 22050 }
0085ce49
RD
22051 wxPyEndAllowThreads(__tstate);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 }
22054 {
22055 wxPen* resultptr = new wxPen(*result);
22056 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22057 }
22058 return resultobj;
22059fail:
22060 return NULL;
22061}
22062
22063
22064SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22065 PyObject *resultobj = 0;
22066 wxDC *arg1 = (wxDC *) 0 ;
22067 wxColour *result = 0 ;
22068 void *argp1 = 0 ;
22069 int res1 = 0 ;
22070 PyObject *swig_obj[1] ;
22071
22072 if (!args) SWIG_fail;
22073 swig_obj[0] = args;
22074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22075 if (!SWIG_IsOK(res1)) {
22076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22077 }
22078 arg1 = reinterpret_cast< wxDC * >(argp1);
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22081 {
0085ce49
RD
22082 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22083 result = (wxColour *) &_result_ref;
093d3ff1 22084 }
0085ce49
RD
22085 wxPyEndAllowThreads(__tstate);
22086 if (PyErr_Occurred()) SWIG_fail;
22087 }
22088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22089 return resultobj;
22090fail:
22091 return NULL;
22092}
22093
22094
22095SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22096 PyObject *resultobj = 0;
22097 wxDC *arg1 = (wxDC *) 0 ;
22098 wxColour *result = 0 ;
22099 void *argp1 = 0 ;
22100 int res1 = 0 ;
22101 PyObject *swig_obj[1] ;
22102
22103 if (!args) SWIG_fail;
22104 swig_obj[0] = args;
22105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22106 if (!SWIG_IsOK(res1)) {
22107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22108 }
22109 arg1 = reinterpret_cast< wxDC * >(argp1);
22110 {
22111 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22112 {
0085ce49
RD
22113 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22114 result = (wxColour *) &_result_ref;
093d3ff1 22115 }
0085ce49
RD
22116 wxPyEndAllowThreads(__tstate);
22117 if (PyErr_Occurred()) SWIG_fail;
22118 }
22119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22120 return resultobj;
22121fail:
22122 return NULL;
22123}
22124
22125
22126SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22127 PyObject *resultobj = 0;
22128 wxDC *arg1 = (wxDC *) 0 ;
22129 wxColour *arg2 = 0 ;
22130 void *argp1 = 0 ;
22131 int res1 = 0 ;
22132 wxColour temp2 ;
22133 PyObject * obj0 = 0 ;
22134 PyObject * obj1 = 0 ;
22135 char * kwnames[] = {
22136 (char *) "self",(char *) "colour", NULL
22137 };
22138
22139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22141 if (!SWIG_IsOK(res1)) {
22142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22143 }
22144 arg1 = reinterpret_cast< wxDC * >(argp1);
22145 {
22146 arg2 = &temp2;
22147 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22148 }
22149 {
22150 PyThreadState* __tstate = wxPyBeginAllowThreads();
22151 (arg1)->SetTextForeground((wxColour const &)*arg2);
22152 wxPyEndAllowThreads(__tstate);
22153 if (PyErr_Occurred()) SWIG_fail;
22154 }
22155 resultobj = SWIG_Py_Void();
22156 return resultobj;
22157fail:
22158 return NULL;
22159}
22160
22161
22162SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22163 PyObject *resultobj = 0;
22164 wxDC *arg1 = (wxDC *) 0 ;
22165 wxColour *arg2 = 0 ;
22166 void *argp1 = 0 ;
22167 int res1 = 0 ;
22168 wxColour temp2 ;
22169 PyObject * obj0 = 0 ;
22170 PyObject * obj1 = 0 ;
22171 char * kwnames[] = {
22172 (char *) "self",(char *) "colour", NULL
22173 };
22174
22175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22177 if (!SWIG_IsOK(res1)) {
22178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22179 }
22180 arg1 = reinterpret_cast< wxDC * >(argp1);
22181 {
22182 arg2 = &temp2;
22183 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22184 }
22185 {
22186 PyThreadState* __tstate = wxPyBeginAllowThreads();
22187 (arg1)->SetTextBackground((wxColour const &)*arg2);
22188 wxPyEndAllowThreads(__tstate);
22189 if (PyErr_Occurred()) SWIG_fail;
22190 }
22191 resultobj = SWIG_Py_Void();
22192 return resultobj;
22193fail:
22194 return NULL;
22195}
22196
22197
22198SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22199 PyObject *resultobj = 0;
22200 wxDC *arg1 = (wxDC *) 0 ;
22201 int result;
22202 void *argp1 = 0 ;
22203 int res1 = 0 ;
22204 PyObject *swig_obj[1] ;
22205
22206 if (!args) SWIG_fail;
22207 swig_obj[0] = args;
22208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22209 if (!SWIG_IsOK(res1)) {
22210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22211 }
22212 arg1 = reinterpret_cast< wxDC * >(argp1);
22213 {
22214 PyThreadState* __tstate = wxPyBeginAllowThreads();
22215 result = (int)((wxDC const *)arg1)->GetMapMode();
22216 wxPyEndAllowThreads(__tstate);
22217 if (PyErr_Occurred()) SWIG_fail;
22218 }
22219 resultobj = SWIG_From_int(static_cast< int >(result));
22220 return resultobj;
22221fail:
22222 return NULL;
22223}
22224
22225
22226SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22227 PyObject *resultobj = 0;
22228 wxDC *arg1 = (wxDC *) 0 ;
22229 int arg2 ;
22230 void *argp1 = 0 ;
22231 int res1 = 0 ;
22232 int val2 ;
22233 int ecode2 = 0 ;
22234 PyObject * obj0 = 0 ;
22235 PyObject * obj1 = 0 ;
22236 char * kwnames[] = {
22237 (char *) "self",(char *) "mode", NULL
22238 };
22239
22240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22242 if (!SWIG_IsOK(res1)) {
22243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22244 }
22245 arg1 = reinterpret_cast< wxDC * >(argp1);
22246 ecode2 = SWIG_AsVal_int(obj1, &val2);
22247 if (!SWIG_IsOK(ecode2)) {
22248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22249 }
22250 arg2 = static_cast< int >(val2);
22251 {
22252 PyThreadState* __tstate = wxPyBeginAllowThreads();
22253 (arg1)->SetMapMode(arg2);
22254 wxPyEndAllowThreads(__tstate);
22255 if (PyErr_Occurred()) SWIG_fail;
22256 }
22257 resultobj = SWIG_Py_Void();
22258 return resultobj;
22259fail:
22260 return NULL;
22261}
22262
22263
22264SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22265 PyObject *resultobj = 0;
22266 wxDC *arg1 = (wxDC *) 0 ;
22267 double *arg2 = (double *) 0 ;
22268 double *arg3 = (double *) 0 ;
22269 void *argp1 = 0 ;
22270 int res1 = 0 ;
22271 double temp2 ;
22272 int res2 = SWIG_TMPOBJ ;
22273 double temp3 ;
22274 int res3 = SWIG_TMPOBJ ;
22275 PyObject *swig_obj[1] ;
22276
22277 arg2 = &temp2;
22278 arg3 = &temp3;
22279 if (!args) SWIG_fail;
22280 swig_obj[0] = args;
22281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22282 if (!SWIG_IsOK(res1)) {
22283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22284 }
22285 arg1 = reinterpret_cast< wxDC * >(argp1);
22286 {
22287 PyThreadState* __tstate = wxPyBeginAllowThreads();
22288 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22289 wxPyEndAllowThreads(__tstate);
22290 if (PyErr_Occurred()) SWIG_fail;
22291 }
22292 resultobj = SWIG_Py_Void();
22293 if (SWIG_IsTmpObj(res2)) {
22294 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22295 } else {
22296 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22298 }
22299 if (SWIG_IsTmpObj(res3)) {
22300 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22301 } else {
22302 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22303 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22304 }
22305 return resultobj;
22306fail:
22307 return NULL;
22308}
22309
22310
22311SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22312 PyObject *resultobj = 0;
22313 wxDC *arg1 = (wxDC *) 0 ;
22314 double arg2 ;
22315 double arg3 ;
22316 void *argp1 = 0 ;
22317 int res1 = 0 ;
22318 double val2 ;
22319 int ecode2 = 0 ;
22320 double val3 ;
22321 int ecode3 = 0 ;
22322 PyObject * obj0 = 0 ;
22323 PyObject * obj1 = 0 ;
22324 PyObject * obj2 = 0 ;
22325 char * kwnames[] = {
22326 (char *) "self",(char *) "x",(char *) "y", NULL
22327 };
22328
22329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22331 if (!SWIG_IsOK(res1)) {
22332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22333 }
22334 arg1 = reinterpret_cast< wxDC * >(argp1);
22335 ecode2 = SWIG_AsVal_double(obj1, &val2);
22336 if (!SWIG_IsOK(ecode2)) {
22337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22338 }
22339 arg2 = static_cast< double >(val2);
22340 ecode3 = SWIG_AsVal_double(obj2, &val3);
22341 if (!SWIG_IsOK(ecode3)) {
22342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22343 }
22344 arg3 = static_cast< double >(val3);
22345 {
22346 PyThreadState* __tstate = wxPyBeginAllowThreads();
22347 (arg1)->SetUserScale(arg2,arg3);
22348 wxPyEndAllowThreads(__tstate);
22349 if (PyErr_Occurred()) SWIG_fail;
22350 }
22351 resultobj = SWIG_Py_Void();
22352 return resultobj;
22353fail:
22354 return NULL;
22355}
22356
22357
22358SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22359 PyObject *resultobj = 0;
22360 wxDC *arg1 = (wxDC *) 0 ;
22361 double *arg2 = (double *) 0 ;
22362 double *arg3 = (double *) 0 ;
22363 void *argp1 = 0 ;
22364 int res1 = 0 ;
22365 double temp2 ;
22366 int res2 = SWIG_TMPOBJ ;
22367 double temp3 ;
22368 int res3 = SWIG_TMPOBJ ;
22369 PyObject *swig_obj[1] ;
22370
22371 arg2 = &temp2;
22372 arg3 = &temp3;
22373 if (!args) SWIG_fail;
22374 swig_obj[0] = args;
22375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22376 if (!SWIG_IsOK(res1)) {
22377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22378 }
22379 arg1 = reinterpret_cast< wxDC * >(argp1);
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 (arg1)->GetLogicalScale(arg2,arg3);
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 resultobj = SWIG_Py_Void();
22387 if (SWIG_IsTmpObj(res2)) {
22388 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22389 } else {
22390 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22391 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22392 }
22393 if (SWIG_IsTmpObj(res3)) {
22394 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22395 } else {
22396 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22397 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22398 }
22399 return resultobj;
22400fail:
22401 return NULL;
22402}
22403
22404
22405SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22406 PyObject *resultobj = 0;
22407 wxDC *arg1 = (wxDC *) 0 ;
22408 double arg2 ;
22409 double arg3 ;
22410 void *argp1 = 0 ;
22411 int res1 = 0 ;
22412 double val2 ;
22413 int ecode2 = 0 ;
22414 double val3 ;
22415 int ecode3 = 0 ;
22416 PyObject * obj0 = 0 ;
22417 PyObject * obj1 = 0 ;
22418 PyObject * obj2 = 0 ;
22419 char * kwnames[] = {
22420 (char *) "self",(char *) "x",(char *) "y", NULL
22421 };
22422
22423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22425 if (!SWIG_IsOK(res1)) {
22426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22427 }
22428 arg1 = reinterpret_cast< wxDC * >(argp1);
22429 ecode2 = SWIG_AsVal_double(obj1, &val2);
22430 if (!SWIG_IsOK(ecode2)) {
22431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22432 }
22433 arg2 = static_cast< double >(val2);
22434 ecode3 = SWIG_AsVal_double(obj2, &val3);
22435 if (!SWIG_IsOK(ecode3)) {
22436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22437 }
22438 arg3 = static_cast< double >(val3);
22439 {
22440 PyThreadState* __tstate = wxPyBeginAllowThreads();
22441 (arg1)->SetLogicalScale(arg2,arg3);
22442 wxPyEndAllowThreads(__tstate);
22443 if (PyErr_Occurred()) SWIG_fail;
22444 }
22445 resultobj = SWIG_Py_Void();
22446 return resultobj;
22447fail:
22448 return NULL;
22449}
22450
22451
22452SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22453 PyObject *resultobj = 0;
22454 wxDC *arg1 = (wxDC *) 0 ;
22455 wxPoint result;
22456 void *argp1 = 0 ;
22457 int res1 = 0 ;
22458 PyObject *swig_obj[1] ;
22459
22460 if (!args) SWIG_fail;
22461 swig_obj[0] = args;
22462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22463 if (!SWIG_IsOK(res1)) {
22464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22465 }
22466 arg1 = reinterpret_cast< wxDC * >(argp1);
22467 {
22468 PyThreadState* __tstate = wxPyBeginAllowThreads();
22469 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22470 wxPyEndAllowThreads(__tstate);
22471 if (PyErr_Occurred()) SWIG_fail;
22472 }
22473 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22474 return resultobj;
22475fail:
22476 return NULL;
22477}
22478
22479
22480SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22481 PyObject *resultobj = 0;
22482 wxDC *arg1 = (wxDC *) 0 ;
22483 int *arg2 = (int *) 0 ;
22484 int *arg3 = (int *) 0 ;
22485 void *argp1 = 0 ;
22486 int res1 = 0 ;
22487 int temp2 ;
22488 int res2 = SWIG_TMPOBJ ;
22489 int temp3 ;
22490 int res3 = SWIG_TMPOBJ ;
22491 PyObject *swig_obj[1] ;
22492
22493 arg2 = &temp2;
22494 arg3 = &temp3;
22495 if (!args) SWIG_fail;
22496 swig_obj[0] = args;
22497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22498 if (!SWIG_IsOK(res1)) {
22499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22500 }
22501 arg1 = reinterpret_cast< wxDC * >(argp1);
22502 {
22503 PyThreadState* __tstate = wxPyBeginAllowThreads();
22504 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22505 wxPyEndAllowThreads(__tstate);
22506 if (PyErr_Occurred()) SWIG_fail;
22507 }
22508 resultobj = SWIG_Py_Void();
22509 if (SWIG_IsTmpObj(res2)) {
22510 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22511 } else {
22512 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22513 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22514 }
22515 if (SWIG_IsTmpObj(res3)) {
22516 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22517 } else {
22518 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22519 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22520 }
22521 return resultobj;
22522fail:
22523 return NULL;
22524}
22525
22526
22527SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22528 PyObject *resultobj = 0;
22529 wxDC *arg1 = (wxDC *) 0 ;
22530 int arg2 ;
22531 int arg3 ;
22532 void *argp1 = 0 ;
22533 int res1 = 0 ;
22534 int val2 ;
22535 int ecode2 = 0 ;
22536 int val3 ;
22537 int ecode3 = 0 ;
22538 PyObject * obj0 = 0 ;
22539 PyObject * obj1 = 0 ;
22540 PyObject * obj2 = 0 ;
22541 char * kwnames[] = {
22542 (char *) "self",(char *) "x",(char *) "y", NULL
22543 };
22544
22545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22547 if (!SWIG_IsOK(res1)) {
22548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22549 }
22550 arg1 = reinterpret_cast< wxDC * >(argp1);
22551 ecode2 = SWIG_AsVal_int(obj1, &val2);
22552 if (!SWIG_IsOK(ecode2)) {
22553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22554 }
22555 arg2 = static_cast< int >(val2);
22556 ecode3 = SWIG_AsVal_int(obj2, &val3);
22557 if (!SWIG_IsOK(ecode3)) {
22558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22559 }
22560 arg3 = static_cast< int >(val3);
22561 {
22562 PyThreadState* __tstate = wxPyBeginAllowThreads();
22563 (arg1)->SetLogicalOrigin(arg2,arg3);
22564 wxPyEndAllowThreads(__tstate);
22565 if (PyErr_Occurred()) SWIG_fail;
22566 }
22567 resultobj = SWIG_Py_Void();
22568 return resultobj;
22569fail:
22570 return NULL;
22571}
22572
22573
22574SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22575 PyObject *resultobj = 0;
22576 wxDC *arg1 = (wxDC *) 0 ;
22577 wxPoint *arg2 = 0 ;
22578 void *argp1 = 0 ;
22579 int res1 = 0 ;
22580 wxPoint temp2 ;
22581 PyObject * obj0 = 0 ;
22582 PyObject * obj1 = 0 ;
22583 char * kwnames[] = {
22584 (char *) "self",(char *) "point", NULL
22585 };
22586
22587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22589 if (!SWIG_IsOK(res1)) {
22590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22591 }
22592 arg1 = reinterpret_cast< wxDC * >(argp1);
22593 {
22594 arg2 = &temp2;
22595 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22596 }
22597 {
22598 PyThreadState* __tstate = wxPyBeginAllowThreads();
22599 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22600 wxPyEndAllowThreads(__tstate);
22601 if (PyErr_Occurred()) SWIG_fail;
22602 }
22603 resultobj = SWIG_Py_Void();
22604 return resultobj;
22605fail:
22606 return NULL;
22607}
22608
22609
22610SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22611 PyObject *resultobj = 0;
22612 wxDC *arg1 = (wxDC *) 0 ;
22613 wxPoint result;
22614 void *argp1 = 0 ;
22615 int res1 = 0 ;
22616 PyObject *swig_obj[1] ;
22617
22618 if (!args) SWIG_fail;
22619 swig_obj[0] = args;
22620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22621 if (!SWIG_IsOK(res1)) {
22622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22623 }
22624 arg1 = reinterpret_cast< wxDC * >(argp1);
22625 {
22626 PyThreadState* __tstate = wxPyBeginAllowThreads();
22627 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22628 wxPyEndAllowThreads(__tstate);
22629 if (PyErr_Occurred()) SWIG_fail;
22630 }
22631 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22632 return resultobj;
22633fail:
22634 return NULL;
22635}
22636
22637
22638SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22639 PyObject *resultobj = 0;
22640 wxDC *arg1 = (wxDC *) 0 ;
22641 int *arg2 = (int *) 0 ;
22642 int *arg3 = (int *) 0 ;
22643 void *argp1 = 0 ;
22644 int res1 = 0 ;
22645 int temp2 ;
22646 int res2 = SWIG_TMPOBJ ;
22647 int temp3 ;
22648 int res3 = SWIG_TMPOBJ ;
22649 PyObject *swig_obj[1] ;
22650
22651 arg2 = &temp2;
22652 arg3 = &temp3;
22653 if (!args) SWIG_fail;
22654 swig_obj[0] = args;
22655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22656 if (!SWIG_IsOK(res1)) {
22657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22658 }
22659 arg1 = reinterpret_cast< wxDC * >(argp1);
22660 {
22661 PyThreadState* __tstate = wxPyBeginAllowThreads();
22662 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22663 wxPyEndAllowThreads(__tstate);
22664 if (PyErr_Occurred()) SWIG_fail;
22665 }
22666 resultobj = SWIG_Py_Void();
22667 if (SWIG_IsTmpObj(res2)) {
22668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22669 } else {
22670 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22672 }
22673 if (SWIG_IsTmpObj(res3)) {
22674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22675 } else {
22676 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22678 }
22679 return resultobj;
22680fail:
22681 return NULL;
22682}
22683
22684
22685SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22686 PyObject *resultobj = 0;
22687 wxDC *arg1 = (wxDC *) 0 ;
22688 int arg2 ;
22689 int arg3 ;
22690 void *argp1 = 0 ;
22691 int res1 = 0 ;
22692 int val2 ;
22693 int ecode2 = 0 ;
22694 int val3 ;
22695 int ecode3 = 0 ;
22696 PyObject * obj0 = 0 ;
22697 PyObject * obj1 = 0 ;
22698 PyObject * obj2 = 0 ;
22699 char * kwnames[] = {
22700 (char *) "self",(char *) "x",(char *) "y", NULL
22701 };
22702
22703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22705 if (!SWIG_IsOK(res1)) {
22706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22707 }
22708 arg1 = reinterpret_cast< wxDC * >(argp1);
22709 ecode2 = SWIG_AsVal_int(obj1, &val2);
22710 if (!SWIG_IsOK(ecode2)) {
22711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22712 }
22713 arg2 = static_cast< int >(val2);
22714 ecode3 = SWIG_AsVal_int(obj2, &val3);
22715 if (!SWIG_IsOK(ecode3)) {
22716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22717 }
22718 arg3 = static_cast< int >(val3);
22719 {
22720 PyThreadState* __tstate = wxPyBeginAllowThreads();
22721 (arg1)->SetDeviceOrigin(arg2,arg3);
22722 wxPyEndAllowThreads(__tstate);
22723 if (PyErr_Occurred()) SWIG_fail;
22724 }
22725 resultobj = SWIG_Py_Void();
22726 return resultobj;
22727fail:
22728 return NULL;
22729}
22730
22731
22732SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22733 PyObject *resultobj = 0;
22734 wxDC *arg1 = (wxDC *) 0 ;
22735 wxPoint *arg2 = 0 ;
22736 void *argp1 = 0 ;
22737 int res1 = 0 ;
22738 wxPoint temp2 ;
22739 PyObject * obj0 = 0 ;
22740 PyObject * obj1 = 0 ;
22741 char * kwnames[] = {
22742 (char *) "self",(char *) "point", NULL
22743 };
22744
22745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22747 if (!SWIG_IsOK(res1)) {
22748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22749 }
22750 arg1 = reinterpret_cast< wxDC * >(argp1);
22751 {
22752 arg2 = &temp2;
22753 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22754 }
22755 {
22756 PyThreadState* __tstate = wxPyBeginAllowThreads();
22757 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22758 wxPyEndAllowThreads(__tstate);
22759 if (PyErr_Occurred()) SWIG_fail;
22760 }
22761 resultobj = SWIG_Py_Void();
22762 return resultobj;
22763fail:
22764 return NULL;
22765}
22766
22767
22768SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22769 PyObject *resultobj = 0;
22770 wxDC *arg1 = (wxDC *) 0 ;
22771 bool arg2 ;
22772 bool arg3 ;
22773 void *argp1 = 0 ;
22774 int res1 = 0 ;
22775 bool val2 ;
22776 int ecode2 = 0 ;
22777 bool val3 ;
22778 int ecode3 = 0 ;
22779 PyObject * obj0 = 0 ;
22780 PyObject * obj1 = 0 ;
22781 PyObject * obj2 = 0 ;
22782 char * kwnames[] = {
22783 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22784 };
22785
22786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22788 if (!SWIG_IsOK(res1)) {
22789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22790 }
22791 arg1 = reinterpret_cast< wxDC * >(argp1);
22792 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22793 if (!SWIG_IsOK(ecode2)) {
22794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22795 }
22796 arg2 = static_cast< bool >(val2);
22797 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22798 if (!SWIG_IsOK(ecode3)) {
22799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22800 }
22801 arg3 = static_cast< bool >(val3);
22802 {
22803 PyThreadState* __tstate = wxPyBeginAllowThreads();
22804 (arg1)->SetAxisOrientation(arg2,arg3);
22805 wxPyEndAllowThreads(__tstate);
22806 if (PyErr_Occurred()) SWIG_fail;
22807 }
22808 resultobj = SWIG_Py_Void();
22809 return resultobj;
22810fail:
22811 return NULL;
22812}
22813
22814
22815SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22816 PyObject *resultobj = 0;
22817 wxDC *arg1 = (wxDC *) 0 ;
22818 int result;
22819 void *argp1 = 0 ;
22820 int res1 = 0 ;
22821 PyObject *swig_obj[1] ;
22822
22823 if (!args) SWIG_fail;
22824 swig_obj[0] = args;
22825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22826 if (!SWIG_IsOK(res1)) {
22827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22828 }
22829 arg1 = reinterpret_cast< wxDC * >(argp1);
22830 {
22831 PyThreadState* __tstate = wxPyBeginAllowThreads();
22832 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 resultobj = SWIG_From_int(static_cast< int >(result));
22837 return resultobj;
22838fail:
22839 return NULL;
22840}
22841
22842
22843SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22844 PyObject *resultobj = 0;
22845 wxDC *arg1 = (wxDC *) 0 ;
22846 int arg2 ;
22847 void *argp1 = 0 ;
22848 int res1 = 0 ;
22849 int val2 ;
22850 int ecode2 = 0 ;
22851 PyObject * obj0 = 0 ;
22852 PyObject * obj1 = 0 ;
22853 char * kwnames[] = {
22854 (char *) "self",(char *) "function", NULL
22855 };
22856
22857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22859 if (!SWIG_IsOK(res1)) {
22860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22861 }
22862 arg1 = reinterpret_cast< wxDC * >(argp1);
22863 ecode2 = SWIG_AsVal_int(obj1, &val2);
22864 if (!SWIG_IsOK(ecode2)) {
22865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22866 }
22867 arg2 = static_cast< int >(val2);
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 (arg1)->SetLogicalFunction(arg2);
22871 wxPyEndAllowThreads(__tstate);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 }
22874 resultobj = SWIG_Py_Void();
22875 return resultobj;
22876fail:
22877 return NULL;
22878}
22879
22880
22881SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22882 PyObject *resultobj = 0;
22883 wxDC *arg1 = (wxDC *) 0 ;
22884 void *argp1 = 0 ;
22885 int res1 = 0 ;
22886 PyObject *swig_obj[1] ;
22887
22888 if (!args) SWIG_fail;
22889 swig_obj[0] = args;
22890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22891 if (!SWIG_IsOK(res1)) {
22892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22893 }
22894 arg1 = reinterpret_cast< wxDC * >(argp1);
22895 {
22896 PyThreadState* __tstate = wxPyBeginAllowThreads();
22897 (arg1)->ComputeScaleAndOrigin();
22898 wxPyEndAllowThreads(__tstate);
22899 if (PyErr_Occurred()) SWIG_fail;
22900 }
22901 resultobj = SWIG_Py_Void();
22902 return resultobj;
22903fail:
22904 return NULL;
22905}
22906
22907
22908SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22909 PyObject *resultobj = 0;
22910 wxDC *arg1 = (wxDC *) 0 ;
22911 int arg2 ;
22912 int arg3 ;
22913 void *argp1 = 0 ;
22914 int res1 = 0 ;
22915 int val2 ;
22916 int ecode2 = 0 ;
22917 int val3 ;
22918 int ecode3 = 0 ;
22919 PyObject * obj0 = 0 ;
22920 PyObject * obj1 = 0 ;
22921 PyObject * obj2 = 0 ;
22922 char * kwnames[] = {
22923 (char *) "self",(char *) "x",(char *) "y", NULL
22924 };
22925
22926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22928 if (!SWIG_IsOK(res1)) {
22929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22930 }
22931 arg1 = reinterpret_cast< wxDC * >(argp1);
22932 ecode2 = SWIG_AsVal_int(obj1, &val2);
22933 if (!SWIG_IsOK(ecode2)) {
22934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22935 }
22936 arg2 = static_cast< int >(val2);
22937 ecode3 = SWIG_AsVal_int(obj2, &val3);
22938 if (!SWIG_IsOK(ecode3)) {
22939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22940 }
22941 arg3 = static_cast< int >(val3);
22942 {
22943 PyThreadState* __tstate = wxPyBeginAllowThreads();
22944 (arg1)->CalcBoundingBox(arg2,arg3);
22945 wxPyEndAllowThreads(__tstate);
22946 if (PyErr_Occurred()) SWIG_fail;
22947 }
22948 resultobj = SWIG_Py_Void();
22949 return resultobj;
22950fail:
22951 return NULL;
22952}
22953
22954
22955SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22956 PyObject *resultobj = 0;
22957 wxDC *arg1 = (wxDC *) 0 ;
22958 wxPoint *arg2 = 0 ;
22959 void *argp1 = 0 ;
22960 int res1 = 0 ;
22961 wxPoint temp2 ;
22962 PyObject * obj0 = 0 ;
22963 PyObject * obj1 = 0 ;
22964 char * kwnames[] = {
22965 (char *) "self",(char *) "point", NULL
22966 };
22967
22968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22970 if (!SWIG_IsOK(res1)) {
22971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22972 }
22973 arg1 = reinterpret_cast< wxDC * >(argp1);
22974 {
22975 arg2 = &temp2;
22976 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22977 }
22978 {
22979 PyThreadState* __tstate = wxPyBeginAllowThreads();
22980 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22981 wxPyEndAllowThreads(__tstate);
22982 if (PyErr_Occurred()) SWIG_fail;
22983 }
22984 resultobj = SWIG_Py_Void();
22985 return resultobj;
22986fail:
22987 return NULL;
22988}
22989
22990
22991SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22992 PyObject *resultobj = 0;
22993 wxDC *arg1 = (wxDC *) 0 ;
22994 void *argp1 = 0 ;
22995 int res1 = 0 ;
22996 PyObject *swig_obj[1] ;
22997
22998 if (!args) SWIG_fail;
22999 swig_obj[0] = args;
23000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23001 if (!SWIG_IsOK(res1)) {
23002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23003 }
23004 arg1 = reinterpret_cast< wxDC * >(argp1);
23005 {
23006 PyThreadState* __tstate = wxPyBeginAllowThreads();
23007 (arg1)->ResetBoundingBox();
23008 wxPyEndAllowThreads(__tstate);
23009 if (PyErr_Occurred()) SWIG_fail;
23010 }
23011 resultobj = SWIG_Py_Void();
23012 return resultobj;
23013fail:
23014 return NULL;
23015}
23016
23017
23018SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23019 PyObject *resultobj = 0;
23020 wxDC *arg1 = (wxDC *) 0 ;
23021 int result;
23022 void *argp1 = 0 ;
23023 int res1 = 0 ;
23024 PyObject *swig_obj[1] ;
23025
23026 if (!args) SWIG_fail;
23027 swig_obj[0] = args;
23028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23029 if (!SWIG_IsOK(res1)) {
23030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23031 }
23032 arg1 = reinterpret_cast< wxDC * >(argp1);
23033 {
23034 PyThreadState* __tstate = wxPyBeginAllowThreads();
23035 result = (int)((wxDC const *)arg1)->MinX();
23036 wxPyEndAllowThreads(__tstate);
23037 if (PyErr_Occurred()) SWIG_fail;
23038 }
23039 resultobj = SWIG_From_int(static_cast< int >(result));
23040 return resultobj;
23041fail:
23042 return NULL;
23043}
23044
23045
23046SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23047 PyObject *resultobj = 0;
23048 wxDC *arg1 = (wxDC *) 0 ;
23049 int result;
23050 void *argp1 = 0 ;
23051 int res1 = 0 ;
23052 PyObject *swig_obj[1] ;
23053
23054 if (!args) SWIG_fail;
23055 swig_obj[0] = args;
23056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23057 if (!SWIG_IsOK(res1)) {
23058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23059 }
23060 arg1 = reinterpret_cast< wxDC * >(argp1);
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 result = (int)((wxDC const *)arg1)->MaxX();
23064 wxPyEndAllowThreads(__tstate);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 }
23067 resultobj = SWIG_From_int(static_cast< int >(result));
23068 return resultobj;
23069fail:
23070 return NULL;
23071}
23072
23073
23074SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23075 PyObject *resultobj = 0;
23076 wxDC *arg1 = (wxDC *) 0 ;
23077 int result;
23078 void *argp1 = 0 ;
23079 int res1 = 0 ;
23080 PyObject *swig_obj[1] ;
23081
23082 if (!args) SWIG_fail;
23083 swig_obj[0] = args;
23084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23085 if (!SWIG_IsOK(res1)) {
23086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23087 }
23088 arg1 = reinterpret_cast< wxDC * >(argp1);
23089 {
23090 PyThreadState* __tstate = wxPyBeginAllowThreads();
23091 result = (int)((wxDC const *)arg1)->MinY();
23092 wxPyEndAllowThreads(__tstate);
23093 if (PyErr_Occurred()) SWIG_fail;
23094 }
23095 resultobj = SWIG_From_int(static_cast< int >(result));
23096 return resultobj;
23097fail:
23098 return NULL;
23099}
23100
23101
23102SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23103 PyObject *resultobj = 0;
23104 wxDC *arg1 = (wxDC *) 0 ;
23105 int result;
23106 void *argp1 = 0 ;
23107 int res1 = 0 ;
23108 PyObject *swig_obj[1] ;
23109
23110 if (!args) SWIG_fail;
23111 swig_obj[0] = args;
23112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23113 if (!SWIG_IsOK(res1)) {
23114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23115 }
23116 arg1 = reinterpret_cast< wxDC * >(argp1);
23117 {
23118 PyThreadState* __tstate = wxPyBeginAllowThreads();
23119 result = (int)((wxDC const *)arg1)->MaxY();
23120 wxPyEndAllowThreads(__tstate);
23121 if (PyErr_Occurred()) SWIG_fail;
23122 }
23123 resultobj = SWIG_From_int(static_cast< int >(result));
23124 return resultobj;
23125fail:
23126 return NULL;
23127}
23128
23129
23130SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23131 PyObject *resultobj = 0;
23132 wxDC *arg1 = (wxDC *) 0 ;
23133 int *arg2 = (int *) 0 ;
23134 int *arg3 = (int *) 0 ;
23135 int *arg4 = (int *) 0 ;
23136 int *arg5 = (int *) 0 ;
23137 void *argp1 = 0 ;
23138 int res1 = 0 ;
23139 int temp2 ;
23140 int res2 = SWIG_TMPOBJ ;
23141 int temp3 ;
23142 int res3 = SWIG_TMPOBJ ;
23143 int temp4 ;
23144 int res4 = SWIG_TMPOBJ ;
23145 int temp5 ;
23146 int res5 = SWIG_TMPOBJ ;
23147 PyObject *swig_obj[1] ;
23148
23149 arg2 = &temp2;
23150 arg3 = &temp3;
23151 arg4 = &temp4;
23152 arg5 = &temp5;
23153 if (!args) SWIG_fail;
23154 swig_obj[0] = args;
23155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23156 if (!SWIG_IsOK(res1)) {
23157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23158 }
23159 arg1 = reinterpret_cast< wxDC * >(argp1);
23160 {
23161 PyThreadState* __tstate = wxPyBeginAllowThreads();
23162 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23163 wxPyEndAllowThreads(__tstate);
23164 if (PyErr_Occurred()) SWIG_fail;
23165 }
23166 resultobj = SWIG_Py_Void();
23167 if (SWIG_IsTmpObj(res2)) {
23168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23169 } else {
23170 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23172 }
23173 if (SWIG_IsTmpObj(res3)) {
23174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23175 } else {
23176 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23178 }
23179 if (SWIG_IsTmpObj(res4)) {
23180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23181 } else {
23182 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23184 }
23185 if (SWIG_IsTmpObj(res5)) {
23186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23187 } else {
23188 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23190 }
23191 return resultobj;
23192fail:
23193 return NULL;
23194}
23195
23196
b39fe951
RD
23197SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23198 PyObject *resultobj = 0;
23199 wxDC *arg1 = (wxDC *) 0 ;
23200 wxLayoutDirection result;
23201 void *argp1 = 0 ;
23202 int res1 = 0 ;
23203 PyObject *swig_obj[1] ;
23204
23205 if (!args) SWIG_fail;
23206 swig_obj[0] = args;
23207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23208 if (!SWIG_IsOK(res1)) {
23209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23210 }
23211 arg1 = reinterpret_cast< wxDC * >(argp1);
23212 {
23213 PyThreadState* __tstate = wxPyBeginAllowThreads();
23214 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23215 wxPyEndAllowThreads(__tstate);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 }
23218 resultobj = SWIG_From_int(static_cast< int >(result));
23219 return resultobj;
23220fail:
23221 return NULL;
23222}
23223
23224
23225SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23226 PyObject *resultobj = 0;
23227 wxDC *arg1 = (wxDC *) 0 ;
23228 wxLayoutDirection arg2 ;
23229 void *argp1 = 0 ;
23230 int res1 = 0 ;
23231 int val2 ;
23232 int ecode2 = 0 ;
23233 PyObject * obj0 = 0 ;
23234 PyObject * obj1 = 0 ;
23235 char * kwnames[] = {
23236 (char *) "self",(char *) "dir", NULL
23237 };
23238
23239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23241 if (!SWIG_IsOK(res1)) {
23242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23243 }
23244 arg1 = reinterpret_cast< wxDC * >(argp1);
23245 ecode2 = SWIG_AsVal_int(obj1, &val2);
23246 if (!SWIG_IsOK(ecode2)) {
23247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23248 }
23249 arg2 = static_cast< wxLayoutDirection >(val2);
23250 {
23251 PyThreadState* __tstate = wxPyBeginAllowThreads();
23252 (arg1)->SetLayoutDirection(arg2);
23253 wxPyEndAllowThreads(__tstate);
23254 if (PyErr_Occurred()) SWIG_fail;
23255 }
23256 resultobj = SWIG_Py_Void();
23257 return resultobj;
23258fail:
23259 return NULL;
23260}
23261
23262
0085ce49
RD
23263SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23264 PyObject *resultobj = 0;
23265 wxDC *arg1 = (wxDC *) 0 ;
23266 PyObject *arg2 = (PyObject *) 0 ;
23267 PyObject *arg3 = (PyObject *) 0 ;
23268 PyObject *arg4 = (PyObject *) 0 ;
23269 PyObject *result = 0 ;
23270 void *argp1 = 0 ;
23271 int res1 = 0 ;
23272 PyObject * obj0 = 0 ;
23273 PyObject * obj1 = 0 ;
23274 PyObject * obj2 = 0 ;
23275 PyObject * obj3 = 0 ;
23276 char * kwnames[] = {
23277 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23278 };
23279
23280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23282 if (!SWIG_IsOK(res1)) {
23283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23284 }
23285 arg1 = reinterpret_cast< wxDC * >(argp1);
23286 arg2 = obj1;
23287 arg3 = obj2;
23288 arg4 = obj3;
23289 {
23290 PyThreadState* __tstate = wxPyBeginAllowThreads();
23291 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23292 wxPyEndAllowThreads(__tstate);
23293 if (PyErr_Occurred()) SWIG_fail;
23294 }
23295 resultobj = result;
23296 return resultobj;
23297fail:
23298 return NULL;
23299}
23300
23301
23302SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23303 PyObject *resultobj = 0;
23304 wxDC *arg1 = (wxDC *) 0 ;
23305 PyObject *arg2 = (PyObject *) 0 ;
23306 PyObject *arg3 = (PyObject *) 0 ;
23307 PyObject *arg4 = (PyObject *) 0 ;
23308 PyObject *result = 0 ;
23309 void *argp1 = 0 ;
23310 int res1 = 0 ;
23311 PyObject * obj0 = 0 ;
23312 PyObject * obj1 = 0 ;
23313 PyObject * obj2 = 0 ;
23314 PyObject * obj3 = 0 ;
23315 char * kwnames[] = {
23316 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23317 };
23318
23319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23321 if (!SWIG_IsOK(res1)) {
23322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23323 }
23324 arg1 = reinterpret_cast< wxDC * >(argp1);
23325 arg2 = obj1;
23326 arg3 = obj2;
23327 arg4 = obj3;
23328 {
23329 PyThreadState* __tstate = wxPyBeginAllowThreads();
23330 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23331 wxPyEndAllowThreads(__tstate);
23332 if (PyErr_Occurred()) SWIG_fail;
23333 }
23334 resultobj = result;
23335 return resultobj;
23336fail:
23337 return NULL;
23338}
23339
23340
23341SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23342 PyObject *resultobj = 0;
23343 wxDC *arg1 = (wxDC *) 0 ;
23344 PyObject *arg2 = (PyObject *) 0 ;
23345 PyObject *arg3 = (PyObject *) 0 ;
23346 PyObject *arg4 = (PyObject *) 0 ;
23347 PyObject *result = 0 ;
23348 void *argp1 = 0 ;
23349 int res1 = 0 ;
23350 PyObject * obj0 = 0 ;
23351 PyObject * obj1 = 0 ;
23352 PyObject * obj2 = 0 ;
23353 PyObject * obj3 = 0 ;
23354 char * kwnames[] = {
23355 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23356 };
23357
23358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23360 if (!SWIG_IsOK(res1)) {
23361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23362 }
23363 arg1 = reinterpret_cast< wxDC * >(argp1);
23364 arg2 = obj1;
23365 arg3 = obj2;
23366 arg4 = obj3;
23367 {
23368 PyThreadState* __tstate = wxPyBeginAllowThreads();
23369 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23370 wxPyEndAllowThreads(__tstate);
23371 if (PyErr_Occurred()) SWIG_fail;
23372 }
23373 resultobj = result;
23374 return resultobj;
23375fail:
23376 return NULL;
23377}
23378
23379
23380SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23381 PyObject *resultobj = 0;
23382 wxDC *arg1 = (wxDC *) 0 ;
23383 PyObject *arg2 = (PyObject *) 0 ;
23384 PyObject *arg3 = (PyObject *) 0 ;
23385 PyObject *arg4 = (PyObject *) 0 ;
23386 PyObject *result = 0 ;
23387 void *argp1 = 0 ;
23388 int res1 = 0 ;
23389 PyObject * obj0 = 0 ;
23390 PyObject * obj1 = 0 ;
23391 PyObject * obj2 = 0 ;
23392 PyObject * obj3 = 0 ;
23393 char * kwnames[] = {
23394 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23395 };
23396
23397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23399 if (!SWIG_IsOK(res1)) {
23400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23401 }
23402 arg1 = reinterpret_cast< wxDC * >(argp1);
23403 arg2 = obj1;
23404 arg3 = obj2;
23405 arg4 = obj3;
23406 {
23407 PyThreadState* __tstate = wxPyBeginAllowThreads();
23408 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23409 wxPyEndAllowThreads(__tstate);
23410 if (PyErr_Occurred()) SWIG_fail;
23411 }
23412 resultobj = result;
23413 return resultobj;
23414fail:
23415 return NULL;
23416}
23417
23418
23419SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23420 PyObject *resultobj = 0;
23421 wxDC *arg1 = (wxDC *) 0 ;
23422 PyObject *arg2 = (PyObject *) 0 ;
23423 PyObject *arg3 = (PyObject *) 0 ;
23424 PyObject *arg4 = (PyObject *) 0 ;
23425 PyObject *result = 0 ;
23426 void *argp1 = 0 ;
23427 int res1 = 0 ;
23428 PyObject * obj0 = 0 ;
23429 PyObject * obj1 = 0 ;
23430 PyObject * obj2 = 0 ;
23431 PyObject * obj3 = 0 ;
23432 char * kwnames[] = {
23433 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23434 };
23435
23436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23438 if (!SWIG_IsOK(res1)) {
23439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23440 }
23441 arg1 = reinterpret_cast< wxDC * >(argp1);
23442 arg2 = obj1;
23443 arg3 = obj2;
23444 arg4 = obj3;
23445 {
23446 PyThreadState* __tstate = wxPyBeginAllowThreads();
23447 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23448 wxPyEndAllowThreads(__tstate);
23449 if (PyErr_Occurred()) SWIG_fail;
23450 }
23451 resultobj = result;
23452 return resultobj;
23453fail:
23454 return NULL;
23455}
23456
23457
23458SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23459 PyObject *resultobj = 0;
23460 wxDC *arg1 = (wxDC *) 0 ;
23461 PyObject *arg2 = (PyObject *) 0 ;
23462 PyObject *arg3 = (PyObject *) 0 ;
23463 PyObject *arg4 = (PyObject *) 0 ;
23464 PyObject *arg5 = (PyObject *) 0 ;
23465 PyObject *result = 0 ;
23466 void *argp1 = 0 ;
23467 int res1 = 0 ;
23468 PyObject * obj0 = 0 ;
23469 PyObject * obj1 = 0 ;
23470 PyObject * obj2 = 0 ;
23471 PyObject * obj3 = 0 ;
23472 PyObject * obj4 = 0 ;
23473 char * kwnames[] = {
23474 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23475 };
23476
23477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23479 if (!SWIG_IsOK(res1)) {
23480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23481 }
23482 arg1 = reinterpret_cast< wxDC * >(argp1);
23483 arg2 = obj1;
23484 arg3 = obj2;
23485 arg4 = obj3;
23486 arg5 = obj4;
23487 {
23488 PyThreadState* __tstate = wxPyBeginAllowThreads();
23489 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23490 wxPyEndAllowThreads(__tstate);
23491 if (PyErr_Occurred()) SWIG_fail;
23492 }
23493 resultobj = result;
23494 return resultobj;
23495fail:
23496 return NULL;
23497}
23498
23499
23500SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23501 PyObject *obj;
23502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23503 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23504 return SWIG_Py_Void();
23505}
23506
70d7cb34
RD
23507SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23508 PyObject *resultobj = 0;
23509 wxDC *arg1 = 0 ;
23510 wxColour *arg2 = 0 ;
23511 wxDCTextColourChanger *result = 0 ;
23512 void *argp1 = 0 ;
23513 int res1 = 0 ;
23514 wxColour temp2 ;
23515 PyObject * obj0 = 0 ;
23516 PyObject * obj1 = 0 ;
23517 char * kwnames[] = {
23518 (char *) "dc",(char *) "col", NULL
23519 };
23520
23521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23522 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23523 if (!SWIG_IsOK(res1)) {
23524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23525 }
23526 if (!argp1) {
23527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23528 }
23529 arg1 = reinterpret_cast< wxDC * >(argp1);
23530 {
23531 arg2 = &temp2;
23532 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23533 }
23534 {
23535 PyThreadState* __tstate = wxPyBeginAllowThreads();
23536 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23537 wxPyEndAllowThreads(__tstate);
23538 if (PyErr_Occurred()) SWIG_fail;
23539 }
23540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23541 return resultobj;
23542fail:
23543 return NULL;
23544}
23545
23546
23547SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23548 PyObject *resultobj = 0;
23549 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23550 void *argp1 = 0 ;
23551 int res1 = 0 ;
23552 PyObject *swig_obj[1] ;
23553
23554 if (!args) SWIG_fail;
23555 swig_obj[0] = args;
23556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23557 if (!SWIG_IsOK(res1)) {
23558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23559 }
23560 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23561 {
23562 PyThreadState* __tstate = wxPyBeginAllowThreads();
23563 delete arg1;
23564
23565 wxPyEndAllowThreads(__tstate);
23566 if (PyErr_Occurred()) SWIG_fail;
23567 }
23568 resultobj = SWIG_Py_Void();
23569 return resultobj;
23570fail:
23571 return NULL;
23572}
23573
23574
23575SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23576 PyObject *obj;
23577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23578 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23579 return SWIG_Py_Void();
23580}
23581
23582SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23583 return SWIG_Python_InitShadowInstance(args);
23584}
23585
23586SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23587 PyObject *resultobj = 0;
23588 wxDC *arg1 = 0 ;
23589 wxPen *arg2 = 0 ;
23590 wxDCPenChanger *result = 0 ;
23591 void *argp1 = 0 ;
23592 int res1 = 0 ;
23593 void *argp2 = 0 ;
23594 int res2 = 0 ;
23595 PyObject * obj0 = 0 ;
23596 PyObject * obj1 = 0 ;
23597 char * kwnames[] = {
23598 (char *) "dc",(char *) "pen", NULL
23599 };
23600
23601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23602 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23603 if (!SWIG_IsOK(res1)) {
23604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23605 }
23606 if (!argp1) {
23607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23608 }
23609 arg1 = reinterpret_cast< wxDC * >(argp1);
23610 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23611 if (!SWIG_IsOK(res2)) {
23612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23613 }
23614 if (!argp2) {
23615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23616 }
23617 arg2 = reinterpret_cast< wxPen * >(argp2);
23618 {
23619 PyThreadState* __tstate = wxPyBeginAllowThreads();
23620 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23621 wxPyEndAllowThreads(__tstate);
23622 if (PyErr_Occurred()) SWIG_fail;
23623 }
23624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23625 return resultobj;
23626fail:
23627 return NULL;
23628}
23629
23630
23631SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23632 PyObject *resultobj = 0;
23633 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23634 void *argp1 = 0 ;
23635 int res1 = 0 ;
23636 PyObject *swig_obj[1] ;
23637
23638 if (!args) SWIG_fail;
23639 swig_obj[0] = args;
23640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23641 if (!SWIG_IsOK(res1)) {
23642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23643 }
23644 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23645 {
23646 PyThreadState* __tstate = wxPyBeginAllowThreads();
23647 delete arg1;
23648
23649 wxPyEndAllowThreads(__tstate);
23650 if (PyErr_Occurred()) SWIG_fail;
23651 }
23652 resultobj = SWIG_Py_Void();
23653 return resultobj;
23654fail:
23655 return NULL;
23656}
23657
23658
23659SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23660 PyObject *obj;
23661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23662 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23663 return SWIG_Py_Void();
23664}
23665
23666SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23667 return SWIG_Python_InitShadowInstance(args);
23668}
23669
23670SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23671 PyObject *resultobj = 0;
23672 wxDC *arg1 = 0 ;
23673 wxBrush *arg2 = 0 ;
23674 wxDCBrushChanger *result = 0 ;
23675 void *argp1 = 0 ;
23676 int res1 = 0 ;
23677 void *argp2 = 0 ;
23678 int res2 = 0 ;
23679 PyObject * obj0 = 0 ;
23680 PyObject * obj1 = 0 ;
23681 char * kwnames[] = {
23682 (char *) "dc",(char *) "brush", NULL
23683 };
23684
23685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23686 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23687 if (!SWIG_IsOK(res1)) {
23688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23689 }
23690 if (!argp1) {
23691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23692 }
23693 arg1 = reinterpret_cast< wxDC * >(argp1);
23694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23695 if (!SWIG_IsOK(res2)) {
23696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23697 }
23698 if (!argp2) {
23699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23700 }
23701 arg2 = reinterpret_cast< wxBrush * >(argp2);
23702 {
23703 PyThreadState* __tstate = wxPyBeginAllowThreads();
23704 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23705 wxPyEndAllowThreads(__tstate);
23706 if (PyErr_Occurred()) SWIG_fail;
23707 }
23708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23709 return resultobj;
23710fail:
23711 return NULL;
23712}
23713
23714
23715SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23716 PyObject *resultobj = 0;
23717 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23718 void *argp1 = 0 ;
23719 int res1 = 0 ;
23720 PyObject *swig_obj[1] ;
23721
23722 if (!args) SWIG_fail;
23723 swig_obj[0] = args;
23724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23725 if (!SWIG_IsOK(res1)) {
23726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23727 }
23728 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23729 {
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 delete arg1;
23732
23733 wxPyEndAllowThreads(__tstate);
23734 if (PyErr_Occurred()) SWIG_fail;
23735 }
23736 resultobj = SWIG_Py_Void();
23737 return resultobj;
23738fail:
23739 return NULL;
23740}
23741
23742
23743SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23744 PyObject *obj;
23745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23746 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23747 return SWIG_Py_Void();
23748}
23749
23750SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23751 return SWIG_Python_InitShadowInstance(args);
23752}
23753
23754SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23755 PyObject *resultobj = 0;
23756 wxDC *arg1 = 0 ;
23757 wxRegion *arg2 = 0 ;
23758 wxDCClipper *result = 0 ;
23759 void *argp1 = 0 ;
23760 int res1 = 0 ;
23761 void *argp2 = 0 ;
23762 int res2 = 0 ;
23763
23764 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23766 if (!SWIG_IsOK(res1)) {
23767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23768 }
23769 if (!argp1) {
23770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23771 }
23772 arg1 = reinterpret_cast< wxDC * >(argp1);
23773 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23774 if (!SWIG_IsOK(res2)) {
23775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23776 }
23777 if (!argp2) {
23778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23779 }
23780 arg2 = reinterpret_cast< wxRegion * >(argp2);
23781 {
23782 PyThreadState* __tstate = wxPyBeginAllowThreads();
23783 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23784 wxPyEndAllowThreads(__tstate);
23785 if (PyErr_Occurred()) SWIG_fail;
23786 }
23787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23788 return resultobj;
23789fail:
23790 return NULL;
23791}
23792
23793
23794SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23795 PyObject *resultobj = 0;
23796 wxDC *arg1 = 0 ;
23797 wxRect *arg2 = 0 ;
23798 wxDCClipper *result = 0 ;
23799 void *argp1 = 0 ;
23800 int res1 = 0 ;
23801 wxRect temp2 ;
23802
23803 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23805 if (!SWIG_IsOK(res1)) {
23806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23807 }
23808 if (!argp1) {
23809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23810 }
23811 arg1 = reinterpret_cast< wxDC * >(argp1);
23812 {
23813 arg2 = &temp2;
23814 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23815 }
23816 {
23817 PyThreadState* __tstate = wxPyBeginAllowThreads();
23818 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23819 wxPyEndAllowThreads(__tstate);
23820 if (PyErr_Occurred()) SWIG_fail;
23821 }
23822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23823 return resultobj;
23824fail:
23825 return NULL;
23826}
23827
23828
23829SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23830 PyObject *resultobj = 0;
23831 wxDC *arg1 = 0 ;
23832 int arg2 ;
23833 int arg3 ;
23834 int arg4 ;
23835 int arg5 ;
23836 wxDCClipper *result = 0 ;
23837 void *argp1 = 0 ;
23838 int res1 = 0 ;
23839 int val2 ;
23840 int ecode2 = 0 ;
23841 int val3 ;
23842 int ecode3 = 0 ;
23843 int val4 ;
23844 int ecode4 = 0 ;
23845 int val5 ;
23846 int ecode5 = 0 ;
23847
23848 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23850 if (!SWIG_IsOK(res1)) {
23851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23852 }
23853 if (!argp1) {
23854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23855 }
23856 arg1 = reinterpret_cast< wxDC * >(argp1);
23857 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23858 if (!SWIG_IsOK(ecode2)) {
23859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23860 }
23861 arg2 = static_cast< int >(val2);
23862 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23863 if (!SWIG_IsOK(ecode3)) {
23864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23865 }
23866 arg3 = static_cast< int >(val3);
23867 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23868 if (!SWIG_IsOK(ecode4)) {
23869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23870 }
23871 arg4 = static_cast< int >(val4);
23872 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23873 if (!SWIG_IsOK(ecode5)) {
23874 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23875 }
23876 arg5 = static_cast< int >(val5);
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23884 return resultobj;
23885fail:
23886 return NULL;
23887}
23888
23889
23890SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23891 int argc;
23892 PyObject *argv[6];
23893
23894 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23895 --argc;
23896 if (argc == 2) {
23897 int _v = 0;
23898 {
23899 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23900 _v = SWIG_CheckState(res);
23901 }
23902 if (!_v) goto check_1;
23903 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23904 }
23905check_1:
23906
23907 if (argc == 2) {
23908 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23909 }
23910 if (argc == 5) {
23911 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23912 }
23913
23914fail:
23915 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23916 return NULL;
23917}
23918
23919
23920SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23921 PyObject *resultobj = 0;
23922 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23923 void *argp1 = 0 ;
23924 int res1 = 0 ;
23925 PyObject *swig_obj[1] ;
23926
23927 if (!args) SWIG_fail;
23928 swig_obj[0] = args;
23929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23930 if (!SWIG_IsOK(res1)) {
23931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23932 }
23933 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23934 {
23935 PyThreadState* __tstate = wxPyBeginAllowThreads();
23936 delete arg1;
23937
23938 wxPyEndAllowThreads(__tstate);
23939 if (PyErr_Occurred()) SWIG_fail;
23940 }
23941 resultobj = SWIG_Py_Void();
23942 return resultobj;
23943fail:
23944 return NULL;
23945}
23946
23947
23948SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23949 PyObject *obj;
23950 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23951 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23952 return SWIG_Py_Void();
23953}
23954
23955SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23956 return SWIG_Python_InitShadowInstance(args);
23957}
23958
24f6c4e8
RD
23959SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23960 PyObject *resultobj = 0;
23961 wxScreenDC *result = 0 ;
23962
23963 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23964 {
23965 if (!wxPyCheckForApp()) SWIG_fail;
23966 PyThreadState* __tstate = wxPyBeginAllowThreads();
23967 result = (wxScreenDC *)new wxScreenDC();
23968 wxPyEndAllowThreads(__tstate);
23969 if (PyErr_Occurred()) SWIG_fail;
23970 }
23971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23972 return resultobj;
23973fail:
23974 return NULL;
23975}
23976
23977
23978SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23979 PyObject *resultobj = 0;
23980 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23981 wxWindow *arg2 = (wxWindow *) 0 ;
23982 bool result;
23983 void *argp1 = 0 ;
23984 int res1 = 0 ;
23985 void *argp2 = 0 ;
23986 int res2 = 0 ;
23987 PyObject * obj0 = 0 ;
23988 PyObject * obj1 = 0 ;
23989 char * kwnames[] = {
23990 (char *) "self",(char *) "window", NULL
23991 };
23992
23993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23995 if (!SWIG_IsOK(res1)) {
23996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23997 }
23998 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23999 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24000 if (!SWIG_IsOK(res2)) {
24001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24002 }
24003 arg2 = reinterpret_cast< wxWindow * >(argp2);
24004 {
24005 PyThreadState* __tstate = wxPyBeginAllowThreads();
24006 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24007 wxPyEndAllowThreads(__tstate);
24008 if (PyErr_Occurred()) SWIG_fail;
24009 }
24010 {
24011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24012 }
24013 return resultobj;
24014fail:
24015 return NULL;
24016}
24017
24018
24019SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24020 PyObject *resultobj = 0;
24021 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24022 wxRect *arg2 = (wxRect *) NULL ;
24023 bool result;
24024 void *argp1 = 0 ;
24025 int res1 = 0 ;
24026 void *argp2 = 0 ;
24027 int res2 = 0 ;
24028 PyObject * obj0 = 0 ;
24029 PyObject * obj1 = 0 ;
24030 char * kwnames[] = {
24031 (char *) "self",(char *) "rect", NULL
24032 };
24033
24034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24036 if (!SWIG_IsOK(res1)) {
24037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24038 }
24039 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24040 if (obj1) {
24041 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24042 if (!SWIG_IsOK(res2)) {
24043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24044 }
24045 arg2 = reinterpret_cast< wxRect * >(argp2);
24046 }
24047 {
24048 PyThreadState* __tstate = wxPyBeginAllowThreads();
24049 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24050 wxPyEndAllowThreads(__tstate);
24051 if (PyErr_Occurred()) SWIG_fail;
24052 }
24053 {
24054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24055 }
24056 return resultobj;
24057fail:
24058 return NULL;
24059}
24060
24061
24062SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24063 PyObject *resultobj = 0;
24064 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24065 bool result;
24066 void *argp1 = 0 ;
24067 int res1 = 0 ;
24068 PyObject *swig_obj[1] ;
24069
24070 if (!args) SWIG_fail;
24071 swig_obj[0] = args;
24072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24073 if (!SWIG_IsOK(res1)) {
24074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24075 }
24076 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24077 {
24078 PyThreadState* __tstate = wxPyBeginAllowThreads();
24079 result = (bool)(arg1)->EndDrawingOnTop();
24080 wxPyEndAllowThreads(__tstate);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 }
24083 {
24084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24085 }
24086 return resultobj;
24087fail:
24088 return NULL;
24089}
24090
24091
24092SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24093 PyObject *obj;
24094 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24095 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24096 return SWIG_Py_Void();
24097}
24098
24099SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24100 return SWIG_Python_InitShadowInstance(args);
24101}
24102
24103SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24104 PyObject *resultobj = 0;
24105 wxWindow *arg1 = (wxWindow *) 0 ;
24106 wxWindowDC *result = 0 ;
24107 void *argp1 = 0 ;
24108 int res1 = 0 ;
24109 PyObject * obj0 = 0 ;
24110 char * kwnames[] = {
24111 (char *) "win", NULL
24112 };
24113
24114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24116 if (!SWIG_IsOK(res1)) {
24117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24118 }
24119 arg1 = reinterpret_cast< wxWindow * >(argp1);
24120 {
24121 if (!wxPyCheckForApp()) SWIG_fail;
24122 PyThreadState* __tstate = wxPyBeginAllowThreads();
24123 result = (wxWindowDC *)new wxWindowDC(arg1);
24124 wxPyEndAllowThreads(__tstate);
24125 if (PyErr_Occurred()) SWIG_fail;
24126 }
24127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24128 return resultobj;
24129fail:
24130 return NULL;
24131}
24132
24133
24134SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24135 PyObject *obj;
24136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24137 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24138 return SWIG_Py_Void();
24139}
24140
24141SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24142 return SWIG_Python_InitShadowInstance(args);
24143}
24144
24145SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24146 PyObject *resultobj = 0;
24147 wxWindow *arg1 = (wxWindow *) 0 ;
24148 wxClientDC *result = 0 ;
24149 void *argp1 = 0 ;
24150 int res1 = 0 ;
24151 PyObject * obj0 = 0 ;
24152 char * kwnames[] = {
24153 (char *) "win", NULL
24154 };
24155
24156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24158 if (!SWIG_IsOK(res1)) {
24159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24160 }
24161 arg1 = reinterpret_cast< wxWindow * >(argp1);
24162 {
24163 if (!wxPyCheckForApp()) SWIG_fail;
24164 PyThreadState* __tstate = wxPyBeginAllowThreads();
24165 result = (wxClientDC *)new wxClientDC(arg1);
24166 wxPyEndAllowThreads(__tstate);
24167 if (PyErr_Occurred()) SWIG_fail;
24168 }
24169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24170 return resultobj;
24171fail:
24172 return NULL;
24173}
24174
24175
24176SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24177 PyObject *obj;
24178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24179 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24180 return SWIG_Py_Void();
24181}
24182
24183SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24184 return SWIG_Python_InitShadowInstance(args);
24185}
24186
24187SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24188 PyObject *resultobj = 0;
24189 wxWindow *arg1 = (wxWindow *) 0 ;
24190 wxPaintDC *result = 0 ;
24191 void *argp1 = 0 ;
24192 int res1 = 0 ;
24193 PyObject * obj0 = 0 ;
24194 char * kwnames[] = {
24195 (char *) "win", NULL
24196 };
24197
24198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24200 if (!SWIG_IsOK(res1)) {
24201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24202 }
24203 arg1 = reinterpret_cast< wxWindow * >(argp1);
24204 {
24205 if (!wxPyCheckForApp()) SWIG_fail;
24206 PyThreadState* __tstate = wxPyBeginAllowThreads();
24207 result = (wxPaintDC *)new wxPaintDC(arg1);
24208 wxPyEndAllowThreads(__tstate);
24209 if (PyErr_Occurred()) SWIG_fail;
24210 }
24211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24212 return resultobj;
24213fail:
24214 return NULL;
24215}
24216
24217
24218SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24219 PyObject *obj;
24220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24221 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24222 return SWIG_Py_Void();
24223}
24224
24225SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24226 return SWIG_Python_InitShadowInstance(args);
24227}
24228
26c4d26f
RD
24229SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24230 PyObject *resultobj = 0;
24231 wxBitmap &arg1_defvalue = wxNullBitmap ;
24232 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24233 wxMemoryDC *result = 0 ;
24234 void *argp1 = 0 ;
24235 int res1 = 0 ;
24236 PyObject * obj0 = 0 ;
24237 char * kwnames[] = {
24238 (char *) "bitmap", NULL
24239 };
24240
24241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24242 if (obj0) {
24243 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24244 if (!SWIG_IsOK(res1)) {
24245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24246 }
24247 if (!argp1) {
24248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24249 }
24250 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24251 }
24252 {
24253 if (!wxPyCheckForApp()) SWIG_fail;
24254 PyThreadState* __tstate = wxPyBeginAllowThreads();
24255 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24256 wxPyEndAllowThreads(__tstate);
24257 if (PyErr_Occurred()) SWIG_fail;
24258 }
24259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24260 return resultobj;
24261fail:
24262 return NULL;
24263}
24264
24265
24266SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24267 PyObject *resultobj = 0;
24268 wxDC *arg1 = (wxDC *) 0 ;
24269 wxMemoryDC *result = 0 ;
24270 void *argp1 = 0 ;
24271 int res1 = 0 ;
24272 PyObject * obj0 = 0 ;
24273 char * kwnames[] = {
24274 (char *) "oldDC", NULL
24275 };
24276
24277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24279 if (!SWIG_IsOK(res1)) {
24280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24281 }
24282 arg1 = reinterpret_cast< wxDC * >(argp1);
24283 {
24284 if (!wxPyCheckForApp()) SWIG_fail;
24285 PyThreadState* __tstate = wxPyBeginAllowThreads();
24286 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24287 wxPyEndAllowThreads(__tstate);
24288 if (PyErr_Occurred()) SWIG_fail;
24289 }
24290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24291 return resultobj;
24292fail:
24293 return NULL;
24294}
24295
24296
24297SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24298 PyObject *resultobj = 0;
24299 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24300 wxBitmap *arg2 = 0 ;
24301 void *argp1 = 0 ;
24302 int res1 = 0 ;
24303 void *argp2 = 0 ;
24304 int res2 = 0 ;
24305 PyObject * obj0 = 0 ;
24306 PyObject * obj1 = 0 ;
24307 char * kwnames[] = {
24308 (char *) "self",(char *) "bitmap", NULL
24309 };
24310
24311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24313 if (!SWIG_IsOK(res1)) {
24314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24315 }
24316 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24318 if (!SWIG_IsOK(res2)) {
24319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24320 }
24321 if (!argp2) {
24322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24323 }
24324 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24325 {
24326 PyThreadState* __tstate = wxPyBeginAllowThreads();
24327 (arg1)->SelectObject(*arg2);
24328 wxPyEndAllowThreads(__tstate);
24329 if (PyErr_Occurred()) SWIG_fail;
24330 }
24331 resultobj = SWIG_Py_Void();
24332 return resultobj;
24333fail:
24334 return NULL;
24335}
24336
24337
24338SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24339 PyObject *resultobj = 0;
24340 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24341 wxBitmap *arg2 = 0 ;
24342 void *argp1 = 0 ;
24343 int res1 = 0 ;
24344 void *argp2 = 0 ;
24345 int res2 = 0 ;
24346 PyObject * obj0 = 0 ;
24347 PyObject * obj1 = 0 ;
24348 char * kwnames[] = {
24349 (char *) "self",(char *) "bmp", NULL
24350 };
24351
24352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24354 if (!SWIG_IsOK(res1)) {
24355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24356 }
24357 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24358 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24359 if (!SWIG_IsOK(res2)) {
24360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24361 }
24362 if (!argp2) {
24363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24364 }
24365 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24366 {
24367 PyThreadState* __tstate = wxPyBeginAllowThreads();
24368 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24369 wxPyEndAllowThreads(__tstate);
24370 if (PyErr_Occurred()) SWIG_fail;
24371 }
24372 resultobj = SWIG_Py_Void();
24373 return resultobj;
24374fail:
24375 return NULL;
24376}
24377
24378
24379SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24380 PyObject *obj;
24381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24382 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24383 return SWIG_Py_Void();
24384}
24385
24386SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24387 return SWIG_Python_InitShadowInstance(args);
24388}
24389
0085ce49
RD
24390SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24391 PyObject *resultobj = 0;
24392 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24393 wxBitmap &arg2_defvalue = wxNullBitmap ;
0085ce49
RD
24394 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24395 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24396 wxBufferedDC *result = 0 ;
24397 void *argp1 = 0 ;
24398 int res1 = 0 ;
24399 void *argp2 = 0 ;
24400 int res2 = 0 ;
24401 int val3 ;
24402 int ecode3 = 0 ;
24403
24404 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24406 if (!SWIG_IsOK(res1)) {
24407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24408 }
24409 arg1 = reinterpret_cast< wxDC * >(argp1);
24410 if (swig_obj[1]) {
b6df5cf9 24411 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
0085ce49 24412 if (!SWIG_IsOK(res2)) {
b6df5cf9 24413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24414 }
0085ce49 24415 if (!argp2) {
b6df5cf9 24416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24417 }
0085ce49
RD
24418 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24419 }
24420 if (swig_obj[2]) {
24421 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24422 if (!SWIG_IsOK(ecode3)) {
24423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24424 }
24425 arg3 = static_cast< int >(val3);
24426 }
24427 {
24428 if (!wxPyCheckForApp()) SWIG_fail;
24429 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24430 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
0085ce49
RD
24431 wxPyEndAllowThreads(__tstate);
24432 if (PyErr_Occurred()) SWIG_fail;
24433 }
24434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24435 return resultobj;
24436fail:
24437 return NULL;
24438}
24439
24440
24441SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24442 PyObject *resultobj = 0;
24443 wxDC *arg1 = (wxDC *) 0 ;
24444 wxSize *arg2 = 0 ;
24445 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24446 wxBufferedDC *result = 0 ;
24447 void *argp1 = 0 ;
24448 int res1 = 0 ;
24449 wxSize temp2 ;
24450 int val3 ;
24451 int ecode3 = 0 ;
24452
24453 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24455 if (!SWIG_IsOK(res1)) {
24456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24457 }
24458 arg1 = reinterpret_cast< wxDC * >(argp1);
24459 {
24460 arg2 = &temp2;
24461 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24462 }
24463 if (swig_obj[2]) {
24464 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24465 if (!SWIG_IsOK(ecode3)) {
24466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24467 }
24468 arg3 = static_cast< int >(val3);
24469 }
24470 {
24471 if (!wxPyCheckForApp()) SWIG_fail;
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24474 wxPyEndAllowThreads(__tstate);
24475 if (PyErr_Occurred()) SWIG_fail;
24476 }
24477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24478 return resultobj;
24479fail:
24480 return NULL;
24481}
24482
24483
24484SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24485 int argc;
8e99bda9 24486 PyObject *argv[4];
0085ce49 24487
8e99bda9 24488 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
0085ce49
RD
24489 --argc;
24490 if ((argc >= 1) && (argc <= 3)) {
24491 int _v = 0;
24492 if (argc > 1) {
24493 {
b6df5cf9
RD
24494 void *vptr = 0;
24495 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
0085ce49
RD
24496 _v = SWIG_CheckState(res);
24497 }
24498 if (!_v) goto check_1;
093d3ff1 24499 }
0085ce49
RD
24500 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24501 }
24502check_1:
24503
24504 if ((argc >= 2) && (argc <= 3)) {
24505 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24506 }
24507
24508fail:
24509 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24510 return NULL;
24511}
24512
24513
24514SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24515 PyObject *resultobj = 0;
24516 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24517 void *argp1 = 0 ;
24518 int res1 = 0 ;
24519 PyObject *swig_obj[1] ;
24520
24521 if (!args) SWIG_fail;
24522 swig_obj[0] = args;
24523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24524 if (!SWIG_IsOK(res1)) {
24525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24526 }
24527 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24528 {
24529 PyThreadState* __tstate = wxPyBeginAllowThreads();
24530 delete arg1;
24531
24532 wxPyEndAllowThreads(__tstate);
24533 if (PyErr_Occurred()) SWIG_fail;
24534 }
24535 resultobj = SWIG_Py_Void();
24536 return resultobj;
24537fail:
24538 return NULL;
24539}
24540
24541
24542SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24543 PyObject *resultobj = 0;
24544 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24545 void *argp1 = 0 ;
24546 int res1 = 0 ;
24547 PyObject *swig_obj[1] ;
24548
24549 if (!args) SWIG_fail;
24550 swig_obj[0] = args;
24551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24552 if (!SWIG_IsOK(res1)) {
24553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24554 }
24555 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24556 {
24557 PyThreadState* __tstate = wxPyBeginAllowThreads();
24558 (arg1)->UnMask();
24559 wxPyEndAllowThreads(__tstate);
24560 if (PyErr_Occurred()) SWIG_fail;
24561 }
24562 resultobj = SWIG_Py_Void();
24563 return resultobj;
24564fail:
24565 return NULL;
24566}
24567
24568
b6df5cf9
RD
24569SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24570 PyObject *resultobj = 0;
24571 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24572 int arg2 ;
24573 void *argp1 = 0 ;
24574 int res1 = 0 ;
24575 int val2 ;
24576 int ecode2 = 0 ;
24577 PyObject * obj0 = 0 ;
24578 PyObject * obj1 = 0 ;
24579 char * kwnames[] = {
24580 (char *) "self",(char *) "style", NULL
24581 };
24582
24583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24585 if (!SWIG_IsOK(res1)) {
24586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24587 }
24588 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24589 ecode2 = SWIG_AsVal_int(obj1, &val2);
24590 if (!SWIG_IsOK(ecode2)) {
24591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24592 }
24593 arg2 = static_cast< int >(val2);
24594 {
24595 PyThreadState* __tstate = wxPyBeginAllowThreads();
24596 (arg1)->SetStyle(arg2);
24597 wxPyEndAllowThreads(__tstate);
24598 if (PyErr_Occurred()) SWIG_fail;
24599 }
24600 resultobj = SWIG_Py_Void();
24601 return resultobj;
24602fail:
24603 return NULL;
24604}
24605
24606
24607SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24608 PyObject *resultobj = 0;
24609 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24610 int result;
24611 void *argp1 = 0 ;
24612 int res1 = 0 ;
24613 PyObject *swig_obj[1] ;
24614
24615 if (!args) SWIG_fail;
24616 swig_obj[0] = args;
24617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24618 if (!SWIG_IsOK(res1)) {
24619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24620 }
24621 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24622 {
24623 PyThreadState* __tstate = wxPyBeginAllowThreads();
24624 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24625 wxPyEndAllowThreads(__tstate);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 }
24628 resultobj = SWIG_From_int(static_cast< int >(result));
24629 return resultobj;
24630fail:
24631 return NULL;
24632}
24633
24634
0085ce49
RD
24635SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24636 PyObject *obj;
24637 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24638 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24639 return SWIG_Py_Void();
24640}
24641
24642SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24643 return SWIG_Python_InitShadowInstance(args);
24644}
24645
24646SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24647 PyObject *resultobj = 0;
24648 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24649 wxBitmap &arg2_defvalue = wxNullBitmap ;
0085ce49
RD
24650 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24651 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24652 wxBufferedPaintDC *result = 0 ;
24653 void *argp1 = 0 ;
24654 int res1 = 0 ;
24655 void *argp2 = 0 ;
24656 int res2 = 0 ;
24657 int val3 ;
24658 int ecode3 = 0 ;
24659 PyObject * obj0 = 0 ;
24660 PyObject * obj1 = 0 ;
24661 PyObject * obj2 = 0 ;
24662 char * kwnames[] = {
24663 (char *) "window",(char *) "buffer",(char *) "style", NULL
24664 };
24665
24666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24668 if (!SWIG_IsOK(res1)) {
24669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24670 }
24671 arg1 = reinterpret_cast< wxWindow * >(argp1);
24672 if (obj1) {
b6df5cf9 24673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
0085ce49 24674 if (!SWIG_IsOK(res2)) {
b6df5cf9 24675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24676 }
0085ce49 24677 if (!argp2) {
b6df5cf9 24678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24679 }
0085ce49
RD
24680 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24681 }
24682 if (obj2) {
24683 ecode3 = SWIG_AsVal_int(obj2, &val3);
24684 if (!SWIG_IsOK(ecode3)) {
24685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24686 }
24687 arg3 = static_cast< int >(val3);
24688 }
24689 {
24690 if (!wxPyCheckForApp()) SWIG_fail;
24691 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24692 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
0085ce49
RD
24693 wxPyEndAllowThreads(__tstate);
24694 if (PyErr_Occurred()) SWIG_fail;
24695 }
24696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24697 return resultobj;
24698fail:
24699 return NULL;
24700}
24701
24702
24703SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24704 PyObject *obj;
24705 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24706 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24707 return SWIG_Py_Void();
24708}
24709
24710SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24711 return SWIG_Python_InitShadowInstance(args);
24712}
24713
24f6c4e8 24714SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
24715 PyObject *resultobj = 0;
24716 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24717 wxAutoBufferedPaintDC *result = 0 ;
0085ce49
RD
24718 void *argp1 = 0 ;
24719 int res1 = 0 ;
24720 PyObject * obj0 = 0 ;
24721 char * kwnames[] = {
24722 (char *) "win", NULL
24723 };
24724
24f6c4e8 24725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
24726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24727 if (!SWIG_IsOK(res1)) {
24f6c4e8 24728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
24729 }
24730 arg1 = reinterpret_cast< wxWindow * >(argp1);
24731 {
0085ce49 24732 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24733 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
0085ce49
RD
24734 wxPyEndAllowThreads(__tstate);
24735 if (PyErr_Occurred()) SWIG_fail;
24736 }
24f6c4e8 24737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
24738 return resultobj;
24739fail:
24740 return NULL;
24741}
24742
24743
24f6c4e8 24744SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24745 PyObject *obj;
24746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24747 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
0085ce49
RD
24748 return SWIG_Py_Void();
24749}
24750
24f6c4e8 24751SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24752 return SWIG_Python_InitShadowInstance(args);
24753}
24754
8e99bda9
RD
24755SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24756 PyObject *resultobj = 0;
24757 wxWindow *arg1 = (wxWindow *) 0 ;
24758 wxDC *result = 0 ;
24759 void *argp1 = 0 ;
24760 int res1 = 0 ;
24761 PyObject * obj0 = 0 ;
24762 char * kwnames[] = {
24763 (char *) "window", NULL
24764 };
24765
24766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24768 if (!SWIG_IsOK(res1)) {
24769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24770 }
24771 arg1 = reinterpret_cast< wxWindow * >(argp1);
24772 {
24773 PyThreadState* __tstate = wxPyBeginAllowThreads();
24774 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 {
24779 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24780 }
24781 return resultobj;
24782fail:
24783 return NULL;
24784}
24785
24786
0085ce49
RD
24787SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24788 PyObject *resultobj = 0;
24789 wxDC *arg1 = 0 ;
24790 bool arg2 ;
24791 wxMirrorDC *result = 0 ;
24792 void *argp1 = 0 ;
24793 int res1 = 0 ;
24794 bool val2 ;
24795 int ecode2 = 0 ;
24796 PyObject * obj0 = 0 ;
24797 PyObject * obj1 = 0 ;
24798 char * kwnames[] = {
24799 (char *) "dc",(char *) "mirror", NULL
24800 };
24801
24802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24803 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24804 if (!SWIG_IsOK(res1)) {
24805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24806 }
24807 if (!argp1) {
24808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24809 }
24810 arg1 = reinterpret_cast< wxDC * >(argp1);
24811 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24812 if (!SWIG_IsOK(ecode2)) {
24813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24814 }
24815 arg2 = static_cast< bool >(val2);
24816 {
24817 if (!wxPyCheckForApp()) SWIG_fail;
24818 PyThreadState* __tstate = wxPyBeginAllowThreads();
24819 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24824 return resultobj;
24825fail:
24826 return NULL;
24827}
24828
24829
24830SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24831 PyObject *obj;
24832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24833 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24834 return SWIG_Py_Void();
24835}
24836
24837SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24838 return SWIG_Python_InitShadowInstance(args);
24839}
24840
24841SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24842 PyObject *resultobj = 0;
24843 wxPrintData *arg1 = 0 ;
24844 wxPostScriptDC *result = 0 ;
24845 void *argp1 = 0 ;
24846 int res1 = 0 ;
24847 PyObject * obj0 = 0 ;
24848 char * kwnames[] = {
24849 (char *) "printData", NULL
24850 };
24851
24852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24853 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24854 if (!SWIG_IsOK(res1)) {
24855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24856 }
24857 if (!argp1) {
24858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24859 }
24860 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24861 {
24862 if (!wxPyCheckForApp()) SWIG_fail;
24863 PyThreadState* __tstate = wxPyBeginAllowThreads();
24864 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24865 wxPyEndAllowThreads(__tstate);
24866 if (PyErr_Occurred()) SWIG_fail;
24867 }
24868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24869 return resultobj;
24870fail:
24871 return NULL;
24872}
24873
24874
24875SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24876 PyObject *resultobj = 0;
24877 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24878 wxPrintData *result = 0 ;
24879 void *argp1 = 0 ;
24880 int res1 = 0 ;
24881 PyObject *swig_obj[1] ;
24882
24883 if (!args) SWIG_fail;
24884 swig_obj[0] = args;
24885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24886 if (!SWIG_IsOK(res1)) {
24887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24888 }
24889 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24890 {
24891 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24892 {
0085ce49
RD
24893 wxPrintData &_result_ref = (arg1)->GetPrintData();
24894 result = (wxPrintData *) &_result_ref;
e2950dbb 24895 }
0085ce49
RD
24896 wxPyEndAllowThreads(__tstate);
24897 if (PyErr_Occurred()) SWIG_fail;
24898 }
24899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24900 return resultobj;
24901fail:
24902 return NULL;
24903}
24904
24905
24906SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24907 PyObject *resultobj = 0;
24908 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24909 wxPrintData *arg2 = 0 ;
24910 void *argp1 = 0 ;
24911 int res1 = 0 ;
24912 void *argp2 = 0 ;
24913 int res2 = 0 ;
24914 PyObject * obj0 = 0 ;
24915 PyObject * obj1 = 0 ;
24916 char * kwnames[] = {
24917 (char *) "self",(char *) "data", NULL
24918 };
24919
24920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24922 if (!SWIG_IsOK(res1)) {
24923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24924 }
24925 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24926 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24927 if (!SWIG_IsOK(res2)) {
24928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24929 }
24930 if (!argp2) {
24931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24932 }
24933 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24934 {
24935 PyThreadState* __tstate = wxPyBeginAllowThreads();
24936 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24937 wxPyEndAllowThreads(__tstate);
24938 if (PyErr_Occurred()) SWIG_fail;
24939 }
24940 resultobj = SWIG_Py_Void();
24941 return resultobj;
24942fail:
24943 return NULL;
24944}
24945
24946
24947SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24948 PyObject *resultobj = 0;
24949 int arg1 ;
24950 int val1 ;
24951 int ecode1 = 0 ;
24952 PyObject * obj0 = 0 ;
24953 char * kwnames[] = {
24954 (char *) "ppi", NULL
24955 };
24956
24957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24958 ecode1 = SWIG_AsVal_int(obj0, &val1);
24959 if (!SWIG_IsOK(ecode1)) {
24960 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24961 }
24962 arg1 = static_cast< int >(val1);
24963 {
24964 PyThreadState* __tstate = wxPyBeginAllowThreads();
24965 wxPostScriptDC::SetResolution(arg1);
24966 wxPyEndAllowThreads(__tstate);
24967 if (PyErr_Occurred()) SWIG_fail;
24968 }
24969 resultobj = SWIG_Py_Void();
24970 return resultobj;
24971fail:
24972 return NULL;
24973}
24974
24975
24976SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24977 PyObject *resultobj = 0;
24978 int result;
24979
24980 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24981 {
24982 PyThreadState* __tstate = wxPyBeginAllowThreads();
24983 result = (int)wxPostScriptDC::GetResolution();
24984 wxPyEndAllowThreads(__tstate);
24985 if (PyErr_Occurred()) SWIG_fail;
24986 }
24987 resultobj = SWIG_From_int(static_cast< int >(result));
24988 return resultobj;
24989fail:
24990 return NULL;
24991}
24992
24993
24994SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24995 PyObject *obj;
24996 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24997 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24998 return SWIG_Py_Void();
24999}
25000
25001SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25002 return SWIG_Python_InitShadowInstance(args);
25003}
25004
25005SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25006 PyObject *resultobj = 0;
25007 wxString const &arg1_defvalue = wxPyEmptyString ;
25008 wxString *arg1 = (wxString *) &arg1_defvalue ;
25009 wxMetaFile *result = 0 ;
25010 bool temp1 = false ;
25011 PyObject * obj0 = 0 ;
25012 char * kwnames[] = {
25013 (char *) "filename", NULL
25014 };
25015
25016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25017 if (obj0) {
093d3ff1 25018 {
0085ce49
RD
25019 arg1 = wxString_in_helper(obj0);
25020 if (arg1 == NULL) SWIG_fail;
25021 temp1 = true;
093d3ff1 25022 }
0085ce49
RD
25023 }
25024 {
25025 if (!wxPyCheckForApp()) SWIG_fail;
25026 PyThreadState* __tstate = wxPyBeginAllowThreads();
25027 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25028 wxPyEndAllowThreads(__tstate);
25029 if (PyErr_Occurred()) SWIG_fail;
25030 }
25031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25032 {
25033 if (temp1)
25034 delete arg1;
25035 }
25036 return resultobj;
25037fail:
25038 {
25039 if (temp1)
25040 delete arg1;
25041 }
25042 return NULL;
25043}
25044
25045
25046SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25047 PyObject *obj;
25048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25049 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25050 return SWIG_Py_Void();
25051}
25052
25053SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25054 return SWIG_Python_InitShadowInstance(args);
25055}
25056
25057SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25058 PyObject *resultobj = 0;
25059 wxString const &arg1_defvalue = wxPyEmptyString ;
25060 wxString *arg1 = (wxString *) &arg1_defvalue ;
25061 int arg2 = (int) 0 ;
25062 int arg3 = (int) 0 ;
25063 wxString const &arg4_defvalue = wxPyEmptyString ;
25064 wxString *arg4 = (wxString *) &arg4_defvalue ;
25065 wxMetaFileDC *result = 0 ;
25066 bool temp1 = false ;
25067 int val2 ;
25068 int ecode2 = 0 ;
25069 int val3 ;
25070 int ecode3 = 0 ;
25071 bool temp4 = false ;
25072 PyObject * obj0 = 0 ;
25073 PyObject * obj1 = 0 ;
25074 PyObject * obj2 = 0 ;
25075 PyObject * obj3 = 0 ;
25076 char * kwnames[] = {
25077 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25078 };
25079
25080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25081 if (obj0) {
093d3ff1 25082 {
0085ce49
RD
25083 arg1 = wxString_in_helper(obj0);
25084 if (arg1 == NULL) SWIG_fail;
25085 temp1 = true;
093d3ff1 25086 }
0085ce49
RD
25087 }
25088 if (obj1) {
25089 ecode2 = SWIG_AsVal_int(obj1, &val2);
25090 if (!SWIG_IsOK(ecode2)) {
25091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25092 }
25093 arg2 = static_cast< int >(val2);
25094 }
25095 if (obj2) {
25096 ecode3 = SWIG_AsVal_int(obj2, &val3);
25097 if (!SWIG_IsOK(ecode3)) {
25098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25099 }
25100 arg3 = static_cast< int >(val3);
25101 }
25102 if (obj3) {
093d3ff1 25103 {
0085ce49
RD
25104 arg4 = wxString_in_helper(obj3);
25105 if (arg4 == NULL) SWIG_fail;
25106 temp4 = true;
093d3ff1 25107 }
0085ce49
RD
25108 }
25109 {
25110 if (!wxPyCheckForApp()) SWIG_fail;
25111 PyThreadState* __tstate = wxPyBeginAllowThreads();
25112 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25113 wxPyEndAllowThreads(__tstate);
25114 if (PyErr_Occurred()) SWIG_fail;
25115 }
25116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25117 {
25118 if (temp1)
25119 delete arg1;
25120 }
25121 {
25122 if (temp4)
25123 delete arg4;
25124 }
25125 return resultobj;
25126fail:
25127 {
25128 if (temp1)
25129 delete arg1;
25130 }
25131 {
25132 if (temp4)
25133 delete arg4;
25134 }
25135 return NULL;
25136}
25137
25138
25139SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25140 PyObject *obj;
25141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25142 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25143 return SWIG_Py_Void();
25144}
25145
25146SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25147 return SWIG_Python_InitShadowInstance(args);
25148}
25149
25150SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25151 PyObject *resultobj = 0;
25152 wxPrintData *arg1 = 0 ;
25153 wxPrinterDC *result = 0 ;
25154 void *argp1 = 0 ;
25155 int res1 = 0 ;
25156 PyObject * obj0 = 0 ;
25157 char * kwnames[] = {
25158 (char *) "printData", NULL
25159 };
25160
25161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25162 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25163 if (!SWIG_IsOK(res1)) {
25164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25165 }
25166 if (!argp1) {
25167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25168 }
25169 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25170 {
25171 if (!wxPyCheckForApp()) SWIG_fail;
25172 PyThreadState* __tstate = wxPyBeginAllowThreads();
25173 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25174 wxPyEndAllowThreads(__tstate);
25175 if (PyErr_Occurred()) SWIG_fail;
25176 }
25177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25178 return resultobj;
25179fail:
25180 return NULL;
25181}
25182
25183
25184SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25185 PyObject *obj;
25186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25187 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25188 return SWIG_Py_Void();
25189}
25190
25191SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25192 return SWIG_Python_InitShadowInstance(args);
25193}
25194
70d7cb34
RD
25195SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25196 PyObject *resultobj = 0;
25197 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25198 wxGraphicsObject *result = 0 ;
25199 void *argp1 = 0 ;
25200 int res1 = 0 ;
25201 PyObject * obj0 = 0 ;
25202 char * kwnames[] = {
25203 (char *) "renderer", NULL
25204 };
25205
25206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25207 if (obj0) {
25208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25209 if (!SWIG_IsOK(res1)) {
25210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25211 }
25212 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25213 }
25214 {
25215 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25216 if (PyErr_Occurred()) SWIG_fail;
25217 }
25218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25219 return resultobj;
25220fail:
25221 return NULL;
25222}
25223
25224
25225SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25226 PyObject *resultobj = 0;
25227 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25228 void *argp1 = 0 ;
25229 int res1 = 0 ;
25230 PyObject *swig_obj[1] ;
25231
25232 if (!args) SWIG_fail;
25233 swig_obj[0] = args;
25234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25235 if (!SWIG_IsOK(res1)) {
25236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25237 }
25238 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25239 {
25240 delete arg1;
25241
25242 if (PyErr_Occurred()) SWIG_fail;
25243 }
25244 resultobj = SWIG_Py_Void();
25245 return resultobj;
25246fail:
25247 return NULL;
25248}
25249
25250
25251SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25252 PyObject *resultobj = 0;
25253 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25254 bool result;
25255 void *argp1 = 0 ;
25256 int res1 = 0 ;
25257 PyObject *swig_obj[1] ;
25258
25259 if (!args) SWIG_fail;
25260 swig_obj[0] = args;
25261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25262 if (!SWIG_IsOK(res1)) {
25263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25264 }
25265 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25266 {
25267 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 {
25271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25272 }
25273 return resultobj;
25274fail:
25275 return NULL;
25276}
25277
25278
25279SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25280 PyObject *resultobj = 0;
25281 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25282 wxGraphicsRenderer *result = 0 ;
25283 void *argp1 = 0 ;
25284 int res1 = 0 ;
25285 PyObject *swig_obj[1] ;
25286
25287 if (!args) SWIG_fail;
25288 swig_obj[0] = args;
25289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25290 if (!SWIG_IsOK(res1)) {
25291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25292 }
25293 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25294 {
25295 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25296 if (PyErr_Occurred()) SWIG_fail;
25297 }
25298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25299 return resultobj;
25300fail:
25301 return NULL;
25302}
25303
25304
25305SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25306 PyObject *obj;
25307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25308 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25309 return SWIG_Py_Void();
25310}
25311
25312SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25313 return SWIG_Python_InitShadowInstance(args);
25314}
25315
25316SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25317 PyObject *resultobj = 0;
25318 wxGraphicsPen *result = 0 ;
25319
25320 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25321 {
25322 result = (wxGraphicsPen *)new wxGraphicsPen();
25323 if (PyErr_Occurred()) SWIG_fail;
25324 }
25325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25326 return resultobj;
25327fail:
25328 return NULL;
25329}
25330
25331
25332SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25333 PyObject *resultobj = 0;
25334 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25335 void *argp1 = 0 ;
25336 int res1 = 0 ;
25337 PyObject *swig_obj[1] ;
25338
25339 if (!args) SWIG_fail;
25340 swig_obj[0] = args;
25341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25342 if (!SWIG_IsOK(res1)) {
25343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25344 }
25345 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25346 {
25347 delete arg1;
25348
25349 if (PyErr_Occurred()) SWIG_fail;
25350 }
25351 resultobj = SWIG_Py_Void();
25352 return resultobj;
25353fail:
25354 return NULL;
25355}
25356
25357
25358SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25359 PyObject *obj;
25360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25361 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25362 return SWIG_Py_Void();
25363}
25364
25365SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25366 return SWIG_Python_InitShadowInstance(args);
25367}
25368
25369SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25370 PyObject *resultobj = 0;
25371 wxGraphicsBrush *result = 0 ;
25372
25373 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25374 {
25375 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25376 if (PyErr_Occurred()) SWIG_fail;
25377 }
25378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25379 return resultobj;
25380fail:
25381 return NULL;
25382}
25383
25384
25385SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25386 PyObject *resultobj = 0;
25387 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25388 void *argp1 = 0 ;
25389 int res1 = 0 ;
25390 PyObject *swig_obj[1] ;
25391
25392 if (!args) SWIG_fail;
25393 swig_obj[0] = args;
25394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25395 if (!SWIG_IsOK(res1)) {
25396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25397 }
25398 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25399 {
25400 delete arg1;
25401
25402 if (PyErr_Occurred()) SWIG_fail;
25403 }
25404 resultobj = SWIG_Py_Void();
25405 return resultobj;
25406fail:
25407 return NULL;
25408}
25409
25410
25411SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25412 PyObject *obj;
25413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25414 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25415 return SWIG_Py_Void();
25416}
25417
25418SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25419 return SWIG_Python_InitShadowInstance(args);
25420}
25421
25422SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25423 PyObject *resultobj = 0;
25424 wxGraphicsFont *result = 0 ;
25425
25426 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25427 {
25428 result = (wxGraphicsFont *)new wxGraphicsFont();
25429 if (PyErr_Occurred()) SWIG_fail;
25430 }
25431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25432 return resultobj;
25433fail:
25434 return NULL;
25435}
25436
25437
25438SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25439 PyObject *resultobj = 0;
25440 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25441 void *argp1 = 0 ;
25442 int res1 = 0 ;
25443 PyObject *swig_obj[1] ;
25444
25445 if (!args) SWIG_fail;
25446 swig_obj[0] = args;
25447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25448 if (!SWIG_IsOK(res1)) {
25449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25450 }
25451 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25452 {
25453 delete arg1;
25454
25455 if (PyErr_Occurred()) SWIG_fail;
25456 }
25457 resultobj = SWIG_Py_Void();
25458 return resultobj;
25459fail:
25460 return NULL;
25461}
25462
25463
25464SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25465 PyObject *obj;
25466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25467 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25468 return SWIG_Py_Void();
25469}
25470
25471SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25472 return SWIG_Python_InitShadowInstance(args);
25473}
25474
8f514ab4
RD
25475SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25476 PyObject *resultobj = 0;
25477 wxGraphicsMatrix *result = 0 ;
25478
25479 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25480 {
25481 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25482 if (PyErr_Occurred()) SWIG_fail;
25483 }
25484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25485 return resultobj;
25486fail:
25487 return NULL;
25488}
25489
25490
5c8c7dd3 25491SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25492 PyObject *resultobj = 0;
5c8c7dd3 25493 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25494 void *argp1 = 0 ;
25495 int res1 = 0 ;
25496 PyObject *swig_obj[1] ;
25497
25498 if (!args) SWIG_fail;
25499 swig_obj[0] = args;
5c8c7dd3 25500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
0085ce49 25501 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25503 }
5c8c7dd3 25504 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25505 {
0085ce49
RD
25506 delete arg1;
25507
0085ce49
RD
25508 if (PyErr_Occurred()) SWIG_fail;
25509 }
25510 resultobj = SWIG_Py_Void();
25511 return resultobj;
25512fail:
25513 return NULL;
25514}
25515
25516
5c8c7dd3 25517SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25518 PyObject *resultobj = 0;
5c8c7dd3
RD
25519 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25520 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25521 void *argp1 = 0 ;
25522 int res1 = 0 ;
5c8c7dd3
RD
25523 void *argp2 = 0 ;
25524 int res2 = 0 ;
25525 PyObject * obj0 = 0 ;
25526 PyObject * obj1 = 0 ;
25527 char * kwnames[] = {
25528 (char *) "self",(char *) "t", NULL
25529 };
70d7cb34 25530
5c8c7dd3
RD
25531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25533 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25535 }
5c8c7dd3
RD
25536 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25538 if (!SWIG_IsOK(res2)) {
25539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25540 }
25541 if (!argp2) {
25542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25543 }
25544 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25545 {
5c8c7dd3 25546 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25547 if (PyErr_Occurred()) SWIG_fail;
25548 }
5c8c7dd3 25549 resultobj = SWIG_Py_Void();
70d7cb34
RD
25550 return resultobj;
25551fail:
25552 return NULL;
25553}
25554
25555
5c8c7dd3 25556SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25557 PyObject *resultobj = 0;
5c8c7dd3
RD
25558 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25559 wxDouble arg2 = (wxDouble) 1.0 ;
25560 wxDouble arg3 = (wxDouble) 0.0 ;
25561 wxDouble arg4 = (wxDouble) 0.0 ;
25562 wxDouble arg5 = (wxDouble) 1.0 ;
25563 wxDouble arg6 = (wxDouble) 0.0 ;
25564 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25565 void *argp1 = 0 ;
25566 int res1 = 0 ;
5c8c7dd3
RD
25567 double val2 ;
25568 int ecode2 = 0 ;
25569 double val3 ;
25570 int ecode3 = 0 ;
25571 double val4 ;
25572 int ecode4 = 0 ;
25573 double val5 ;
25574 int ecode5 = 0 ;
25575 double val6 ;
25576 int ecode6 = 0 ;
25577 double val7 ;
25578 int ecode7 = 0 ;
25579 PyObject * obj0 = 0 ;
25580 PyObject * obj1 = 0 ;
25581 PyObject * obj2 = 0 ;
25582 PyObject * obj3 = 0 ;
25583 PyObject * obj4 = 0 ;
25584 PyObject * obj5 = 0 ;
25585 PyObject * obj6 = 0 ;
25586 char * kwnames[] = {
25587 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25588 };
70d7cb34 25589
5c8c7dd3
RD
25590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25592 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25594 }
5c8c7dd3
RD
25595 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25596 if (obj1) {
25597 ecode2 = SWIG_AsVal_double(obj1, &val2);
25598 if (!SWIG_IsOK(ecode2)) {
25599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25600 }
25601 arg2 = static_cast< wxDouble >(val2);
25602 }
25603 if (obj2) {
25604 ecode3 = SWIG_AsVal_double(obj2, &val3);
25605 if (!SWIG_IsOK(ecode3)) {
25606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25607 }
25608 arg3 = static_cast< wxDouble >(val3);
25609 }
25610 if (obj3) {
25611 ecode4 = SWIG_AsVal_double(obj3, &val4);
25612 if (!SWIG_IsOK(ecode4)) {
25613 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25614 }
25615 arg4 = static_cast< wxDouble >(val4);
25616 }
25617 if (obj4) {
25618 ecode5 = SWIG_AsVal_double(obj4, &val5);
25619 if (!SWIG_IsOK(ecode5)) {
25620 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25621 }
25622 arg5 = static_cast< wxDouble >(val5);
25623 }
25624 if (obj5) {
25625 ecode6 = SWIG_AsVal_double(obj5, &val6);
25626 if (!SWIG_IsOK(ecode6)) {
25627 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25628 }
25629 arg6 = static_cast< wxDouble >(val6);
25630 }
25631 if (obj6) {
25632 ecode7 = SWIG_AsVal_double(obj6, &val7);
25633 if (!SWIG_IsOK(ecode7)) {
25634 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25635 }
25636 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25637 }
25638 {
5c8c7dd3 25639 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25640 if (PyErr_Occurred()) SWIG_fail;
25641 }
25642 resultobj = SWIG_Py_Void();
25643 return resultobj;
25644fail:
25645 return NULL;
25646}
25647
25648
248802d0
RD
25649SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25650 PyObject *resultobj = 0;
25651 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25652 wxDouble *arg2 = (wxDouble *) 0 ;
25653 wxDouble *arg3 = (wxDouble *) 0 ;
25654 wxDouble *arg4 = (wxDouble *) 0 ;
25655 wxDouble *arg5 = (wxDouble *) 0 ;
25656 wxDouble *arg6 = (wxDouble *) 0 ;
25657 wxDouble *arg7 = (wxDouble *) 0 ;
25658 void *argp1 = 0 ;
25659 int res1 = 0 ;
25660 wxDouble temp2 ;
25661 int res2 = SWIG_TMPOBJ ;
25662 wxDouble temp3 ;
25663 int res3 = SWIG_TMPOBJ ;
25664 wxDouble temp4 ;
25665 int res4 = SWIG_TMPOBJ ;
25666 wxDouble temp5 ;
25667 int res5 = SWIG_TMPOBJ ;
25668 wxDouble temp6 ;
25669 int res6 = SWIG_TMPOBJ ;
25670 wxDouble temp7 ;
25671 int res7 = SWIG_TMPOBJ ;
25672 PyObject *swig_obj[1] ;
25673
25674 arg2 = &temp2;
25675 arg3 = &temp3;
25676 arg4 = &temp4;
25677 arg5 = &temp5;
25678 arg6 = &temp6;
25679 arg7 = &temp7;
25680 if (!args) SWIG_fail;
25681 swig_obj[0] = args;
25682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25683 if (!SWIG_IsOK(res1)) {
25684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25685 }
25686 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25687 {
25688 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
25689 if (PyErr_Occurred()) SWIG_fail;
25690 }
25691 resultobj = SWIG_Py_Void();
25692 if (SWIG_IsTmpObj(res2)) {
25693 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25694 } else {
25695 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25696 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25697 }
25698 if (SWIG_IsTmpObj(res3)) {
25699 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25700 } else {
25701 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25703 }
25704 if (SWIG_IsTmpObj(res4)) {
25705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25706 } else {
25707 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25709 }
25710 if (SWIG_IsTmpObj(res5)) {
25711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25712 } else {
25713 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25714 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25715 }
25716 if (SWIG_IsTmpObj(res6)) {
25717 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25718 } else {
25719 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25720 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25721 }
25722 if (SWIG_IsTmpObj(res7)) {
25723 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
25724 } else {
25725 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25726 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
25727 }
25728 return resultobj;
25729fail:
25730 return NULL;
25731}
25732
25733
5c8c7dd3 25734SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25735 PyObject *resultobj = 0;
5c8c7dd3 25736 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25737 void *argp1 = 0 ;
25738 int res1 = 0 ;
5c8c7dd3 25739 PyObject *swig_obj[1] ;
0085ce49 25740
5c8c7dd3
RD
25741 if (!args) SWIG_fail;
25742 swig_obj[0] = args;
25743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
0085ce49 25744 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25746 }
5c8c7dd3 25747 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25748 {
5c8c7dd3 25749 (arg1)->Invert();
0085ce49
RD
25750 if (PyErr_Occurred()) SWIG_fail;
25751 }
72ef6efb 25752 resultobj = SWIG_Py_Void();
0085ce49
RD
25753 return resultobj;
25754fail:
25755 return NULL;
25756}
25757
25758
5c8c7dd3 25759SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25760 PyObject *resultobj = 0;
5c8c7dd3
RD
25761 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25762 wxGraphicsMatrix *arg2 = 0 ;
25763 bool result;
70d7cb34
RD
25764 void *argp1 = 0 ;
25765 int res1 = 0 ;
5c8c7dd3
RD
25766 void *argp2 = 0 ;
25767 int res2 = 0 ;
25768 PyObject * obj0 = 0 ;
25769 PyObject * obj1 = 0 ;
25770 char * kwnames[] = {
25771 (char *) "self",(char *) "t", NULL
25772 };
70d7cb34 25773
5c8c7dd3
RD
25774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25776 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25778 }
5c8c7dd3
RD
25779 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25781 if (!SWIG_IsOK(res2)) {
25782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25783 }
25784 if (!argp2) {
25785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25786 }
5c8c7dd3 25787 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25788 {
5c8c7dd3 25789 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25790 if (PyErr_Occurred()) SWIG_fail;
25791 }
5c8c7dd3
RD
25792 {
25793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25794 }
70d7cb34
RD
25795 return resultobj;
25796fail:
25797 return NULL;
25798}
25799
25800
5c8c7dd3
RD
25801SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25802 PyObject *resultobj = 0;
25803 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25804 bool result;
25805 void *argp1 = 0 ;
25806 int res1 = 0 ;
25807 PyObject *swig_obj[1] ;
70d7cb34 25808
5c8c7dd3
RD
25809 if (!args) SWIG_fail;
25810 swig_obj[0] = args;
25811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25812 if (!SWIG_IsOK(res1)) {
25813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25814 }
5c8c7dd3
RD
25815 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25816 {
25817 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25818 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25819 }
5c8c7dd3
RD
25820 {
25821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25822 }
25823 return resultobj;
70d7cb34 25824fail:
70d7cb34
RD
25825 return NULL;
25826}
25827
25828
5c8c7dd3 25829SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 25830 PyObject *resultobj = 0;
5c8c7dd3 25831 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25832 wxDouble arg2 ;
25833 wxDouble arg3 ;
0085ce49
RD
25834 void *argp1 = 0 ;
25835 int res1 = 0 ;
72ef6efb
RD
25836 double val2 ;
25837 int ecode2 = 0 ;
25838 double val3 ;
25839 int ecode3 = 0 ;
5c8c7dd3
RD
25840 PyObject * obj0 = 0 ;
25841 PyObject * obj1 = 0 ;
25842 PyObject * obj2 = 0 ;
25843 char * kwnames[] = {
25844 (char *) "self",(char *) "dx",(char *) "dy", NULL
25845 };
72ef6efb 25846
5c8c7dd3
RD
25847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25849 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25851 }
5c8c7dd3
RD
25852 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25853 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25854 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25856 }
25857 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25858 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25859 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25860 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25861 }
25862 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25863 {
5c8c7dd3 25864 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25865 if (PyErr_Occurred()) SWIG_fail;
25866 }
25867 resultobj = SWIG_Py_Void();
25868 return resultobj;
25869fail:
25870 return NULL;
25871}
25872
25873
5c8c7dd3 25874SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25875 PyObject *resultobj = 0;
5c8c7dd3
RD
25876 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25877 wxDouble arg2 ;
25878 wxDouble arg3 ;
70d7cb34
RD
25879 void *argp1 = 0 ;
25880 int res1 = 0 ;
5c8c7dd3
RD
25881 double val2 ;
25882 int ecode2 = 0 ;
25883 double val3 ;
25884 int ecode3 = 0 ;
25885 PyObject * obj0 = 0 ;
25886 PyObject * obj1 = 0 ;
25887 PyObject * obj2 = 0 ;
25888 char * kwnames[] = {
25889 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25890 };
70d7cb34 25891
5c8c7dd3
RD
25892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25894 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25896 }
5c8c7dd3
RD
25897 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25898 ecode2 = SWIG_AsVal_double(obj1, &val2);
25899 if (!SWIG_IsOK(ecode2)) {
25900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25901 }
25902 arg2 = static_cast< wxDouble >(val2);
25903 ecode3 = SWIG_AsVal_double(obj2, &val3);
25904 if (!SWIG_IsOK(ecode3)) {
25905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25906 }
25907 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25908 {
5c8c7dd3 25909 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 resultobj = SWIG_Py_Void();
25913 return resultobj;
25914fail:
25915 return NULL;
25916}
25917
25918
5c8c7dd3 25919SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25920 PyObject *resultobj = 0;
5c8c7dd3
RD
25921 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25922 wxDouble arg2 ;
70d7cb34
RD
25923 void *argp1 = 0 ;
25924 int res1 = 0 ;
5c8c7dd3
RD
25925 double val2 ;
25926 int ecode2 = 0 ;
70d7cb34
RD
25927 PyObject * obj0 = 0 ;
25928 PyObject * obj1 = 0 ;
25929 char * kwnames[] = {
5c8c7dd3 25930 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
25931 };
25932
5c8c7dd3
RD
25933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25935 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25937 }
5c8c7dd3
RD
25938 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25939 ecode2 = SWIG_AsVal_double(obj1, &val2);
25940 if (!SWIG_IsOK(ecode2)) {
25941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25942 }
25943 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25944 {
5c8c7dd3 25945 (arg1)->Rotate(arg2);
70d7cb34
RD
25946 if (PyErr_Occurred()) SWIG_fail;
25947 }
25948 resultobj = SWIG_Py_Void();
25949 return resultobj;
25950fail:
25951 return NULL;
25952}
25953
25954
5c8c7dd3 25955SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 25956 PyObject *resultobj = 0;
5c8c7dd3
RD
25957 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25958 wxDouble *arg2 = (wxDouble *) 0 ;
25959 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
25960 void *argp1 = 0 ;
25961 int res1 = 0 ;
5c8c7dd3
RD
25962 wxDouble temp2 ;
25963 int res2 = 0 ;
25964 wxDouble temp3 ;
25965 int res3 = 0 ;
25966 PyObject * obj0 = 0 ;
25967 PyObject * obj1 = 0 ;
25968 PyObject * obj2 = 0 ;
25969 char * kwnames[] = {
25970 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25971 };
72ef6efb 25972
5c8c7dd3
RD
25973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25975 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
25976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25977 }
25978 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25979 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25980 double val;
25981 int ecode = SWIG_AsVal_double(obj1, &val);
25982 if (!SWIG_IsOK(ecode)) {
25983 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25984 }
25985 temp2 = static_cast< wxDouble >(val);
25986 arg2 = &temp2;
25987 res2 = SWIG_AddTmpMask(ecode);
25988 }
25989 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25990 double val;
25991 int ecode = SWIG_AsVal_double(obj2, &val);
25992 if (!SWIG_IsOK(ecode)) {
25993 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25994 }
25995 temp3 = static_cast< wxDouble >(val);
25996 arg3 = &temp3;
25997 res3 = SWIG_AddTmpMask(ecode);
25998 }
25999 {
26000 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26001 if (PyErr_Occurred()) SWIG_fail;
72ef6efb
RD
26002 }
26003 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26004 if (SWIG_IsTmpObj(res2)) {
26005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26006 } else {
26007 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26008 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26009 }
26010 if (SWIG_IsTmpObj(res3)) {
26011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26012 } else {
26013 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26015 }
72ef6efb
RD
26016 return resultobj;
26017fail:
26018 return NULL;
26019}
26020
26021
5c8c7dd3
RD
26022SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26023 PyObject *resultobj = 0;
26024 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26025 wxDouble *arg2 = (wxDouble *) 0 ;
26026 wxDouble *arg3 = (wxDouble *) 0 ;
26027 void *argp1 = 0 ;
26028 int res1 = 0 ;
26029 wxDouble temp2 ;
26030 int res2 = 0 ;
26031 wxDouble temp3 ;
26032 int res3 = 0 ;
26033 PyObject * obj0 = 0 ;
26034 PyObject * obj1 = 0 ;
26035 PyObject * obj2 = 0 ;
26036 char * kwnames[] = {
26037 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26038 };
26039
26040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26042 if (!SWIG_IsOK(res1)) {
26043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26044 }
26045 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26046 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26047 double val;
26048 int ecode = SWIG_AsVal_double(obj1, &val);
26049 if (!SWIG_IsOK(ecode)) {
26050 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26051 }
26052 temp2 = static_cast< wxDouble >(val);
26053 arg2 = &temp2;
26054 res2 = SWIG_AddTmpMask(ecode);
26055 }
26056 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26057 double val;
26058 int ecode = SWIG_AsVal_double(obj2, &val);
26059 if (!SWIG_IsOK(ecode)) {
26060 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26061 }
26062 temp3 = static_cast< wxDouble >(val);
26063 arg3 = &temp3;
26064 res3 = SWIG_AddTmpMask(ecode);
26065 }
26066 {
26067 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26068 if (PyErr_Occurred()) SWIG_fail;
26069 }
26070 resultobj = SWIG_Py_Void();
26071 if (SWIG_IsTmpObj(res2)) {
26072 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26073 } else {
26074 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26075 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26076 }
26077 if (SWIG_IsTmpObj(res3)) {
26078 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26079 } else {
26080 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26081 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26082 }
26083 return resultobj;
26084fail:
26085 return NULL;
26086}
26087
26088
26089SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26090 PyObject *resultobj = 0;
26091 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26092 void *result = 0 ;
26093 void *argp1 = 0 ;
26094 int res1 = 0 ;
26095 PyObject *swig_obj[1] ;
26096
26097 if (!args) SWIG_fail;
26098 swig_obj[0] = args;
26099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26100 if (!SWIG_IsOK(res1)) {
26101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26102 }
26103 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26104 {
26105 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26106 if (PyErr_Occurred()) SWIG_fail;
26107 }
26108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26109 return resultobj;
26110fail:
26111 return NULL;
26112}
26113
26114
26115SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26116 PyObject *obj;
26117 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26118 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26119 return SWIG_Py_Void();
26120}
26121
8f514ab4
RD
26122SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26123 return SWIG_Python_InitShadowInstance(args);
26124}
26125
26126SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26127 PyObject *resultobj = 0;
26128 wxGraphicsPath *result = 0 ;
26129
26130 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26131 {
26132 if (!wxPyCheckForApp()) SWIG_fail;
26133 PyThreadState* __tstate = wxPyBeginAllowThreads();
26134 result = (wxGraphicsPath *)new wxGraphicsPath();
26135 wxPyEndAllowThreads(__tstate);
26136 if (PyErr_Occurred()) SWIG_fail;
26137 }
26138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26139 return resultobj;
26140fail:
26141 return NULL;
26142}
26143
26144
5c8c7dd3 26145SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26146 PyObject *resultobj = 0;
26147 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26148 void *argp1 = 0 ;
26149 int res1 = 0 ;
26150 PyObject *swig_obj[1] ;
26151
26152 if (!args) SWIG_fail;
26153 swig_obj[0] = args;
5c8c7dd3 26154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26155 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26157 }
26158 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26159 {
5c8c7dd3
RD
26160 delete arg1;
26161
72ef6efb
RD
26162 if (PyErr_Occurred()) SWIG_fail;
26163 }
5c8c7dd3 26164 resultobj = SWIG_Py_Void();
70d7cb34
RD
26165 return resultobj;
26166fail:
26167 return NULL;
26168}
26169
26170
5c8c7dd3 26171SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26172 PyObject *resultobj = 0;
26173 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26174 wxDouble arg2 ;
26175 wxDouble arg3 ;
70d7cb34
RD
26176 void *argp1 = 0 ;
26177 int res1 = 0 ;
26178 double val2 ;
26179 int ecode2 = 0 ;
26180 double val3 ;
26181 int ecode3 = 0 ;
70d7cb34 26182
5c8c7dd3 26183 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26185 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26187 }
26188 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26189 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26190 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26192 }
26193 arg2 = static_cast< wxDouble >(val2);
26194 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26195 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26197 }
26198 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26199 {
5c8c7dd3 26200 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26201 if (PyErr_Occurred()) SWIG_fail;
26202 }
26203 resultobj = SWIG_Py_Void();
26204 return resultobj;
26205fail:
26206 return NULL;
26207}
26208
26209
5c8c7dd3 26210SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26211 PyObject *resultobj = 0;
26212 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26213 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26214 void *argp1 = 0 ;
26215 int res1 = 0 ;
26216 wxPoint2D temp2 ;
70d7cb34 26217
5c8c7dd3 26218 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26220 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26222 }
26223 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26224 {
26225 arg2 = &temp2;
26226 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26227 }
70d7cb34 26228 {
5c8c7dd3 26229 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26230 if (PyErr_Occurred()) SWIG_fail;
26231 }
26232 resultobj = SWIG_Py_Void();
26233 return resultobj;
26234fail:
26235 return NULL;
26236}
26237
26238
5c8c7dd3 26239SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26240 int argc;
5c8c7dd3 26241 PyObject *argv[4];
70d7cb34 26242
5c8c7dd3 26243 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26244 --argc;
5c8c7dd3
RD
26245 if (argc == 2) {
26246 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26247 }
5c8c7dd3
RD
26248 if (argc == 3) {
26249 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26250 }
26251
26252fail:
5c8c7dd3 26253 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26254 return NULL;
26255}
26256
26257
5c8c7dd3 26258SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26259 PyObject *resultobj = 0;
26260 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26261 wxDouble arg2 ;
26262 wxDouble arg3 ;
70d7cb34
RD
26263 void *argp1 = 0 ;
26264 int res1 = 0 ;
26265 double val2 ;
26266 int ecode2 = 0 ;
26267 double val3 ;
26268 int ecode3 = 0 ;
70d7cb34 26269
5c8c7dd3
RD
26270 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26272 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26274 }
26275 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26276 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26277 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26279 }
26280 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26281 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26282 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26284 }
26285 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26286 {
5c8c7dd3 26287 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26288 if (PyErr_Occurred()) SWIG_fail;
26289 }
26290 resultobj = SWIG_Py_Void();
26291 return resultobj;
26292fail:
26293 return NULL;
26294}
26295
26296
5c8c7dd3 26297SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26298 PyObject *resultobj = 0;
26299 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26300 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26301 void *argp1 = 0 ;
26302 int res1 = 0 ;
5c8c7dd3 26303 wxPoint2D temp2 ;
70d7cb34 26304
5c8c7dd3
RD
26305 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26307 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26309 }
26310 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26311 {
5c8c7dd3
RD
26312 arg2 = &temp2;
26313 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26314 }
26315 {
26316 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26317 if (PyErr_Occurred()) SWIG_fail;
26318 }
26319 resultobj = SWIG_Py_Void();
26320 return resultobj;
26321fail:
26322 return NULL;
26323}
26324
26325
5c8c7dd3
RD
26326SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26327 int argc;
26328 PyObject *argv[4];
70d7cb34 26329
5c8c7dd3
RD
26330 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26331 --argc;
26332 if (argc == 2) {
26333 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26334 }
5c8c7dd3
RD
26335 if (argc == 3) {
26336 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26337 }
5c8c7dd3 26338
70d7cb34 26339fail:
5c8c7dd3 26340 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26341 return NULL;
26342}
26343
26344
5c8c7dd3 26345SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26346 PyObject *resultobj = 0;
26347 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26348 wxDouble arg2 ;
26349 wxDouble arg3 ;
26350 wxDouble arg4 ;
26351 wxDouble arg5 ;
26352 wxDouble arg6 ;
5c8c7dd3 26353 wxDouble arg7 ;
70d7cb34
RD
26354 void *argp1 = 0 ;
26355 int res1 = 0 ;
26356 double val2 ;
26357 int ecode2 = 0 ;
26358 double val3 ;
26359 int ecode3 = 0 ;
26360 double val4 ;
26361 int ecode4 = 0 ;
26362 double val5 ;
26363 int ecode5 = 0 ;
26364 double val6 ;
26365 int ecode6 = 0 ;
5c8c7dd3
RD
26366 double val7 ;
26367 int ecode7 = 0 ;
70d7cb34 26368
5c8c7dd3
RD
26369 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26371 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26373 }
26374 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26375 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26376 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26378 }
26379 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26380 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26381 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26383 }
26384 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26385 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26386 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26387 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26388 }
26389 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26390 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26391 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26392 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26393 }
26394 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26395 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26396 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26397 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26398 }
26399 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26400 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26401 if (!SWIG_IsOK(ecode7)) {
26402 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26403 }
26404 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26405 {
5c8c7dd3 26406 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 resultobj = SWIG_Py_Void();
26410 return resultobj;
26411fail:
26412 return NULL;
26413}
26414
26415
5c8c7dd3 26416SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26417 PyObject *resultobj = 0;
26418 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26419 wxPoint2D *arg2 = 0 ;
26420 wxPoint2D *arg3 = 0 ;
26421 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
5c8c7dd3
RD
26424 wxPoint2D temp2 ;
26425 wxPoint2D temp3 ;
26426 wxPoint2D temp4 ;
70d7cb34 26427
5c8c7dd3
RD
26428 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26430 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26432 }
26433 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26434 {
5c8c7dd3
RD
26435 arg2 = &temp2;
26436 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26437 }
5c8c7dd3
RD
26438 {
26439 arg3 = &temp3;
26440 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26441 }
70d7cb34 26442 {
5c8c7dd3
RD
26443 arg4 = &temp4;
26444 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26445 }
26446 {
26447 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26448 if (PyErr_Occurred()) SWIG_fail;
26449 }
26450 resultobj = SWIG_Py_Void();
26451 return resultobj;
26452fail:
26453 return NULL;
26454}
26455
26456
5c8c7dd3
RD
26457SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26458 int argc;
26459 PyObject *argv[8];
70d7cb34 26460
5c8c7dd3
RD
26461 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26462 --argc;
26463 if (argc == 4) {
26464 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26465 }
5c8c7dd3
RD
26466 if (argc == 7) {
26467 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26468 }
5c8c7dd3 26469
70d7cb34 26470fail:
5c8c7dd3 26471 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26472 return NULL;
26473}
26474
26475
5c8c7dd3 26476SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26477 PyObject *resultobj = 0;
26478 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26479 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26480 void *argp1 = 0 ;
26481 int res1 = 0 ;
5c8c7dd3
RD
26482 void *argp2 = 0 ;
26483 int res2 = 0 ;
70d7cb34
RD
26484 PyObject * obj0 = 0 ;
26485 PyObject * obj1 = 0 ;
26486 char * kwnames[] = {
5c8c7dd3 26487 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26488 };
26489
5c8c7dd3 26490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26492 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26494 }
26495 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26496 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26497 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26499 }
26500 if (!argp2) {
26501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26502 }
5c8c7dd3 26503 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26504 {
5c8c7dd3 26505 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26506 if (PyErr_Occurred()) SWIG_fail;
26507 }
26508 resultobj = SWIG_Py_Void();
26509 return resultobj;
26510fail:
26511 return NULL;
26512}
26513
26514
5c8c7dd3 26515SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26516 PyObject *resultobj = 0;
26517 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26518 void *argp1 = 0 ;
26519 int res1 = 0 ;
5c8c7dd3 26520 PyObject *swig_obj[1] ;
70d7cb34 26521
5c8c7dd3
RD
26522 if (!args) SWIG_fail;
26523 swig_obj[0] = args;
26524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26525 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26527 }
26528 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26529 {
5c8c7dd3 26530 (arg1)->CloseSubpath();
70d7cb34
RD
26531 if (PyErr_Occurred()) SWIG_fail;
26532 }
26533 resultobj = SWIG_Py_Void();
26534 return resultobj;
26535fail:
26536 return NULL;
26537}
26538
26539
5c8c7dd3 26540SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26541 PyObject *resultobj = 0;
26542 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26543 wxPoint2D result;
70d7cb34
RD
26544 void *argp1 = 0 ;
26545 int res1 = 0 ;
26546 PyObject *swig_obj[1] ;
26547
26548 if (!args) SWIG_fail;
26549 swig_obj[0] = args;
26550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26551 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26553 }
26554 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26555 {
5c8c7dd3 26556 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26557 if (PyErr_Occurred()) SWIG_fail;
26558 }
5c8c7dd3 26559 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26560 return resultobj;
26561fail:
26562 return NULL;
26563}
26564
26565
5c8c7dd3 26566SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26567 PyObject *resultobj = 0;
26568 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26569 wxDouble arg2 ;
26570 wxDouble arg3 ;
5c8c7dd3
RD
26571 wxDouble arg4 ;
26572 wxDouble arg5 ;
26573 wxDouble arg6 ;
26574 bool arg7 ;
70d7cb34
RD
26575 void *argp1 = 0 ;
26576 int res1 = 0 ;
26577 double val2 ;
26578 int ecode2 = 0 ;
26579 double val3 ;
26580 int ecode3 = 0 ;
5c8c7dd3 26581 double val4 ;
70d7cb34 26582 int ecode4 = 0 ;
5c8c7dd3
RD
26583 double val5 ;
26584 int ecode5 = 0 ;
26585 double val6 ;
26586 int ecode6 = 0 ;
26587 bool val7 ;
26588 int ecode7 = 0 ;
70d7cb34 26589
5c8c7dd3 26590 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26592 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26594 }
26595 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26596 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26597 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26599 }
26600 arg2 = static_cast< wxDouble >(val2);
26601 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26602 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26604 }
26605 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26606 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26607 if (!SWIG_IsOK(ecode4)) {
26608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26609 }
26610 arg4 = static_cast< wxDouble >(val4);
26611 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26612 if (!SWIG_IsOK(ecode5)) {
26613 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26614 }
26615 arg5 = static_cast< wxDouble >(val5);
26616 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26617 if (!SWIG_IsOK(ecode6)) {
26618 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26619 }
26620 arg6 = static_cast< wxDouble >(val6);
26621 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26622 if (!SWIG_IsOK(ecode7)) {
26623 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26624 }
26625 arg7 = static_cast< bool >(val7);
70d7cb34 26626 {
5c8c7dd3 26627 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26628 if (PyErr_Occurred()) SWIG_fail;
26629 }
5c8c7dd3 26630 resultobj = SWIG_Py_Void();
70d7cb34
RD
26631 return resultobj;
26632fail:
26633 return NULL;
26634}
26635
26636
5c8c7dd3 26637SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26638 PyObject *resultobj = 0;
26639 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26640 wxPoint2D *arg2 = 0 ;
26641 wxDouble arg3 ;
26642 wxDouble arg4 ;
26643 wxDouble arg5 ;
26644 bool arg6 ;
70d7cb34
RD
26645 void *argp1 = 0 ;
26646 int res1 = 0 ;
5c8c7dd3
RD
26647 wxPoint2D temp2 ;
26648 double val3 ;
70d7cb34 26649 int ecode3 = 0 ;
5c8c7dd3
RD
26650 double val4 ;
26651 int ecode4 = 0 ;
26652 double val5 ;
26653 int ecode5 = 0 ;
26654 bool val6 ;
26655 int ecode6 = 0 ;
70d7cb34 26656
5c8c7dd3 26657 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26659 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26661 }
26662 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26663 {
5c8c7dd3
RD
26664 arg2 = &temp2;
26665 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26666 }
5c8c7dd3
RD
26667 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26668 if (!SWIG_IsOK(ecode3)) {
26669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26670 }
26671 arg3 = static_cast< wxDouble >(val3);
26672 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26673 if (!SWIG_IsOK(ecode4)) {
26674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26675 }
26676 arg4 = static_cast< wxDouble >(val4);
26677 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26678 if (!SWIG_IsOK(ecode5)) {
26679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26680 }
26681 arg5 = static_cast< wxDouble >(val5);
26682 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26683 if (!SWIG_IsOK(ecode6)) {
26684 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26685 }
26686 arg6 = static_cast< bool >(val6);
70d7cb34 26687 {
5c8c7dd3
RD
26688 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26689 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26690 }
5c8c7dd3 26691 resultobj = SWIG_Py_Void();
70d7cb34
RD
26692 return resultobj;
26693fail:
26694 return NULL;
26695}
26696
26697
5c8c7dd3 26698SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26699 int argc;
5c8c7dd3 26700 PyObject *argv[8];
70d7cb34 26701
5c8c7dd3 26702 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26703 --argc;
5c8c7dd3
RD
26704 if (argc == 6) {
26705 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26706 }
5c8c7dd3
RD
26707 if (argc == 7) {
26708 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26709 }
26710
26711fail:
5c8c7dd3 26712 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26713 return NULL;
26714}
26715
26716
5c8c7dd3 26717SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26718 PyObject *resultobj = 0;
5c8c7dd3
RD
26719 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26720 wxDouble arg2 ;
26721 wxDouble arg3 ;
26722 wxDouble arg4 ;
26723 wxDouble arg5 ;
70d7cb34
RD
26724 void *argp1 = 0 ;
26725 int res1 = 0 ;
5c8c7dd3
RD
26726 double val2 ;
26727 int ecode2 = 0 ;
26728 double val3 ;
26729 int ecode3 = 0 ;
26730 double val4 ;
26731 int ecode4 = 0 ;
26732 double val5 ;
26733 int ecode5 = 0 ;
26734 PyObject * obj0 = 0 ;
26735 PyObject * obj1 = 0 ;
26736 PyObject * obj2 = 0 ;
26737 PyObject * obj3 = 0 ;
26738 PyObject * obj4 = 0 ;
26739 char * kwnames[] = {
26740 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26741 };
70d7cb34 26742
5c8c7dd3
RD
26743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26745 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26747 }
5c8c7dd3
RD
26748 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26749 ecode2 = SWIG_AsVal_double(obj1, &val2);
26750 if (!SWIG_IsOK(ecode2)) {
26751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26752 }
26753 arg2 = static_cast< wxDouble >(val2);
26754 ecode3 = SWIG_AsVal_double(obj2, &val3);
26755 if (!SWIG_IsOK(ecode3)) {
26756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26757 }
26758 arg3 = static_cast< wxDouble >(val3);
26759 ecode4 = SWIG_AsVal_double(obj3, &val4);
26760 if (!SWIG_IsOK(ecode4)) {
26761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26762 }
26763 arg4 = static_cast< wxDouble >(val4);
26764 ecode5 = SWIG_AsVal_double(obj4, &val5);
26765 if (!SWIG_IsOK(ecode5)) {
26766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26767 }
26768 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26769 {
5c8c7dd3 26770 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26771 if (PyErr_Occurred()) SWIG_fail;
26772 }
26773 resultobj = SWIG_Py_Void();
26774 return resultobj;
26775fail:
26776 return NULL;
26777}
26778
26779
5c8c7dd3 26780SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26781 PyObject *resultobj = 0;
5c8c7dd3
RD
26782 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26783 wxDouble arg2 ;
26784 wxDouble arg3 ;
26785 wxDouble arg4 ;
26786 wxDouble arg5 ;
70d7cb34
RD
26787 void *argp1 = 0 ;
26788 int res1 = 0 ;
5c8c7dd3
RD
26789 double val2 ;
26790 int ecode2 = 0 ;
26791 double val3 ;
26792 int ecode3 = 0 ;
26793 double val4 ;
26794 int ecode4 = 0 ;
26795 double val5 ;
26796 int ecode5 = 0 ;
70d7cb34
RD
26797 PyObject * obj0 = 0 ;
26798 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26799 PyObject * obj2 = 0 ;
26800 PyObject * obj3 = 0 ;
26801 PyObject * obj4 = 0 ;
70d7cb34 26802 char * kwnames[] = {
5c8c7dd3 26803 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26804 };
26805
5c8c7dd3
RD
26806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26808 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26810 }
5c8c7dd3
RD
26811 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26812 ecode2 = SWIG_AsVal_double(obj1, &val2);
26813 if (!SWIG_IsOK(ecode2)) {
26814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26815 }
26816 arg2 = static_cast< wxDouble >(val2);
26817 ecode3 = SWIG_AsVal_double(obj2, &val3);
26818 if (!SWIG_IsOK(ecode3)) {
26819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26820 }
26821 arg3 = static_cast< wxDouble >(val3);
26822 ecode4 = SWIG_AsVal_double(obj3, &val4);
26823 if (!SWIG_IsOK(ecode4)) {
26824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26825 }
26826 arg4 = static_cast< wxDouble >(val4);
26827 ecode5 = SWIG_AsVal_double(obj4, &val5);
26828 if (!SWIG_IsOK(ecode5)) {
26829 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26830 }
26831 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26832 {
5c8c7dd3 26833 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26834 if (PyErr_Occurred()) SWIG_fail;
26835 }
26836 resultobj = SWIG_Py_Void();
26837 return resultobj;
26838fail:
26839 return NULL;
26840}
26841
26842
5c8c7dd3 26843SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26844 PyObject *resultobj = 0;
5c8c7dd3
RD
26845 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26846 wxDouble arg2 ;
26847 wxDouble arg3 ;
26848 wxDouble arg4 ;
70d7cb34
RD
26849 void *argp1 = 0 ;
26850 int res1 = 0 ;
5c8c7dd3
RD
26851 double val2 ;
26852 int ecode2 = 0 ;
26853 double val3 ;
26854 int ecode3 = 0 ;
26855 double val4 ;
26856 int ecode4 = 0 ;
70d7cb34
RD
26857 PyObject * obj0 = 0 ;
26858 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26859 PyObject * obj2 = 0 ;
26860 PyObject * obj3 = 0 ;
70d7cb34 26861 char * kwnames[] = {
5c8c7dd3 26862 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26863 };
26864
5c8c7dd3
RD
26865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26867 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26869 }
5c8c7dd3
RD
26870 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26871 ecode2 = SWIG_AsVal_double(obj1, &val2);
26872 if (!SWIG_IsOK(ecode2)) {
26873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26874 }
26875 arg2 = static_cast< wxDouble >(val2);
26876 ecode3 = SWIG_AsVal_double(obj2, &val3);
26877 if (!SWIG_IsOK(ecode3)) {
26878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26879 }
26880 arg3 = static_cast< wxDouble >(val3);
26881 ecode4 = SWIG_AsVal_double(obj3, &val4);
26882 if (!SWIG_IsOK(ecode4)) {
26883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26884 }
26885 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26886 {
5c8c7dd3 26887 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
26888 if (PyErr_Occurred()) SWIG_fail;
26889 }
26890 resultobj = SWIG_Py_Void();
26891 return resultobj;
26892fail:
26893 return NULL;
26894}
26895
26896
5c8c7dd3 26897SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26898 PyObject *resultobj = 0;
5c8c7dd3
RD
26899 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26900 wxDouble arg2 ;
26901 wxDouble arg3 ;
26902 wxDouble arg4 ;
26903 wxDouble arg5 ;
26904 wxDouble arg6 ;
70d7cb34
RD
26905 void *argp1 = 0 ;
26906 int res1 = 0 ;
26907 double val2 ;
26908 int ecode2 = 0 ;
26909 double val3 ;
26910 int ecode3 = 0 ;
26911 double val4 ;
26912 int ecode4 = 0 ;
26913 double val5 ;
26914 int ecode5 = 0 ;
26915 double val6 ;
26916 int ecode6 = 0 ;
70d7cb34
RD
26917 PyObject * obj0 = 0 ;
26918 PyObject * obj1 = 0 ;
26919 PyObject * obj2 = 0 ;
26920 PyObject * obj3 = 0 ;
26921 PyObject * obj4 = 0 ;
26922 PyObject * obj5 = 0 ;
70d7cb34 26923 char * kwnames[] = {
5c8c7dd3 26924 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
26925 };
26926
5c8c7dd3
RD
26927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26929 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26931 }
5c8c7dd3
RD
26932 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26933 ecode2 = SWIG_AsVal_double(obj1, &val2);
26934 if (!SWIG_IsOK(ecode2)) {
26935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26936 }
26937 arg2 = static_cast< wxDouble >(val2);
26938 ecode3 = SWIG_AsVal_double(obj2, &val3);
26939 if (!SWIG_IsOK(ecode3)) {
26940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26941 }
26942 arg3 = static_cast< wxDouble >(val3);
26943 ecode4 = SWIG_AsVal_double(obj3, &val4);
26944 if (!SWIG_IsOK(ecode4)) {
26945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26946 }
26947 arg4 = static_cast< wxDouble >(val4);
26948 ecode5 = SWIG_AsVal_double(obj4, &val5);
26949 if (!SWIG_IsOK(ecode5)) {
26950 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26951 }
26952 arg5 = static_cast< wxDouble >(val5);
26953 ecode6 = SWIG_AsVal_double(obj5, &val6);
26954 if (!SWIG_IsOK(ecode6)) {
26955 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26956 }
26957 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26958 {
5c8c7dd3 26959 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
26960 if (PyErr_Occurred()) SWIG_fail;
26961 }
26962 resultobj = SWIG_Py_Void();
26963 return resultobj;
26964fail:
26965 return NULL;
26966}
26967
26968
5c8c7dd3 26969SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26970 PyObject *resultobj = 0;
5c8c7dd3
RD
26971 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26972 wxDouble arg2 ;
26973 wxDouble arg3 ;
26974 wxDouble arg4 ;
26975 wxDouble arg5 ;
70d7cb34
RD
26976 void *argp1 = 0 ;
26977 int res1 = 0 ;
5c8c7dd3
RD
26978 double val2 ;
26979 int ecode2 = 0 ;
26980 double val3 ;
26981 int ecode3 = 0 ;
26982 double val4 ;
26983 int ecode4 = 0 ;
26984 double val5 ;
26985 int ecode5 = 0 ;
26986 PyObject * obj0 = 0 ;
26987 PyObject * obj1 = 0 ;
26988 PyObject * obj2 = 0 ;
26989 PyObject * obj3 = 0 ;
26990 PyObject * obj4 = 0 ;
26991 char * kwnames[] = {
26992 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26993 };
70d7cb34 26994
5c8c7dd3
RD
26995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26997 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26999 }
5c8c7dd3
RD
27000 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27001 ecode2 = SWIG_AsVal_double(obj1, &val2);
27002 if (!SWIG_IsOK(ecode2)) {
27003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27004 }
27005 arg2 = static_cast< wxDouble >(val2);
27006 ecode3 = SWIG_AsVal_double(obj2, &val3);
27007 if (!SWIG_IsOK(ecode3)) {
27008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27009 }
27010 arg3 = static_cast< wxDouble >(val3);
27011 ecode4 = SWIG_AsVal_double(obj3, &val4);
27012 if (!SWIG_IsOK(ecode4)) {
27013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27014 }
27015 arg4 = static_cast< wxDouble >(val4);
27016 ecode5 = SWIG_AsVal_double(obj4, &val5);
27017 if (!SWIG_IsOK(ecode5)) {
27018 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27019 }
27020 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27021 {
5c8c7dd3 27022 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27023 if (PyErr_Occurred()) SWIG_fail;
27024 }
27025 resultobj = SWIG_Py_Void();
27026 return resultobj;
27027fail:
27028 return NULL;
27029}
27030
27031
5c8c7dd3 27032SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27033 PyObject *resultobj = 0;
5c8c7dd3
RD
27034 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27035 wxDouble arg2 ;
27036 wxDouble arg3 ;
27037 wxDouble arg4 ;
27038 wxDouble arg5 ;
27039 wxDouble arg6 ;
70d7cb34
RD
27040 void *argp1 = 0 ;
27041 int res1 = 0 ;
5c8c7dd3
RD
27042 double val2 ;
27043 int ecode2 = 0 ;
27044 double val3 ;
27045 int ecode3 = 0 ;
27046 double val4 ;
27047 int ecode4 = 0 ;
27048 double val5 ;
27049 int ecode5 = 0 ;
27050 double val6 ;
27051 int ecode6 = 0 ;
70d7cb34
RD
27052 PyObject * obj0 = 0 ;
27053 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27054 PyObject * obj2 = 0 ;
27055 PyObject * obj3 = 0 ;
27056 PyObject * obj4 = 0 ;
27057 PyObject * obj5 = 0 ;
70d7cb34 27058 char * kwnames[] = {
5c8c7dd3 27059 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27060 };
27061
5c8c7dd3
RD
27062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27064 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27066 }
5c8c7dd3
RD
27067 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27068 ecode2 = SWIG_AsVal_double(obj1, &val2);
27069 if (!SWIG_IsOK(ecode2)) {
27070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27071 }
27072 arg2 = static_cast< wxDouble >(val2);
27073 ecode3 = SWIG_AsVal_double(obj2, &val3);
27074 if (!SWIG_IsOK(ecode3)) {
27075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27076 }
27077 arg3 = static_cast< wxDouble >(val3);
27078 ecode4 = SWIG_AsVal_double(obj3, &val4);
27079 if (!SWIG_IsOK(ecode4)) {
27080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27081 }
27082 arg4 = static_cast< wxDouble >(val4);
27083 ecode5 = SWIG_AsVal_double(obj4, &val5);
27084 if (!SWIG_IsOK(ecode5)) {
27085 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27086 }
27087 arg5 = static_cast< wxDouble >(val5);
27088 ecode6 = SWIG_AsVal_double(obj5, &val6);
27089 if (!SWIG_IsOK(ecode6)) {
27090 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27091 }
27092 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27093 {
5c8c7dd3 27094 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27095 if (PyErr_Occurred()) SWIG_fail;
27096 }
5c8c7dd3 27097 resultobj = SWIG_Py_Void();
70d7cb34
RD
27098 return resultobj;
27099fail:
27100 return NULL;
27101}
27102
27103
5c8c7dd3 27104SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27105 PyObject *resultobj = 0;
5c8c7dd3
RD
27106 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27107 void *result = 0 ;
70d7cb34
RD
27108 void *argp1 = 0 ;
27109 int res1 = 0 ;
27110 PyObject *swig_obj[1] ;
27111
27112 if (!args) SWIG_fail;
27113 swig_obj[0] = args;
5c8c7dd3 27114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27115 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27117 }
5c8c7dd3 27118 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27119 {
5c8c7dd3 27120 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27121 if (PyErr_Occurred()) SWIG_fail;
27122 }
5c8c7dd3 27123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27124 return resultobj;
27125fail:
27126 return NULL;
27127}
27128
27129
5c8c7dd3 27130SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27131 PyObject *resultobj = 0;
5c8c7dd3
RD
27132 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27133 void *arg2 = (void *) 0 ;
70d7cb34
RD
27134 void *argp1 = 0 ;
27135 int res1 = 0 ;
5c8c7dd3 27136 int res2 ;
70d7cb34
RD
27137 PyObject * obj0 = 0 ;
27138 PyObject * obj1 = 0 ;
70d7cb34 27139 char * kwnames[] = {
5c8c7dd3 27140 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27141 };
27142
5c8c7dd3
RD
27143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27145 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
27146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27147 }
27148 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27149 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27150 if (!SWIG_IsOK(res2)) {
27151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27152 }
70d7cb34 27153 {
5c8c7dd3 27154 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27155 if (PyErr_Occurred()) SWIG_fail;
27156 }
27157 resultobj = SWIG_Py_Void();
27158 return resultobj;
27159fail:
27160 return NULL;
27161}
27162
27163
5c8c7dd3 27164SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27165 PyObject *resultobj = 0;
5c8c7dd3
RD
27166 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27167 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27168 void *argp1 = 0 ;
27169 int res1 = 0 ;
5c8c7dd3
RD
27170 void *argp2 = 0 ;
27171 int res2 = 0 ;
70d7cb34
RD
27172 PyObject * obj0 = 0 ;
27173 PyObject * obj1 = 0 ;
70d7cb34 27174 char * kwnames[] = {
5c8c7dd3 27175 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27176 };
27177
5c8c7dd3
RD
27178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27180 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27182 }
5c8c7dd3
RD
27183 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27184 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27185 if (!SWIG_IsOK(res2)) {
27186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27187 }
27188 if (!argp2) {
27189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27190 }
27191 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27192 {
5c8c7dd3 27193 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27194 if (PyErr_Occurred()) SWIG_fail;
27195 }
27196 resultobj = SWIG_Py_Void();
27197 return resultobj;
27198fail:
27199 return NULL;
27200}
27201
27202
5c8c7dd3 27203SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27204 PyObject *resultobj = 0;
5c8c7dd3 27205 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27206 wxRect2D result;
70d7cb34
RD
27207 void *argp1 = 0 ;
27208 int res1 = 0 ;
5c8c7dd3 27209 PyObject *swig_obj[1] ;
70d7cb34 27210
5c8c7dd3
RD
27211 if (!args) SWIG_fail;
27212 swig_obj[0] = args;
27213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27214 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27216 }
5c8c7dd3 27217 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27218 {
5c8c7dd3 27219 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27220 if (PyErr_Occurred()) SWIG_fail;
27221 }
4fe9ce47 27222 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27223 return resultobj;
27224fail:
27225 return NULL;
27226}
27227
27228
5c8c7dd3 27229SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27230 PyObject *resultobj = 0;
5c8c7dd3
RD
27231 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27232 wxDouble arg2 ;
27233 wxDouble arg3 ;
27234 int arg4 = (int) wxODDEVEN_RULE ;
27235 bool result;
70d7cb34
RD
27236 void *argp1 = 0 ;
27237 int res1 = 0 ;
5c8c7dd3
RD
27238 double val2 ;
27239 int ecode2 = 0 ;
27240 double val3 ;
27241 int ecode3 = 0 ;
27242 int val4 ;
27243 int ecode4 = 0 ;
70d7cb34 27244
5c8c7dd3
RD
27245 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27247 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27249 }
5c8c7dd3
RD
27250 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27251 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27252 if (!SWIG_IsOK(ecode2)) {
27253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27254 }
27255 arg2 = static_cast< wxDouble >(val2);
27256 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27257 if (!SWIG_IsOK(ecode3)) {
27258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27259 }
27260 arg3 = static_cast< wxDouble >(val3);
27261 if (swig_obj[3]) {
27262 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27263 if (!SWIG_IsOK(ecode4)) {
27264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27265 }
27266 arg4 = static_cast< int >(val4);
70d7cb34
RD
27267 }
27268 {
5c8c7dd3 27269 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27270 if (PyErr_Occurred()) SWIG_fail;
27271 }
5c8c7dd3
RD
27272 {
27273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27274 }
27275 return resultobj;
27276fail:
27277 return NULL;
27278}
27279
27280
5c8c7dd3 27281SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27282 PyObject *resultobj = 0;
5c8c7dd3 27283 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27284 wxPoint2D *arg2 = 0 ;
5c8c7dd3
RD
27285 int arg3 = (int) wxODDEVEN_RULE ;
27286 bool result;
70d7cb34
RD
27287 void *argp1 = 0 ;
27288 int res1 = 0 ;
4fe9ce47 27289 wxPoint2D temp2 ;
5c8c7dd3
RD
27290 int val3 ;
27291 int ecode3 = 0 ;
70d7cb34 27292
5c8c7dd3
RD
27293 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27295 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27297 }
5c8c7dd3 27298 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
4fe9ce47
RD
27299 {
27300 arg2 = &temp2;
27301 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
5c8c7dd3 27302 }
5c8c7dd3
RD
27303 if (swig_obj[2]) {
27304 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27305 if (!SWIG_IsOK(ecode3)) {
27306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27307 }
27308 arg3 = static_cast< int >(val3);
70d7cb34
RD
27309 }
27310 {
4fe9ce47 27311 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
70d7cb34
RD
27312 if (PyErr_Occurred()) SWIG_fail;
27313 }
5c8c7dd3
RD
27314 {
27315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27316 }
27317 return resultobj;
27318fail:
27319 return NULL;
27320}
27321
27322
5c8c7dd3
RD
27323SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27324 int argc;
27325 PyObject *argv[5];
70d7cb34 27326
5c8c7dd3
RD
27327 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27328 --argc;
27329 if ((argc >= 2) && (argc <= 3)) {
27330 int _v = 0;
27331 {
4fe9ce47
RD
27332 {
27333 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27334 }
5c8c7dd3
RD
27335 }
27336 if (!_v) goto check_1;
27337 if (argc > 2) {
27338 {
27339 {
27340 int res = SWIG_AsVal_int(argv[2], NULL);
27341 _v = SWIG_CheckState(res);
27342 }
27343 }
27344 if (!_v) goto check_1;
27345 }
27346 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27347 }
5c8c7dd3
RD
27348check_1:
27349
27350 if ((argc >= 3) && (argc <= 4)) {
27351 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27352 }
5c8c7dd3 27353
70d7cb34 27354fail:
5c8c7dd3 27355 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27356 return NULL;
27357}
27358
27359
5c8c7dd3 27360SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27361 PyObject *obj;
27362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27363 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27364 return SWIG_Py_Void();
27365}
27366
8f514ab4
RD
27367SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27368 return SWIG_Python_InitShadowInstance(args);
27369}
27370
5c8c7dd3
RD
27371SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27372 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27373 return 1;
27374}
27375
27376
27377SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27378 PyObject *pyobj = 0;
27379
27380 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27381 return pyobj;
27382}
27383
27384
27385SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27386 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27387 return 1;
27388}
27389
27390
27391SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27392 PyObject *pyobj = 0;
27393
27394 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27395 return pyobj;
27396}
27397
27398
27399SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27400 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27401 return 1;
27402}
27403
27404
27405SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27406 PyObject *pyobj = 0;
27407
27408 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27409 return pyobj;
27410}
27411
27412
27413SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27414 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27415 return 1;
27416}
27417
27418
27419SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27420 PyObject *pyobj = 0;
27421
27422 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27423 return pyobj;
27424}
27425
27426
27427SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27428 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27429 return 1;
27430}
27431
27432
27433SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27434 PyObject *pyobj = 0;
27435
27436 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27437 return pyobj;
27438}
27439
27440
70d7cb34
RD
27441SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27442 PyObject *resultobj = 0;
27443 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27444 void *argp1 = 0 ;
27445 int res1 = 0 ;
27446 PyObject *swig_obj[1] ;
27447
27448 if (!args) SWIG_fail;
27449 swig_obj[0] = args;
27450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27451 if (!SWIG_IsOK(res1)) {
27452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27453 }
27454 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27455 {
27456 delete arg1;
27457
27458 if (PyErr_Occurred()) SWIG_fail;
27459 }
27460 resultobj = SWIG_Py_Void();
27461 return resultobj;
27462fail:
27463 return NULL;
27464}
27465
27466
27467SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27468 PyObject *resultobj = 0;
27469 wxWindowDC *arg1 = 0 ;
27470 wxGraphicsContext *result = 0 ;
27471 void *argp1 = 0 ;
27472 int res1 = 0 ;
27473
27474 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27476 if (!SWIG_IsOK(res1)) {
27477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27478 }
27479 if (!argp1) {
27480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27481 }
27482 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27483 {
27484 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27485 if (PyErr_Occurred()) SWIG_fail;
27486 }
27487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27488 return resultobj;
27489fail:
27490 return NULL;
27491}
27492
27493
27494SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27495 PyObject *resultobj = 0;
27496 wxWindow *arg1 = (wxWindow *) 0 ;
27497 wxGraphicsContext *result = 0 ;
27498 void *argp1 = 0 ;
27499 int res1 = 0 ;
27500
27501 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27503 if (!SWIG_IsOK(res1)) {
27504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27505 }
27506 arg1 = reinterpret_cast< wxWindow * >(argp1);
27507 {
27508 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27509 if (PyErr_Occurred()) SWIG_fail;
27510 }
27511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27512 return resultobj;
27513fail:
27514 return NULL;
27515}
27516
27517
27518SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27519 int argc;
27520 PyObject *argv[2];
27521
27522 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27523 --argc;
27524 if (argc == 1) {
27525 int _v = 0;
27526 {
27527 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27528 _v = SWIG_CheckState(res);
27529 }
27530 if (!_v) goto check_1;
27531 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27532 }
27533check_1:
27534
27535 if (argc == 1) {
27536 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27537 }
27538
27539fail:
27540 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27541 return NULL;
27542}
27543
27544
f89238b9
RD
27545SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27546 PyObject *resultobj = 0;
27547 wxGraphicsContext *result = 0 ;
27548
27549 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27550 {
27551 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27552 if (PyErr_Occurred()) SWIG_fail;
27553 }
27554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27555 return resultobj;
27556fail:
27557 return NULL;
27558}
27559
27560
70d7cb34
RD
27561SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27562 PyObject *resultobj = 0;
27563 void *arg1 = (void *) 0 ;
27564 wxGraphicsContext *result = 0 ;
27565 int res1 ;
27566 PyObject * obj0 = 0 ;
27567 char * kwnames[] = {
27568 (char *) "context", NULL
27569 };
27570
27571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27572 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27573 if (!SWIG_IsOK(res1)) {
27574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27575 }
27576 {
27577 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27578 if (PyErr_Occurred()) SWIG_fail;
27579 }
27580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27581 return resultobj;
27582fail:
27583 return NULL;
27584}
27585
27586
27587SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27588 PyObject *resultobj = 0;
27589 void *arg1 = (void *) 0 ;
27590 wxGraphicsContext *result = 0 ;
27591 int res1 ;
27592 PyObject * obj0 = 0 ;
27593 char * kwnames[] = {
27594 (char *) "window", NULL
27595 };
27596
27597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27598 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27599 if (!SWIG_IsOK(res1)) {
27600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27601 }
27602 {
27603 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27604 if (PyErr_Occurred()) SWIG_fail;
27605 }
27606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27607 return resultobj;
27608fail:
27609 return NULL;
27610}
27611
27612
27613SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27614 PyObject *resultobj = 0;
27615 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27616 wxGraphicsPath result;
70d7cb34
RD
27617 void *argp1 = 0 ;
27618 int res1 = 0 ;
27619 PyObject *swig_obj[1] ;
27620
27621 if (!args) SWIG_fail;
27622 swig_obj[0] = args;
27623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27624 if (!SWIG_IsOK(res1)) {
27625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27626 }
27627 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27628 {
5c8c7dd3 27629 result = (arg1)->CreatePath();
70d7cb34
RD
27630 if (PyErr_Occurred()) SWIG_fail;
27631 }
5c8c7dd3 27632 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27633 return resultobj;
27634fail:
27635 return NULL;
27636}
27637
27638
70d7cb34 27639SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27640 PyObject *resultobj = 0;
70d7cb34
RD
27641 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27642 wxPen *arg2 = 0 ;
27643 wxGraphicsPen result;
72ef6efb
RD
27644 void *argp1 = 0 ;
27645 int res1 = 0 ;
70d7cb34
RD
27646 void *argp2 = 0 ;
27647 int res2 = 0 ;
72ef6efb
RD
27648 PyObject * obj0 = 0 ;
27649 PyObject * obj1 = 0 ;
72ef6efb 27650 char * kwnames[] = {
70d7cb34 27651 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27652 };
27653
70d7cb34
RD
27654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27656 if (!SWIG_IsOK(res1)) {
70d7cb34 27657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27658 }
70d7cb34
RD
27659 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27661 if (!SWIG_IsOK(res2)) {
27662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27663 }
27664 if (!argp2) {
27665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27666 }
27667 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27668 {
70d7cb34 27669 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27670 if (PyErr_Occurred()) SWIG_fail;
27671 }
70d7cb34 27672 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27673 return resultobj;
27674fail:
27675 return NULL;
27676}
27677
27678
70d7cb34 27679SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27680 PyObject *resultobj = 0;
70d7cb34
RD
27681 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27682 wxBrush *arg2 = 0 ;
27683 wxGraphicsBrush result;
72ef6efb
RD
27684 void *argp1 = 0 ;
27685 int res1 = 0 ;
70d7cb34
RD
27686 void *argp2 = 0 ;
27687 int res2 = 0 ;
72ef6efb
RD
27688 PyObject * obj0 = 0 ;
27689 PyObject * obj1 = 0 ;
72ef6efb 27690 char * kwnames[] = {
70d7cb34 27691 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27692 };
27693
70d7cb34
RD
27694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27696 if (!SWIG_IsOK(res1)) {
70d7cb34 27697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27698 }
70d7cb34
RD
27699 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27700 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27701 if (!SWIG_IsOK(res2)) {
27702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27703 }
27704 if (!argp2) {
27705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27706 }
27707 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27708 {
70d7cb34 27709 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27710 if (PyErr_Occurred()) SWIG_fail;
27711 }
70d7cb34 27712 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27713 return resultobj;
27714fail:
27715 return NULL;
27716}
27717
27718
70d7cb34 27719SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27720 PyObject *resultobj = 0;
70d7cb34 27721 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27722 wxDouble arg2 ;
27723 wxDouble arg3 ;
27724 wxDouble arg4 ;
27725 wxDouble arg5 ;
70d7cb34
RD
27726 wxColour *arg6 = 0 ;
27727 wxColour *arg7 = 0 ;
27728 wxGraphicsBrush result;
72ef6efb
RD
27729 void *argp1 = 0 ;
27730 int res1 = 0 ;
27731 double val2 ;
27732 int ecode2 = 0 ;
27733 double val3 ;
27734 int ecode3 = 0 ;
27735 double val4 ;
27736 int ecode4 = 0 ;
27737 double val5 ;
27738 int ecode5 = 0 ;
70d7cb34
RD
27739 wxColour temp6 ;
27740 wxColour temp7 ;
72ef6efb
RD
27741 PyObject * obj0 = 0 ;
27742 PyObject * obj1 = 0 ;
27743 PyObject * obj2 = 0 ;
27744 PyObject * obj3 = 0 ;
27745 PyObject * obj4 = 0 ;
70d7cb34
RD
27746 PyObject * obj5 = 0 ;
27747 PyObject * obj6 = 0 ;
72ef6efb 27748 char * kwnames[] = {
70d7cb34 27749 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27750 };
27751
70d7cb34
RD
27752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27754 if (!SWIG_IsOK(res1)) {
70d7cb34 27755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27756 }
70d7cb34 27757 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27758 ecode2 = SWIG_AsVal_double(obj1, &val2);
27759 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27761 }
27762 arg2 = static_cast< wxDouble >(val2);
27763 ecode3 = SWIG_AsVal_double(obj2, &val3);
27764 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27766 }
27767 arg3 = static_cast< wxDouble >(val3);
27768 ecode4 = SWIG_AsVal_double(obj3, &val4);
27769 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27771 }
27772 arg4 = static_cast< wxDouble >(val4);
27773 ecode5 = SWIG_AsVal_double(obj4, &val5);
27774 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27776 }
27777 arg5 = static_cast< wxDouble >(val5);
27778 {
70d7cb34
RD
27779 arg6 = &temp6;
27780 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27781 }
70d7cb34
RD
27782 {
27783 arg7 = &temp7;
27784 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27785 }
72ef6efb 27786 {
70d7cb34 27787 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27788 if (PyErr_Occurred()) SWIG_fail;
27789 }
70d7cb34 27790 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27791 return resultobj;
27792fail:
27793 return NULL;
27794}
27795
27796
70d7cb34 27797SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27798 PyObject *resultobj = 0;
70d7cb34 27799 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27800 wxDouble arg2 ;
27801 wxDouble arg3 ;
27802 wxDouble arg4 ;
27803 wxDouble arg5 ;
27804 wxDouble arg6 ;
70d7cb34
RD
27805 wxColour *arg7 = 0 ;
27806 wxColour *arg8 = 0 ;
27807 wxGraphicsBrush result;
72ef6efb
RD
27808 void *argp1 = 0 ;
27809 int res1 = 0 ;
27810 double val2 ;
27811 int ecode2 = 0 ;
27812 double val3 ;
27813 int ecode3 = 0 ;
27814 double val4 ;
27815 int ecode4 = 0 ;
27816 double val5 ;
27817 int ecode5 = 0 ;
27818 double val6 ;
27819 int ecode6 = 0 ;
70d7cb34
RD
27820 wxColour temp7 ;
27821 wxColour temp8 ;
72ef6efb
RD
27822 PyObject * obj0 = 0 ;
27823 PyObject * obj1 = 0 ;
27824 PyObject * obj2 = 0 ;
27825 PyObject * obj3 = 0 ;
27826 PyObject * obj4 = 0 ;
27827 PyObject * obj5 = 0 ;
70d7cb34
RD
27828 PyObject * obj6 = 0 ;
27829 PyObject * obj7 = 0 ;
72ef6efb 27830 char * kwnames[] = {
70d7cb34 27831 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27832 };
27833
70d7cb34
RD
27834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27836 if (!SWIG_IsOK(res1)) {
70d7cb34 27837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27838 }
70d7cb34 27839 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27840 ecode2 = SWIG_AsVal_double(obj1, &val2);
27841 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27843 }
27844 arg2 = static_cast< wxDouble >(val2);
27845 ecode3 = SWIG_AsVal_double(obj2, &val3);
27846 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27848 }
27849 arg3 = static_cast< wxDouble >(val3);
27850 ecode4 = SWIG_AsVal_double(obj3, &val4);
27851 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27852 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27853 }
27854 arg4 = static_cast< wxDouble >(val4);
27855 ecode5 = SWIG_AsVal_double(obj4, &val5);
27856 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27857 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27858 }
27859 arg5 = static_cast< wxDouble >(val5);
27860 ecode6 = SWIG_AsVal_double(obj5, &val6);
27861 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27862 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27863 }
27864 arg6 = static_cast< wxDouble >(val6);
27865 {
70d7cb34
RD
27866 arg7 = &temp7;
27867 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27868 }
27869 {
27870 arg8 = &temp8;
27871 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27872 }
27873 {
27874 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27875 if (PyErr_Occurred()) SWIG_fail;
27876 }
70d7cb34 27877 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27878 return resultobj;
27879fail:
27880 return NULL;
27881}
27882
27883
70d7cb34 27884SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27885 PyObject *resultobj = 0;
27886 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27887 wxFont *arg2 = 0 ;
27888 wxColour const &arg3_defvalue = *wxBLACK ;
27889 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27890 wxGraphicsFont result;
72ef6efb
RD
27891 void *argp1 = 0 ;
27892 int res1 = 0 ;
70d7cb34
RD
27893 void *argp2 = 0 ;
27894 int res2 = 0 ;
27895 wxColour temp3 ;
27896 PyObject * obj0 = 0 ;
27897 PyObject * obj1 = 0 ;
27898 PyObject * obj2 = 0 ;
27899 char * kwnames[] = {
27900 (char *) "self",(char *) "font",(char *) "col", NULL
27901 };
72ef6efb 27902
70d7cb34
RD
27903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) 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_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27907 }
27908 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27910 if (!SWIG_IsOK(res2)) {
27911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27912 }
70d7cb34
RD
27913 if (!argp2) {
27914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27915 }
70d7cb34
RD
27916 arg2 = reinterpret_cast< wxFont * >(argp2);
27917 if (obj2) {
27918 {
27919 arg3 = &temp3;
27920 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27921 }
72ef6efb 27922 }
72ef6efb 27923 {
70d7cb34 27924 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27925 if (PyErr_Occurred()) SWIG_fail;
27926 }
70d7cb34 27927 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27928 return resultobj;
27929fail:
27930 return NULL;
27931}
27932
27933
70d7cb34 27934SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 27935 PyObject *resultobj = 0;
70d7cb34
RD
27936 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27937 wxDouble arg2 = (wxDouble) 1.0 ;
27938 wxDouble arg3 = (wxDouble) 0.0 ;
27939 wxDouble arg4 = (wxDouble) 0.0 ;
27940 wxDouble arg5 = (wxDouble) 1.0 ;
27941 wxDouble arg6 = (wxDouble) 0.0 ;
27942 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 27943 wxGraphicsMatrix result;
0a27f394
RD
27944 void *argp1 = 0 ;
27945 int res1 = 0 ;
70d7cb34
RD
27946 double val2 ;
27947 int ecode2 = 0 ;
27948 double val3 ;
27949 int ecode3 = 0 ;
27950 double val4 ;
27951 int ecode4 = 0 ;
27952 double val5 ;
27953 int ecode5 = 0 ;
27954 double val6 ;
27955 int ecode6 = 0 ;
27956 double val7 ;
27957 int ecode7 = 0 ;
27958 PyObject * obj0 = 0 ;
27959 PyObject * obj1 = 0 ;
27960 PyObject * obj2 = 0 ;
27961 PyObject * obj3 = 0 ;
27962 PyObject * obj4 = 0 ;
27963 PyObject * obj5 = 0 ;
27964 PyObject * obj6 = 0 ;
27965 char * kwnames[] = {
27966 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27967 };
0a27f394 27968
70d7cb34
RD
27969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 27971 if (!SWIG_IsOK(res1)) {
70d7cb34 27972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 27973 }
70d7cb34
RD
27974 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27975 if (obj1) {
27976 ecode2 = SWIG_AsVal_double(obj1, &val2);
27977 if (!SWIG_IsOK(ecode2)) {
27978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27979 }
27980 arg2 = static_cast< wxDouble >(val2);
0a27f394 27981 }
70d7cb34
RD
27982 if (obj2) {
27983 ecode3 = SWIG_AsVal_double(obj2, &val3);
27984 if (!SWIG_IsOK(ecode3)) {
27985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27986 }
27987 arg3 = static_cast< wxDouble >(val3);
0a27f394 27988 }
70d7cb34
RD
27989 if (obj3) {
27990 ecode4 = SWIG_AsVal_double(obj3, &val4);
27991 if (!SWIG_IsOK(ecode4)) {
27992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27993 }
27994 arg4 = static_cast< wxDouble >(val4);
0a27f394 27995 }
70d7cb34
RD
27996 if (obj4) {
27997 ecode5 = SWIG_AsVal_double(obj4, &val5);
27998 if (!SWIG_IsOK(ecode5)) {
27999 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28000 }
28001 arg5 = static_cast< wxDouble >(val5);
0a27f394 28002 }
70d7cb34
RD
28003 if (obj5) {
28004 ecode6 = SWIG_AsVal_double(obj5, &val6);
28005 if (!SWIG_IsOK(ecode6)) {
28006 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28007 }
28008 arg6 = static_cast< wxDouble >(val6);
0a27f394 28009 }
70d7cb34
RD
28010 if (obj6) {
28011 ecode7 = SWIG_AsVal_double(obj6, &val7);
28012 if (!SWIG_IsOK(ecode7)) {
28013 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28014 }
28015 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28016 }
72ef6efb 28017 {
5c8c7dd3 28018 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28019 if (PyErr_Occurred()) SWIG_fail;
28020 }
5c8c7dd3 28021 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28022 return resultobj;
28023fail:
28024 return NULL;
28025}
28026
28027
28028SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28029 PyObject *resultobj = 0;
28030 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28031 void *argp1 = 0 ;
28032 int res1 = 0 ;
28033 PyObject *swig_obj[1] ;
28034
28035 if (!args) SWIG_fail;
28036 swig_obj[0] = args;
28037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28038 if (!SWIG_IsOK(res1)) {
28039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28040 }
28041 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28042 {
72ef6efb 28043 (arg1)->PushState();
72ef6efb
RD
28044 if (PyErr_Occurred()) SWIG_fail;
28045 }
28046 resultobj = SWIG_Py_Void();
28047 return resultobj;
28048fail:
28049 return NULL;
28050}
28051
28052
28053SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28054 PyObject *resultobj = 0;
28055 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28056 void *argp1 = 0 ;
28057 int res1 = 0 ;
28058 PyObject *swig_obj[1] ;
28059
28060 if (!args) SWIG_fail;
28061 swig_obj[0] = args;
28062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28063 if (!SWIG_IsOK(res1)) {
28064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28065 }
28066 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28067 {
72ef6efb 28068 (arg1)->PopState();
72ef6efb
RD
28069 if (PyErr_Occurred()) SWIG_fail;
28070 }
28071 resultobj = SWIG_Py_Void();
28072 return resultobj;
28073fail:
28074 return NULL;
28075}
28076
28077
0a27f394 28078SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28079 PyObject *resultobj = 0;
28080 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28081 wxRegion *arg2 = 0 ;
28082 void *argp1 = 0 ;
28083 int res1 = 0 ;
28084 void *argp2 = 0 ;
28085 int res2 = 0 ;
28086 PyObject * obj0 = 0 ;
28087 PyObject * obj1 = 0 ;
28088 char * kwnames[] = {
28089 (char *) "self",(char *) "region", NULL
28090 };
28091
0a27f394 28092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28094 if (!SWIG_IsOK(res1)) {
0a27f394 28095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28096 }
28097 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28098 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28099 if (!SWIG_IsOK(res2)) {
0a27f394 28100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28101 }
28102 if (!argp2) {
0a27f394 28103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28104 }
28105 arg2 = reinterpret_cast< wxRegion * >(argp2);
28106 {
72ef6efb 28107 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28108 if (PyErr_Occurred()) SWIG_fail;
28109 }
28110 resultobj = SWIG_Py_Void();
28111 return resultobj;
28112fail:
28113 return NULL;
28114}
28115
28116
0a27f394
RD
28117SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28118 PyObject *resultobj = 0;
28119 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28120 wxDouble arg2 ;
28121 wxDouble arg3 ;
28122 wxDouble arg4 ;
28123 wxDouble arg5 ;
28124 void *argp1 = 0 ;
28125 int res1 = 0 ;
28126 double val2 ;
28127 int ecode2 = 0 ;
28128 double val3 ;
28129 int ecode3 = 0 ;
28130 double val4 ;
28131 int ecode4 = 0 ;
28132 double val5 ;
28133 int ecode5 = 0 ;
28134 PyObject * obj0 = 0 ;
28135 PyObject * obj1 = 0 ;
28136 PyObject * obj2 = 0 ;
28137 PyObject * obj3 = 0 ;
28138 PyObject * obj4 = 0 ;
28139 char * kwnames[] = {
28140 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28141 };
28142
28143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28145 if (!SWIG_IsOK(res1)) {
28146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28147 }
28148 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28149 ecode2 = SWIG_AsVal_double(obj1, &val2);
28150 if (!SWIG_IsOK(ecode2)) {
28151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28152 }
28153 arg2 = static_cast< wxDouble >(val2);
28154 ecode3 = SWIG_AsVal_double(obj2, &val3);
28155 if (!SWIG_IsOK(ecode3)) {
28156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28157 }
28158 arg3 = static_cast< wxDouble >(val3);
28159 ecode4 = SWIG_AsVal_double(obj3, &val4);
28160 if (!SWIG_IsOK(ecode4)) {
28161 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28162 }
28163 arg4 = static_cast< wxDouble >(val4);
28164 ecode5 = SWIG_AsVal_double(obj4, &val5);
28165 if (!SWIG_IsOK(ecode5)) {
28166 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28167 }
28168 arg5 = static_cast< wxDouble >(val5);
28169 {
28170 (arg1)->Clip(arg2,arg3,arg4,arg5);
28171 if (PyErr_Occurred()) SWIG_fail;
28172 }
28173 resultobj = SWIG_Py_Void();
28174 return resultobj;
28175fail:
28176 return NULL;
28177}
28178
28179
28180SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28181 PyObject *resultobj = 0;
28182 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28183 void *argp1 = 0 ;
28184 int res1 = 0 ;
28185 PyObject *swig_obj[1] ;
28186
28187 if (!args) SWIG_fail;
28188 swig_obj[0] = args;
28189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28190 if (!SWIG_IsOK(res1)) {
28191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28192 }
28193 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28194 {
28195 (arg1)->ResetClip();
28196 if (PyErr_Occurred()) SWIG_fail;
28197 }
28198 resultobj = SWIG_Py_Void();
28199 return resultobj;
28200fail:
28201 return NULL;
28202}
28203
28204
28205SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28206 PyObject *resultobj = 0;
28207 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28208 void *result = 0 ;
28209 void *argp1 = 0 ;
28210 int res1 = 0 ;
28211 PyObject *swig_obj[1] ;
28212
28213 if (!args) SWIG_fail;
28214 swig_obj[0] = args;
28215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28216 if (!SWIG_IsOK(res1)) {
28217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28218 }
28219 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28220 {
28221 result = (void *)(arg1)->GetNativeContext();
28222 if (PyErr_Occurred()) SWIG_fail;
28223 }
28224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28225 return resultobj;
28226fail:
28227 return NULL;
28228}
28229
28230
c8aaaf9e
RD
28231SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28232 PyObject *resultobj = 0;
28233 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28234 int result;
28235 void *argp1 = 0 ;
28236 int res1 = 0 ;
28237 PyObject *swig_obj[1] ;
28238
28239 if (!args) SWIG_fail;
28240 swig_obj[0] = args;
28241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28242 if (!SWIG_IsOK(res1)) {
28243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28244 }
28245 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28246 {
28247 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28248 if (PyErr_Occurred()) SWIG_fail;
28249 }
28250 resultobj = SWIG_From_int(static_cast< int >(result));
28251 return resultobj;
28252fail:
28253 return NULL;
28254}
28255
28256
28257SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28258 PyObject *resultobj = 0;
28259 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28260 int arg2 ;
28261 bool result;
28262 void *argp1 = 0 ;
28263 int res1 = 0 ;
28264 int val2 ;
28265 int ecode2 = 0 ;
28266 PyObject * obj0 = 0 ;
28267 PyObject * obj1 = 0 ;
28268 char * kwnames[] = {
28269 (char *) "self",(char *) "function", NULL
28270 };
28271
28272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28274 if (!SWIG_IsOK(res1)) {
28275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28276 }
28277 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28278 ecode2 = SWIG_AsVal_int(obj1, &val2);
28279 if (!SWIG_IsOK(ecode2)) {
28280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28281 }
28282 arg2 = static_cast< int >(val2);
28283 {
28284 result = (bool)(arg1)->SetLogicalFunction(arg2);
28285 if (PyErr_Occurred()) SWIG_fail;
28286 }
28287 {
28288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28289 }
28290 return resultobj;
28291fail:
28292 return NULL;
28293}
28294
28295
72ef6efb
RD
28296SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28297 PyObject *resultobj = 0;
28298 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28299 wxDouble arg2 ;
28300 wxDouble arg3 ;
28301 void *argp1 = 0 ;
28302 int res1 = 0 ;
28303 double val2 ;
28304 int ecode2 = 0 ;
28305 double val3 ;
28306 int ecode3 = 0 ;
28307 PyObject * obj0 = 0 ;
28308 PyObject * obj1 = 0 ;
28309 PyObject * obj2 = 0 ;
28310 char * kwnames[] = {
28311 (char *) "self",(char *) "dx",(char *) "dy", NULL
28312 };
28313
28314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28316 if (!SWIG_IsOK(res1)) {
28317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28318 }
28319 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28320 ecode2 = SWIG_AsVal_double(obj1, &val2);
28321 if (!SWIG_IsOK(ecode2)) {
28322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28323 }
28324 arg2 = static_cast< wxDouble >(val2);
28325 ecode3 = SWIG_AsVal_double(obj2, &val3);
28326 if (!SWIG_IsOK(ecode3)) {
28327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28328 }
28329 arg3 = static_cast< wxDouble >(val3);
28330 {
72ef6efb 28331 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28332 if (PyErr_Occurred()) SWIG_fail;
28333 }
28334 resultobj = SWIG_Py_Void();
28335 return resultobj;
28336fail:
28337 return NULL;
28338}
28339
28340
28341SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28342 PyObject *resultobj = 0;
28343 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28344 wxDouble arg2 ;
28345 wxDouble arg3 ;
28346 void *argp1 = 0 ;
28347 int res1 = 0 ;
28348 double val2 ;
28349 int ecode2 = 0 ;
28350 double val3 ;
28351 int ecode3 = 0 ;
28352 PyObject * obj0 = 0 ;
28353 PyObject * obj1 = 0 ;
28354 PyObject * obj2 = 0 ;
28355 char * kwnames[] = {
28356 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28357 };
28358
28359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28361 if (!SWIG_IsOK(res1)) {
28362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28363 }
28364 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28365 ecode2 = SWIG_AsVal_double(obj1, &val2);
28366 if (!SWIG_IsOK(ecode2)) {
28367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28368 }
28369 arg2 = static_cast< wxDouble >(val2);
28370 ecode3 = SWIG_AsVal_double(obj2, &val3);
28371 if (!SWIG_IsOK(ecode3)) {
28372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28373 }
28374 arg3 = static_cast< wxDouble >(val3);
28375 {
72ef6efb 28376 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28377 if (PyErr_Occurred()) SWIG_fail;
28378 }
28379 resultobj = SWIG_Py_Void();
28380 return resultobj;
28381fail:
28382 return NULL;
28383}
28384
28385
28386SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28387 PyObject *resultobj = 0;
28388 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28389 wxDouble arg2 ;
28390 void *argp1 = 0 ;
28391 int res1 = 0 ;
28392 double val2 ;
28393 int ecode2 = 0 ;
28394 PyObject * obj0 = 0 ;
28395 PyObject * obj1 = 0 ;
28396 char * kwnames[] = {
28397 (char *) "self",(char *) "angle", NULL
28398 };
28399
28400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28402 if (!SWIG_IsOK(res1)) {
28403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28404 }
28405 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28406 ecode2 = SWIG_AsVal_double(obj1, &val2);
28407 if (!SWIG_IsOK(ecode2)) {
28408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28409 }
28410 arg2 = static_cast< wxDouble >(val2);
28411 {
72ef6efb 28412 (arg1)->Rotate(arg2);
72ef6efb
RD
28413 if (PyErr_Occurred()) SWIG_fail;
28414 }
28415 resultobj = SWIG_Py_Void();
28416 return resultobj;
28417fail:
28418 return NULL;
28419}
28420
28421
5c8c7dd3
RD
28422SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28423 PyObject *resultobj = 0;
28424 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28425 wxGraphicsMatrix *arg2 = 0 ;
28426 void *argp1 = 0 ;
28427 int res1 = 0 ;
28428 void *argp2 = 0 ;
28429 int res2 = 0 ;
28430 PyObject * obj0 = 0 ;
28431 PyObject * obj1 = 0 ;
28432 char * kwnames[] = {
28433 (char *) "self",(char *) "matrix", NULL
28434 };
28435
28436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28438 if (!SWIG_IsOK(res1)) {
28439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28440 }
28441 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28443 if (!SWIG_IsOK(res2)) {
28444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28445 }
28446 if (!argp2) {
28447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28448 }
28449 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28450 {
28451 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28452 if (PyErr_Occurred()) SWIG_fail;
28453 }
28454 resultobj = SWIG_Py_Void();
28455 return resultobj;
28456fail:
28457 return NULL;
28458}
28459
28460
28461SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28462 PyObject *resultobj = 0;
28463 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28464 wxGraphicsMatrix *arg2 = 0 ;
28465 void *argp1 = 0 ;
28466 int res1 = 0 ;
28467 void *argp2 = 0 ;
28468 int res2 = 0 ;
28469 PyObject * obj0 = 0 ;
28470 PyObject * obj1 = 0 ;
28471 char * kwnames[] = {
28472 (char *) "self",(char *) "matrix", NULL
28473 };
28474
28475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28477 if (!SWIG_IsOK(res1)) {
28478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28479 }
28480 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28482 if (!SWIG_IsOK(res2)) {
28483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28484 }
28485 if (!argp2) {
28486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28487 }
28488 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28489 {
28490 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28491 if (PyErr_Occurred()) SWIG_fail;
28492 }
28493 resultobj = SWIG_Py_Void();
28494 return resultobj;
28495fail:
28496 return NULL;
28497}
28498
28499
28500SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28501 PyObject *resultobj = 0;
28502 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28503 wxGraphicsMatrix result;
28504 void *argp1 = 0 ;
28505 int res1 = 0 ;
28506 PyObject *swig_obj[1] ;
28507
28508 if (!args) SWIG_fail;
28509 swig_obj[0] = args;
28510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28511 if (!SWIG_IsOK(res1)) {
28512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28513 }
28514 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28515 {
28516 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28517 if (PyErr_Occurred()) SWIG_fail;
28518 }
28519 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28520 return resultobj;
28521fail:
28522 return NULL;
28523}
28524
28525
70d7cb34
RD
28526SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28527 PyObject *resultobj = 0;
28528 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28529 wxGraphicsPen *arg2 = 0 ;
28530 void *argp1 = 0 ;
28531 int res1 = 0 ;
28532 void *argp2 = 0 ;
28533 int res2 = 0 ;
28534
28535 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28537 if (!SWIG_IsOK(res1)) {
28538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28539 }
28540 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28541 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28542 if (!SWIG_IsOK(res2)) {
28543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28544 }
28545 if (!argp2) {
28546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28547 }
28548 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28549 {
28550 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28551 if (PyErr_Occurred()) SWIG_fail;
28552 }
28553 resultobj = SWIG_Py_Void();
28554 return resultobj;
28555fail:
28556 return NULL;
28557}
28558
28559
28560SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28561 PyObject *resultobj = 0;
28562 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28563 wxPen *arg2 = 0 ;
28564 void *argp1 = 0 ;
28565 int res1 = 0 ;
28566 void *argp2 = 0 ;
28567 int res2 = 0 ;
72ef6efb 28568
70d7cb34
RD
28569 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28571 if (!SWIG_IsOK(res1)) {
28572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28573 }
28574 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28575 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28576 if (!SWIG_IsOK(res2)) {
28577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28578 }
28579 if (!argp2) {
28580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28581 }
28582 arg2 = reinterpret_cast< wxPen * >(argp2);
28583 {
72ef6efb 28584 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28585 if (PyErr_Occurred()) SWIG_fail;
28586 }
28587 resultobj = SWIG_Py_Void();
28588 return resultobj;
28589fail:
28590 return NULL;
28591}
28592
28593
70d7cb34
RD
28594SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28595 int argc;
28596 PyObject *argv[3];
28597
28598 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28599 --argc;
28600 if (argc == 2) {
28601 int _v = 0;
28602 {
28603 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28604 _v = SWIG_CheckState(res);
28605 }
28606 if (!_v) goto check_1;
28607 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28608 }
28609check_1:
28610
28611 if (argc == 2) {
28612 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28613 }
28614
28615fail:
28616 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28617 return NULL;
28618}
28619
28620
28621SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28622 PyObject *resultobj = 0;
28623 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28624 wxGraphicsBrush *arg2 = 0 ;
28625 void *argp1 = 0 ;
28626 int res1 = 0 ;
28627 void *argp2 = 0 ;
28628 int res2 = 0 ;
28629
28630 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28632 if (!SWIG_IsOK(res1)) {
28633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28634 }
28635 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28636 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28637 if (!SWIG_IsOK(res2)) {
28638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28639 }
28640 if (!argp2) {
28641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28642 }
28643 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28644 {
28645 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28646 if (PyErr_Occurred()) SWIG_fail;
28647 }
28648 resultobj = SWIG_Py_Void();
28649 return resultobj;
28650fail:
28651 return NULL;
28652}
28653
28654
28655SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28656 PyObject *resultobj = 0;
28657 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28658 wxBrush *arg2 = 0 ;
28659 void *argp1 = 0 ;
28660 int res1 = 0 ;
28661 void *argp2 = 0 ;
28662 int res2 = 0 ;
72ef6efb 28663
70d7cb34
RD
28664 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28666 if (!SWIG_IsOK(res1)) {
28667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28668 }
28669 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28670 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28671 if (!SWIG_IsOK(res2)) {
28672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28673 }
28674 if (!argp2) {
28675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28676 }
28677 arg2 = reinterpret_cast< wxBrush * >(argp2);
28678 {
72ef6efb 28679 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28680 if (PyErr_Occurred()) SWIG_fail;
28681 }
28682 resultobj = SWIG_Py_Void();
28683 return resultobj;
28684fail:
28685 return NULL;
28686}
28687
28688
70d7cb34
RD
28689SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28690 int argc;
28691 PyObject *argv[3];
72ef6efb 28692
70d7cb34
RD
28693 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28694 --argc;
28695 if (argc == 2) {
28696 int _v = 0;
28697 {
28698 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28699 _v = SWIG_CheckState(res);
28700 }
28701 if (!_v) goto check_1;
28702 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28703 }
70d7cb34
RD
28704check_1:
28705
28706 if (argc == 2) {
28707 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28708 }
70d7cb34 28709
72ef6efb 28710fail:
70d7cb34 28711 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28712 return NULL;
28713}
28714
28715
70d7cb34 28716SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28717 PyObject *resultobj = 0;
28718 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28719 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28720 void *argp1 = 0 ;
28721 int res1 = 0 ;
70d7cb34
RD
28722 void *argp2 = 0 ;
28723 int res2 = 0 ;
72ef6efb 28724
70d7cb34
RD
28725 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28727 if (!SWIG_IsOK(res1)) {
70d7cb34 28728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28729 }
28730 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28731 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28732 if (!SWIG_IsOK(res2)) {
28733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28734 }
70d7cb34
RD
28735 if (!argp2) {
28736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28737 }
70d7cb34 28738 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28739 {
70d7cb34 28740 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28741 if (PyErr_Occurred()) SWIG_fail;
28742 }
28743 resultobj = SWIG_Py_Void();
28744 return resultobj;
28745fail:
28746 return NULL;
28747}
28748
28749
70d7cb34 28750SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28751 PyObject *resultobj = 0;
28752 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28753 wxFont *arg2 = 0 ;
70d7cb34
RD
28754 wxColour const &arg3_defvalue = *wxBLACK ;
28755 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28756 void *argp1 = 0 ;
28757 int res1 = 0 ;
28758 void *argp2 = 0 ;
28759 int res2 = 0 ;
70d7cb34 28760 wxColour temp3 ;
72ef6efb 28761
70d7cb34
RD
28762 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28764 if (!SWIG_IsOK(res1)) {
28765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28766 }
28767 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28768 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28769 if (!SWIG_IsOK(res2)) {
28770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28771 }
28772 if (!argp2) {
28773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28774 }
28775 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28776 if (swig_obj[2]) {
28777 {
28778 arg3 = &temp3;
28779 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28780 }
28781 }
72ef6efb 28782 {
70d7cb34 28783 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28784 if (PyErr_Occurred()) SWIG_fail;
28785 }
28786 resultobj = SWIG_Py_Void();
28787 return resultobj;
28788fail:
28789 return NULL;
28790}
28791
28792
70d7cb34
RD
28793SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28794 int argc;
28795 PyObject *argv[4];
72ef6efb 28796
70d7cb34
RD
28797 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28798 --argc;
28799 if (argc == 2) {
28800 int _v = 0;
28801 {
28802 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28803 _v = SWIG_CheckState(res);
28804 }
28805 if (!_v) goto check_1;
28806 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28807 }
70d7cb34
RD
28808check_1:
28809
28810 if ((argc >= 2) && (argc <= 3)) {
28811 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28812 }
70d7cb34 28813
72ef6efb 28814fail:
70d7cb34 28815 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28816 return NULL;
28817}
28818
28819
28820SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28821 PyObject *resultobj = 0;
28822 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28823 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28824 void *argp1 = 0 ;
28825 int res1 = 0 ;
28826 void *argp2 = 0 ;
28827 int res2 = 0 ;
28828 PyObject * obj0 = 0 ;
28829 PyObject * obj1 = 0 ;
28830 char * kwnames[] = {
28831 (char *) "self",(char *) "path", NULL
28832 };
28833
28834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28836 if (!SWIG_IsOK(res1)) {
28837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28838 }
28839 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28840 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28841 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28843 }
28844 if (!argp2) {
28845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28846 }
28847 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28848 {
5c8c7dd3 28849 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28850 if (PyErr_Occurred()) SWIG_fail;
28851 }
28852 resultobj = SWIG_Py_Void();
28853 return resultobj;
28854fail:
28855 return NULL;
28856}
28857
28858
28859SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28860 PyObject *resultobj = 0;
28861 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28862 wxGraphicsPath *arg2 = 0 ;
28863 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28864 void *argp1 = 0 ;
28865 int res1 = 0 ;
28866 void *argp2 = 0 ;
28867 int res2 = 0 ;
28868 int val3 ;
28869 int ecode3 = 0 ;
28870 PyObject * obj0 = 0 ;
28871 PyObject * obj1 = 0 ;
28872 PyObject * obj2 = 0 ;
28873 char * kwnames[] = {
28874 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28875 };
28876
28877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28879 if (!SWIG_IsOK(res1)) {
28880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28881 }
28882 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28884 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28886 }
28887 if (!argp2) {
28888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28889 }
28890 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28891 if (obj2) {
28892 ecode3 = SWIG_AsVal_int(obj2, &val3);
28893 if (!SWIG_IsOK(ecode3)) {
28894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28895 }
28896 arg3 = static_cast< int >(val3);
28897 }
28898 {
5c8c7dd3 28899 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28900 if (PyErr_Occurred()) SWIG_fail;
28901 }
28902 resultobj = SWIG_Py_Void();
28903 return resultobj;
28904fail:
28905 return NULL;
28906}
28907
28908
28909SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28910 PyObject *resultobj = 0;
28911 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28912 wxGraphicsPath *arg2 = 0 ;
28913 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28914 void *argp1 = 0 ;
28915 int res1 = 0 ;
28916 void *argp2 = 0 ;
28917 int res2 = 0 ;
28918 int val3 ;
28919 int ecode3 = 0 ;
28920 PyObject * obj0 = 0 ;
28921 PyObject * obj1 = 0 ;
28922 PyObject * obj2 = 0 ;
28923 char * kwnames[] = {
28924 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28925 };
28926
28927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28929 if (!SWIG_IsOK(res1)) {
28930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28931 }
28932 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28934 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28936 }
28937 if (!argp2) {
28938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28939 }
28940 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28941 if (obj2) {
28942 ecode3 = SWIG_AsVal_int(obj2, &val3);
28943 if (!SWIG_IsOK(ecode3)) {
28944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28945 }
28946 arg3 = static_cast< int >(val3);
28947 }
28948 {
5c8c7dd3 28949 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28950 if (PyErr_Occurred()) SWIG_fail;
28951 }
28952 resultobj = SWIG_Py_Void();
28953 return resultobj;
28954fail:
28955 return NULL;
28956}
28957
28958
b39fe951 28959SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28960 PyObject *resultobj = 0;
28961 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28962 wxString *arg2 = 0 ;
28963 wxDouble arg3 ;
28964 wxDouble arg4 ;
f89238b9
RD
28965 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
28966 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
28967 void *argp1 = 0 ;
28968 int res1 = 0 ;
28969 bool temp2 = false ;
28970 double val3 ;
28971 int ecode3 = 0 ;
28972 double val4 ;
28973 int ecode4 = 0 ;
f89238b9
RD
28974 void *argp5 = 0 ;
28975 int res5 = 0 ;
b39fe951
RD
28976 PyObject * obj0 = 0 ;
28977 PyObject * obj1 = 0 ;
28978 PyObject * obj2 = 0 ;
28979 PyObject * obj3 = 0 ;
f89238b9 28980 PyObject * obj4 = 0 ;
b39fe951 28981 char * kwnames[] = {
f89238b9 28982 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 28983 };
72ef6efb 28984
f89238b9 28985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 28986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28987 if (!SWIG_IsOK(res1)) {
28988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28989 }
28990 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28991 {
b39fe951 28992 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28993 if (arg2 == NULL) SWIG_fail;
28994 temp2 = true;
28995 }
b39fe951 28996 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28997 if (!SWIG_IsOK(ecode3)) {
28998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28999 }
29000 arg3 = static_cast< wxDouble >(val3);
b39fe951 29001 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29002 if (!SWIG_IsOK(ecode4)) {
29003 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29004 }
29005 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
29006 if (obj4) {
29007 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29008 if (!SWIG_IsOK(res5)) {
29009 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29010 }
29011 if (!argp5) {
29012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29013 }
29014 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29015 }
72ef6efb 29016 {
f89238b9 29017 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
29018 if (PyErr_Occurred()) SWIG_fail;
29019 }
29020 resultobj = SWIG_Py_Void();
29021 {
29022 if (temp2)
29023 delete arg2;
29024 }
29025 return resultobj;
29026fail:
29027 {
29028 if (temp2)
29029 delete arg2;
29030 }
29031 return NULL;
29032}
29033
29034
b39fe951 29035SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29036 PyObject *resultobj = 0;
29037 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29038 wxString *arg2 = 0 ;
29039 wxDouble arg3 ;
29040 wxDouble arg4 ;
29041 wxDouble arg5 ;
f89238b9
RD
29042 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29043 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
29044 void *argp1 = 0 ;
29045 int res1 = 0 ;
29046 bool temp2 = false ;
29047 double val3 ;
29048 int ecode3 = 0 ;
29049 double val4 ;
29050 int ecode4 = 0 ;
29051 double val5 ;
29052 int ecode5 = 0 ;
f89238b9
RD
29053 void *argp6 = 0 ;
29054 int res6 = 0 ;
b39fe951
RD
29055 PyObject * obj0 = 0 ;
29056 PyObject * obj1 = 0 ;
29057 PyObject * obj2 = 0 ;
29058 PyObject * obj3 = 0 ;
29059 PyObject * obj4 = 0 ;
f89238b9 29060 PyObject * obj5 = 0 ;
b39fe951 29061 char * kwnames[] = {
f89238b9 29062 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 29063 };
72ef6efb 29064
f89238b9 29065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 29066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29067 if (!SWIG_IsOK(res1)) {
b39fe951 29068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29069 }
29070 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29071 {
b39fe951 29072 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29073 if (arg2 == NULL) SWIG_fail;
29074 temp2 = true;
29075 }
b39fe951 29076 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29077 if (!SWIG_IsOK(ecode3)) {
b39fe951 29078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29079 }
29080 arg3 = static_cast< wxDouble >(val3);
b39fe951 29081 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29082 if (!SWIG_IsOK(ecode4)) {
b39fe951 29083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29084 }
29085 arg4 = static_cast< wxDouble >(val4);
b39fe951 29086 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29087 if (!SWIG_IsOK(ecode5)) {
b39fe951 29088 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29089 }
29090 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
29091 if (obj5) {
29092 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29093 if (!SWIG_IsOK(res6)) {
29094 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29095 }
29096 if (!argp6) {
29097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29098 }
29099 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29100 }
72ef6efb 29101 {
f89238b9 29102 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
29103 if (PyErr_Occurred()) SWIG_fail;
29104 }
29105 resultobj = SWIG_Py_Void();
29106 {
29107 if (temp2)
29108 delete arg2;
29109 }
29110 return resultobj;
29111fail:
29112 {
29113 if (temp2)
29114 delete arg2;
29115 }
29116 return NULL;
29117}
29118
29119
be68621e 29120SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29121 PyObject *resultobj = 0;
29122 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29123 wxString *arg2 = 0 ;
29124 wxDouble *arg3 = (wxDouble *) 0 ;
29125 wxDouble *arg4 = (wxDouble *) 0 ;
29126 wxDouble *arg5 = (wxDouble *) 0 ;
29127 wxDouble *arg6 = (wxDouble *) 0 ;
29128 void *argp1 = 0 ;
29129 int res1 = 0 ;
29130 bool temp2 = false ;
29131 wxDouble temp3 ;
29132 int res3 = SWIG_TMPOBJ ;
29133 wxDouble temp4 ;
29134 int res4 = SWIG_TMPOBJ ;
29135 wxDouble temp5 ;
29136 int res5 = SWIG_TMPOBJ ;
29137 wxDouble temp6 ;
29138 int res6 = SWIG_TMPOBJ ;
29139 PyObject * obj0 = 0 ;
29140 PyObject * obj1 = 0 ;
29141 char * kwnames[] = {
29142 (char *) "self",(char *) "text", NULL
29143 };
29144
29145 arg3 = &temp3;
29146 arg4 = &temp4;
29147 arg5 = &temp5;
29148 arg6 = &temp6;
be68621e 29149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29151 if (!SWIG_IsOK(res1)) {
be68621e 29152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29153 }
29154 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29155 {
29156 arg2 = wxString_in_helper(obj1);
29157 if (arg2 == NULL) SWIG_fail;
29158 temp2 = true;
29159 }
29160 {
72ef6efb 29161 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29162 if (PyErr_Occurred()) SWIG_fail;
29163 }
29164 resultobj = SWIG_Py_Void();
29165 if (SWIG_IsTmpObj(res3)) {
29166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29167 } else {
29168 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29170 }
29171 if (SWIG_IsTmpObj(res4)) {
29172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29173 } else {
29174 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29176 }
29177 if (SWIG_IsTmpObj(res5)) {
29178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29179 } else {
29180 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29182 }
29183 if (SWIG_IsTmpObj(res6)) {
29184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29185 } else {
29186 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29188 }
29189 {
29190 if (temp2)
29191 delete arg2;
29192 }
29193 return resultobj;
29194fail:
29195 {
29196 if (temp2)
29197 delete arg2;
29198 }
29199 return NULL;
29200}
29201
29202
be68621e
RD
29203SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29204 PyObject *resultobj = 0;
29205 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29206 wxString *arg2 = 0 ;
29207 PyObject *result = 0 ;
29208 void *argp1 = 0 ;
29209 int res1 = 0 ;
29210 bool temp2 = false ;
29211 PyObject * obj0 = 0 ;
29212 PyObject * obj1 = 0 ;
29213 char * kwnames[] = {
29214 (char *) "self",(char *) "text", NULL
29215 };
29216
29217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29219 if (!SWIG_IsOK(res1)) {
29220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29221 }
29222 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29223 {
29224 arg2 = wxString_in_helper(obj1);
29225 if (arg2 == NULL) SWIG_fail;
29226 temp2 = true;
29227 }
29228 {
29229 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29230 if (PyErr_Occurred()) SWIG_fail;
29231 }
29232 resultobj = result;
29233 {
29234 if (temp2)
29235 delete arg2;
29236 }
29237 return resultobj;
29238fail:
29239 {
29240 if (temp2)
29241 delete arg2;
29242 }
29243 return NULL;
29244}
29245
29246
72ef6efb
RD
29247SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29248 PyObject *resultobj = 0;
29249 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29250 wxString *arg2 = 0 ;
b39fe951 29251 wxArrayDouble result;
72ef6efb
RD
29252 void *argp1 = 0 ;
29253 int res1 = 0 ;
29254 bool temp2 = false ;
72ef6efb
RD
29255 PyObject * obj0 = 0 ;
29256 PyObject * obj1 = 0 ;
72ef6efb 29257 char * kwnames[] = {
b39fe951 29258 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29259 };
29260
b39fe951 29261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29263 if (!SWIG_IsOK(res1)) {
b39fe951 29264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29265 }
29266 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29267 {
29268 arg2 = wxString_in_helper(obj1);
29269 if (arg2 == NULL) SWIG_fail;
29270 temp2 = true;
29271 }
72ef6efb 29272 {
b39fe951 29273 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29274 if (PyErr_Occurred()) SWIG_fail;
29275 }
b39fe951
RD
29276 {
29277 resultobj = wxArrayDouble2PyList_helper(result);
29278 }
72ef6efb
RD
29279 {
29280 if (temp2)
29281 delete arg2;
29282 }
29283 return resultobj;
29284fail:
29285 {
29286 if (temp2)
29287 delete arg2;
29288 }
29289 return NULL;
29290}
29291
29292
29293SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29294 PyObject *resultobj = 0;
29295 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29296 wxBitmap *arg2 = 0 ;
29297 wxDouble arg3 ;
29298 wxDouble arg4 ;
29299 wxDouble arg5 ;
29300 wxDouble arg6 ;
29301 void *argp1 = 0 ;
29302 int res1 = 0 ;
29303 void *argp2 = 0 ;
29304 int res2 = 0 ;
29305 double val3 ;
29306 int ecode3 = 0 ;
29307 double val4 ;
29308 int ecode4 = 0 ;
29309 double val5 ;
29310 int ecode5 = 0 ;
29311 double val6 ;
29312 int ecode6 = 0 ;
29313 PyObject * obj0 = 0 ;
29314 PyObject * obj1 = 0 ;
29315 PyObject * obj2 = 0 ;
29316 PyObject * obj3 = 0 ;
29317 PyObject * obj4 = 0 ;
29318 PyObject * obj5 = 0 ;
29319 char * kwnames[] = {
29320 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29321 };
29322
29323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29325 if (!SWIG_IsOK(res1)) {
29326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29327 }
29328 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29329 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29330 if (!SWIG_IsOK(res2)) {
29331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29332 }
29333 if (!argp2) {
29334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29335 }
29336 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29337 ecode3 = SWIG_AsVal_double(obj2, &val3);
29338 if (!SWIG_IsOK(ecode3)) {
29339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29340 }
29341 arg3 = static_cast< wxDouble >(val3);
29342 ecode4 = SWIG_AsVal_double(obj3, &val4);
29343 if (!SWIG_IsOK(ecode4)) {
29344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29345 }
29346 arg4 = static_cast< wxDouble >(val4);
29347 ecode5 = SWIG_AsVal_double(obj4, &val5);
29348 if (!SWIG_IsOK(ecode5)) {
29349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29350 }
29351 arg5 = static_cast< wxDouble >(val5);
29352 ecode6 = SWIG_AsVal_double(obj5, &val6);
29353 if (!SWIG_IsOK(ecode6)) {
29354 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29355 }
29356 arg6 = static_cast< wxDouble >(val6);
29357 {
72ef6efb 29358 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29359 if (PyErr_Occurred()) SWIG_fail;
29360 }
29361 resultobj = SWIG_Py_Void();
29362 return resultobj;
29363fail:
29364 return NULL;
29365}
29366
29367
29368SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29369 PyObject *resultobj = 0;
29370 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29371 wxIcon *arg2 = 0 ;
29372 wxDouble arg3 ;
29373 wxDouble arg4 ;
29374 wxDouble arg5 ;
29375 wxDouble arg6 ;
29376 void *argp1 = 0 ;
29377 int res1 = 0 ;
29378 void *argp2 = 0 ;
29379 int res2 = 0 ;
29380 double val3 ;
29381 int ecode3 = 0 ;
29382 double val4 ;
29383 int ecode4 = 0 ;
29384 double val5 ;
29385 int ecode5 = 0 ;
70d7cb34
RD
29386 double val6 ;
29387 int ecode6 = 0 ;
29388 PyObject * obj0 = 0 ;
29389 PyObject * obj1 = 0 ;
29390 PyObject * obj2 = 0 ;
29391 PyObject * obj3 = 0 ;
29392 PyObject * obj4 = 0 ;
29393 PyObject * obj5 = 0 ;
29394 char * kwnames[] = {
29395 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29396 };
29397
29398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29400 if (!SWIG_IsOK(res1)) {
29401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29402 }
29403 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29405 if (!SWIG_IsOK(res2)) {
29406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29407 }
29408 if (!argp2) {
29409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29410 }
29411 arg2 = reinterpret_cast< wxIcon * >(argp2);
29412 ecode3 = SWIG_AsVal_double(obj2, &val3);
29413 if (!SWIG_IsOK(ecode3)) {
29414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29415 }
29416 arg3 = static_cast< wxDouble >(val3);
29417 ecode4 = SWIG_AsVal_double(obj3, &val4);
29418 if (!SWIG_IsOK(ecode4)) {
29419 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29420 }
29421 arg4 = static_cast< wxDouble >(val4);
29422 ecode5 = SWIG_AsVal_double(obj4, &val5);
29423 if (!SWIG_IsOK(ecode5)) {
29424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29425 }
29426 arg5 = static_cast< wxDouble >(val5);
29427 ecode6 = SWIG_AsVal_double(obj5, &val6);
29428 if (!SWIG_IsOK(ecode6)) {
29429 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29430 }
29431 arg6 = static_cast< wxDouble >(val6);
29432 {
29433 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29434 if (PyErr_Occurred()) SWIG_fail;
29435 }
29436 resultobj = SWIG_Py_Void();
29437 return resultobj;
29438fail:
29439 return NULL;
29440}
29441
29442
29443SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29444 PyObject *resultobj = 0;
29445 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29446 wxDouble arg2 ;
29447 wxDouble arg3 ;
29448 wxDouble arg4 ;
29449 wxDouble arg5 ;
29450 void *argp1 = 0 ;
29451 int res1 = 0 ;
29452 double val2 ;
29453 int ecode2 = 0 ;
29454 double val3 ;
29455 int ecode3 = 0 ;
29456 double val4 ;
29457 int ecode4 = 0 ;
29458 double val5 ;
29459 int ecode5 = 0 ;
29460 PyObject * obj0 = 0 ;
29461 PyObject * obj1 = 0 ;
29462 PyObject * obj2 = 0 ;
29463 PyObject * obj3 = 0 ;
29464 PyObject * obj4 = 0 ;
29465 char * kwnames[] = {
29466 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29467 };
29468
29469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29471 if (!SWIG_IsOK(res1)) {
29472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29473 }
29474 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29475 ecode2 = SWIG_AsVal_double(obj1, &val2);
29476 if (!SWIG_IsOK(ecode2)) {
29477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29478 }
29479 arg2 = static_cast< wxDouble >(val2);
29480 ecode3 = SWIG_AsVal_double(obj2, &val3);
29481 if (!SWIG_IsOK(ecode3)) {
29482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29483 }
29484 arg3 = static_cast< wxDouble >(val3);
29485 ecode4 = SWIG_AsVal_double(obj3, &val4);
29486 if (!SWIG_IsOK(ecode4)) {
29487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29488 }
29489 arg4 = static_cast< wxDouble >(val4);
29490 ecode5 = SWIG_AsVal_double(obj4, &val5);
29491 if (!SWIG_IsOK(ecode5)) {
29492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29493 }
29494 arg5 = static_cast< wxDouble >(val5);
29495 {
29496 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29497 if (PyErr_Occurred()) SWIG_fail;
29498 }
29499 resultobj = SWIG_Py_Void();
29500 return resultobj;
29501fail:
29502 return NULL;
29503}
29504
29505
29506SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29507 PyObject *resultobj = 0;
29508 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29509 size_t arg2 ;
29510 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29511 void *argp1 = 0 ;
29512 int res1 = 0 ;
29513 PyObject * obj0 = 0 ;
29514 PyObject * obj1 = 0 ;
29515 char * kwnames[] = {
29516 (char *) "self",(char *) "points", NULL
29517 };
29518
29519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29521 if (!SWIG_IsOK(res1)) {
29522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29523 }
29524 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29525 {
29526 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29527 if (arg3 == NULL) SWIG_fail;
29528 }
29529 {
29530 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29531 if (PyErr_Occurred()) SWIG_fail;
29532 }
29533 resultobj = SWIG_Py_Void();
29534 {
29535 if (arg3) delete [] arg3;
29536 }
29537 return resultobj;
29538fail:
29539 {
29540 if (arg3) delete [] arg3;
29541 }
29542 return NULL;
29543}
29544
29545
29546SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29547 PyObject *resultobj = 0;
29548 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29549 PyObject *arg2 = (PyObject *) 0 ;
29550 PyObject *arg3 = (PyObject *) 0 ;
29551 void *argp1 = 0 ;
29552 int res1 = 0 ;
29553 PyObject * obj0 = 0 ;
29554 PyObject * obj1 = 0 ;
29555 PyObject * obj2 = 0 ;
29556 char * kwnames[] = {
29557 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29558 };
29559
29560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29562 if (!SWIG_IsOK(res1)) {
29563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29564 }
29565 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29566 arg2 = obj1;
29567 arg3 = obj2;
29568 {
29569 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29570 if (PyErr_Occurred()) SWIG_fail;
29571 }
29572 resultobj = SWIG_Py_Void();
29573 return resultobj;
29574fail:
29575 return NULL;
29576}
29577
29578
29579SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29580 PyObject *resultobj = 0;
29581 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29582 size_t arg2 ;
29583 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
5c8c7dd3 29584 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29585 void *argp1 = 0 ;
29586 int res1 = 0 ;
29587 int val4 ;
29588 int ecode4 = 0 ;
29589 PyObject * obj0 = 0 ;
29590 PyObject * obj1 = 0 ;
29591 PyObject * obj2 = 0 ;
29592 char * kwnames[] = {
29593 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29594 };
29595
29596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29598 if (!SWIG_IsOK(res1)) {
29599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29600 }
29601 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29602 {
29603 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29604 if (arg3 == NULL) SWIG_fail;
29605 }
29606 if (obj2) {
29607 ecode4 = SWIG_AsVal_int(obj2, &val4);
29608 if (!SWIG_IsOK(ecode4)) {
29609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29610 }
29611 arg4 = static_cast< int >(val4);
29612 }
29613 {
29614 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29615 if (PyErr_Occurred()) SWIG_fail;
29616 }
29617 resultobj = SWIG_Py_Void();
29618 {
29619 if (arg3) delete [] arg3;
29620 }
29621 return resultobj;
29622fail:
29623 {
29624 if (arg3) delete [] arg3;
29625 }
29626 return NULL;
29627}
29628
29629
29630SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29631 PyObject *resultobj = 0;
29632 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29633 wxDouble arg2 ;
29634 wxDouble arg3 ;
29635 wxDouble arg4 ;
29636 wxDouble arg5 ;
29637 void *argp1 = 0 ;
29638 int res1 = 0 ;
29639 double val2 ;
29640 int ecode2 = 0 ;
29641 double val3 ;
29642 int ecode3 = 0 ;
29643 double val4 ;
29644 int ecode4 = 0 ;
29645 double val5 ;
29646 int ecode5 = 0 ;
29647 PyObject * obj0 = 0 ;
29648 PyObject * obj1 = 0 ;
29649 PyObject * obj2 = 0 ;
29650 PyObject * obj3 = 0 ;
29651 PyObject * obj4 = 0 ;
29652 char * kwnames[] = {
29653 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29654 };
29655
29656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29658 if (!SWIG_IsOK(res1)) {
29659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29660 }
29661 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29662 ecode2 = SWIG_AsVal_double(obj1, &val2);
29663 if (!SWIG_IsOK(ecode2)) {
29664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29665 }
29666 arg2 = static_cast< wxDouble >(val2);
29667 ecode3 = SWIG_AsVal_double(obj2, &val3);
29668 if (!SWIG_IsOK(ecode3)) {
29669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29670 }
29671 arg3 = static_cast< wxDouble >(val3);
29672 ecode4 = SWIG_AsVal_double(obj3, &val4);
29673 if (!SWIG_IsOK(ecode4)) {
29674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29675 }
29676 arg4 = static_cast< wxDouble >(val4);
29677 ecode5 = SWIG_AsVal_double(obj4, &val5);
29678 if (!SWIG_IsOK(ecode5)) {
29679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29680 }
29681 arg5 = static_cast< wxDouble >(val5);
29682 {
29683 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29684 if (PyErr_Occurred()) SWIG_fail;
29685 }
29686 resultobj = SWIG_Py_Void();
29687 return resultobj;
29688fail:
29689 return NULL;
29690}
29691
29692
29693SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29694 PyObject *resultobj = 0;
29695 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29696 wxDouble arg2 ;
29697 wxDouble arg3 ;
29698 wxDouble arg4 ;
29699 wxDouble arg5 ;
29700 void *argp1 = 0 ;
29701 int res1 = 0 ;
29702 double val2 ;
29703 int ecode2 = 0 ;
29704 double val3 ;
29705 int ecode3 = 0 ;
29706 double val4 ;
29707 int ecode4 = 0 ;
29708 double val5 ;
29709 int ecode5 = 0 ;
72ef6efb
RD
29710 PyObject * obj0 = 0 ;
29711 PyObject * obj1 = 0 ;
29712 PyObject * obj2 = 0 ;
29713 PyObject * obj3 = 0 ;
29714 PyObject * obj4 = 0 ;
72ef6efb 29715 char * kwnames[] = {
70d7cb34 29716 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29717 };
29718
70d7cb34 29719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29721 if (!SWIG_IsOK(res1)) {
70d7cb34 29722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29723 }
29724 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29725 ecode2 = SWIG_AsVal_double(obj1, &val2);
29726 if (!SWIG_IsOK(ecode2)) {
29727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29728 }
29729 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29730 ecode3 = SWIG_AsVal_double(obj2, &val3);
29731 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29733 }
29734 arg3 = static_cast< wxDouble >(val3);
29735 ecode4 = SWIG_AsVal_double(obj3, &val4);
29736 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29738 }
29739 arg4 = static_cast< wxDouble >(val4);
29740 ecode5 = SWIG_AsVal_double(obj4, &val5);
29741 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29742 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29743 }
29744 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29745 {
70d7cb34 29746 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29747 if (PyErr_Occurred()) SWIG_fail;
29748 }
29749 resultobj = SWIG_Py_Void();
29750 return resultobj;
29751fail:
29752 return NULL;
29753}
29754
29755
70d7cb34 29756SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29757 PyObject *resultobj = 0;
29758 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29759 wxDouble arg2 ;
29760 wxDouble arg3 ;
29761 wxDouble arg4 ;
29762 wxDouble arg5 ;
70d7cb34 29763 wxDouble arg6 ;
72ef6efb
RD
29764 void *argp1 = 0 ;
29765 int res1 = 0 ;
29766 double val2 ;
29767 int ecode2 = 0 ;
29768 double val3 ;
29769 int ecode3 = 0 ;
29770 double val4 ;
29771 int ecode4 = 0 ;
29772 double val5 ;
29773 int ecode5 = 0 ;
70d7cb34
RD
29774 double val6 ;
29775 int ecode6 = 0 ;
72ef6efb
RD
29776 PyObject * obj0 = 0 ;
29777 PyObject * obj1 = 0 ;
29778 PyObject * obj2 = 0 ;
29779 PyObject * obj3 = 0 ;
29780 PyObject * obj4 = 0 ;
70d7cb34 29781 PyObject * obj5 = 0 ;
72ef6efb 29782 char * kwnames[] = {
70d7cb34 29783 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29784 };
29785
70d7cb34 29786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29788 if (!SWIG_IsOK(res1)) {
70d7cb34 29789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29790 }
29791 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29792 ecode2 = SWIG_AsVal_double(obj1, &val2);
29793 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29795 }
29796 arg2 = static_cast< wxDouble >(val2);
29797 ecode3 = SWIG_AsVal_double(obj2, &val3);
29798 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29800 }
29801 arg3 = static_cast< wxDouble >(val3);
29802 ecode4 = SWIG_AsVal_double(obj3, &val4);
29803 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29805 }
29806 arg4 = static_cast< wxDouble >(val4);
29807 ecode5 = SWIG_AsVal_double(obj4, &val5);
29808 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29809 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29810 }
29811 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29812 ecode6 = SWIG_AsVal_double(obj5, &val6);
29813 if (!SWIG_IsOK(ecode6)) {
29814 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29815 }
29816 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29817 {
70d7cb34 29818 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29819 if (PyErr_Occurred()) SWIG_fail;
29820 }
29821 resultobj = SWIG_Py_Void();
29822 return resultobj;
29823fail:
29824 return NULL;
29825}
29826
29827
70d7cb34 29828SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29829 PyObject *resultobj = 0;
29830 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29831 bool result;
72ef6efb
RD
29832 void *argp1 = 0 ;
29833 int res1 = 0 ;
70d7cb34 29834 PyObject *swig_obj[1] ;
72ef6efb 29835
70d7cb34
RD
29836 if (!args) SWIG_fail;
29837 swig_obj[0] = args;
29838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29839 if (!SWIG_IsOK(res1)) {
70d7cb34 29840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29841 }
29842 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29843 {
70d7cb34
RD
29844 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29845 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29846 }
72ef6efb 29847 {
70d7cb34
RD
29848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29849 }
29850 return resultobj;
29851fail:
29852 return NULL;
29853}
29854
29855
29856SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29857 PyObject *obj;
29858 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29859 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29860 return SWIG_Py_Void();
29861}
29862
29863SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29864 PyObject *resultobj = 0;
29865 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29866 void *argp1 = 0 ;
29867 int res1 = 0 ;
29868 PyObject *swig_obj[1] ;
29869
29870 if (!args) SWIG_fail;
29871 swig_obj[0] = args;
29872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29873 if (!SWIG_IsOK(res1)) {
29874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29875 }
29876 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29877 {
29878 delete arg1;
29879
72ef6efb
RD
29880 if (PyErr_Occurred()) SWIG_fail;
29881 }
29882 resultobj = SWIG_Py_Void();
70d7cb34
RD
29883 return resultobj;
29884fail:
29885 return NULL;
29886}
29887
29888
29889SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29890 PyObject *resultobj = 0;
29891 wxGraphicsRenderer *result = 0 ;
29892
29893 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29894 {
70d7cb34
RD
29895 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29896 if (PyErr_Occurred()) SWIG_fail;
29897 }
29898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29899 return resultobj;
29900fail:
29901 return NULL;
29902}
29903
29904
29905SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29906 PyObject *resultobj = 0;
29907 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29908 wxWindowDC *arg2 = 0 ;
29909 wxGraphicsContext *result = 0 ;
29910 void *argp1 = 0 ;
29911 int res1 = 0 ;
29912 void *argp2 = 0 ;
29913 int res2 = 0 ;
29914
29915 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29917 if (!SWIG_IsOK(res1)) {
29918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29919 }
29920 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29921 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29922 if (!SWIG_IsOK(res2)) {
29923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29924 }
29925 if (!argp2) {
29926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29927 }
29928 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29929 {
29930 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29931 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29932 }
70d7cb34 29933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29934 return resultobj;
29935fail:
70d7cb34
RD
29936 return NULL;
29937}
29938
29939
29940SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29941 PyObject *resultobj = 0;
29942 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29943 wxWindow *arg2 = (wxWindow *) 0 ;
29944 wxGraphicsContext *result = 0 ;
29945 void *argp1 = 0 ;
29946 int res1 = 0 ;
29947 void *argp2 = 0 ;
29948 int res2 = 0 ;
29949
29950 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29952 if (!SWIG_IsOK(res1)) {
29953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29954 }
29955 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29956 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29957 if (!SWIG_IsOK(res2)) {
29958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29959 }
29960 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29961 {
70d7cb34
RD
29962 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29963 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29964 }
70d7cb34
RD
29965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29966 return resultobj;
29967fail:
72ef6efb
RD
29968 return NULL;
29969}
29970
29971
70d7cb34
RD
29972SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29973 int argc;
29974 PyObject *argv[3];
29975
29976 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29977 --argc;
29978 if (argc == 2) {
29979 int _v = 0;
29980 {
29981 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29982 _v = SWIG_CheckState(res);
29983 }
29984 if (!_v) goto check_1;
29985 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29986 }
29987check_1:
29988
29989 if (argc == 2) {
29990 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29991 }
29992
29993fail:
29994 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29995 return NULL;
29996}
29997
29998
f89238b9
RD
29999SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30000 PyObject *resultobj = 0;
30001 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30002 wxGraphicsContext *result = 0 ;
30003 void *argp1 = 0 ;
30004 int res1 = 0 ;
30005 PyObject *swig_obj[1] ;
30006
30007 if (!args) SWIG_fail;
30008 swig_obj[0] = args;
30009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30010 if (!SWIG_IsOK(res1)) {
30011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30012 }
30013 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30014 {
30015 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30016 if (PyErr_Occurred()) SWIG_fail;
30017 }
30018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30019 return resultobj;
30020fail:
30021 return NULL;
30022}
30023
30024
70d7cb34 30025SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30026 PyObject *resultobj = 0;
70d7cb34
RD
30027 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30028 void *arg2 = (void *) 0 ;
30029 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30030 void *argp1 = 0 ;
30031 int res1 = 0 ;
70d7cb34 30032 int res2 ;
b39fe951
RD
30033 PyObject * obj0 = 0 ;
30034 PyObject * obj1 = 0 ;
b39fe951 30035 char * kwnames[] = {
70d7cb34 30036 (char *) "self",(char *) "context", NULL
b39fe951 30037 };
72ef6efb 30038
70d7cb34
RD
30039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30041 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30043 }
30044 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30045 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30046 if (!SWIG_IsOK(res2)) {
30047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30048 }
72ef6efb 30049 {
70d7cb34 30050 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30051 if (PyErr_Occurred()) SWIG_fail;
30052 }
70d7cb34 30053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30054 return resultobj;
30055fail:
30056 return NULL;
30057}
30058
30059
70d7cb34 30060SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30061 PyObject *resultobj = 0;
70d7cb34
RD
30062 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30063 void *arg2 = (void *) 0 ;
30064 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30065 void *argp1 = 0 ;
30066 int res1 = 0 ;
70d7cb34 30067 int res2 ;
72ef6efb
RD
30068 PyObject * obj0 = 0 ;
30069 PyObject * obj1 = 0 ;
72ef6efb 30070 char * kwnames[] = {
70d7cb34 30071 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30072 };
30073
70d7cb34
RD
30074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30076 if (!SWIG_IsOK(res1)) {
70d7cb34 30077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30078 }
70d7cb34
RD
30079 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30080 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30081 if (!SWIG_IsOK(res2)) {
30082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30083 }
30084 {
70d7cb34 30085 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30086 if (PyErr_Occurred()) SWIG_fail;
30087 }
70d7cb34 30088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30089 return resultobj;
30090fail:
70d7cb34
RD
30091 return NULL;
30092}
30093
30094
30095SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30096 PyObject *resultobj = 0;
30097 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30098 wxGraphicsPath result;
70d7cb34
RD
30099 void *argp1 = 0 ;
30100 int res1 = 0 ;
30101 PyObject *swig_obj[1] ;
30102
30103 if (!args) SWIG_fail;
30104 swig_obj[0] = args;
30105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30106 if (!SWIG_IsOK(res1)) {
30107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30108 }
30109 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30110 {
5c8c7dd3 30111 result = (arg1)->CreatePath();
70d7cb34 30112 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30113 }
5c8c7dd3 30114 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30115 return resultobj;
30116fail:
72ef6efb
RD
30117 return NULL;
30118}
30119
30120
70d7cb34 30121SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30122 PyObject *resultobj = 0;
70d7cb34
RD
30123 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30124 wxDouble arg2 = (wxDouble) 1.0 ;
30125 wxDouble arg3 = (wxDouble) 0.0 ;
30126 wxDouble arg4 = (wxDouble) 0.0 ;
30127 wxDouble arg5 = (wxDouble) 1.0 ;
30128 wxDouble arg6 = (wxDouble) 0.0 ;
30129 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30130 wxGraphicsMatrix result;
72ef6efb
RD
30131 void *argp1 = 0 ;
30132 int res1 = 0 ;
30133 double val2 ;
30134 int ecode2 = 0 ;
30135 double val3 ;
30136 int ecode3 = 0 ;
30137 double val4 ;
30138 int ecode4 = 0 ;
30139 double val5 ;
30140 int ecode5 = 0 ;
70d7cb34
RD
30141 double val6 ;
30142 int ecode6 = 0 ;
30143 double val7 ;
30144 int ecode7 = 0 ;
72ef6efb
RD
30145 PyObject * obj0 = 0 ;
30146 PyObject * obj1 = 0 ;
30147 PyObject * obj2 = 0 ;
30148 PyObject * obj3 = 0 ;
30149 PyObject * obj4 = 0 ;
70d7cb34
RD
30150 PyObject * obj5 = 0 ;
30151 PyObject * obj6 = 0 ;
72ef6efb 30152 char * kwnames[] = {
70d7cb34 30153 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30154 };
30155
70d7cb34
RD
30156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30158 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30160 }
30161 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30162 if (obj1) {
30163 ecode2 = SWIG_AsVal_double(obj1, &val2);
30164 if (!SWIG_IsOK(ecode2)) {
30165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30166 }
30167 arg2 = static_cast< wxDouble >(val2);
30168 }
30169 if (obj2) {
30170 ecode3 = SWIG_AsVal_double(obj2, &val3);
30171 if (!SWIG_IsOK(ecode3)) {
30172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30173 }
30174 arg3 = static_cast< wxDouble >(val3);
30175 }
30176 if (obj3) {
30177 ecode4 = SWIG_AsVal_double(obj3, &val4);
30178 if (!SWIG_IsOK(ecode4)) {
30179 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30180 }
30181 arg4 = static_cast< wxDouble >(val4);
30182 }
30183 if (obj4) {
30184 ecode5 = SWIG_AsVal_double(obj4, &val5);
30185 if (!SWIG_IsOK(ecode5)) {
30186 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30187 }
30188 arg5 = static_cast< wxDouble >(val5);
30189 }
30190 if (obj5) {
30191 ecode6 = SWIG_AsVal_double(obj5, &val6);
30192 if (!SWIG_IsOK(ecode6)) {
30193 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30194 }
30195 arg6 = static_cast< wxDouble >(val6);
30196 }
30197 if (obj6) {
30198 ecode7 = SWIG_AsVal_double(obj6, &val7);
30199 if (!SWIG_IsOK(ecode7)) {
30200 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30201 }
30202 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30203 }
72ef6efb 30204 {
5c8c7dd3 30205 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30206 if (PyErr_Occurred()) SWIG_fail;
30207 }
5c8c7dd3 30208 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30209 return resultobj;
30210fail:
30211 return NULL;
30212}
30213
30214
70d7cb34 30215SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30216 PyObject *resultobj = 0;
70d7cb34
RD
30217 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30218 wxPen *arg2 = 0 ;
30219 wxGraphicsPen result;
30220 void *argp1 = 0 ;
30221 int res1 = 0 ;
30222 void *argp2 = 0 ;
30223 int res2 = 0 ;
30224 PyObject * obj0 = 0 ;
30225 PyObject * obj1 = 0 ;
30226 char * kwnames[] = {
30227 (char *) "self",(char *) "pen", NULL
30228 };
30229
30230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30232 if (!SWIG_IsOK(res1)) {
30233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30234 }
30235 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30236 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30237 if (!SWIG_IsOK(res2)) {
30238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30239 }
30240 if (!argp2) {
30241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30242 }
30243 arg2 = reinterpret_cast< wxPen * >(argp2);
30244 {
30245 result = (arg1)->CreatePen((wxPen const &)*arg2);
30246 if (PyErr_Occurred()) SWIG_fail;
30247 }
30248 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30249 return resultobj;
30250fail:
30251 return NULL;
30252}
30253
30254
30255SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30256 PyObject *resultobj = 0;
30257 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30258 wxBrush *arg2 = 0 ;
30259 wxGraphicsBrush result;
30260 void *argp1 = 0 ;
30261 int res1 = 0 ;
30262 void *argp2 = 0 ;
30263 int res2 = 0 ;
30264 PyObject * obj0 = 0 ;
30265 PyObject * obj1 = 0 ;
30266 char * kwnames[] = {
30267 (char *) "self",(char *) "brush", NULL
30268 };
30269
30270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30272 if (!SWIG_IsOK(res1)) {
30273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30274 }
30275 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30277 if (!SWIG_IsOK(res2)) {
30278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30279 }
30280 if (!argp2) {
30281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30282 }
30283 arg2 = reinterpret_cast< wxBrush * >(argp2);
30284 {
30285 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30286 if (PyErr_Occurred()) SWIG_fail;
30287 }
30288 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30289 return resultobj;
30290fail:
30291 return NULL;
30292}
30293
30294
30295SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30296 PyObject *resultobj = 0;
30297 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30298 wxDouble arg2 ;
30299 wxDouble arg3 ;
30300 wxDouble arg4 ;
30301 wxDouble arg5 ;
70d7cb34
RD
30302 wxColour *arg6 = 0 ;
30303 wxColour *arg7 = 0 ;
30304 wxGraphicsBrush result;
72ef6efb
RD
30305 void *argp1 = 0 ;
30306 int res1 = 0 ;
30307 double val2 ;
30308 int ecode2 = 0 ;
30309 double val3 ;
30310 int ecode3 = 0 ;
30311 double val4 ;
30312 int ecode4 = 0 ;
30313 double val5 ;
30314 int ecode5 = 0 ;
70d7cb34
RD
30315 wxColour temp6 ;
30316 wxColour temp7 ;
72ef6efb
RD
30317 PyObject * obj0 = 0 ;
30318 PyObject * obj1 = 0 ;
30319 PyObject * obj2 = 0 ;
30320 PyObject * obj3 = 0 ;
30321 PyObject * obj4 = 0 ;
70d7cb34
RD
30322 PyObject * obj5 = 0 ;
30323 PyObject * obj6 = 0 ;
72ef6efb 30324 char * kwnames[] = {
70d7cb34 30325 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30326 };
30327
70d7cb34
RD
30328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30330 if (!SWIG_IsOK(res1)) {
70d7cb34 30331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30332 }
70d7cb34 30333 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30334 ecode2 = SWIG_AsVal_double(obj1, &val2);
30335 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30337 }
30338 arg2 = static_cast< wxDouble >(val2);
30339 ecode3 = SWIG_AsVal_double(obj2, &val3);
30340 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30342 }
30343 arg3 = static_cast< wxDouble >(val3);
30344 ecode4 = SWIG_AsVal_double(obj3, &val4);
30345 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30346 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30347 }
30348 arg4 = static_cast< wxDouble >(val4);
30349 ecode5 = SWIG_AsVal_double(obj4, &val5);
30350 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30352 }
30353 arg5 = static_cast< wxDouble >(val5);
30354 {
70d7cb34
RD
30355 arg6 = &temp6;
30356 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30357 }
30358 {
30359 arg7 = &temp7;
30360 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30361 }
30362 {
30363 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30364 if (PyErr_Occurred()) SWIG_fail;
30365 }
70d7cb34 30366 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30367 return resultobj;
30368fail:
30369 return NULL;
30370}
30371
30372
70d7cb34 30373SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30374 PyObject *resultobj = 0;
70d7cb34 30375 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30376 wxDouble arg2 ;
30377 wxDouble arg3 ;
30378 wxDouble arg4 ;
30379 wxDouble arg5 ;
30380 wxDouble arg6 ;
70d7cb34
RD
30381 wxColour *arg7 = 0 ;
30382 wxColour *arg8 = 0 ;
30383 wxGraphicsBrush result;
72ef6efb
RD
30384 void *argp1 = 0 ;
30385 int res1 = 0 ;
30386 double val2 ;
30387 int ecode2 = 0 ;
30388 double val3 ;
30389 int ecode3 = 0 ;
30390 double val4 ;
30391 int ecode4 = 0 ;
30392 double val5 ;
30393 int ecode5 = 0 ;
30394 double val6 ;
30395 int ecode6 = 0 ;
70d7cb34
RD
30396 wxColour temp7 ;
30397 wxColour temp8 ;
72ef6efb
RD
30398 PyObject * obj0 = 0 ;
30399 PyObject * obj1 = 0 ;
30400 PyObject * obj2 = 0 ;
30401 PyObject * obj3 = 0 ;
30402 PyObject * obj4 = 0 ;
30403 PyObject * obj5 = 0 ;
70d7cb34
RD
30404 PyObject * obj6 = 0 ;
30405 PyObject * obj7 = 0 ;
72ef6efb 30406 char * kwnames[] = {
70d7cb34 30407 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30408 };
30409
70d7cb34
RD
30410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30412 if (!SWIG_IsOK(res1)) {
70d7cb34 30413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30414 }
70d7cb34 30415 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30416 ecode2 = SWIG_AsVal_double(obj1, &val2);
30417 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30419 }
30420 arg2 = static_cast< wxDouble >(val2);
30421 ecode3 = SWIG_AsVal_double(obj2, &val3);
30422 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30424 }
30425 arg3 = static_cast< wxDouble >(val3);
30426 ecode4 = SWIG_AsVal_double(obj3, &val4);
30427 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30429 }
30430 arg4 = static_cast< wxDouble >(val4);
30431 ecode5 = SWIG_AsVal_double(obj4, &val5);
30432 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30434 }
30435 arg5 = static_cast< wxDouble >(val5);
30436 ecode6 = SWIG_AsVal_double(obj5, &val6);
30437 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30438 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30439 }
30440 arg6 = static_cast< wxDouble >(val6);
30441 {
70d7cb34
RD
30442 arg7 = &temp7;
30443 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30444 }
30445 {
30446 arg8 = &temp8;
30447 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30448 }
30449 {
30450 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30451 if (PyErr_Occurred()) SWIG_fail;
30452 }
70d7cb34 30453 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30454 return resultobj;
30455fail:
30456 return NULL;
30457}
30458
30459
70d7cb34
RD
30460SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30461 PyObject *resultobj = 0;
30462 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30463 wxFont *arg2 = 0 ;
30464 wxColour const &arg3_defvalue = *wxBLACK ;
30465 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30466 wxGraphicsFont result;
30467 void *argp1 = 0 ;
30468 int res1 = 0 ;
30469 void *argp2 = 0 ;
30470 int res2 = 0 ;
30471 wxColour temp3 ;
30472 PyObject * obj0 = 0 ;
30473 PyObject * obj1 = 0 ;
30474 PyObject * obj2 = 0 ;
30475 char * kwnames[] = {
30476 (char *) "self",(char *) "font",(char *) "col", NULL
30477 };
30478
30479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) 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_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30483 }
30484 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30485 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30486 if (!SWIG_IsOK(res2)) {
30487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30488 }
30489 if (!argp2) {
30490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30491 }
30492 arg2 = reinterpret_cast< wxFont * >(argp2);
30493 if (obj2) {
30494 {
30495 arg3 = &temp3;
30496 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30497 }
30498 }
30499 {
30500 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30501 if (PyErr_Occurred()) SWIG_fail;
30502 }
30503 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30504 return resultobj;
30505fail:
30506 return NULL;
30507}
30508
30509
30510SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30511 PyObject *obj;
30512 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30513 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30514 return SWIG_Py_Void();
30515}
30516
48a0c021 30517SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
30518 PyObject *resultobj = 0;
30519 wxWindowDC *arg1 = 0 ;
30520 wxGCDC *result = 0 ;
30521 void *argp1 = 0 ;
30522 int res1 = 0 ;
72ef6efb 30523
48a0c021
RD
30524 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
30526 if (!SWIG_IsOK(res1)) {
30527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30528 }
30529 if (!argp1) {
30530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30531 }
30532 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30533 {
30534 if (!wxPyCheckForApp()) SWIG_fail;
30535 PyThreadState* __tstate = wxPyBeginAllowThreads();
30536 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30537 wxPyEndAllowThreads(__tstate);
30538 if (PyErr_Occurred()) SWIG_fail;
30539 }
30540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30541 return resultobj;
30542fail:
30543 return NULL;
30544}
30545
30546
48a0c021
RD
30547SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30548 PyObject *resultobj = 0;
30549 wxWindow *arg1 = (wxWindow *) 0 ;
30550 wxGCDC *result = 0 ;
30551 void *argp1 = 0 ;
30552 int res1 = 0 ;
30553
30554 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30556 if (!SWIG_IsOK(res1)) {
30557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30558 }
30559 arg1 = reinterpret_cast< wxWindow * >(argp1);
30560 {
30561 if (!wxPyCheckForApp()) SWIG_fail;
30562 PyThreadState* __tstate = wxPyBeginAllowThreads();
30563 result = (wxGCDC *)new wxGCDC(arg1);
30564 wxPyEndAllowThreads(__tstate);
30565 if (PyErr_Occurred()) SWIG_fail;
30566 }
30567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30568 return resultobj;
30569fail:
30570 return NULL;
30571}
30572
30573
30574SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30575 int argc;
30576 PyObject *argv[2];
30577
30578 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30579 --argc;
30580 if (argc == 1) {
30581 int _v = 0;
30582 {
30583 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30584 _v = SWIG_CheckState(res);
30585 }
30586 if (!_v) goto check_1;
30587 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30588 }
30589check_1:
30590
30591 if (argc == 1) {
30592 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30593 }
30594
30595fail:
30596 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30597 return NULL;
30598}
30599
30600
72ef6efb
RD
30601SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30602 PyObject *resultobj = 0;
30603 wxGCDC *arg1 = (wxGCDC *) 0 ;
30604 void *argp1 = 0 ;
30605 int res1 = 0 ;
30606 PyObject *swig_obj[1] ;
30607
30608 if (!args) SWIG_fail;
30609 swig_obj[0] = args;
30610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30611 if (!SWIG_IsOK(res1)) {
30612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30613 }
30614 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30615 {
72ef6efb
RD
30616 delete arg1;
30617
72ef6efb
RD
30618 if (PyErr_Occurred()) SWIG_fail;
30619 }
30620 resultobj = SWIG_Py_Void();
30621 return resultobj;
30622fail:
30623 return NULL;
30624}
30625
30626
0a27f394 30627SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30628 PyObject *resultobj = 0;
30629 wxGCDC *arg1 = (wxGCDC *) 0 ;
30630 wxGraphicsContext *result = 0 ;
30631 void *argp1 = 0 ;
30632 int res1 = 0 ;
30633 PyObject *swig_obj[1] ;
30634
30635 if (!args) SWIG_fail;
30636 swig_obj[0] = args;
30637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30638 if (!SWIG_IsOK(res1)) {
0a27f394 30639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30640 }
30641 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30642 {
0a27f394 30643 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30644 if (PyErr_Occurred()) SWIG_fail;
30645 }
30646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30647 return resultobj;
30648fail:
30649 return NULL;
30650}
30651
30652
0a27f394
RD
30653SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30654 PyObject *resultobj = 0;
30655 wxGCDC *arg1 = (wxGCDC *) 0 ;
30656 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30657 void *argp1 = 0 ;
30658 int res1 = 0 ;
30659 void *argp2 = 0 ;
30660 int res2 = 0 ;
30661 PyObject * obj0 = 0 ;
30662 PyObject * obj1 = 0 ;
30663 char * kwnames[] = {
30664 (char *) "self",(char *) "ctx", NULL
30665 };
30666
30667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30669 if (!SWIG_IsOK(res1)) {
30670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30671 }
30672 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30674 if (!SWIG_IsOK(res2)) {
30675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30676 }
30677 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30678 {
30679 (arg1)->SetGraphicsContext(arg2);
30680 if (PyErr_Occurred()) SWIG_fail;
30681 }
30682 resultobj = SWIG_Py_Void();
30683 return resultobj;
30684fail:
30685 return NULL;
30686}
30687
30688
72ef6efb
RD
30689SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30690 PyObject *obj;
30691 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30692 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30693 return SWIG_Py_Void();
30694}
30695
30696SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30697 return SWIG_Python_InitShadowInstance(args);
30698}
30699
b39fe951
RD
30700SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30701 PyObject *resultobj = 0;
30702 wxOverlay *result = 0 ;
30703
30704 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30705 {
30706 PyThreadState* __tstate = wxPyBeginAllowThreads();
30707 result = (wxOverlay *)new wxOverlay();
30708 wxPyEndAllowThreads(__tstate);
30709 if (PyErr_Occurred()) SWIG_fail;
30710 }
30711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30712 return resultobj;
30713fail:
30714 return NULL;
30715}
30716
30717
30718SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30719 PyObject *resultobj = 0;
30720 wxOverlay *arg1 = (wxOverlay *) 0 ;
30721 void *argp1 = 0 ;
30722 int res1 = 0 ;
30723 PyObject *swig_obj[1] ;
30724
30725 if (!args) SWIG_fail;
30726 swig_obj[0] = args;
30727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30728 if (!SWIG_IsOK(res1)) {
30729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30730 }
30731 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30732 {
30733 PyThreadState* __tstate = wxPyBeginAllowThreads();
30734 delete arg1;
30735
30736 wxPyEndAllowThreads(__tstate);
30737 if (PyErr_Occurred()) SWIG_fail;
30738 }
30739 resultobj = SWIG_Py_Void();
30740 return resultobj;
30741fail:
30742 return NULL;
30743}
30744
30745
30746SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30747 PyObject *resultobj = 0;
30748 wxOverlay *arg1 = (wxOverlay *) 0 ;
30749 void *argp1 = 0 ;
30750 int res1 = 0 ;
30751 PyObject *swig_obj[1] ;
30752
30753 if (!args) SWIG_fail;
30754 swig_obj[0] = args;
30755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30756 if (!SWIG_IsOK(res1)) {
30757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30758 }
30759 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30760 {
30761 PyThreadState* __tstate = wxPyBeginAllowThreads();
30762 (arg1)->Reset();
30763 wxPyEndAllowThreads(__tstate);
30764 if (PyErr_Occurred()) SWIG_fail;
30765 }
30766 resultobj = SWIG_Py_Void();
30767 return resultobj;
30768fail:
30769 return NULL;
30770}
30771
30772
30773SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30774 PyObject *obj;
30775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30776 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30777 return SWIG_Py_Void();
30778}
30779
30780SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30781 return SWIG_Python_InitShadowInstance(args);
30782}
30783
30784SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30785 PyObject *resultobj = 0;
30786 wxOverlay *arg1 = 0 ;
30787 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30788 int arg3 ;
30789 int arg4 ;
30790 int arg5 ;
30791 int arg6 ;
30792 wxDCOverlay *result = 0 ;
30793 void *argp1 = 0 ;
30794 int res1 = 0 ;
30795 void *argp2 = 0 ;
30796 int res2 = 0 ;
30797 int val3 ;
30798 int ecode3 = 0 ;
30799 int val4 ;
30800 int ecode4 = 0 ;
30801 int val5 ;
30802 int ecode5 = 0 ;
30803 int val6 ;
30804 int ecode6 = 0 ;
30805
30806 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30808 if (!SWIG_IsOK(res1)) {
30809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30810 }
30811 if (!argp1) {
30812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30813 }
30814 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30815 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30816 if (!SWIG_IsOK(res2)) {
30817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30818 }
30819 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30820 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30821 if (!SWIG_IsOK(ecode3)) {
30822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30823 }
30824 arg3 = static_cast< int >(val3);
30825 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30826 if (!SWIG_IsOK(ecode4)) {
30827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30828 }
30829 arg4 = static_cast< int >(val4);
30830 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30831 if (!SWIG_IsOK(ecode5)) {
30832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30833 }
30834 arg5 = static_cast< int >(val5);
30835 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30836 if (!SWIG_IsOK(ecode6)) {
30837 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30838 }
30839 arg6 = static_cast< int >(val6);
30840 {
30841 PyThreadState* __tstate = wxPyBeginAllowThreads();
30842 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30843 wxPyEndAllowThreads(__tstate);
30844 if (PyErr_Occurred()) SWIG_fail;
30845 }
30846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30847 return resultobj;
30848fail:
30849 return NULL;
30850}
30851
30852
30853SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30854 PyObject *resultobj = 0;
30855 wxOverlay *arg1 = 0 ;
30856 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30857 wxDCOverlay *result = 0 ;
30858 void *argp1 = 0 ;
30859 int res1 = 0 ;
30860 void *argp2 = 0 ;
30861 int res2 = 0 ;
30862
30863 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30865 if (!SWIG_IsOK(res1)) {
30866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30867 }
30868 if (!argp1) {
30869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30870 }
30871 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30872 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30873 if (!SWIG_IsOK(res2)) {
30874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30875 }
30876 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30877 {
30878 PyThreadState* __tstate = wxPyBeginAllowThreads();
30879 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30880 wxPyEndAllowThreads(__tstate);
30881 if (PyErr_Occurred()) SWIG_fail;
30882 }
30883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30884 return resultobj;
30885fail:
30886 return NULL;
30887}
30888
30889
30890SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30891 int argc;
30892 PyObject *argv[7];
30893
30894 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30895 --argc;
30896 if (argc == 2) {
30897 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30898 }
30899 if (argc == 6) {
30900 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30901 }
30902
30903fail:
30904 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30905 return NULL;
30906}
30907
30908
30909SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30910 PyObject *resultobj = 0;
30911 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30912 void *argp1 = 0 ;
30913 int res1 = 0 ;
30914 PyObject *swig_obj[1] ;
30915
30916 if (!args) SWIG_fail;
30917 swig_obj[0] = args;
30918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30919 if (!SWIG_IsOK(res1)) {
30920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30921 }
30922 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30923 {
30924 PyThreadState* __tstate = wxPyBeginAllowThreads();
30925 delete arg1;
30926
30927 wxPyEndAllowThreads(__tstate);
30928 if (PyErr_Occurred()) SWIG_fail;
30929 }
30930 resultobj = SWIG_Py_Void();
30931 return resultobj;
30932fail:
30933 return NULL;
30934}
30935
30936
30937SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30938 PyObject *resultobj = 0;
30939 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30940 void *argp1 = 0 ;
30941 int res1 = 0 ;
30942 PyObject *swig_obj[1] ;
30943
30944 if (!args) SWIG_fail;
30945 swig_obj[0] = args;
30946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30947 if (!SWIG_IsOK(res1)) {
30948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30949 }
30950 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30951 {
30952 PyThreadState* __tstate = wxPyBeginAllowThreads();
30953 (arg1)->Clear();
30954 wxPyEndAllowThreads(__tstate);
30955 if (PyErr_Occurred()) SWIG_fail;
30956 }
30957 resultobj = SWIG_Py_Void();
30958 return resultobj;
30959fail:
30960 return NULL;
30961}
30962
30963
30964SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30965 PyObject *obj;
30966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30967 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30968 return SWIG_Py_Void();
30969}
30970
30971SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30972 return SWIG_Python_InitShadowInstance(args);
30973}
30974
72ef6efb
RD
30975SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30976 PyObject *resultobj = 0;
30977 int arg1 ;
30978 int arg2 ;
30979 int arg3 = (int) true ;
30980 int arg4 = (int) 1 ;
30981 wxImageList *result = 0 ;
30982 int val1 ;
30983 int ecode1 = 0 ;
30984 int val2 ;
30985 int ecode2 = 0 ;
30986 int val3 ;
30987 int ecode3 = 0 ;
30988 int val4 ;
30989 int ecode4 = 0 ;
30990 PyObject * obj0 = 0 ;
30991 PyObject * obj1 = 0 ;
30992 PyObject * obj2 = 0 ;
30993 PyObject * obj3 = 0 ;
30994 char * kwnames[] = {
30995 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30996 };
30997
30998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30999 ecode1 = SWIG_AsVal_int(obj0, &val1);
31000 if (!SWIG_IsOK(ecode1)) {
31001 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31002 }
31003 arg1 = static_cast< int >(val1);
31004 ecode2 = SWIG_AsVal_int(obj1, &val2);
31005 if (!SWIG_IsOK(ecode2)) {
31006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31007 }
31008 arg2 = static_cast< int >(val2);
31009 if (obj2) {
31010 ecode3 = SWIG_AsVal_int(obj2, &val3);
31011 if (!SWIG_IsOK(ecode3)) {
31012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31013 }
31014 arg3 = static_cast< int >(val3);
31015 }
31016 if (obj3) {
31017 ecode4 = SWIG_AsVal_int(obj3, &val4);
31018 if (!SWIG_IsOK(ecode4)) {
31019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31020 }
31021 arg4 = static_cast< int >(val4);
31022 }
31023 {
31024 if (!wxPyCheckForApp()) SWIG_fail;
31025 PyThreadState* __tstate = wxPyBeginAllowThreads();
31026 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31027 wxPyEndAllowThreads(__tstate);
31028 if (PyErr_Occurred()) SWIG_fail;
31029 }
e02c0a13 31030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31031 return resultobj;
31032fail:
31033 return NULL;
31034}
31035
31036
31037SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31038 PyObject *resultobj = 0;
31039 wxImageList *arg1 = (wxImageList *) 0 ;
31040 void *argp1 = 0 ;
31041 int res1 = 0 ;
31042 PyObject *swig_obj[1] ;
31043
31044 if (!args) SWIG_fail;
31045 swig_obj[0] = args;
31046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31047 if (!SWIG_IsOK(res1)) {
31048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31049 }
31050 arg1 = reinterpret_cast< wxImageList * >(argp1);
31051 {
31052 PyThreadState* __tstate = wxPyBeginAllowThreads();
31053 delete arg1;
31054
31055 wxPyEndAllowThreads(__tstate);
31056 if (PyErr_Occurred()) SWIG_fail;
31057 }
31058 resultobj = SWIG_Py_Void();
31059 return resultobj;
31060fail:
31061 return NULL;
31062}
31063
31064
31065SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31066 PyObject *resultobj = 0;
31067 wxImageList *arg1 = (wxImageList *) 0 ;
31068 wxBitmap *arg2 = 0 ;
31069 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31070 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31071 int result;
31072 void *argp1 = 0 ;
31073 int res1 = 0 ;
31074 void *argp2 = 0 ;
31075 int res2 = 0 ;
31076 void *argp3 = 0 ;
31077 int res3 = 0 ;
31078 PyObject * obj0 = 0 ;
31079 PyObject * obj1 = 0 ;
31080 PyObject * obj2 = 0 ;
31081 char * kwnames[] = {
31082 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31083 };
31084
31085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31087 if (!SWIG_IsOK(res1)) {
31088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31089 }
31090 arg1 = reinterpret_cast< wxImageList * >(argp1);
31091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31092 if (!SWIG_IsOK(res2)) {
31093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31094 }
31095 if (!argp2) {
31096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31097 }
31098 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31099 if (obj2) {
31100 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31101 if (!SWIG_IsOK(res3)) {
31102 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31103 }
31104 if (!argp3) {
31105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31106 }
31107 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31108 }
31109 {
31110 PyThreadState* __tstate = wxPyBeginAllowThreads();
31111 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31112 wxPyEndAllowThreads(__tstate);
31113 if (PyErr_Occurred()) SWIG_fail;
31114 }
31115 resultobj = SWIG_From_int(static_cast< int >(result));
31116 return resultobj;
31117fail:
31118 return NULL;
31119}
31120
31121
31122SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31123 PyObject *resultobj = 0;
31124 wxImageList *arg1 = (wxImageList *) 0 ;
31125 wxBitmap *arg2 = 0 ;
31126 wxColour *arg3 = 0 ;
31127 int result;
31128 void *argp1 = 0 ;
31129 int res1 = 0 ;
31130 void *argp2 = 0 ;
31131 int res2 = 0 ;
31132 wxColour temp3 ;
31133 PyObject * obj0 = 0 ;
31134 PyObject * obj1 = 0 ;
31135 PyObject * obj2 = 0 ;
31136 char * kwnames[] = {
31137 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31138 };
31139
31140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31142 if (!SWIG_IsOK(res1)) {
31143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31144 }
31145 arg1 = reinterpret_cast< wxImageList * >(argp1);
31146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31147 if (!SWIG_IsOK(res2)) {
31148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31149 }
31150 if (!argp2) {
31151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31152 }
31153 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31154 {
31155 arg3 = &temp3;
31156 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31157 }
31158 {
31159 PyThreadState* __tstate = wxPyBeginAllowThreads();
31160 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31161 wxPyEndAllowThreads(__tstate);
31162 if (PyErr_Occurred()) SWIG_fail;
31163 }
31164 resultobj = SWIG_From_int(static_cast< int >(result));
31165 return resultobj;
31166fail:
31167 return NULL;
31168}
31169
31170
31171SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31172 PyObject *resultobj = 0;
31173 wxImageList *arg1 = (wxImageList *) 0 ;
31174 wxIcon *arg2 = 0 ;
31175 int result;
31176 void *argp1 = 0 ;
31177 int res1 = 0 ;
31178 void *argp2 = 0 ;
31179 int res2 = 0 ;
31180 PyObject * obj0 = 0 ;
31181 PyObject * obj1 = 0 ;
31182 char * kwnames[] = {
31183 (char *) "self",(char *) "icon", NULL
31184 };
31185
31186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31188 if (!SWIG_IsOK(res1)) {
31189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31190 }
0085ce49
RD
31191 arg1 = reinterpret_cast< wxImageList * >(argp1);
31192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31193 if (!SWIG_IsOK(res2)) {
31194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31195 }
31196 if (!argp2) {
31197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31198 }
31199 arg2 = reinterpret_cast< wxIcon * >(argp2);
31200 {
31201 PyThreadState* __tstate = wxPyBeginAllowThreads();
31202 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31203 wxPyEndAllowThreads(__tstate);
31204 if (PyErr_Occurred()) SWIG_fail;
31205 }
31206 resultobj = SWIG_From_int(static_cast< int >(result));
31207 return resultobj;
31208fail:
31209 return NULL;
31210}
31211
31212
31213SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31214 PyObject *resultobj = 0;
31215 wxImageList *arg1 = (wxImageList *) 0 ;
31216 int arg2 ;
31217 SwigValueWrapper<wxBitmap > result;
31218 void *argp1 = 0 ;
31219 int res1 = 0 ;
31220 int val2 ;
31221 int ecode2 = 0 ;
31222 PyObject * obj0 = 0 ;
31223 PyObject * obj1 = 0 ;
31224 char * kwnames[] = {
31225 (char *) "self",(char *) "index", NULL
31226 };
31227
31228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31230 if (!SWIG_IsOK(res1)) {
31231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31232 }
31233 arg1 = reinterpret_cast< wxImageList * >(argp1);
31234 ecode2 = SWIG_AsVal_int(obj1, &val2);
31235 if (!SWIG_IsOK(ecode2)) {
31236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31237 }
31238 arg2 = static_cast< int >(val2);
31239 {
31240 PyThreadState* __tstate = wxPyBeginAllowThreads();
31241 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31242 wxPyEndAllowThreads(__tstate);
31243 if (PyErr_Occurred()) SWIG_fail;
31244 }
31245 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31246 return resultobj;
31247fail:
31248 return NULL;
31249}
31250
31251
31252SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31253 PyObject *resultobj = 0;
31254 wxImageList *arg1 = (wxImageList *) 0 ;
31255 int arg2 ;
31256 wxIcon result;
31257 void *argp1 = 0 ;
31258 int res1 = 0 ;
31259 int val2 ;
31260 int ecode2 = 0 ;
31261 PyObject * obj0 = 0 ;
31262 PyObject * obj1 = 0 ;
31263 char * kwnames[] = {
31264 (char *) "self",(char *) "index", NULL
31265 };
31266
31267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31269 if (!SWIG_IsOK(res1)) {
31270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31271 }
31272 arg1 = reinterpret_cast< wxImageList * >(argp1);
31273 ecode2 = SWIG_AsVal_int(obj1, &val2);
31274 if (!SWIG_IsOK(ecode2)) {
31275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31276 }
31277 arg2 = static_cast< int >(val2);
31278 {
31279 PyThreadState* __tstate = wxPyBeginAllowThreads();
31280 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31281 wxPyEndAllowThreads(__tstate);
31282 if (PyErr_Occurred()) SWIG_fail;
31283 }
31284 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31285 return resultobj;
31286fail:
31287 return NULL;
31288}
31289
31290
31291SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31292 PyObject *resultobj = 0;
31293 wxImageList *arg1 = (wxImageList *) 0 ;
31294 int arg2 ;
31295 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
31296 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31297 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
31298 bool result;
31299 void *argp1 = 0 ;
31300 int res1 = 0 ;
31301 int val2 ;
31302 int ecode2 = 0 ;
31303 void *argp3 = 0 ;
31304 int res3 = 0 ;
01f6b6d3
RD
31305 void *argp4 = 0 ;
31306 int res4 = 0 ;
0085ce49
RD
31307 PyObject * obj0 = 0 ;
31308 PyObject * obj1 = 0 ;
31309 PyObject * obj2 = 0 ;
01f6b6d3 31310 PyObject * obj3 = 0 ;
0085ce49 31311 char * kwnames[] = {
01f6b6d3 31312 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
31313 };
31314
01f6b6d3 31315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
31316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31317 if (!SWIG_IsOK(res1)) {
31318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31319 }
31320 arg1 = reinterpret_cast< wxImageList * >(argp1);
31321 ecode2 = SWIG_AsVal_int(obj1, &val2);
31322 if (!SWIG_IsOK(ecode2)) {
31323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31324 }
31325 arg2 = static_cast< int >(val2);
31326 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31327 if (!SWIG_IsOK(res3)) {
31328 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31329 }
31330 if (!argp3) {
31331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31332 }
31333 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
31334 if (obj3) {
31335 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31336 if (!SWIG_IsOK(res4)) {
31337 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31338 }
31339 if (!argp4) {
31340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31341 }
31342 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31343 }
0085ce49
RD
31344 {
31345 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 31346 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
31347 wxPyEndAllowThreads(__tstate);
31348 if (PyErr_Occurred()) SWIG_fail;
31349 }
31350 {
31351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31352 }
31353 return resultobj;
31354fail:
31355 return NULL;
31356}
31357
31358
31359SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31360 PyObject *resultobj = 0;
31361 wxImageList *arg1 = (wxImageList *) 0 ;
31362 int arg2 ;
31363 wxDC *arg3 = 0 ;
31364 int arg4 ;
31365 int arg5 ;
31366 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31367 bool arg7 = (bool) (bool)false ;
31368 bool result;
31369 void *argp1 = 0 ;
31370 int res1 = 0 ;
31371 int val2 ;
31372 int ecode2 = 0 ;
31373 void *argp3 = 0 ;
31374 int res3 = 0 ;
31375 int val4 ;
31376 int ecode4 = 0 ;
31377 int val5 ;
31378 int ecode5 = 0 ;
31379 int val6 ;
31380 int ecode6 = 0 ;
31381 bool val7 ;
31382 int ecode7 = 0 ;
31383 PyObject * obj0 = 0 ;
31384 PyObject * obj1 = 0 ;
31385 PyObject * obj2 = 0 ;
31386 PyObject * obj3 = 0 ;
31387 PyObject * obj4 = 0 ;
31388 PyObject * obj5 = 0 ;
31389 PyObject * obj6 = 0 ;
31390 char * kwnames[] = {
31391 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31392 };
31393
31394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31396 if (!SWIG_IsOK(res1)) {
31397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31398 }
31399 arg1 = reinterpret_cast< wxImageList * >(argp1);
31400 ecode2 = SWIG_AsVal_int(obj1, &val2);
31401 if (!SWIG_IsOK(ecode2)) {
31402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31403 }
31404 arg2 = static_cast< int >(val2);
31405 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31406 if (!SWIG_IsOK(res3)) {
31407 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31408 }
31409 if (!argp3) {
31410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31411 }
31412 arg3 = reinterpret_cast< wxDC * >(argp3);
31413 ecode4 = SWIG_AsVal_int(obj3, &val4);
31414 if (!SWIG_IsOK(ecode4)) {
31415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31416 }
31417 arg4 = static_cast< int >(val4);
31418 ecode5 = SWIG_AsVal_int(obj4, &val5);
31419 if (!SWIG_IsOK(ecode5)) {
31420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31421 }
31422 arg5 = static_cast< int >(val5);
31423 if (obj5) {
31424 ecode6 = SWIG_AsVal_int(obj5, &val6);
31425 if (!SWIG_IsOK(ecode6)) {
31426 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31427 }
31428 arg6 = static_cast< int >(val6);
31429 }
31430 if (obj6) {
31431 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31432 if (!SWIG_IsOK(ecode7)) {
31433 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31434 }
31435 arg7 = static_cast< bool >(val7);
31436 }
31437 {
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31440 wxPyEndAllowThreads(__tstate);
31441 if (PyErr_Occurred()) SWIG_fail;
31442 }
31443 {
31444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31445 }
31446 return resultobj;
31447fail:
31448 return NULL;
31449}
31450
31451
31452SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31453 PyObject *resultobj = 0;
31454 wxImageList *arg1 = (wxImageList *) 0 ;
31455 int result;
31456 void *argp1 = 0 ;
31457 int res1 = 0 ;
31458 PyObject *swig_obj[1] ;
31459
31460 if (!args) SWIG_fail;
31461 swig_obj[0] = args;
31462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31463 if (!SWIG_IsOK(res1)) {
31464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31465 }
31466 arg1 = reinterpret_cast< wxImageList * >(argp1);
31467 {
31468 PyThreadState* __tstate = wxPyBeginAllowThreads();
31469 result = (int)(arg1)->GetImageCount();
31470 wxPyEndAllowThreads(__tstate);
31471 if (PyErr_Occurred()) SWIG_fail;
31472 }
31473 resultobj = SWIG_From_int(static_cast< int >(result));
31474 return resultobj;
31475fail:
31476 return NULL;
31477}
31478
31479
31480SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31481 PyObject *resultobj = 0;
31482 wxImageList *arg1 = (wxImageList *) 0 ;
31483 int arg2 ;
31484 bool result;
31485 void *argp1 = 0 ;
31486 int res1 = 0 ;
31487 int val2 ;
31488 int ecode2 = 0 ;
31489 PyObject * obj0 = 0 ;
31490 PyObject * obj1 = 0 ;
31491 char * kwnames[] = {
31492 (char *) "self",(char *) "index", NULL
31493 };
31494
31495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31497 if (!SWIG_IsOK(res1)) {
31498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31499 }
31500 arg1 = reinterpret_cast< wxImageList * >(argp1);
31501 ecode2 = SWIG_AsVal_int(obj1, &val2);
31502 if (!SWIG_IsOK(ecode2)) {
31503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31504 }
31505 arg2 = static_cast< int >(val2);
31506 {
31507 PyThreadState* __tstate = wxPyBeginAllowThreads();
31508 result = (bool)(arg1)->Remove(arg2);
31509 wxPyEndAllowThreads(__tstate);
31510 if (PyErr_Occurred()) SWIG_fail;
31511 }
31512 {
31513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31514 }
31515 return resultobj;
31516fail:
31517 return NULL;
31518}
31519
31520
31521SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31522 PyObject *resultobj = 0;
31523 wxImageList *arg1 = (wxImageList *) 0 ;
31524 bool result;
31525 void *argp1 = 0 ;
31526 int res1 = 0 ;
31527 PyObject *swig_obj[1] ;
31528
31529 if (!args) SWIG_fail;
31530 swig_obj[0] = args;
31531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31532 if (!SWIG_IsOK(res1)) {
31533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31534 }
31535 arg1 = reinterpret_cast< wxImageList * >(argp1);
31536 {
31537 PyThreadState* __tstate = wxPyBeginAllowThreads();
31538 result = (bool)(arg1)->RemoveAll();
31539 wxPyEndAllowThreads(__tstate);
31540 if (PyErr_Occurred()) SWIG_fail;
31541 }
31542 {
31543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31544 }
31545 return resultobj;
31546fail:
31547 return NULL;
31548}
31549
31550
31551SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31552 PyObject *resultobj = 0;
31553 wxImageList *arg1 = (wxImageList *) 0 ;
31554 int arg2 ;
31555 int *arg3 = 0 ;
31556 int *arg4 = 0 ;
31557 void *argp1 = 0 ;
31558 int res1 = 0 ;
31559 int val2 ;
31560 int ecode2 = 0 ;
31561 int temp3 ;
31562 int res3 = SWIG_TMPOBJ ;
31563 int temp4 ;
31564 int res4 = SWIG_TMPOBJ ;
31565 PyObject * obj0 = 0 ;
31566 PyObject * obj1 = 0 ;
31567 char * kwnames[] = {
31568 (char *) "self",(char *) "index", NULL
31569 };
31570
31571 arg3 = &temp3;
31572 arg4 = &temp4;
31573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31575 if (!SWIG_IsOK(res1)) {
31576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31577 }
31578 arg1 = reinterpret_cast< wxImageList * >(argp1);
31579 ecode2 = SWIG_AsVal_int(obj1, &val2);
31580 if (!SWIG_IsOK(ecode2)) {
31581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31582 }
31583 arg2 = static_cast< int >(val2);
31584 {
31585 PyThreadState* __tstate = wxPyBeginAllowThreads();
31586 (arg1)->GetSize(arg2,*arg3,*arg4);
31587 wxPyEndAllowThreads(__tstate);
31588 if (PyErr_Occurred()) SWIG_fail;
31589 }
31590 resultobj = SWIG_Py_Void();
31591 if (SWIG_IsTmpObj(res3)) {
31592 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31593 } else {
31594 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31595 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31596 }
31597 if (SWIG_IsTmpObj(res4)) {
31598 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31599 } else {
31600 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31601 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31602 }
31603 return resultobj;
31604fail:
31605 return NULL;
31606}
31607
31608
31609SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31610 PyObject *obj;
31611 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31612 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31613 return SWIG_Py_Void();
31614}
31615
31616SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31617 return SWIG_Python_InitShadowInstance(args);
31618}
31619
50efceee
RD
31620SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31621 PyObject *resultobj = 0;
31622 wxStockGDI *result = 0 ;
0085ce49 31623
50efceee
RD
31624 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31625 {
31626 PyThreadState* __tstate = wxPyBeginAllowThreads();
31627 result = (wxStockGDI *)new wxStockGDI();
31628 wxPyEndAllowThreads(__tstate);
31629 if (PyErr_Occurred()) SWIG_fail;
31630 }
31631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31632 return resultobj;
31633fail:
31634 return NULL;
0085ce49
RD
31635}
31636
31637
50efceee
RD
31638SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31639 PyObject *resultobj = 0;
31640 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31641 void *argp1 = 0 ;
31642 int res1 = 0 ;
31643 PyObject *swig_obj[1] ;
0085ce49 31644
50efceee
RD
31645 if (!args) SWIG_fail;
31646 swig_obj[0] = args;
31647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31648 if (!SWIG_IsOK(res1)) {
31649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31650 }
31651 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31652 {
31653 PyThreadState* __tstate = wxPyBeginAllowThreads();
31654 delete arg1;
31655
31656 wxPyEndAllowThreads(__tstate);
31657 if (PyErr_Occurred()) SWIG_fail;
31658 }
31659 resultobj = SWIG_Py_Void();
31660 return resultobj;
31661fail:
31662 return NULL;
0085ce49
RD
31663}
31664
31665
50efceee
RD
31666SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31667 PyObject *resultobj = 0;
0085ce49 31668
50efceee
RD
31669 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31670 {
31671 PyThreadState* __tstate = wxPyBeginAllowThreads();
31672 wxStockGDI::DeleteAll();
31673 wxPyEndAllowThreads(__tstate);
31674 if (PyErr_Occurred()) SWIG_fail;
31675 }
31676 resultobj = SWIG_Py_Void();
31677 return resultobj;
31678fail:
31679 return NULL;
0085ce49
RD
31680}
31681
31682
50efceee
RD
31683SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31684 PyObject *resultobj = 0;
31685 wxStockGDI *result = 0 ;
0085ce49 31686
50efceee
RD
31687 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31688 {
31689 PyThreadState* __tstate = wxPyBeginAllowThreads();
31690 {
31691 wxStockGDI &_result_ref = wxStockGDI::instance();
31692 result = (wxStockGDI *) &_result_ref;
31693 }
31694 wxPyEndAllowThreads(__tstate);
31695 if (PyErr_Occurred()) SWIG_fail;
31696 }
31697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31698 return resultobj;
31699fail:
31700 return NULL;
0085ce49
RD
31701}
31702
31703
50efceee
RD
31704SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31705 PyObject *resultobj = 0;
31706 wxStockGDI::Item arg1 ;
31707 wxBrush *result = 0 ;
31708 int val1 ;
31709 int ecode1 = 0 ;
31710 PyObject * obj0 = 0 ;
31711 char * kwnames[] = {
31712 (char *) "item", NULL
31713 };
31714
31715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31716 ecode1 = SWIG_AsVal_int(obj0, &val1);
31717 if (!SWIG_IsOK(ecode1)) {
31718 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31719 }
31720 arg1 = static_cast< wxStockGDI::Item >(val1);
31721 {
31722 PyThreadState* __tstate = wxPyBeginAllowThreads();
31723 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31724 wxPyEndAllowThreads(__tstate);
31725 if (PyErr_Occurred()) SWIG_fail;
31726 }
31727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31728 return resultobj;
31729fail:
31730 return NULL;
0085ce49
RD
31731}
31732
31733
50efceee
RD
31734SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31735 PyObject *resultobj = 0;
31736 wxStockGDI::Item arg1 ;
31737 wxColour *result = 0 ;
31738 int val1 ;
31739 int ecode1 = 0 ;
31740 PyObject * obj0 = 0 ;
31741 char * kwnames[] = {
31742 (char *) "item", NULL
31743 };
0085ce49 31744
50efceee
RD
31745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31746 ecode1 = SWIG_AsVal_int(obj0, &val1);
31747 if (!SWIG_IsOK(ecode1)) {
31748 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31749 }
31750 arg1 = static_cast< wxStockGDI::Item >(val1);
31751 {
31752 PyThreadState* __tstate = wxPyBeginAllowThreads();
31753 result = (wxColour *)wxStockGDI::GetColour(arg1);
31754 wxPyEndAllowThreads(__tstate);
31755 if (PyErr_Occurred()) SWIG_fail;
31756 }
31757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31758 return resultobj;
31759fail:
31760 return NULL;
0085ce49
RD
31761}
31762
31763
50efceee
RD
31764SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31765 PyObject *resultobj = 0;
31766 wxStockGDI::Item arg1 ;
31767 wxCursor *result = 0 ;
31768 int val1 ;
31769 int ecode1 = 0 ;
31770 PyObject * obj0 = 0 ;
31771 char * kwnames[] = {
31772 (char *) "item", NULL
31773 };
31774
31775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31776 ecode1 = SWIG_AsVal_int(obj0, &val1);
31777 if (!SWIG_IsOK(ecode1)) {
31778 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31779 }
31780 arg1 = static_cast< wxStockGDI::Item >(val1);
31781 {
31782 PyThreadState* __tstate = wxPyBeginAllowThreads();
31783 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31784 wxPyEndAllowThreads(__tstate);
31785 if (PyErr_Occurred()) SWIG_fail;
31786 }
31787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31788 return resultobj;
31789fail:
31790 return NULL;
0085ce49
RD
31791}
31792
31793
50efceee
RD
31794SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31795 PyObject *resultobj = 0;
31796 wxStockGDI::Item arg1 ;
31797 wxPen *result = 0 ;
31798 int val1 ;
31799 int ecode1 = 0 ;
31800 PyObject * obj0 = 0 ;
31801 char * kwnames[] = {
31802 (char *) "item", NULL
31803 };
31804
31805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31806 ecode1 = SWIG_AsVal_int(obj0, &val1);
31807 if (!SWIG_IsOK(ecode1)) {
31808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31809 }
31810 arg1 = static_cast< wxStockGDI::Item >(val1);
31811 {
31812 PyThreadState* __tstate = wxPyBeginAllowThreads();
31813 result = (wxPen *)wxStockGDI::GetPen(arg1);
31814 wxPyEndAllowThreads(__tstate);
31815 if (PyErr_Occurred()) SWIG_fail;
31816 }
31817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31818 return resultobj;
31819fail:
31820 return NULL;
0085ce49
RD
31821}
31822
31823
50efceee
RD
31824SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31825 PyObject *resultobj = 0;
31826 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31827 wxStockGDI::Item arg2 ;
31828 wxFont *result = 0 ;
31829 void *argp1 = 0 ;
31830 int res1 = 0 ;
31831 int val2 ;
31832 int ecode2 = 0 ;
31833 PyObject * obj0 = 0 ;
31834 PyObject * obj1 = 0 ;
31835 char * kwnames[] = {
31836 (char *) "self",(char *) "item", NULL
31837 };
0085ce49 31838
50efceee
RD
31839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31841 if (!SWIG_IsOK(res1)) {
31842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31843 }
31844 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31845 ecode2 = SWIG_AsVal_int(obj1, &val2);
31846 if (!SWIG_IsOK(ecode2)) {
31847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31848 }
31849 arg2 = static_cast< wxStockGDI::Item >(val2);
31850 {
31851 PyThreadState* __tstate = wxPyBeginAllowThreads();
31852 result = (wxFont *)(arg1)->GetFont(arg2);
31853 wxPyEndAllowThreads(__tstate);
31854 if (PyErr_Occurred()) SWIG_fail;
31855 }
31856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31857 return resultobj;
31858fail:
31859 return NULL;
0085ce49
RD
31860}
31861
31862
50efceee
RD
31863SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31864 PyObject *obj;
31865 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31866 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31867 return SWIG_Py_Void();
0085ce49
RD
31868}
31869
50efceee
RD
31870SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31871 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
31872}
31873
0085ce49
RD
31874SWIGINTERN int NullBitmap_set(PyObject *) {
31875 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31876 return 1;
31877}
31878
31879
31880SWIGINTERN PyObject *NullBitmap_get(void) {
31881 PyObject *pyobj = 0;
31882
31883 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31884 return pyobj;
31885}
31886
31887
31888SWIGINTERN int NullIcon_set(PyObject *) {
31889 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31890 return 1;
31891}
31892
31893
31894SWIGINTERN PyObject *NullIcon_get(void) {
31895 PyObject *pyobj = 0;
31896
31897 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31898 return pyobj;
31899}
31900
31901
31902SWIGINTERN int NullCursor_set(PyObject *) {
31903 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31904 return 1;
31905}
31906
31907
31908SWIGINTERN PyObject *NullCursor_get(void) {
31909 PyObject *pyobj = 0;
31910
31911 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31912 return pyobj;
31913}
31914
31915
31916SWIGINTERN int NullPen_set(PyObject *) {
31917 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31918 return 1;
31919}
31920
31921
31922SWIGINTERN PyObject *NullPen_get(void) {
31923 PyObject *pyobj = 0;
31924
31925 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31926 return pyobj;
31927}
31928
31929
31930SWIGINTERN int NullBrush_set(PyObject *) {
31931 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31932 return 1;
31933}
31934
31935
31936SWIGINTERN PyObject *NullBrush_get(void) {
31937 PyObject *pyobj = 0;
31938
31939 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31940 return pyobj;
31941}
31942
31943
31944SWIGINTERN int NullPalette_set(PyObject *) {
31945 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31946 return 1;
31947}
31948
31949
31950SWIGINTERN PyObject *NullPalette_get(void) {
31951 PyObject *pyobj = 0;
31952
31953 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31954 return pyobj;
31955}
31956
31957
31958SWIGINTERN int NullFont_set(PyObject *) {
31959 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31960 return 1;
31961}
31962
31963
31964SWIGINTERN PyObject *NullFont_get(void) {
31965 PyObject *pyobj = 0;
31966
31967 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31968 return pyobj;
31969}
31970
31971
31972SWIGINTERN int NullColour_set(PyObject *) {
31973 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31974 return 1;
31975}
31976
31977
31978SWIGINTERN PyObject *NullColour_get(void) {
31979 PyObject *pyobj = 0;
31980
31981 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31982 return pyobj;
31983}
31984
31985
50efceee 31986SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 31987 PyObject *resultobj = 0;
50efceee
RD
31988 wxGDIObjListBase *result = 0 ;
31989
31990 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31991 {
31992 PyThreadState* __tstate = wxPyBeginAllowThreads();
31993 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31994 wxPyEndAllowThreads(__tstate);
31995 if (PyErr_Occurred()) SWIG_fail;
31996 }
31997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31998 return resultobj;
31999fail:
32000 return NULL;
32001}
32002
32003
32004SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32005 PyObject *resultobj = 0;
32006 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
32007 void *argp1 = 0 ;
32008 int res1 = 0 ;
50efceee 32009 PyObject *swig_obj[1] ;
0085ce49 32010
50efceee
RD
32011 if (!args) SWIG_fail;
32012 swig_obj[0] = args;
32013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 32014 if (!SWIG_IsOK(res1)) {
50efceee 32015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 32016 }
50efceee 32017 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
32018 {
32019 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
32020 delete arg1;
32021
0085ce49
RD
32022 wxPyEndAllowThreads(__tstate);
32023 if (PyErr_Occurred()) SWIG_fail;
32024 }
32025 resultobj = SWIG_Py_Void();
32026 return resultobj;
32027fail:
32028 return NULL;
32029}
32030
32031
50efceee
RD
32032SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32033 PyObject *obj;
32034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32035 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32036 return SWIG_Py_Void();
32037}
32038
32039SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32040 return SWIG_Python_InitShadowInstance(args);
32041}
32042
0085ce49
RD
32043SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32044 PyObject *resultobj = 0;
32045 wxPenList *arg1 = (wxPenList *) 0 ;
32046 wxColour *arg2 = 0 ;
32047 int arg3 ;
32048 int arg4 ;
32049 wxPen *result = 0 ;
32050 void *argp1 = 0 ;
32051 int res1 = 0 ;
32052 wxColour temp2 ;
32053 int val3 ;
32054 int ecode3 = 0 ;
32055 int val4 ;
32056 int ecode4 = 0 ;
32057 PyObject * obj0 = 0 ;
32058 PyObject * obj1 = 0 ;
32059 PyObject * obj2 = 0 ;
32060 PyObject * obj3 = 0 ;
32061 char * kwnames[] = {
32062 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32063 };
32064
32065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32067 if (!SWIG_IsOK(res1)) {
32068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32069 }
32070 arg1 = reinterpret_cast< wxPenList * >(argp1);
32071 {
32072 arg2 = &temp2;
32073 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32074 }
32075 ecode3 = SWIG_AsVal_int(obj2, &val3);
32076 if (!SWIG_IsOK(ecode3)) {
32077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32078 }
32079 arg3 = static_cast< int >(val3);
32080 ecode4 = SWIG_AsVal_int(obj3, &val4);
32081 if (!SWIG_IsOK(ecode4)) {
32082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32083 }
32084 arg4 = static_cast< int >(val4);
32085 {
32086 PyThreadState* __tstate = wxPyBeginAllowThreads();
32087 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32088 wxPyEndAllowThreads(__tstate);
32089 if (PyErr_Occurred()) SWIG_fail;
32090 }
32091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32092 return resultobj;
32093fail:
32094 return NULL;
32095}
32096
32097
50efceee 32098SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
32099 PyObject *resultobj = 0;
32100 wxPenList *arg1 = (wxPenList *) 0 ;
32101 wxPen *arg2 = (wxPen *) 0 ;
32102 void *argp1 = 0 ;
32103 int res1 = 0 ;
32104 void *argp2 = 0 ;
32105 int res2 = 0 ;
32106 PyObject * obj0 = 0 ;
32107 PyObject * obj1 = 0 ;
32108 char * kwnames[] = {
32109 (char *) "self",(char *) "pen", NULL
32110 };
32111
50efceee 32112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
32113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32114 if (!SWIG_IsOK(res1)) {
50efceee 32115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
32116 }
32117 arg1 = reinterpret_cast< wxPenList * >(argp1);
32118 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32119 if (!SWIG_IsOK(res2)) {
50efceee 32120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
32121 }
32122 arg2 = reinterpret_cast< wxPen * >(argp2);
32123 {
32124 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32125 (arg1)->AddPen(arg2);
0085ce49
RD
32126 wxPyEndAllowThreads(__tstate);
32127 if (PyErr_Occurred()) SWIG_fail;
32128 }
32129 resultobj = SWIG_Py_Void();
32130 return resultobj;
32131fail:
32132 return NULL;
32133}
32134
32135
50efceee 32136SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
32137 PyObject *resultobj = 0;
32138 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 32139 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
32140 void *argp1 = 0 ;
32141 int res1 = 0 ;
50efceee
RD
32142 void *argp2 = 0 ;
32143 int res2 = 0 ;
32144 PyObject * obj0 = 0 ;
32145 PyObject * obj1 = 0 ;
32146 char * kwnames[] = {
32147 (char *) "self",(char *) "pen", NULL
32148 };
0085ce49 32149
50efceee
RD
32150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 32152 if (!SWIG_IsOK(res1)) {
50efceee 32153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
32154 }
32155 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
32156 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32157 if (!SWIG_IsOK(res2)) {
32158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32159 }
32160 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
32161 {
32162 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32163 (arg1)->RemovePen(arg2);
0085ce49
RD
32164 wxPyEndAllowThreads(__tstate);
32165 if (PyErr_Occurred()) SWIG_fail;
32166 }
50efceee 32167 resultobj = SWIG_Py_Void();
0085ce49
RD
32168 return resultobj;
32169fail:
32170 return NULL;
32171}
32172
32173
32174SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32175 PyObject *obj;
32176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32177 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32178 return SWIG_Py_Void();
32179}
32180
50efceee
RD
32181SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32182 PyObject *resultobj = 0;
32183 wxBrushList *arg1 = (wxBrushList *) 0 ;
32184 wxColour *arg2 = 0 ;
32185 int arg3 = (int) wxSOLID ;
32186 wxBrush *result = 0 ;
32187 void *argp1 = 0 ;
32188 int res1 = 0 ;
32189 wxColour temp2 ;
32190 int val3 ;
32191 int ecode3 = 0 ;
32192 PyObject * obj0 = 0 ;
32193 PyObject * obj1 = 0 ;
32194 PyObject * obj2 = 0 ;
32195 char * kwnames[] = {
32196 (char *) "self",(char *) "colour",(char *) "style", NULL
32197 };
32198
32199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32201 if (!SWIG_IsOK(res1)) {
32202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32203 }
32204 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32205 {
32206 arg2 = &temp2;
32207 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32208 }
32209 if (obj2) {
32210 ecode3 = SWIG_AsVal_int(obj2, &val3);
32211 if (!SWIG_IsOK(ecode3)) {
32212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32213 }
32214 arg3 = static_cast< int >(val3);
32215 }
32216 {
32217 PyThreadState* __tstate = wxPyBeginAllowThreads();
32218 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32219 wxPyEndAllowThreads(__tstate);
32220 if (PyErr_Occurred()) SWIG_fail;
32221 }
32222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32223 return resultobj;
32224fail:
32225 return NULL;
32226}
32227
32228
0085ce49
RD
32229SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32230 PyObject *resultobj = 0;
32231 wxBrushList *arg1 = (wxBrushList *) 0 ;
32232 wxBrush *arg2 = (wxBrush *) 0 ;
32233 void *argp1 = 0 ;
32234 int res1 = 0 ;
32235 void *argp2 = 0 ;
32236 int res2 = 0 ;
32237 PyObject * obj0 = 0 ;
32238 PyObject * obj1 = 0 ;
32239 char * kwnames[] = {
32240 (char *) "self",(char *) "brush", NULL
32241 };
32242
32243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32245 if (!SWIG_IsOK(res1)) {
32246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32247 }
32248 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32249 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32250 if (!SWIG_IsOK(res2)) {
32251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32252 }
32253 arg2 = reinterpret_cast< wxBrush * >(argp2);
32254 {
32255 PyThreadState* __tstate = wxPyBeginAllowThreads();
32256 (arg1)->AddBrush(arg2);
32257 wxPyEndAllowThreads(__tstate);
32258 if (PyErr_Occurred()) SWIG_fail;
32259 }
32260 resultobj = SWIG_Py_Void();
32261 return resultobj;
32262fail:
32263 return NULL;
32264}
32265
32266
50efceee 32267SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
32268 PyObject *resultobj = 0;
32269 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 32270 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
32271 void *argp1 = 0 ;
32272 int res1 = 0 ;
50efceee
RD
32273 void *argp2 = 0 ;
32274 int res2 = 0 ;
32275 PyObject * obj0 = 0 ;
32276 PyObject * obj1 = 0 ;
32277 char * kwnames[] = {
32278 (char *) "self",(char *) "brush", NULL
32279 };
32280
32281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32283 if (!SWIG_IsOK(res1)) {
32284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32285 }
32286 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32288 if (!SWIG_IsOK(res2)) {
32289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32290 }
32291 arg2 = reinterpret_cast< wxBrush * >(argp2);
32292 {
32293 PyThreadState* __tstate = wxPyBeginAllowThreads();
32294 (arg1)->RemoveBrush(arg2);
32295 wxPyEndAllowThreads(__tstate);
32296 if (PyErr_Occurred()) SWIG_fail;
32297 }
32298 resultobj = SWIG_Py_Void();
32299 return resultobj;
32300fail:
32301 return NULL;
32302}
32303
32304
32305SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32306 PyObject *obj;
32307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32308 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32309 return SWIG_Py_Void();
32310}
32311
32312SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32313 PyObject *resultobj = 0;
32314 wxFontList *arg1 = (wxFontList *) 0 ;
32315 int arg2 ;
32316 int arg3 ;
32317 int arg4 ;
32318 int arg5 ;
32319 bool arg6 = (bool) false ;
32320 wxString const &arg7_defvalue = wxPyEmptyString ;
32321 wxString *arg7 = (wxString *) &arg7_defvalue ;
32322 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32323 wxFont *result = 0 ;
32324 void *argp1 = 0 ;
32325 int res1 = 0 ;
32326 int val2 ;
32327 int ecode2 = 0 ;
0085ce49
RD
32328 int val3 ;
32329 int ecode3 = 0 ;
50efceee
RD
32330 int val4 ;
32331 int ecode4 = 0 ;
32332 int val5 ;
32333 int ecode5 = 0 ;
32334 bool val6 ;
32335 int ecode6 = 0 ;
32336 bool temp7 = false ;
32337 int val8 ;
32338 int ecode8 = 0 ;
0085ce49
RD
32339 PyObject * obj0 = 0 ;
32340 PyObject * obj1 = 0 ;
32341 PyObject * obj2 = 0 ;
50efceee
RD
32342 PyObject * obj3 = 0 ;
32343 PyObject * obj4 = 0 ;
32344 PyObject * obj5 = 0 ;
32345 PyObject * obj6 = 0 ;
32346 PyObject * obj7 = 0 ;
0085ce49 32347 char * kwnames[] = {
50efceee 32348 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
32349 };
32350
50efceee
RD
32351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32353 if (!SWIG_IsOK(res1)) {
50efceee 32354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32355 }
50efceee
RD
32356 arg1 = reinterpret_cast< wxFontList * >(argp1);
32357 ecode2 = SWIG_AsVal_int(obj1, &val2);
32358 if (!SWIG_IsOK(ecode2)) {
32359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32360 }
32361 arg2 = static_cast< int >(val2);
32362 ecode3 = SWIG_AsVal_int(obj2, &val3);
32363 if (!SWIG_IsOK(ecode3)) {
32364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32365 }
32366 arg3 = static_cast< int >(val3);
32367 ecode4 = SWIG_AsVal_int(obj3, &val4);
32368 if (!SWIG_IsOK(ecode4)) {
32369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32370 }
32371 arg4 = static_cast< int >(val4);
32372 ecode5 = SWIG_AsVal_int(obj4, &val5);
32373 if (!SWIG_IsOK(ecode5)) {
32374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32375 }
32376 arg5 = static_cast< int >(val5);
32377 if (obj5) {
32378 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32379 if (!SWIG_IsOK(ecode6)) {
32380 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32381 }
32382 arg6 = static_cast< bool >(val6);
0085ce49 32383 }
50efceee
RD
32384 if (obj6) {
32385 {
32386 arg7 = wxString_in_helper(obj6);
32387 if (arg7 == NULL) SWIG_fail;
32388 temp7 = true;
32389 }
32390 }
32391 if (obj7) {
32392 ecode8 = SWIG_AsVal_int(obj7, &val8);
32393 if (!SWIG_IsOK(ecode8)) {
32394 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 32395 }
50efceee 32396 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
32397 }
32398 {
32399 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32400 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
32401 wxPyEndAllowThreads(__tstate);
32402 if (PyErr_Occurred()) SWIG_fail;
32403 }
50efceee
RD
32404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32405 {
32406 if (temp7)
32407 delete arg7;
32408 }
0085ce49
RD
32409 return resultobj;
32410fail:
50efceee
RD
32411 {
32412 if (temp7)
32413 delete arg7;
32414 }
0085ce49
RD
32415 return NULL;
32416}
32417
32418
50efceee 32419SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32420 PyObject *resultobj = 0;
50efceee
RD
32421 wxFontList *arg1 = (wxFontList *) 0 ;
32422 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32423 void *argp1 = 0 ;
32424 int res1 = 0 ;
32425 void *argp2 = 0 ;
32426 int res2 = 0 ;
32427 PyObject * obj0 = 0 ;
32428 PyObject * obj1 = 0 ;
32429 char * kwnames[] = {
50efceee 32430 (char *) "self",(char *) "font", NULL
0085ce49
RD
32431 };
32432
50efceee
RD
32433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32435 if (!SWIG_IsOK(res1)) {
50efceee 32436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32437 }
50efceee
RD
32438 arg1 = reinterpret_cast< wxFontList * >(argp1);
32439 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 32440 if (!SWIG_IsOK(res2)) {
50efceee 32441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 32442 }
50efceee 32443 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32444 {
32445 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32446 (arg1)->AddFont(arg2);
0085ce49
RD
32447 wxPyEndAllowThreads(__tstate);
32448 if (PyErr_Occurred()) SWIG_fail;
32449 }
32450 resultobj = SWIG_Py_Void();
32451 return resultobj;
32452fail:
32453 return NULL;
32454}
32455
32456
50efceee 32457SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32458 PyObject *resultobj = 0;
50efceee
RD
32459 wxFontList *arg1 = (wxFontList *) 0 ;
32460 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32461 void *argp1 = 0 ;
32462 int res1 = 0 ;
50efceee
RD
32463 void *argp2 = 0 ;
32464 int res2 = 0 ;
32465 PyObject * obj0 = 0 ;
32466 PyObject * obj1 = 0 ;
32467 char * kwnames[] = {
32468 (char *) "self",(char *) "font", NULL
32469 };
0085ce49 32470
50efceee
RD
32471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32473 if (!SWIG_IsOK(res1)) {
50efceee 32474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32475 }
50efceee
RD
32476 arg1 = reinterpret_cast< wxFontList * >(argp1);
32477 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32478 if (!SWIG_IsOK(res2)) {
32479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32480 }
32481 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32482 {
32483 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32484 (arg1)->RemoveFont(arg2);
0085ce49
RD
32485 wxPyEndAllowThreads(__tstate);
32486 if (PyErr_Occurred()) SWIG_fail;
32487 }
50efceee 32488 resultobj = SWIG_Py_Void();
0085ce49
RD
32489 return resultobj;
32490fail:
32491 return NULL;
32492}
32493
32494
50efceee 32495SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
32496 PyObject *obj;
32497 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 32498 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
32499 return SWIG_Py_Void();
32500}
32501
32502SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32503 PyObject *resultobj = 0;
32504 wxColourDatabase *result = 0 ;
32505
32506 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32507 {
32508 if (!wxPyCheckForApp()) SWIG_fail;
32509 PyThreadState* __tstate = wxPyBeginAllowThreads();
32510 result = (wxColourDatabase *)new wxColourDatabase();
32511 wxPyEndAllowThreads(__tstate);
32512 if (PyErr_Occurred()) SWIG_fail;
32513 }
32514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32515 return resultobj;
32516fail:
32517 return NULL;
32518}
32519
32520
32521SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32522 PyObject *resultobj = 0;
32523 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32524 void *argp1 = 0 ;
32525 int res1 = 0 ;
32526 PyObject *swig_obj[1] ;
32527
32528 if (!args) SWIG_fail;
32529 swig_obj[0] = args;
32530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32531 if (!SWIG_IsOK(res1)) {
32532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32533 }
32534 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32535 {
32536 PyThreadState* __tstate = wxPyBeginAllowThreads();
32537 delete arg1;
32538
32539 wxPyEndAllowThreads(__tstate);
32540 if (PyErr_Occurred()) SWIG_fail;
32541 }
32542 resultobj = SWIG_Py_Void();
32543 return resultobj;
32544fail:
32545 return NULL;
32546}
32547
32548
32549SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32550 PyObject *resultobj = 0;
32551 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32552 wxString *arg2 = 0 ;
32553 wxColour result;
32554 void *argp1 = 0 ;
32555 int res1 = 0 ;
32556 bool temp2 = false ;
32557 PyObject * obj0 = 0 ;
32558 PyObject * obj1 = 0 ;
32559 char * kwnames[] = {
32560 (char *) "self",(char *) "name", NULL
32561 };
32562
32563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32565 if (!SWIG_IsOK(res1)) {
32566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32567 }
32568 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32569 {
32570 arg2 = wxString_in_helper(obj1);
32571 if (arg2 == NULL) SWIG_fail;
32572 temp2 = true;
32573 }
32574 {
32575 PyThreadState* __tstate = wxPyBeginAllowThreads();
32576 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32577 wxPyEndAllowThreads(__tstate);
32578 if (PyErr_Occurred()) SWIG_fail;
32579 }
32580 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32581 {
32582 if (temp2)
32583 delete arg2;
32584 }
32585 return resultobj;
32586fail:
32587 {
32588 if (temp2)
32589 delete arg2;
32590 }
32591 return NULL;
32592}
32593
32594
32595SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32596 PyObject *resultobj = 0;
32597 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32598 wxColour *arg2 = 0 ;
32599 wxString result;
32600 void *argp1 = 0 ;
32601 int res1 = 0 ;
32602 wxColour temp2 ;
32603 PyObject * obj0 = 0 ;
32604 PyObject * obj1 = 0 ;
32605 char * kwnames[] = {
32606 (char *) "self",(char *) "colour", NULL
32607 };
32608
32609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32611 if (!SWIG_IsOK(res1)) {
32612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32613 }
32614 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32615 {
32616 arg2 = &temp2;
32617 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32618 }
32619 {
32620 PyThreadState* __tstate = wxPyBeginAllowThreads();
32621 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32622 wxPyEndAllowThreads(__tstate);
32623 if (PyErr_Occurred()) SWIG_fail;
32624 }
32625 {
32626#if wxUSE_UNICODE
32627 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32628#else
32629 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32630#endif
32631 }
32632 return resultobj;
32633fail:
32634 return NULL;
32635}
32636
32637
32638SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32639 PyObject *resultobj = 0;
32640 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32641 wxString *arg2 = 0 ;
32642 wxColour *arg3 = 0 ;
32643 void *argp1 = 0 ;
32644 int res1 = 0 ;
32645 bool temp2 = false ;
32646 wxColour temp3 ;
32647 PyObject * obj0 = 0 ;
32648 PyObject * obj1 = 0 ;
32649 PyObject * obj2 = 0 ;
32650 char * kwnames[] = {
32651 (char *) "self",(char *) "name",(char *) "colour", NULL
32652 };
32653
32654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32656 if (!SWIG_IsOK(res1)) {
32657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32658 }
32659 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32660 {
32661 arg2 = wxString_in_helper(obj1);
32662 if (arg2 == NULL) SWIG_fail;
32663 temp2 = true;
32664 }
32665 {
32666 arg3 = &temp3;
32667 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32668 }
32669 {
32670 PyThreadState* __tstate = wxPyBeginAllowThreads();
32671 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32672 wxPyEndAllowThreads(__tstate);
32673 if (PyErr_Occurred()) SWIG_fail;
32674 }
32675 resultobj = SWIG_Py_Void();
32676 {
32677 if (temp2)
32678 delete arg2;
32679 }
32680 return resultobj;
32681fail:
32682 {
32683 if (temp2)
32684 delete arg2;
32685 }
32686 return NULL;
32687}
32688
32689
32690SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32691 PyObject *resultobj = 0;
32692 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32693 wxString *arg2 = 0 ;
32694 int arg3 ;
32695 int arg4 ;
32696 int arg5 ;
32697 void *argp1 = 0 ;
32698 int res1 = 0 ;
32699 bool temp2 = false ;
32700 int val3 ;
32701 int ecode3 = 0 ;
32702 int val4 ;
32703 int ecode4 = 0 ;
50efceee
RD
32704 int val5 ;
32705 int ecode5 = 0 ;
0085ce49
RD
32706 PyObject * obj0 = 0 ;
32707 PyObject * obj1 = 0 ;
32708 PyObject * obj2 = 0 ;
32709 PyObject * obj3 = 0 ;
32710 PyObject * obj4 = 0 ;
0085ce49 32711 char * kwnames[] = {
50efceee 32712 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
32713 };
32714
50efceee
RD
32715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 32717 if (!SWIG_IsOK(res1)) {
50efceee
RD
32718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32719 }
32720 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32721 {
32722 arg2 = wxString_in_helper(obj1);
32723 if (arg2 == NULL) SWIG_fail;
32724 temp2 = true;
0085ce49 32725 }
0085ce49
RD
32726 ecode3 = SWIG_AsVal_int(obj2, &val3);
32727 if (!SWIG_IsOK(ecode3)) {
50efceee 32728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
32729 }
32730 arg3 = static_cast< int >(val3);
32731 ecode4 = SWIG_AsVal_int(obj3, &val4);
32732 if (!SWIG_IsOK(ecode4)) {
50efceee 32733 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
32734 }
32735 arg4 = static_cast< int >(val4);
32736 ecode5 = SWIG_AsVal_int(obj4, &val5);
32737 if (!SWIG_IsOK(ecode5)) {
50efceee 32738 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
32739 }
32740 arg5 = static_cast< int >(val5);
0085ce49
RD
32741 {
32742 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32743 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
32744 wxPyEndAllowThreads(__tstate);
32745 if (PyErr_Occurred()) SWIG_fail;
32746 }
50efceee 32747 resultobj = SWIG_Py_Void();
0085ce49 32748 {
50efceee
RD
32749 if (temp2)
32750 delete arg2;
0085ce49
RD
32751 }
32752 return resultobj;
32753fail:
32754 {
50efceee
RD
32755 if (temp2)
32756 delete arg2;
0085ce49
RD
32757 }
32758 return NULL;
32759}
32760
32761
50efceee
RD
32762SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32763 PyObject *obj;
32764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32765 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32766 return SWIG_Py_Void();
32767}
32768
32769SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32770 return SWIG_Python_InitShadowInstance(args);
32771}
32772
32773SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32774 PyObject *resultobj = 0;
50efceee 32775 wxFontList *result = 0 ;
0085ce49 32776
50efceee 32777 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
32778 {
32779 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32780 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
32781 wxPyEndAllowThreads(__tstate);
32782 if (PyErr_Occurred()) SWIG_fail;
32783 }
50efceee 32784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
32785 return resultobj;
32786fail:
32787 return NULL;
32788}
32789
32790
50efceee 32791SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32792 PyObject *resultobj = 0;
50efceee 32793 wxPenList *result = 0 ;
0085ce49 32794
50efceee 32795 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
32796 {
32797 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32798 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
32799 wxPyEndAllowThreads(__tstate);
32800 if (PyErr_Occurred()) SWIG_fail;
32801 }
50efceee 32802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
32803 return resultobj;
32804fail:
32805 return NULL;
32806}
32807
32808
50efceee
RD
32809SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32810 PyObject *resultobj = 0;
32811 wxBrushList *result = 0 ;
0085ce49 32812
50efceee
RD
32813 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32814 {
32815 PyThreadState* __tstate = wxPyBeginAllowThreads();
32816 result = (wxBrushList *)_wxPyInitTheBrushList();
32817 wxPyEndAllowThreads(__tstate);
32818 if (PyErr_Occurred()) SWIG_fail;
32819 }
32820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32821 return resultobj;
32822fail:
32823 return NULL;
0085ce49
RD
32824}
32825
32826
50efceee
RD
32827SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32828 PyObject *resultobj = 0;
32829 wxColourDatabase *result = 0 ;
0085ce49 32830
50efceee
RD
32831 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32832 {
32833 PyThreadState* __tstate = wxPyBeginAllowThreads();
32834 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32835 wxPyEndAllowThreads(__tstate);
32836 if (PyErr_Occurred()) SWIG_fail;
32837 }
32838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32839 return resultobj;
32840fail:
32841 return NULL;
0085ce49
RD
32842}
32843
32844
32845SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32846 PyObject *resultobj = 0;
32847 wxEffects *result = 0 ;
32848
32849 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32850 {
32851 PyThreadState* __tstate = wxPyBeginAllowThreads();
32852 result = (wxEffects *)new wxEffects();
32853 wxPyEndAllowThreads(__tstate);
32854 if (PyErr_Occurred()) SWIG_fail;
32855 }
32856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32857 return resultobj;
32858fail:
32859 return NULL;
32860}
32861
32862
32863SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32864 PyObject *resultobj = 0;
32865 wxEffects *arg1 = (wxEffects *) 0 ;
32866 wxColour result;
32867 void *argp1 = 0 ;
32868 int res1 = 0 ;
32869 PyObject *swig_obj[1] ;
32870
32871 if (!args) SWIG_fail;
32872 swig_obj[0] = args;
32873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32874 if (!SWIG_IsOK(res1)) {
32875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32876 }
32877 arg1 = reinterpret_cast< wxEffects * >(argp1);
32878 {
32879 PyThreadState* __tstate = wxPyBeginAllowThreads();
32880 result = ((wxEffects const *)arg1)->GetHighlightColour();
32881 wxPyEndAllowThreads(__tstate);
32882 if (PyErr_Occurred()) SWIG_fail;
32883 }
32884 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32885 return resultobj;
32886fail:
32887 return NULL;
32888}
32889
32890
32891SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32892 PyObject *resultobj = 0;
32893 wxEffects *arg1 = (wxEffects *) 0 ;
32894 wxColour result;
32895 void *argp1 = 0 ;
32896 int res1 = 0 ;
32897 PyObject *swig_obj[1] ;
32898
32899 if (!args) SWIG_fail;
32900 swig_obj[0] = args;
32901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32902 if (!SWIG_IsOK(res1)) {
32903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32904 }
32905 arg1 = reinterpret_cast< wxEffects * >(argp1);
32906 {
32907 PyThreadState* __tstate = wxPyBeginAllowThreads();
32908 result = ((wxEffects const *)arg1)->GetLightShadow();
32909 wxPyEndAllowThreads(__tstate);
32910 if (PyErr_Occurred()) SWIG_fail;
32911 }
32912 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32913 return resultobj;
32914fail:
32915 return NULL;
32916}
32917
32918
32919SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32920 PyObject *resultobj = 0;
32921 wxEffects *arg1 = (wxEffects *) 0 ;
32922 wxColour result;
32923 void *argp1 = 0 ;
32924 int res1 = 0 ;
32925 PyObject *swig_obj[1] ;
32926
32927 if (!args) SWIG_fail;
32928 swig_obj[0] = args;
32929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32930 if (!SWIG_IsOK(res1)) {
32931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32932 }
32933 arg1 = reinterpret_cast< wxEffects * >(argp1);
32934 {
32935 PyThreadState* __tstate = wxPyBeginAllowThreads();
32936 result = ((wxEffects const *)arg1)->GetFaceColour();
32937 wxPyEndAllowThreads(__tstate);
32938 if (PyErr_Occurred()) SWIG_fail;
32939 }
32940 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32941 return resultobj;
32942fail:
32943 return NULL;
32944}
32945
32946
32947SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32948 PyObject *resultobj = 0;
32949 wxEffects *arg1 = (wxEffects *) 0 ;
32950 wxColour result;
32951 void *argp1 = 0 ;
32952 int res1 = 0 ;
32953 PyObject *swig_obj[1] ;
32954
32955 if (!args) SWIG_fail;
32956 swig_obj[0] = args;
32957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32958 if (!SWIG_IsOK(res1)) {
32959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32960 }
32961 arg1 = reinterpret_cast< wxEffects * >(argp1);
32962 {
32963 PyThreadState* __tstate = wxPyBeginAllowThreads();
32964 result = ((wxEffects const *)arg1)->GetMediumShadow();
32965 wxPyEndAllowThreads(__tstate);
32966 if (PyErr_Occurred()) SWIG_fail;
32967 }
32968 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32969 return resultobj;
32970fail:
32971 return NULL;
32972}
32973
32974
32975SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32976 PyObject *resultobj = 0;
32977 wxEffects *arg1 = (wxEffects *) 0 ;
32978 wxColour result;
32979 void *argp1 = 0 ;
32980 int res1 = 0 ;
32981 PyObject *swig_obj[1] ;
32982
32983 if (!args) SWIG_fail;
32984 swig_obj[0] = args;
32985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32986 if (!SWIG_IsOK(res1)) {
32987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32988 }
32989 arg1 = reinterpret_cast< wxEffects * >(argp1);
32990 {
32991 PyThreadState* __tstate = wxPyBeginAllowThreads();
32992 result = ((wxEffects const *)arg1)->GetDarkShadow();
32993 wxPyEndAllowThreads(__tstate);
32994 if (PyErr_Occurred()) SWIG_fail;
32995 }
32996 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32997 return resultobj;
32998fail:
32999 return NULL;
33000}
33001
33002
33003SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33004 PyObject *resultobj = 0;
33005 wxEffects *arg1 = (wxEffects *) 0 ;
33006 wxColour *arg2 = 0 ;
33007 void *argp1 = 0 ;
33008 int res1 = 0 ;
33009 wxColour temp2 ;
33010 PyObject * obj0 = 0 ;
33011 PyObject * obj1 = 0 ;
33012 char * kwnames[] = {
33013 (char *) "self",(char *) "c", NULL
33014 };
33015
33016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33018 if (!SWIG_IsOK(res1)) {
33019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33020 }
33021 arg1 = reinterpret_cast< wxEffects * >(argp1);
33022 {
33023 arg2 = &temp2;
33024 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33025 }
33026 {
33027 PyThreadState* __tstate = wxPyBeginAllowThreads();
33028 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33029 wxPyEndAllowThreads(__tstate);
33030 if (PyErr_Occurred()) SWIG_fail;
33031 }
33032 resultobj = SWIG_Py_Void();
33033 return resultobj;
33034fail:
33035 return NULL;
33036}
33037
33038
33039SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33040 PyObject *resultobj = 0;
33041 wxEffects *arg1 = (wxEffects *) 0 ;
33042 wxColour *arg2 = 0 ;
33043 void *argp1 = 0 ;
33044 int res1 = 0 ;
33045 wxColour temp2 ;
33046 PyObject * obj0 = 0 ;
33047 PyObject * obj1 = 0 ;
33048 char * kwnames[] = {
33049 (char *) "self",(char *) "c", NULL
33050 };
33051
33052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33054 if (!SWIG_IsOK(res1)) {
33055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33056 }
33057 arg1 = reinterpret_cast< wxEffects * >(argp1);
33058 {
33059 arg2 = &temp2;
33060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33061 }
33062 {
33063 PyThreadState* __tstate = wxPyBeginAllowThreads();
33064 (arg1)->SetLightShadow((wxColour const &)*arg2);
33065 wxPyEndAllowThreads(__tstate);
33066 if (PyErr_Occurred()) SWIG_fail;
33067 }
33068 resultobj = SWIG_Py_Void();
33069 return resultobj;
33070fail:
33071 return NULL;
33072}
33073
33074
33075SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33076 PyObject *resultobj = 0;
33077 wxEffects *arg1 = (wxEffects *) 0 ;
33078 wxColour *arg2 = 0 ;
33079 void *argp1 = 0 ;
33080 int res1 = 0 ;
33081 wxColour temp2 ;
33082 PyObject * obj0 = 0 ;
33083 PyObject * obj1 = 0 ;
33084 char * kwnames[] = {
33085 (char *) "self",(char *) "c", NULL
33086 };
33087
33088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33090 if (!SWIG_IsOK(res1)) {
33091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33092 }
33093 arg1 = reinterpret_cast< wxEffects * >(argp1);
33094 {
33095 arg2 = &temp2;
33096 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33097 }
33098 {
33099 PyThreadState* __tstate = wxPyBeginAllowThreads();
33100 (arg1)->SetFaceColour((wxColour const &)*arg2);
33101 wxPyEndAllowThreads(__tstate);
33102 if (PyErr_Occurred()) SWIG_fail;
33103 }
33104 resultobj = SWIG_Py_Void();
33105 return resultobj;
33106fail:
33107 return NULL;
33108}
33109
33110
33111SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33112 PyObject *resultobj = 0;
33113 wxEffects *arg1 = (wxEffects *) 0 ;
33114 wxColour *arg2 = 0 ;
33115 void *argp1 = 0 ;
33116 int res1 = 0 ;
33117 wxColour temp2 ;
33118 PyObject * obj0 = 0 ;
33119 PyObject * obj1 = 0 ;
33120 char * kwnames[] = {
33121 (char *) "self",(char *) "c", NULL
33122 };
33123
33124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33126 if (!SWIG_IsOK(res1)) {
33127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33128 }
33129 arg1 = reinterpret_cast< wxEffects * >(argp1);
33130 {
33131 arg2 = &temp2;
33132 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33133 }
33134 {
33135 PyThreadState* __tstate = wxPyBeginAllowThreads();
33136 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33137 wxPyEndAllowThreads(__tstate);
33138 if (PyErr_Occurred()) SWIG_fail;
33139 }
33140 resultobj = SWIG_Py_Void();
33141 return resultobj;
33142fail:
33143 return NULL;
33144}
33145
33146
33147SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33148 PyObject *resultobj = 0;
33149 wxEffects *arg1 = (wxEffects *) 0 ;
33150 wxColour *arg2 = 0 ;
33151 void *argp1 = 0 ;
33152 int res1 = 0 ;
33153 wxColour temp2 ;
33154 PyObject * obj0 = 0 ;
33155 PyObject * obj1 = 0 ;
33156 char * kwnames[] = {
33157 (char *) "self",(char *) "c", NULL
33158 };
33159
33160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33162 if (!SWIG_IsOK(res1)) {
33163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33164 }
33165 arg1 = reinterpret_cast< wxEffects * >(argp1);
33166 {
33167 arg2 = &temp2;
33168 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33169 }
33170 {
33171 PyThreadState* __tstate = wxPyBeginAllowThreads();
33172 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33173 wxPyEndAllowThreads(__tstate);
33174 if (PyErr_Occurred()) SWIG_fail;
33175 }
33176 resultobj = SWIG_Py_Void();
33177 return resultobj;
33178fail:
33179 return NULL;
33180}
33181
33182
33183SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33184 PyObject *resultobj = 0;
33185 wxEffects *arg1 = (wxEffects *) 0 ;
33186 wxColour *arg2 = 0 ;
33187 wxColour *arg3 = 0 ;
33188 wxColour *arg4 = 0 ;
33189 wxColour *arg5 = 0 ;
33190 wxColour *arg6 = 0 ;
33191 void *argp1 = 0 ;
33192 int res1 = 0 ;
33193 wxColour temp2 ;
33194 wxColour temp3 ;
33195 wxColour temp4 ;
33196 wxColour temp5 ;
33197 wxColour temp6 ;
33198 PyObject * obj0 = 0 ;
33199 PyObject * obj1 = 0 ;
33200 PyObject * obj2 = 0 ;
33201 PyObject * obj3 = 0 ;
33202 PyObject * obj4 = 0 ;
33203 PyObject * obj5 = 0 ;
33204 char * kwnames[] = {
33205 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33206 };
33207
33208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33210 if (!SWIG_IsOK(res1)) {
33211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33212 }
33213 arg1 = reinterpret_cast< wxEffects * >(argp1);
33214 {
33215 arg2 = &temp2;
33216 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33217 }
33218 {
33219 arg3 = &temp3;
33220 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33221 }
33222 {
33223 arg4 = &temp4;
33224 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33225 }
33226 {
33227 arg5 = &temp5;
33228 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33229 }
33230 {
33231 arg6 = &temp6;
33232 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33233 }
33234 {
33235 PyThreadState* __tstate = wxPyBeginAllowThreads();
33236 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33237 wxPyEndAllowThreads(__tstate);
33238 if (PyErr_Occurred()) SWIG_fail;
33239 }
33240 resultobj = SWIG_Py_Void();
33241 return resultobj;
33242fail:
33243 return NULL;
33244}
33245
33246
33247SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33248 PyObject *resultobj = 0;
33249 wxEffects *arg1 = (wxEffects *) 0 ;
33250 wxDC *arg2 = 0 ;
33251 wxRect *arg3 = 0 ;
33252 int arg4 = (int) 1 ;
33253 void *argp1 = 0 ;
33254 int res1 = 0 ;
33255 void *argp2 = 0 ;
33256 int res2 = 0 ;
33257 wxRect temp3 ;
33258 int val4 ;
33259 int ecode4 = 0 ;
33260 PyObject * obj0 = 0 ;
33261 PyObject * obj1 = 0 ;
33262 PyObject * obj2 = 0 ;
33263 PyObject * obj3 = 0 ;
33264 char * kwnames[] = {
33265 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33266 };
33267
33268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33270 if (!SWIG_IsOK(res1)) {
33271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33272 }
33273 arg1 = reinterpret_cast< wxEffects * >(argp1);
33274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33275 if (!SWIG_IsOK(res2)) {
33276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33277 }
33278 if (!argp2) {
33279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33280 }
33281 arg2 = reinterpret_cast< wxDC * >(argp2);
33282 {
33283 arg3 = &temp3;
33284 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33285 }
33286 if (obj3) {
33287 ecode4 = SWIG_AsVal_int(obj3, &val4);
33288 if (!SWIG_IsOK(ecode4)) {
33289 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33290 }
33291 arg4 = static_cast< int >(val4);
33292 }
33293 {
33294 PyThreadState* __tstate = wxPyBeginAllowThreads();
33295 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33296 wxPyEndAllowThreads(__tstate);
33297 if (PyErr_Occurred()) SWIG_fail;
33298 }
33299 resultobj = SWIG_Py_Void();
33300 return resultobj;
33301fail:
33302 return NULL;
33303}
33304
33305
33306SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33307 PyObject *resultobj = 0;
33308 wxEffects *arg1 = (wxEffects *) 0 ;
33309 wxRect *arg2 = 0 ;
33310 wxDC *arg3 = 0 ;
33311 wxBitmap *arg4 = 0 ;
33312 bool result;
33313 void *argp1 = 0 ;
33314 int res1 = 0 ;
33315 wxRect temp2 ;
33316 void *argp3 = 0 ;
33317 int res3 = 0 ;
33318 void *argp4 = 0 ;
33319 int res4 = 0 ;
33320 PyObject * obj0 = 0 ;
33321 PyObject * obj1 = 0 ;
33322 PyObject * obj2 = 0 ;
33323 PyObject * obj3 = 0 ;
33324 char * kwnames[] = {
33325 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33326 };
33327
33328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33330 if (!SWIG_IsOK(res1)) {
33331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33332 }
33333 arg1 = reinterpret_cast< wxEffects * >(argp1);
33334 {
33335 arg2 = &temp2;
33336 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33337 }
33338 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33339 if (!SWIG_IsOK(res3)) {
33340 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33341 }
33342 if (!argp3) {
33343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33344 }
33345 arg3 = reinterpret_cast< wxDC * >(argp3);
33346 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33347 if (!SWIG_IsOK(res4)) {
33348 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33349 }
33350 if (!argp4) {
33351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33352 }
33353 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33354 {
33355 PyThreadState* __tstate = wxPyBeginAllowThreads();
33356 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33357 wxPyEndAllowThreads(__tstate);
33358 if (PyErr_Occurred()) SWIG_fail;
33359 }
33360 {
33361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33362 }
33363 return resultobj;
33364fail:
33365 return NULL;
33366}
33367
33368
33369SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33370 PyObject *obj;
33371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33372 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33373 return SWIG_Py_Void();
33374}
33375
33376SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33377 return SWIG_Python_InitShadowInstance(args);
33378}
33379
33380SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33381 PyObject *resultobj = 0;
33382 int arg1 ;
33383 int arg2 ;
33384 bool arg3 ;
33385 wxSplitterRenderParams *result = 0 ;
33386 int val1 ;
33387 int ecode1 = 0 ;
33388 int val2 ;
33389 int ecode2 = 0 ;
33390 bool val3 ;
33391 int ecode3 = 0 ;
33392 PyObject * obj0 = 0 ;
33393 PyObject * obj1 = 0 ;
33394 PyObject * obj2 = 0 ;
33395 char * kwnames[] = {
33396 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33397 };
33398
33399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33400 ecode1 = SWIG_AsVal_int(obj0, &val1);
33401 if (!SWIG_IsOK(ecode1)) {
33402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33403 }
33404 arg1 = static_cast< int >(val1);
33405 ecode2 = SWIG_AsVal_int(obj1, &val2);
33406 if (!SWIG_IsOK(ecode2)) {
33407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33408 }
33409 arg2 = static_cast< int >(val2);
33410 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33411 if (!SWIG_IsOK(ecode3)) {
33412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33413 }
33414 arg3 = static_cast< bool >(val3);
33415 {
33416 PyThreadState* __tstate = wxPyBeginAllowThreads();
33417 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33418 wxPyEndAllowThreads(__tstate);
33419 if (PyErr_Occurred()) SWIG_fail;
33420 }
33421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33422 return resultobj;
33423fail:
33424 return NULL;
33425}
33426
33427
33428SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33429 PyObject *resultobj = 0;
33430 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33431 void *argp1 = 0 ;
33432 int res1 = 0 ;
33433 PyObject *swig_obj[1] ;
33434
33435 if (!args) SWIG_fail;
33436 swig_obj[0] = args;
33437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33438 if (!SWIG_IsOK(res1)) {
33439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33440 }
33441 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33442 {
33443 PyThreadState* __tstate = wxPyBeginAllowThreads();
33444 delete arg1;
33445
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_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33457 PyObject *resultobj = 0;
33458 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33459 int result;
33460 void *argp1 = 0 ;
33461 int res1 = 0 ;
33462 PyObject *swig_obj[1] ;
33463
33464 if (!args) SWIG_fail;
33465 swig_obj[0] = args;
33466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33467 if (!SWIG_IsOK(res1)) {
33468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33469 }
33470 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33471 result = (int)(int) ((arg1)->widthSash);
33472 resultobj = SWIG_From_int(static_cast< int >(result));
33473 return resultobj;
33474fail:
33475 return NULL;
33476}
33477
33478
33479SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33480 PyObject *resultobj = 0;
33481 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33482 int result;
33483 void *argp1 = 0 ;
33484 int res1 = 0 ;
33485 PyObject *swig_obj[1] ;
33486
33487 if (!args) SWIG_fail;
33488 swig_obj[0] = args;
33489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33490 if (!SWIG_IsOK(res1)) {
33491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33492 }
33493 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33494 result = (int)(int) ((arg1)->border);
33495 resultobj = SWIG_From_int(static_cast< int >(result));
33496 return resultobj;
33497fail:
33498 return NULL;
33499}
33500
33501
33502SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33503 PyObject *resultobj = 0;
33504 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33505 bool result;
33506 void *argp1 = 0 ;
33507 int res1 = 0 ;
33508 PyObject *swig_obj[1] ;
33509
33510 if (!args) SWIG_fail;
33511 swig_obj[0] = args;
33512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33513 if (!SWIG_IsOK(res1)) {
33514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33515 }
33516 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33517 result = (bool)(bool) ((arg1)->isHotSensitive);
33518 resultobj = SWIG_From_bool(static_cast< bool >(result));
33519 return resultobj;
33520fail:
33521 return NULL;
33522}
33523
33524
33525SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33526 PyObject *obj;
33527 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33528 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33529 return SWIG_Py_Void();
33530}
33531
33532SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33533 return SWIG_Python_InitShadowInstance(args);
33534}
33535
33d6fd3b
RD
33536SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33537 PyObject *resultobj = 0;
33538 wxHeaderButtonParams *result = 0 ;
33539
33540 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33541 {
33542 PyThreadState* __tstate = wxPyBeginAllowThreads();
33543 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33544 wxPyEndAllowThreads(__tstate);
33545 if (PyErr_Occurred()) SWIG_fail;
33546 }
33547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33548 return resultobj;
33549fail:
33550 return NULL;
33551}
33552
33553
33554SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33555 PyObject *resultobj = 0;
33556 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33557 void *argp1 = 0 ;
33558 int res1 = 0 ;
33559 PyObject *swig_obj[1] ;
33560
33561 if (!args) SWIG_fail;
33562 swig_obj[0] = args;
33563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33564 if (!SWIG_IsOK(res1)) {
33565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33566 }
33567 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33568 {
33569 PyThreadState* __tstate = wxPyBeginAllowThreads();
33570 delete arg1;
33571
33572 wxPyEndAllowThreads(__tstate);
33573 if (PyErr_Occurred()) SWIG_fail;
33574 }
33575 resultobj = SWIG_Py_Void();
33576 return resultobj;
33577fail:
33578 return NULL;
33579}
33580
33581
33582SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33583 PyObject *resultobj = 0;
33584 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33585 wxColour *arg2 = (wxColour *) 0 ;
33586 void *argp1 = 0 ;
33587 int res1 = 0 ;
33588 wxColour temp2 ;
33589 PyObject *swig_obj[2] ;
33590
33591 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33593 if (!SWIG_IsOK(res1)) {
33594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33595 }
33596 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33597 {
33598 arg2 = &temp2;
33599 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33600 }
33601 if (arg1) (arg1)->m_arrowColour = *arg2;
33602
33603 resultobj = SWIG_Py_Void();
33604 return resultobj;
33605fail:
33606 return NULL;
33607}
33608
33609
33610SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33611 PyObject *resultobj = 0;
33612 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33613 wxColour *result = 0 ;
33614 void *argp1 = 0 ;
33615 int res1 = 0 ;
33616 PyObject *swig_obj[1] ;
33617
33618 if (!args) SWIG_fail;
33619 swig_obj[0] = args;
33620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33621 if (!SWIG_IsOK(res1)) {
33622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33623 }
33624 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33625 result = (wxColour *)& ((arg1)->m_arrowColour);
33626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33627 return resultobj;
33628fail:
33629 return NULL;
33630}
33631
33632
33633SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33634 PyObject *resultobj = 0;
33635 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33636 wxColour *arg2 = (wxColour *) 0 ;
33637 void *argp1 = 0 ;
33638 int res1 = 0 ;
33639 wxColour temp2 ;
33640 PyObject *swig_obj[2] ;
33641
33642 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33644 if (!SWIG_IsOK(res1)) {
33645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33646 }
33647 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33648 {
33649 arg2 = &temp2;
33650 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33651 }
33652 if (arg1) (arg1)->m_selectionColour = *arg2;
33653
33654 resultobj = SWIG_Py_Void();
33655 return resultobj;
33656fail:
33657 return NULL;
33658}
33659
33660
33661SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33662 PyObject *resultobj = 0;
33663 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33664 wxColour *result = 0 ;
33665 void *argp1 = 0 ;
33666 int res1 = 0 ;
33667 PyObject *swig_obj[1] ;
33668
33669 if (!args) SWIG_fail;
33670 swig_obj[0] = args;
33671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33672 if (!SWIG_IsOK(res1)) {
33673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33674 }
33675 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33676 result = (wxColour *)& ((arg1)->m_selectionColour);
33677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33678 return resultobj;
33679fail:
33680 return NULL;
33681}
33682
33683
33684SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33685 PyObject *resultobj = 0;
33686 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33687 wxString *arg2 = (wxString *) 0 ;
33688 void *argp1 = 0 ;
33689 int res1 = 0 ;
33690 bool temp2 = false ;
33691 PyObject *swig_obj[2] ;
33692
33693 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33695 if (!SWIG_IsOK(res1)) {
33696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33697 }
33698 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33699 {
33700 arg2 = wxString_in_helper(swig_obj[1]);
33701 if (arg2 == NULL) SWIG_fail;
33702 temp2 = true;
33703 }
33704 if (arg1) (arg1)->m_labelText = *arg2;
33705
33706 resultobj = SWIG_Py_Void();
33707 {
33708 if (temp2)
33709 delete arg2;
33710 }
33711 return resultobj;
33712fail:
33713 {
33714 if (temp2)
33715 delete arg2;
33716 }
33717 return NULL;
33718}
33719
33720
33721SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33722 PyObject *resultobj = 0;
33723 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33724 wxString *result = 0 ;
33725 void *argp1 = 0 ;
33726 int res1 = 0 ;
33727 PyObject *swig_obj[1] ;
33728
33729 if (!args) SWIG_fail;
33730 swig_obj[0] = args;
33731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33732 if (!SWIG_IsOK(res1)) {
33733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33734 }
33735 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33736 result = (wxString *)& ((arg1)->m_labelText);
33737 {
33738#if wxUSE_UNICODE
33739 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33740#else
33741 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33742#endif
33743 }
33744 return resultobj;
33745fail:
33746 return NULL;
33747}
33748
33749
33750SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33751 PyObject *resultobj = 0;
33752 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33753 wxFont *arg2 = (wxFont *) 0 ;
33754 void *argp1 = 0 ;
33755 int res1 = 0 ;
33756 void *argp2 = 0 ;
33757 int res2 = 0 ;
33758 PyObject *swig_obj[2] ;
33759
33760 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33762 if (!SWIG_IsOK(res1)) {
33763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33764 }
33765 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33766 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33767 if (!SWIG_IsOK(res2)) {
33768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33769 }
33770 arg2 = reinterpret_cast< wxFont * >(argp2);
33771 if (arg1) (arg1)->m_labelFont = *arg2;
33772
33773 resultobj = SWIG_Py_Void();
33774 return resultobj;
33775fail:
33776 return NULL;
33777}
33778
33779
33780SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33781 PyObject *resultobj = 0;
33782 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33783 wxFont *result = 0 ;
33784 void *argp1 = 0 ;
33785 int res1 = 0 ;
33786 PyObject *swig_obj[1] ;
33787
33788 if (!args) SWIG_fail;
33789 swig_obj[0] = args;
33790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33791 if (!SWIG_IsOK(res1)) {
33792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33793 }
33794 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33795 result = (wxFont *)& ((arg1)->m_labelFont);
33796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33797 return resultobj;
33798fail:
33799 return NULL;
33800}
33801
33802
33803SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33804 PyObject *resultobj = 0;
33805 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33806 wxColour *arg2 = (wxColour *) 0 ;
33807 void *argp1 = 0 ;
33808 int res1 = 0 ;
33809 wxColour temp2 ;
33810 PyObject *swig_obj[2] ;
33811
33812 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33814 if (!SWIG_IsOK(res1)) {
33815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33816 }
33817 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33818 {
33819 arg2 = &temp2;
33820 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33821 }
33822 if (arg1) (arg1)->m_labelColour = *arg2;
33823
33824 resultobj = SWIG_Py_Void();
33825 return resultobj;
33826fail:
33827 return NULL;
33828}
33829
33830
33831SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33832 PyObject *resultobj = 0;
33833 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33834 wxColour *result = 0 ;
33835 void *argp1 = 0 ;
33836 int res1 = 0 ;
33837 PyObject *swig_obj[1] ;
33838
33839 if (!args) SWIG_fail;
33840 swig_obj[0] = args;
33841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33842 if (!SWIG_IsOK(res1)) {
33843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33844 }
33845 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33846 result = (wxColour *)& ((arg1)->m_labelColour);
33847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33848 return resultobj;
33849fail:
33850 return NULL;
33851}
33852
33853
33854SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33855 PyObject *resultobj = 0;
33856 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33857 wxBitmap *arg2 = (wxBitmap *) 0 ;
33858 void *argp1 = 0 ;
33859 int res1 = 0 ;
33860 void *argp2 = 0 ;
33861 int res2 = 0 ;
33862 PyObject *swig_obj[2] ;
33863
33864 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33866 if (!SWIG_IsOK(res1)) {
33867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33868 }
33869 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33870 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33871 if (!SWIG_IsOK(res2)) {
33872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33873 }
33874 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33875 if (arg1) (arg1)->m_labelBitmap = *arg2;
33876
33877 resultobj = SWIG_Py_Void();
33878 return resultobj;
33879fail:
33880 return NULL;
33881}
33882
33883
33884SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33885 PyObject *resultobj = 0;
33886 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33887 wxBitmap *result = 0 ;
33888 void *argp1 = 0 ;
33889 int res1 = 0 ;
33890 PyObject *swig_obj[1] ;
33891
33892 if (!args) SWIG_fail;
33893 swig_obj[0] = args;
33894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33895 if (!SWIG_IsOK(res1)) {
33896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33897 }
33898 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33899 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33901 return resultobj;
33902fail:
33903 return NULL;
33904}
33905
33906
33907SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33908 PyObject *resultobj = 0;
33909 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33910 int arg2 ;
33911 void *argp1 = 0 ;
33912 int res1 = 0 ;
33913 int val2 ;
33914 int ecode2 = 0 ;
33915 PyObject *swig_obj[2] ;
33916
33917 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33919 if (!SWIG_IsOK(res1)) {
33920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33921 }
33922 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33923 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33924 if (!SWIG_IsOK(ecode2)) {
33925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33926 }
33927 arg2 = static_cast< int >(val2);
33928 if (arg1) (arg1)->m_labelAlignment = arg2;
33929
33930 resultobj = SWIG_Py_Void();
33931 return resultobj;
33932fail:
33933 return NULL;
33934}
33935
33936
33937SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33938 PyObject *resultobj = 0;
33939 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33940 int result;
33941 void *argp1 = 0 ;
33942 int res1 = 0 ;
33943 PyObject *swig_obj[1] ;
33944
33945 if (!args) SWIG_fail;
33946 swig_obj[0] = args;
33947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33948 if (!SWIG_IsOK(res1)) {
33949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33950 }
33951 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33952 result = (int) ((arg1)->m_labelAlignment);
33953 resultobj = SWIG_From_int(static_cast< int >(result));
33954 return resultobj;
33955fail:
33956 return NULL;
33957}
33958
33959
33960SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33961 PyObject *obj;
33962 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33963 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33964 return SWIG_Py_Void();
33965}
33966
33967SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33968 return SWIG_Python_InitShadowInstance(args);
33969}
33970
0085ce49
RD
33971SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33972 PyObject *resultobj = 0;
33973 int arg1 ;
33974 int arg2 ;
33975 wxRendererVersion *result = 0 ;
33976 int val1 ;
33977 int ecode1 = 0 ;
33978 int val2 ;
33979 int ecode2 = 0 ;
33980 PyObject * obj0 = 0 ;
33981 PyObject * obj1 = 0 ;
33982 char * kwnames[] = {
33983 (char *) "version_",(char *) "age_", NULL
33984 };
33985
33986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33987 ecode1 = SWIG_AsVal_int(obj0, &val1);
33988 if (!SWIG_IsOK(ecode1)) {
33989 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33990 }
33991 arg1 = static_cast< int >(val1);
33992 ecode2 = SWIG_AsVal_int(obj1, &val2);
33993 if (!SWIG_IsOK(ecode2)) {
33994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33995 }
33996 arg2 = static_cast< int >(val2);
33997 {
33998 PyThreadState* __tstate = wxPyBeginAllowThreads();
33999 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34000 wxPyEndAllowThreads(__tstate);
34001 if (PyErr_Occurred()) SWIG_fail;
34002 }
34003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34004 return resultobj;
34005fail:
34006 return NULL;
34007}
34008
34009
34010SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34011 PyObject *resultobj = 0;
34012 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34013 void *argp1 = 0 ;
34014 int res1 = 0 ;
34015 PyObject *swig_obj[1] ;
34016
34017 if (!args) SWIG_fail;
34018 swig_obj[0] = args;
34019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34020 if (!SWIG_IsOK(res1)) {
34021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34022 }
34023 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34024 {
34025 PyThreadState* __tstate = wxPyBeginAllowThreads();
34026 delete arg1;
34027
34028 wxPyEndAllowThreads(__tstate);
34029 if (PyErr_Occurred()) SWIG_fail;
34030 }
34031 resultobj = SWIG_Py_Void();
34032 return resultobj;
34033fail:
34034 return NULL;
34035}
34036
34037
34038SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34039 PyObject *resultobj = 0;
34040 wxRendererVersion *arg1 = 0 ;
34041 bool result;
34042 void *argp1 = 0 ;
34043 int res1 = 0 ;
34044 PyObject * obj0 = 0 ;
34045 char * kwnames[] = {
34046 (char *) "ver", NULL
34047 };
34048
34049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34050 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34051 if (!SWIG_IsOK(res1)) {
34052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34053 }
34054 if (!argp1) {
34055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34056 }
34057 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34058 {
34059 PyThreadState* __tstate = wxPyBeginAllowThreads();
34060 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34061 wxPyEndAllowThreads(__tstate);
34062 if (PyErr_Occurred()) SWIG_fail;
34063 }
34064 {
34065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34066 }
34067 return resultobj;
34068fail:
34069 return NULL;
34070}
34071
34072
34073SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34074 PyObject *resultobj = 0;
34075 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34076 int result;
34077 void *argp1 = 0 ;
34078 int res1 = 0 ;
34079 PyObject *swig_obj[1] ;
34080
34081 if (!args) SWIG_fail;
34082 swig_obj[0] = args;
34083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34084 if (!SWIG_IsOK(res1)) {
34085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34086 }
34087 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34088 result = (int)(int) ((arg1)->version);
34089 resultobj = SWIG_From_int(static_cast< int >(result));
34090 return resultobj;
34091fail:
34092 return NULL;
34093}
34094
34095
34096SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34097 PyObject *resultobj = 0;
34098 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34099 int result;
34100 void *argp1 = 0 ;
34101 int res1 = 0 ;
34102 PyObject *swig_obj[1] ;
34103
34104 if (!args) SWIG_fail;
34105 swig_obj[0] = args;
34106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34107 if (!SWIG_IsOK(res1)) {
34108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34109 }
34110 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34111 result = (int)(int) ((arg1)->age);
34112 resultobj = SWIG_From_int(static_cast< int >(result));
34113 return resultobj;
34114fail:
34115 return NULL;
34116}
34117
34118
34119SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34120 PyObject *obj;
34121 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34122 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34123 return SWIG_Py_Void();
34124}
34125
34126SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34127 return SWIG_Python_InitShadowInstance(args);
34128}
34129
34130SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34131 PyObject *resultobj = 0;
34132 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34133 wxWindow *arg2 = (wxWindow *) 0 ;
34134 wxDC *arg3 = 0 ;
34135 wxRect *arg4 = 0 ;
34136 int arg5 = (int) 0 ;
33d6fd3b
RD
34137 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34138 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34139 int result;
0085ce49
RD
34140 void *argp1 = 0 ;
34141 int res1 = 0 ;
34142 void *argp2 = 0 ;
34143 int res2 = 0 ;
34144 void *argp3 = 0 ;
34145 int res3 = 0 ;
34146 wxRect temp4 ;
34147 int val5 ;
34148 int ecode5 = 0 ;
33d6fd3b
RD
34149 int val6 ;
34150 int ecode6 = 0 ;
34151 void *argp7 = 0 ;
34152 int res7 = 0 ;
0085ce49
RD
34153 PyObject * obj0 = 0 ;
34154 PyObject * obj1 = 0 ;
34155 PyObject * obj2 = 0 ;
34156 PyObject * obj3 = 0 ;
34157 PyObject * obj4 = 0 ;
33d6fd3b
RD
34158 PyObject * obj5 = 0 ;
34159 PyObject * obj6 = 0 ;
0085ce49 34160 char * kwnames[] = {
33d6fd3b 34161 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
0085ce49
RD
34162 };
34163
33d6fd3b 34164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
0085ce49
RD
34165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34166 if (!SWIG_IsOK(res1)) {
34167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34168 }
34169 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34170 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34171 if (!SWIG_IsOK(res2)) {
34172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34173 }
34174 arg2 = reinterpret_cast< wxWindow * >(argp2);
34175 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34176 if (!SWIG_IsOK(res3)) {
34177 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34178 }
34179 if (!argp3) {
34180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34181 }
34182 arg3 = reinterpret_cast< wxDC * >(argp3);
34183 {
34184 arg4 = &temp4;
34185 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34186 }
34187 if (obj4) {
34188 ecode5 = SWIG_AsVal_int(obj4, &val5);
34189 if (!SWIG_IsOK(ecode5)) {
34190 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34191 }
34192 arg5 = static_cast< int >(val5);
34193 }
33d6fd3b
RD
34194 if (obj5) {
34195 ecode6 = SWIG_AsVal_int(obj5, &val6);
34196 if (!SWIG_IsOK(ecode6)) {
34197 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34198 }
34199 arg6 = static_cast< wxHeaderSortIconType >(val6);
34200 }
34201 if (obj6) {
34202 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34203 if (!SWIG_IsOK(res7)) {
34204 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34205 }
34206 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34207 }
34208 {
34209 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34210 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33d6fd3b
RD
34211 wxPyEndAllowThreads(__tstate);
34212 if (PyErr_Occurred()) SWIG_fail;
34213 }
723282b6 34214 resultobj = SWIG_From_int(static_cast< int >(result));
33d6fd3b
RD
34215 return resultobj;
34216fail:
34217 return NULL;
34218}
34219
34220
34221SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34222 PyObject *resultobj = 0;
34223 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34224 wxWindow *arg2 = (wxWindow *) 0 ;
34225 wxDC *arg3 = 0 ;
34226 wxRect *arg4 = 0 ;
34227 int arg5 = (int) 0 ;
34228 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34229 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34230 int result;
33d6fd3b
RD
34231 void *argp1 = 0 ;
34232 int res1 = 0 ;
34233 void *argp2 = 0 ;
34234 int res2 = 0 ;
34235 void *argp3 = 0 ;
34236 int res3 = 0 ;
34237 wxRect temp4 ;
34238 int val5 ;
34239 int ecode5 = 0 ;
34240 int val6 ;
34241 int ecode6 = 0 ;
34242 void *argp7 = 0 ;
34243 int res7 = 0 ;
34244 PyObject * obj0 = 0 ;
34245 PyObject * obj1 = 0 ;
34246 PyObject * obj2 = 0 ;
34247 PyObject * obj3 = 0 ;
34248 PyObject * obj4 = 0 ;
34249 PyObject * obj5 = 0 ;
34250 PyObject * obj6 = 0 ;
34251 char * kwnames[] = {
34252 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34253 };
34254
34255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34257 if (!SWIG_IsOK(res1)) {
34258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34259 }
34260 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34261 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34262 if (!SWIG_IsOK(res2)) {
34263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34264 }
34265 arg2 = reinterpret_cast< wxWindow * >(argp2);
34266 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34267 if (!SWIG_IsOK(res3)) {
34268 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34269 }
34270 if (!argp3) {
34271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34272 }
34273 arg3 = reinterpret_cast< wxDC * >(argp3);
34274 {
34275 arg4 = &temp4;
34276 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34277 }
34278 if (obj4) {
34279 ecode5 = SWIG_AsVal_int(obj4, &val5);
34280 if (!SWIG_IsOK(ecode5)) {
34281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34282 }
34283 arg5 = static_cast< int >(val5);
34284 }
34285 if (obj5) {
34286 ecode6 = SWIG_AsVal_int(obj5, &val6);
34287 if (!SWIG_IsOK(ecode6)) {
34288 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34289 }
34290 arg6 = static_cast< wxHeaderSortIconType >(val6);
34291 }
34292 if (obj6) {
34293 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34294 if (!SWIG_IsOK(res7)) {
34295 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34296 }
34297 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34298 }
0085ce49
RD
34299 {
34300 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34301 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
0085ce49
RD
34302 wxPyEndAllowThreads(__tstate);
34303 if (PyErr_Occurred()) SWIG_fail;
34304 }
723282b6 34305 resultobj = SWIG_From_int(static_cast< int >(result));
0085ce49
RD
34306 return resultobj;
34307fail:
34308 return NULL;
34309}
34310
34311
33d6fd3b
RD
34312SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34313 PyObject *resultobj = 0;
34314 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34315 wxWindow *arg2 = (wxWindow *) 0 ;
34316 int result;
34317 void *argp1 = 0 ;
34318 int res1 = 0 ;
34319 void *argp2 = 0 ;
34320 int res2 = 0 ;
34321 PyObject * obj0 = 0 ;
34322 PyObject * obj1 = 0 ;
34323 char * kwnames[] = {
34324 (char *) "self",(char *) "win", NULL
34325 };
34326
34327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34329 if (!SWIG_IsOK(res1)) {
34330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34331 }
34332 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34333 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34334 if (!SWIG_IsOK(res2)) {
34335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34336 }
34337 arg2 = reinterpret_cast< wxWindow * >(argp2);
34338 {
34339 PyThreadState* __tstate = wxPyBeginAllowThreads();
34340 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34341 wxPyEndAllowThreads(__tstate);
34342 if (PyErr_Occurred()) SWIG_fail;
34343 }
34344 resultobj = SWIG_From_int(static_cast< int >(result));
34345 return resultobj;
34346fail:
34347 return NULL;
34348}
34349
34350
0085ce49
RD
34351SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34352 PyObject *resultobj = 0;
34353 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34354 wxWindow *arg2 = (wxWindow *) 0 ;
34355 wxDC *arg3 = 0 ;
34356 wxRect *arg4 = 0 ;
34357 int arg5 = (int) 0 ;
34358 void *argp1 = 0 ;
34359 int res1 = 0 ;
34360 void *argp2 = 0 ;
34361 int res2 = 0 ;
34362 void *argp3 = 0 ;
34363 int res3 = 0 ;
34364 wxRect temp4 ;
34365 int val5 ;
34366 int ecode5 = 0 ;
34367 PyObject * obj0 = 0 ;
34368 PyObject * obj1 = 0 ;
34369 PyObject * obj2 = 0 ;
34370 PyObject * obj3 = 0 ;
34371 PyObject * obj4 = 0 ;
34372 char * kwnames[] = {
34373 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34374 };
34375
34376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34378 if (!SWIG_IsOK(res1)) {
34379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34380 }
34381 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34382 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34383 if (!SWIG_IsOK(res2)) {
34384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34385 }
34386 arg2 = reinterpret_cast< wxWindow * >(argp2);
34387 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34388 if (!SWIG_IsOK(res3)) {
34389 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34390 }
34391 if (!argp3) {
34392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34393 }
34394 arg3 = reinterpret_cast< wxDC * >(argp3);
34395 {
34396 arg4 = &temp4;
34397 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34398 }
34399 if (obj4) {
34400 ecode5 = SWIG_AsVal_int(obj4, &val5);
34401 if (!SWIG_IsOK(ecode5)) {
34402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34403 }
34404 arg5 = static_cast< int >(val5);
34405 }
34406 {
34407 PyThreadState* __tstate = wxPyBeginAllowThreads();
34408 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34409 wxPyEndAllowThreads(__tstate);
34410 if (PyErr_Occurred()) SWIG_fail;
34411 }
34412 resultobj = SWIG_Py_Void();
34413 return resultobj;
34414fail:
34415 return NULL;
34416}
34417
34418
34419SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34420 PyObject *resultobj = 0;
34421 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34422 wxWindow *arg2 = (wxWindow *) 0 ;
34423 wxDC *arg3 = 0 ;
34424 wxRect *arg4 = 0 ;
34425 int arg5 = (int) 0 ;
34426 void *argp1 = 0 ;
34427 int res1 = 0 ;
34428 void *argp2 = 0 ;
34429 int res2 = 0 ;
34430 void *argp3 = 0 ;
34431 int res3 = 0 ;
34432 wxRect temp4 ;
34433 int val5 ;
34434 int ecode5 = 0 ;
34435 PyObject * obj0 = 0 ;
34436 PyObject * obj1 = 0 ;
34437 PyObject * obj2 = 0 ;
34438 PyObject * obj3 = 0 ;
34439 PyObject * obj4 = 0 ;
34440 char * kwnames[] = {
34441 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34442 };
34443
34444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34446 if (!SWIG_IsOK(res1)) {
34447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34448 }
34449 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34451 if (!SWIG_IsOK(res2)) {
34452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34453 }
34454 arg2 = reinterpret_cast< wxWindow * >(argp2);
34455 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34456 if (!SWIG_IsOK(res3)) {
34457 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34458 }
34459 if (!argp3) {
34460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34461 }
34462 arg3 = reinterpret_cast< wxDC * >(argp3);
34463 {
34464 arg4 = &temp4;
34465 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34466 }
34467 if (obj4) {
34468 ecode5 = SWIG_AsVal_int(obj4, &val5);
34469 if (!SWIG_IsOK(ecode5)) {
34470 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34471 }
34472 arg5 = static_cast< int >(val5);
34473 }
34474 {
34475 PyThreadState* __tstate = wxPyBeginAllowThreads();
34476 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34477 wxPyEndAllowThreads(__tstate);
34478 if (PyErr_Occurred()) SWIG_fail;
34479 }
34480 resultobj = SWIG_Py_Void();
34481 return resultobj;
34482fail:
34483 return NULL;
34484}
34485
34486
34487SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34488 PyObject *resultobj = 0;
34489 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34490 wxWindow *arg2 = (wxWindow *) 0 ;
34491 wxDC *arg3 = 0 ;
34492 wxSize *arg4 = 0 ;
34493 int arg5 ;
34494 wxOrientation arg6 ;
34495 int arg7 = (int) 0 ;
34496 void *argp1 = 0 ;
34497 int res1 = 0 ;
34498 void *argp2 = 0 ;
34499 int res2 = 0 ;
34500 void *argp3 = 0 ;
34501 int res3 = 0 ;
34502 wxSize temp4 ;
34503 int val5 ;
34504 int ecode5 = 0 ;
34505 int val6 ;
34506 int ecode6 = 0 ;
34507 int val7 ;
34508 int ecode7 = 0 ;
34509 PyObject * obj0 = 0 ;
34510 PyObject * obj1 = 0 ;
34511 PyObject * obj2 = 0 ;
34512 PyObject * obj3 = 0 ;
34513 PyObject * obj4 = 0 ;
34514 PyObject * obj5 = 0 ;
34515 PyObject * obj6 = 0 ;
34516 char * kwnames[] = {
34517 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34518 };
34519
34520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34522 if (!SWIG_IsOK(res1)) {
34523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34524 }
34525 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34526 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34527 if (!SWIG_IsOK(res2)) {
34528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34529 }
34530 arg2 = reinterpret_cast< wxWindow * >(argp2);
34531 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34532 if (!SWIG_IsOK(res3)) {
34533 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34534 }
34535 if (!argp3) {
34536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34537 }
34538 arg3 = reinterpret_cast< wxDC * >(argp3);
34539 {
34540 arg4 = &temp4;
34541 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34542 }
34543 ecode5 = SWIG_AsVal_int(obj4, &val5);
34544 if (!SWIG_IsOK(ecode5)) {
34545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34546 }
34547 arg5 = static_cast< int >(val5);
34548 ecode6 = SWIG_AsVal_int(obj5, &val6);
34549 if (!SWIG_IsOK(ecode6)) {
34550 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34551 }
34552 arg6 = static_cast< wxOrientation >(val6);
34553 if (obj6) {
34554 ecode7 = SWIG_AsVal_int(obj6, &val7);
34555 if (!SWIG_IsOK(ecode7)) {
34556 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34557 }
34558 arg7 = static_cast< int >(val7);
34559 }
34560 {
34561 PyThreadState* __tstate = wxPyBeginAllowThreads();
34562 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34563 wxPyEndAllowThreads(__tstate);
34564 if (PyErr_Occurred()) SWIG_fail;
34565 }
34566 resultobj = SWIG_Py_Void();
34567 return resultobj;
34568fail:
34569 return NULL;
34570}
34571
34572
34573SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34574 PyObject *resultobj = 0;
34575 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34576 wxWindow *arg2 = (wxWindow *) 0 ;
34577 wxDC *arg3 = 0 ;
34578 wxRect *arg4 = 0 ;
34579 int arg5 = (int) 0 ;
34580 void *argp1 = 0 ;
34581 int res1 = 0 ;
34582 void *argp2 = 0 ;
34583 int res2 = 0 ;
34584 void *argp3 = 0 ;
34585 int res3 = 0 ;
34586 wxRect temp4 ;
34587 int val5 ;
34588 int ecode5 = 0 ;
34589 PyObject * obj0 = 0 ;
34590 PyObject * obj1 = 0 ;
34591 PyObject * obj2 = 0 ;
34592 PyObject * obj3 = 0 ;
34593 PyObject * obj4 = 0 ;
34594 char * kwnames[] = {
34595 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34596 };
34597
34598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34600 if (!SWIG_IsOK(res1)) {
34601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34602 }
34603 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34604 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34605 if (!SWIG_IsOK(res2)) {
34606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34607 }
34608 arg2 = reinterpret_cast< wxWindow * >(argp2);
34609 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34610 if (!SWIG_IsOK(res3)) {
34611 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34612 }
34613 if (!argp3) {
34614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34615 }
34616 arg3 = reinterpret_cast< wxDC * >(argp3);
34617 {
34618 arg4 = &temp4;
34619 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34620 }
34621 if (obj4) {
34622 ecode5 = SWIG_AsVal_int(obj4, &val5);
34623 if (!SWIG_IsOK(ecode5)) {
34624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34625 }
34626 arg5 = static_cast< int >(val5);
34627 }
34628 {
34629 PyThreadState* __tstate = wxPyBeginAllowThreads();
34630 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34631 wxPyEndAllowThreads(__tstate);
34632 if (PyErr_Occurred()) SWIG_fail;
34633 }
34634 resultobj = SWIG_Py_Void();
34635 return resultobj;
34636fail:
34637 return NULL;
34638}
34639
34640
34641SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34642 PyObject *resultobj = 0;
34643 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34644 wxWindow *arg2 = (wxWindow *) 0 ;
34645 wxDC *arg3 = 0 ;
34646 wxRect *arg4 = 0 ;
34647 int arg5 = (int) 0 ;
34648 void *argp1 = 0 ;
34649 int res1 = 0 ;
34650 void *argp2 = 0 ;
34651 int res2 = 0 ;
34652 void *argp3 = 0 ;
34653 int res3 = 0 ;
34654 wxRect temp4 ;
34655 int val5 ;
34656 int ecode5 = 0 ;
34657 PyObject * obj0 = 0 ;
34658 PyObject * obj1 = 0 ;
34659 PyObject * obj2 = 0 ;
34660 PyObject * obj3 = 0 ;
34661 PyObject * obj4 = 0 ;
34662 char * kwnames[] = {
34663 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34664 };
34665
34666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34668 if (!SWIG_IsOK(res1)) {
34669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34670 }
34671 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34673 if (!SWIG_IsOK(res2)) {
34674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34675 }
34676 arg2 = reinterpret_cast< wxWindow * >(argp2);
34677 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34678 if (!SWIG_IsOK(res3)) {
34679 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34680 }
34681 if (!argp3) {
34682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34683 }
34684 arg3 = reinterpret_cast< wxDC * >(argp3);
34685 {
34686 arg4 = &temp4;
34687 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34688 }
34689 if (obj4) {
34690 ecode5 = SWIG_AsVal_int(obj4, &val5);
34691 if (!SWIG_IsOK(ecode5)) {
34692 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34693 }
34694 arg5 = static_cast< int >(val5);
34695 }
34696 {
34697 PyThreadState* __tstate = wxPyBeginAllowThreads();
34698 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34699 wxPyEndAllowThreads(__tstate);
34700 if (PyErr_Occurred()) SWIG_fail;
34701 }
34702 resultobj = SWIG_Py_Void();
34703 return resultobj;
34704fail:
34705 return NULL;
34706}
34707
34708
01f6b6d3
RD
34709SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34710 PyObject *resultobj = 0;
34711 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34712 wxWindow *arg2 = (wxWindow *) 0 ;
34713 wxDC *arg3 = 0 ;
34714 wxRect *arg4 = 0 ;
34715 int arg5 = (int) 0 ;
34716 void *argp1 = 0 ;
34717 int res1 = 0 ;
34718 void *argp2 = 0 ;
34719 int res2 = 0 ;
34720 void *argp3 = 0 ;
34721 int res3 = 0 ;
34722 wxRect temp4 ;
34723 int val5 ;
34724 int ecode5 = 0 ;
34725 PyObject * obj0 = 0 ;
34726 PyObject * obj1 = 0 ;
34727 PyObject * obj2 = 0 ;
34728 PyObject * obj3 = 0 ;
34729 PyObject * obj4 = 0 ;
34730 char * kwnames[] = {
34731 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34732 };
34733
34734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34736 if (!SWIG_IsOK(res1)) {
34737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34738 }
34739 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34740 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34741 if (!SWIG_IsOK(res2)) {
34742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34743 }
34744 arg2 = reinterpret_cast< wxWindow * >(argp2);
34745 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34746 if (!SWIG_IsOK(res3)) {
34747 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34748 }
34749 if (!argp3) {
34750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34751 }
34752 arg3 = reinterpret_cast< wxDC * >(argp3);
34753 {
34754 arg4 = &temp4;
34755 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34756 }
34757 if (obj4) {
34758 ecode5 = SWIG_AsVal_int(obj4, &val5);
34759 if (!SWIG_IsOK(ecode5)) {
34760 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34761 }
34762 arg5 = static_cast< int >(val5);
34763 }
34764 {
34765 PyThreadState* __tstate = wxPyBeginAllowThreads();
34766 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34767 wxPyEndAllowThreads(__tstate);
34768 if (PyErr_Occurred()) SWIG_fail;
34769 }
34770 resultobj = SWIG_Py_Void();
34771 return resultobj;
34772fail:
34773 return NULL;
34774}
34775
34776
34777SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34778 PyObject *resultobj = 0;
34779 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34780 wxWindow *arg2 = (wxWindow *) 0 ;
34781 wxDC *arg3 = 0 ;
34782 wxRect *arg4 = 0 ;
34783 int arg5 = (int) 0 ;
34784 void *argp1 = 0 ;
34785 int res1 = 0 ;
34786 void *argp2 = 0 ;
34787 int res2 = 0 ;
34788 void *argp3 = 0 ;
34789 int res3 = 0 ;
34790 wxRect temp4 ;
34791 int val5 ;
34792 int ecode5 = 0 ;
34793 PyObject * obj0 = 0 ;
34794 PyObject * obj1 = 0 ;
34795 PyObject * obj2 = 0 ;
34796 PyObject * obj3 = 0 ;
34797 PyObject * obj4 = 0 ;
34798 char * kwnames[] = {
34799 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34800 };
34801
34802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34804 if (!SWIG_IsOK(res1)) {
34805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34806 }
34807 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34808 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34809 if (!SWIG_IsOK(res2)) {
34810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34811 }
34812 arg2 = reinterpret_cast< wxWindow * >(argp2);
34813 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34814 if (!SWIG_IsOK(res3)) {
34815 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34816 }
34817 if (!argp3) {
34818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34819 }
34820 arg3 = reinterpret_cast< wxDC * >(argp3);
34821 {
34822 arg4 = &temp4;
34823 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34824 }
34825 if (obj4) {
34826 ecode5 = SWIG_AsVal_int(obj4, &val5);
34827 if (!SWIG_IsOK(ecode5)) {
34828 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34829 }
34830 arg5 = static_cast< int >(val5);
34831 }
34832 {
34833 PyThreadState* __tstate = wxPyBeginAllowThreads();
34834 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34835 wxPyEndAllowThreads(__tstate);
34836 if (PyErr_Occurred()) SWIG_fail;
34837 }
34838 resultobj = SWIG_Py_Void();
34839 return resultobj;
34840fail:
34841 return NULL;
34842}
34843
34844
34845SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
34846 PyObject *resultobj = 0;
34847 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34848 wxWindow *arg2 = (wxWindow *) 0 ;
34849 wxDC *arg3 = 0 ;
34850 wxRect *arg4 = 0 ;
34851 int arg5 = (int) 0 ;
34852 void *argp1 = 0 ;
34853 int res1 = 0 ;
34854 void *argp2 = 0 ;
34855 int res2 = 0 ;
34856 void *argp3 = 0 ;
34857 int res3 = 0 ;
34858 wxRect temp4 ;
34859 int val5 ;
34860 int ecode5 = 0 ;
34861 PyObject * obj0 = 0 ;
34862 PyObject * obj1 = 0 ;
34863 PyObject * obj2 = 0 ;
34864 PyObject * obj3 = 0 ;
34865 PyObject * obj4 = 0 ;
34866 char * kwnames[] = {
34867 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34868 };
34869
01f6b6d3 34870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
34871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34872 if (!SWIG_IsOK(res1)) {
01f6b6d3 34873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
34874 }
34875 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34876 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34877 if (!SWIG_IsOK(res2)) {
01f6b6d3 34878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
34879 }
34880 arg2 = reinterpret_cast< wxWindow * >(argp2);
34881 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34882 if (!SWIG_IsOK(res3)) {
01f6b6d3 34883 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34884 }
34885 if (!argp3) {
01f6b6d3 34886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34887 }
34888 arg3 = reinterpret_cast< wxDC * >(argp3);
34889 {
34890 arg4 = &temp4;
34891 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34892 }
34893 if (obj4) {
34894 ecode5 = SWIG_AsVal_int(obj4, &val5);
34895 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 34896 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
34897 }
34898 arg5 = static_cast< int >(val5);
34899 }
34900 {
34901 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 34902 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
34903 wxPyEndAllowThreads(__tstate);
34904 if (PyErr_Occurred()) SWIG_fail;
34905 }
34906 resultobj = SWIG_Py_Void();
34907 return resultobj;
34908fail:
34909 return NULL;
34910}
34911
34912
0085ce49
RD
34913SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34914 PyObject *resultobj = 0;
34915 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34916 wxWindow *arg2 = (wxWindow *) 0 ;
34917 SwigValueWrapper<wxSplitterRenderParams > result;
34918 void *argp1 = 0 ;
34919 int res1 = 0 ;
34920 void *argp2 = 0 ;
34921 int res2 = 0 ;
34922 PyObject * obj0 = 0 ;
34923 PyObject * obj1 = 0 ;
34924 char * kwnames[] = {
34925 (char *) "self",(char *) "win", NULL
34926 };
34927
34928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34930 if (!SWIG_IsOK(res1)) {
34931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34932 }
34933 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34934 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34935 if (!SWIG_IsOK(res2)) {
34936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34937 }
34938 arg2 = reinterpret_cast< wxWindow * >(argp2);
34939 {
34940 PyThreadState* __tstate = wxPyBeginAllowThreads();
34941 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34942 wxPyEndAllowThreads(__tstate);
34943 if (PyErr_Occurred()) SWIG_fail;
34944 }
34945 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34946 return resultobj;
34947fail:
34948 return NULL;
34949}
34950
34951
34952SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34953 PyObject *resultobj = 0;
34954 wxRendererNative *result = 0 ;
34955
34956 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34957 {
704eda0c 34958 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34959 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 34960 {
0085ce49
RD
34961 wxRendererNative &_result_ref = wxRendererNative::Get();
34962 result = (wxRendererNative *) &_result_ref;
093d3ff1 34963 }
0085ce49
RD
34964 wxPyEndAllowThreads(__tstate);
34965 if (PyErr_Occurred()) SWIG_fail;
34966 }
34967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34968 return resultobj;
34969fail:
34970 return NULL;
34971}
34972
34973
34974SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34975 PyObject *resultobj = 0;
34976 wxRendererNative *result = 0 ;
34977
34978 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34979 {
704eda0c 34980 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34981 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 34982 {
0085ce49
RD
34983 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34984 result = (wxRendererNative *) &_result_ref;
8d38bd1d 34985 }
0085ce49
RD
34986 wxPyEndAllowThreads(__tstate);
34987 if (PyErr_Occurred()) SWIG_fail;
34988 }
34989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34990 return resultobj;
34991fail:
34992 return NULL;
34993}
34994
34995
34996SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34997 PyObject *resultobj = 0;
34998 wxRendererNative *result = 0 ;
34999
35000 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35001 {
704eda0c 35002 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 35003 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 35004 {
0085ce49
RD
35005 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35006 result = (wxRendererNative *) &_result_ref;
8d38bd1d 35007 }
0085ce49
RD
35008 wxPyEndAllowThreads(__tstate);
35009 if (PyErr_Occurred()) SWIG_fail;
35010 }
35011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35012 return resultobj;
35013fail:
35014 return NULL;
35015}
35016
35017
35018SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35019 PyObject *resultobj = 0;
35020 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35021 wxRendererNative *result = 0 ;
35022 void *argp1 = 0 ;
35023 int res1 = 0 ;
35024 PyObject * obj0 = 0 ;
35025 char * kwnames[] = {
35026 (char *) "renderer", NULL
35027 };
35028
35029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35031 if (!SWIG_IsOK(res1)) {
35032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35033 }
35034 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35035 {
704eda0c 35036 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
35037 PyThreadState* __tstate = wxPyBeginAllowThreads();
35038 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35039 wxPyEndAllowThreads(__tstate);
35040 if (PyErr_Occurred()) SWIG_fail;
35041 }
35042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35043 return resultobj;
35044fail:
35045 return NULL;
35046}
35047
35048
35049SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35050 PyObject *resultobj = 0;
35051 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35052 SwigValueWrapper<wxRendererVersion > result;
35053 void *argp1 = 0 ;
35054 int res1 = 0 ;
35055 PyObject *swig_obj[1] ;
35056
35057 if (!args) SWIG_fail;
35058 swig_obj[0] = args;
35059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35060 if (!SWIG_IsOK(res1)) {
35061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35062 }
35063 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35064 {
35065 PyThreadState* __tstate = wxPyBeginAllowThreads();
35066 result = ((wxRendererNative const *)arg1)->GetVersion();
35067 wxPyEndAllowThreads(__tstate);
35068 if (PyErr_Occurred()) SWIG_fail;
35069 }
35070 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35071 return resultobj;
35072fail:
35073 return NULL;
35074}
35075
35076
35077SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35078 PyObject *obj;
35079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35080 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35081 return SWIG_Py_Void();
35082}
35083
27e45892
RD
35084SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35085 PyObject *resultobj = 0;
35086 wxPseudoDC *result = 0 ;
35087
35088 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35089 {
35090 PyThreadState* __tstate = wxPyBeginAllowThreads();
35091 result = (wxPseudoDC *)new wxPseudoDC();
35092 wxPyEndAllowThreads(__tstate);
35093 if (PyErr_Occurred()) SWIG_fail;
35094 }
35095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35096 return resultobj;
35097fail:
35098 return NULL;
35099}
35100
35101
35102SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35103 PyObject *resultobj = 0;
35104 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35105 void *argp1 = 0 ;
35106 int res1 = 0 ;
35107 PyObject *swig_obj[1] ;
35108
35109 if (!args) SWIG_fail;
35110 swig_obj[0] = args;
35111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35112 if (!SWIG_IsOK(res1)) {
35113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35114 }
35115 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35116 {
35117 PyThreadState* __tstate = wxPyBeginAllowThreads();
35118 (arg1)->BeginDrawing();
35119 wxPyEndAllowThreads(__tstate);
35120 if (PyErr_Occurred()) SWIG_fail;
35121 }
35122 resultobj = SWIG_Py_Void();
35123 return resultobj;
35124fail:
35125 return NULL;
35126}
35127
35128
35129SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35130 PyObject *resultobj = 0;
35131 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35132 void *argp1 = 0 ;
35133 int res1 = 0 ;
35134 PyObject *swig_obj[1] ;
35135
35136 if (!args) SWIG_fail;
35137 swig_obj[0] = args;
35138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35139 if (!SWIG_IsOK(res1)) {
35140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35141 }
35142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35143 {
35144 PyThreadState* __tstate = wxPyBeginAllowThreads();
35145 (arg1)->EndDrawing();
35146 wxPyEndAllowThreads(__tstate);
35147 if (PyErr_Occurred()) SWIG_fail;
35148 }
35149 resultobj = SWIG_Py_Void();
35150 return resultobj;
35151fail:
35152 return NULL;
35153}
35154
35155
35156SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35157 PyObject *resultobj = 0;
35158 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35159 void *argp1 = 0 ;
35160 int res1 = 0 ;
35161 PyObject *swig_obj[1] ;
35162
35163 if (!args) SWIG_fail;
35164 swig_obj[0] = args;
35165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35166 if (!SWIG_IsOK(res1)) {
35167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35168 }
35169 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35170 {
35171 PyThreadState* __tstate = wxPyBeginAllowThreads();
35172 delete arg1;
35173
35174 wxPyEndAllowThreads(__tstate);
35175 if (PyErr_Occurred()) SWIG_fail;
35176 }
35177 resultobj = SWIG_Py_Void();
35178 return resultobj;
35179fail:
35180 return NULL;
35181}
35182
35183
35184SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35185 PyObject *resultobj = 0;
35186 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35187 void *argp1 = 0 ;
35188 int res1 = 0 ;
35189 PyObject *swig_obj[1] ;
35190
35191 if (!args) SWIG_fail;
35192 swig_obj[0] = args;
35193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35194 if (!SWIG_IsOK(res1)) {
35195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35196 }
35197 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35198 {
35199 PyThreadState* __tstate = wxPyBeginAllowThreads();
35200 (arg1)->RemoveAll();
35201 wxPyEndAllowThreads(__tstate);
35202 if (PyErr_Occurred()) SWIG_fail;
35203 }
35204 resultobj = SWIG_Py_Void();
35205 return resultobj;
35206fail:
35207 return NULL;
35208}
35209
35210
35211SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35212 PyObject *resultobj = 0;
35213 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35214 int result;
35215 void *argp1 = 0 ;
35216 int res1 = 0 ;
35217 PyObject *swig_obj[1] ;
35218
35219 if (!args) SWIG_fail;
35220 swig_obj[0] = args;
35221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35222 if (!SWIG_IsOK(res1)) {
35223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35224 }
35225 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35226 {
35227 PyThreadState* __tstate = wxPyBeginAllowThreads();
35228 result = (int)(arg1)->GetLen();
35229 wxPyEndAllowThreads(__tstate);
35230 if (PyErr_Occurred()) SWIG_fail;
35231 }
35232 resultobj = SWIG_From_int(static_cast< int >(result));
35233 return resultobj;
35234fail:
35235 return NULL;
35236}
35237
35238
35239SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35240 PyObject *resultobj = 0;
35241 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35242 int arg2 ;
35243 void *argp1 = 0 ;
35244 int res1 = 0 ;
35245 int val2 ;
35246 int ecode2 = 0 ;
35247 PyObject * obj0 = 0 ;
35248 PyObject * obj1 = 0 ;
35249 char * kwnames[] = {
35250 (char *) "self",(char *) "id", NULL
35251 };
35252
35253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35255 if (!SWIG_IsOK(res1)) {
35256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35257 }
35258 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35259 ecode2 = SWIG_AsVal_int(obj1, &val2);
35260 if (!SWIG_IsOK(ecode2)) {
35261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35262 }
35263 arg2 = static_cast< int >(val2);
35264 {
35265 PyThreadState* __tstate = wxPyBeginAllowThreads();
35266 (arg1)->SetId(arg2);
35267 wxPyEndAllowThreads(__tstate);
35268 if (PyErr_Occurred()) SWIG_fail;
35269 }
35270 resultobj = SWIG_Py_Void();
35271 return resultobj;
35272fail:
35273 return NULL;
35274}
35275
35276
35277SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35278 PyObject *resultobj = 0;
35279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35280 int arg2 ;
35281 void *argp1 = 0 ;
35282 int res1 = 0 ;
35283 int val2 ;
35284 int ecode2 = 0 ;
35285 PyObject * obj0 = 0 ;
35286 PyObject * obj1 = 0 ;
35287 char * kwnames[] = {
35288 (char *) "self",(char *) "id", NULL
35289 };
35290
35291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35293 if (!SWIG_IsOK(res1)) {
35294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35295 }
35296 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35297 ecode2 = SWIG_AsVal_int(obj1, &val2);
35298 if (!SWIG_IsOK(ecode2)) {
35299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35300 }
35301 arg2 = static_cast< int >(val2);
35302 {
35303 PyThreadState* __tstate = wxPyBeginAllowThreads();
35304 (arg1)->ClearId(arg2);
35305 wxPyEndAllowThreads(__tstate);
35306 if (PyErr_Occurred()) SWIG_fail;
35307 }
35308 resultobj = SWIG_Py_Void();
35309 return resultobj;
35310fail:
35311 return NULL;
35312}
35313
35314
35315SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35316 PyObject *resultobj = 0;
35317 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35318 int arg2 ;
35319 void *argp1 = 0 ;
35320 int res1 = 0 ;
35321 int val2 ;
35322 int ecode2 = 0 ;
35323 PyObject * obj0 = 0 ;
35324 PyObject * obj1 = 0 ;
35325 char * kwnames[] = {
35326 (char *) "self",(char *) "id", NULL
35327 };
35328
35329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35331 if (!SWIG_IsOK(res1)) {
35332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35333 }
35334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35335 ecode2 = SWIG_AsVal_int(obj1, &val2);
35336 if (!SWIG_IsOK(ecode2)) {
35337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35338 }
35339 arg2 = static_cast< int >(val2);
35340 {
35341 PyThreadState* __tstate = wxPyBeginAllowThreads();
35342 (arg1)->RemoveId(arg2);
35343 wxPyEndAllowThreads(__tstate);
35344 if (PyErr_Occurred()) SWIG_fail;
35345 }
35346 resultobj = SWIG_Py_Void();
35347 return resultobj;
35348fail:
35349 return NULL;
35350}
35351
35352
35353SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35354 PyObject *resultobj = 0;
35355 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35356 int arg2 ;
35357 int arg3 ;
35358 int arg4 ;
35359 void *argp1 = 0 ;
35360 int res1 = 0 ;
35361 int val2 ;
35362 int ecode2 = 0 ;
35363 int val3 ;
35364 int ecode3 = 0 ;
35365 int val4 ;
35366 int ecode4 = 0 ;
35367 PyObject * obj0 = 0 ;
35368 PyObject * obj1 = 0 ;
35369 PyObject * obj2 = 0 ;
35370 PyObject * obj3 = 0 ;
35371 char * kwnames[] = {
35372 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35373 };
35374
35375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35377 if (!SWIG_IsOK(res1)) {
35378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35379 }
35380 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35381 ecode2 = SWIG_AsVal_int(obj1, &val2);
35382 if (!SWIG_IsOK(ecode2)) {
35383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35384 }
35385 arg2 = static_cast< int >(val2);
35386 ecode3 = SWIG_AsVal_int(obj2, &val3);
35387 if (!SWIG_IsOK(ecode3)) {
35388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35389 }
35390 arg3 = static_cast< int >(val3);
35391 ecode4 = SWIG_AsVal_int(obj3, &val4);
35392 if (!SWIG_IsOK(ecode4)) {
35393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35394 }
35395 arg4 = static_cast< int >(val4);
35396 {
35397 PyThreadState* __tstate = wxPyBeginAllowThreads();
35398 (arg1)->TranslateId(arg2,arg3,arg4);
35399 wxPyEndAllowThreads(__tstate);
35400 if (PyErr_Occurred()) SWIG_fail;
35401 }
35402 resultobj = SWIG_Py_Void();
35403 return resultobj;
35404fail:
35405 return NULL;
35406}
35407
35408
72ef6efb
RD
35409SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35410 PyObject *resultobj = 0;
35411 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35412 int arg2 ;
35413 bool arg3 = (bool) true ;
35414 void *argp1 = 0 ;
35415 int res1 = 0 ;
35416 int val2 ;
35417 int ecode2 = 0 ;
35418 bool val3 ;
35419 int ecode3 = 0 ;
35420 PyObject * obj0 = 0 ;
35421 PyObject * obj1 = 0 ;
35422 PyObject * obj2 = 0 ;
35423 char * kwnames[] = {
35424 (char *) "self",(char *) "id",(char *) "greyout", NULL
35425 };
35426
35427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35429 if (!SWIG_IsOK(res1)) {
35430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35431 }
35432 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35433 ecode2 = SWIG_AsVal_int(obj1, &val2);
35434 if (!SWIG_IsOK(ecode2)) {
35435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35436 }
35437 arg2 = static_cast< int >(val2);
35438 if (obj2) {
35439 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35440 if (!SWIG_IsOK(ecode3)) {
35441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35442 }
35443 arg3 = static_cast< bool >(val3);
35444 }
35445 {
35446 PyThreadState* __tstate = wxPyBeginAllowThreads();
35447 (arg1)->SetIdGreyedOut(arg2,arg3);
35448 wxPyEndAllowThreads(__tstate);
35449 if (PyErr_Occurred()) SWIG_fail;
35450 }
35451 resultobj = SWIG_Py_Void();
35452 return resultobj;
35453fail:
35454 return NULL;
35455}
35456
35457
35458SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35459 PyObject *resultobj = 0;
35460 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35461 int arg2 ;
35462 bool result;
35463 void *argp1 = 0 ;
35464 int res1 = 0 ;
35465 int val2 ;
35466 int ecode2 = 0 ;
35467 PyObject * obj0 = 0 ;
35468 PyObject * obj1 = 0 ;
35469 char * kwnames[] = {
35470 (char *) "self",(char *) "id", NULL
35471 };
35472
35473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35475 if (!SWIG_IsOK(res1)) {
35476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35477 }
35478 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35479 ecode2 = SWIG_AsVal_int(obj1, &val2);
35480 if (!SWIG_IsOK(ecode2)) {
35481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35482 }
35483 arg2 = static_cast< int >(val2);
35484 {
35485 PyThreadState* __tstate = wxPyBeginAllowThreads();
35486 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35487 wxPyEndAllowThreads(__tstate);
35488 if (PyErr_Occurred()) SWIG_fail;
35489 }
35490 {
35491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35492 }
35493 return resultobj;
35494fail:
35495 return NULL;
35496}
35497
35498
35499SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35500 PyObject *resultobj = 0;
35501 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35502 int arg2 ;
35503 int arg3 ;
35504 int arg4 = (int) 1 ;
35505 wxColor const &arg5_defvalue = *wxWHITE ;
35506 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35507 PyObject *result = 0 ;
35508 void *argp1 = 0 ;
35509 int res1 = 0 ;
35510 int val2 ;
35511 int ecode2 = 0 ;
35512 int val3 ;
35513 int ecode3 = 0 ;
35514 int val4 ;
35515 int ecode4 = 0 ;
35516 void *argp5 = 0 ;
35517 int res5 = 0 ;
35518 PyObject * obj0 = 0 ;
35519 PyObject * obj1 = 0 ;
35520 PyObject * obj2 = 0 ;
35521 PyObject * obj3 = 0 ;
35522 PyObject * obj4 = 0 ;
35523 char * kwnames[] = {
35524 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35525 };
35526
35527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35529 if (!SWIG_IsOK(res1)) {
35530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35531 }
35532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35533 ecode2 = SWIG_AsVal_int(obj1, &val2);
35534 if (!SWIG_IsOK(ecode2)) {
35535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35536 }
35537 arg2 = static_cast< int >(val2);
35538 ecode3 = SWIG_AsVal_int(obj2, &val3);
35539 if (!SWIG_IsOK(ecode3)) {
35540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35541 }
35542 arg3 = static_cast< int >(val3);
35543 if (obj3) {
35544 ecode4 = SWIG_AsVal_int(obj3, &val4);
35545 if (!SWIG_IsOK(ecode4)) {
35546 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35547 }
35548 arg4 = static_cast< int >(val4);
35549 }
35550 if (obj4) {
35551 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35552 if (!SWIG_IsOK(res5)) {
35553 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35554 }
35555 if (!argp5) {
35556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35557 }
35558 arg5 = reinterpret_cast< wxColor * >(argp5);
35559 }
35560 {
35561 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35562 if (PyErr_Occurred()) SWIG_fail;
35563 }
35564 resultobj = result;
35565 return resultobj;
35566fail:
35567 return NULL;
35568}
35569
35570
35571SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35572 PyObject *resultobj = 0;
35573 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35574 int arg2 ;
35575 int arg3 ;
35576 PyObject *result = 0 ;
35577 void *argp1 = 0 ;
35578 int res1 = 0 ;
35579 int val2 ;
35580 int ecode2 = 0 ;
35581 int val3 ;
35582 int ecode3 = 0 ;
35583 PyObject * obj0 = 0 ;
35584 PyObject * obj1 = 0 ;
35585 PyObject * obj2 = 0 ;
35586 char * kwnames[] = {
35587 (char *) "self",(char *) "x",(char *) "y", NULL
35588 };
35589
35590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35592 if (!SWIG_IsOK(res1)) {
35593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35594 }
35595 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35596 ecode2 = SWIG_AsVal_int(obj1, &val2);
35597 if (!SWIG_IsOK(ecode2)) {
35598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35599 }
35600 arg2 = static_cast< int >(val2);
35601 ecode3 = SWIG_AsVal_int(obj2, &val3);
35602 if (!SWIG_IsOK(ecode3)) {
35603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35604 }
35605 arg3 = static_cast< int >(val3);
35606 {
35607 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35608 if (PyErr_Occurred()) SWIG_fail;
35609 }
35610 resultobj = result;
35611 return resultobj;
35612fail:
35613 return NULL;
35614}
35615
35616
27e45892
RD
35617SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35618 PyObject *resultobj = 0;
35619 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35620 int arg2 ;
35621 wxDC *arg3 = (wxDC *) 0 ;
35622 void *argp1 = 0 ;
35623 int res1 = 0 ;
35624 int val2 ;
35625 int ecode2 = 0 ;
35626 void *argp3 = 0 ;
35627 int res3 = 0 ;
35628 PyObject * obj0 = 0 ;
35629 PyObject * obj1 = 0 ;
35630 PyObject * obj2 = 0 ;
35631 char * kwnames[] = {
35632 (char *) "self",(char *) "id",(char *) "dc", NULL
35633 };
35634
35635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35637 if (!SWIG_IsOK(res1)) {
35638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35639 }
35640 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35641 ecode2 = SWIG_AsVal_int(obj1, &val2);
35642 if (!SWIG_IsOK(ecode2)) {
35643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35644 }
35645 arg2 = static_cast< int >(val2);
35646 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35647 if (!SWIG_IsOK(res3)) {
35648 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35649 }
35650 arg3 = reinterpret_cast< wxDC * >(argp3);
35651 {
35652 PyThreadState* __tstate = wxPyBeginAllowThreads();
35653 (arg1)->DrawIdToDC(arg2,arg3);
35654 wxPyEndAllowThreads(__tstate);
35655 if (PyErr_Occurred()) SWIG_fail;
35656 }
35657 resultobj = SWIG_Py_Void();
35658 return resultobj;
35659fail:
35660 return NULL;
35661}
35662
35663
35664SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35665 PyObject *resultobj = 0;
35666 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35667 int arg2 ;
35668 wxRect *arg3 = 0 ;
35669 void *argp1 = 0 ;
35670 int res1 = 0 ;
35671 int val2 ;
35672 int ecode2 = 0 ;
35673 wxRect temp3 ;
35674 PyObject * obj0 = 0 ;
35675 PyObject * obj1 = 0 ;
35676 PyObject * obj2 = 0 ;
35677 char * kwnames[] = {
35678 (char *) "self",(char *) "id",(char *) "rect", NULL
35679 };
35680
35681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35683 if (!SWIG_IsOK(res1)) {
35684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35685 }
35686 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35687 ecode2 = SWIG_AsVal_int(obj1, &val2);
35688 if (!SWIG_IsOK(ecode2)) {
35689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35690 }
35691 arg2 = static_cast< int >(val2);
35692 {
35693 arg3 = &temp3;
35694 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35695 }
35696 {
35697 PyThreadState* __tstate = wxPyBeginAllowThreads();
35698 (arg1)->SetIdBounds(arg2,*arg3);
35699 wxPyEndAllowThreads(__tstate);
35700 if (PyErr_Occurred()) SWIG_fail;
35701 }
35702 resultobj = SWIG_Py_Void();
35703 return resultobj;
35704fail:
35705 return NULL;
35706}
35707
35708
35709SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35710 PyObject *resultobj = 0;
35711 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35712 int arg2 ;
35713 wxRect result;
35714 void *argp1 = 0 ;
35715 int res1 = 0 ;
35716 int val2 ;
35717 int ecode2 = 0 ;
35718 PyObject * obj0 = 0 ;
35719 PyObject * obj1 = 0 ;
35720 char * kwnames[] = {
35721 (char *) "self",(char *) "id", NULL
35722 };
35723
35724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35726 if (!SWIG_IsOK(res1)) {
35727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35728 }
35729 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35730 ecode2 = SWIG_AsVal_int(obj1, &val2);
35731 if (!SWIG_IsOK(ecode2)) {
35732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35733 }
35734 arg2 = static_cast< int >(val2);
35735 {
35736 PyThreadState* __tstate = wxPyBeginAllowThreads();
35737 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35738 wxPyEndAllowThreads(__tstate);
35739 if (PyErr_Occurred()) SWIG_fail;
35740 }
35741 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35742 return resultobj;
35743fail:
35744 return NULL;
35745}
35746
35747
35748SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35749 PyObject *resultobj = 0;
35750 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35751 wxDC *arg2 = (wxDC *) 0 ;
35752 wxRect *arg3 = 0 ;
35753 void *argp1 = 0 ;
35754 int res1 = 0 ;
35755 void *argp2 = 0 ;
35756 int res2 = 0 ;
35757 wxRect temp3 ;
35758 PyObject * obj0 = 0 ;
35759 PyObject * obj1 = 0 ;
35760 PyObject * obj2 = 0 ;
35761 char * kwnames[] = {
35762 (char *) "self",(char *) "dc",(char *) "rect", NULL
35763 };
35764
35765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35767 if (!SWIG_IsOK(res1)) {
35768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35769 }
35770 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35772 if (!SWIG_IsOK(res2)) {
35773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35774 }
35775 arg2 = reinterpret_cast< wxDC * >(argp2);
35776 {
35777 arg3 = &temp3;
35778 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35779 }
35780 {
35781 PyThreadState* __tstate = wxPyBeginAllowThreads();
35782 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35783 wxPyEndAllowThreads(__tstate);
35784 if (PyErr_Occurred()) SWIG_fail;
35785 }
35786 resultobj = SWIG_Py_Void();
35787 return resultobj;
35788fail:
35789 return NULL;
35790}
35791
35792
35793SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35794 PyObject *resultobj = 0;
35795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35796 wxDC *arg2 = (wxDC *) 0 ;
35797 wxRegion *arg3 = 0 ;
35798 void *argp1 = 0 ;
35799 int res1 = 0 ;
35800 void *argp2 = 0 ;
35801 int res2 = 0 ;
35802 void *argp3 = 0 ;
35803 int res3 = 0 ;
35804 PyObject * obj0 = 0 ;
35805 PyObject * obj1 = 0 ;
35806 PyObject * obj2 = 0 ;
35807 char * kwnames[] = {
35808 (char *) "self",(char *) "dc",(char *) "region", NULL
35809 };
35810
35811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35813 if (!SWIG_IsOK(res1)) {
35814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35815 }
35816 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35818 if (!SWIG_IsOK(res2)) {
35819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35820 }
35821 arg2 = reinterpret_cast< wxDC * >(argp2);
35822 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35823 if (!SWIG_IsOK(res3)) {
35824 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35825 }
35826 if (!argp3) {
35827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35828 }
35829 arg3 = reinterpret_cast< wxRegion * >(argp3);
35830 {
35831 PyThreadState* __tstate = wxPyBeginAllowThreads();
35832 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35833 wxPyEndAllowThreads(__tstate);
35834 if (PyErr_Occurred()) SWIG_fail;
35835 }
35836 resultobj = SWIG_Py_Void();
35837 return resultobj;
35838fail:
35839 return NULL;
35840}
35841
35842
35843SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35844 PyObject *resultobj = 0;
35845 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35846 wxDC *arg2 = (wxDC *) 0 ;
35847 void *argp1 = 0 ;
35848 int res1 = 0 ;
35849 void *argp2 = 0 ;
35850 int res2 = 0 ;
35851 PyObject * obj0 = 0 ;
35852 PyObject * obj1 = 0 ;
35853 char * kwnames[] = {
35854 (char *) "self",(char *) "dc", NULL
35855 };
35856
35857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35859 if (!SWIG_IsOK(res1)) {
35860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35861 }
35862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35863 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35864 if (!SWIG_IsOK(res2)) {
35865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35866 }
35867 arg2 = reinterpret_cast< wxDC * >(argp2);
35868 {
35869 PyThreadState* __tstate = wxPyBeginAllowThreads();
35870 (arg1)->DrawToDC(arg2);
35871 wxPyEndAllowThreads(__tstate);
35872 if (PyErr_Occurred()) SWIG_fail;
35873 }
35874 resultobj = SWIG_Py_Void();
35875 return resultobj;
35876fail:
35877 return NULL;
35878}
35879
35880
35881SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35882 PyObject *resultobj = 0;
35883 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35884 int arg2 ;
35885 int arg3 ;
35886 wxColour *arg4 = 0 ;
35887 int arg5 = (int) wxFLOOD_SURFACE ;
35888 void *argp1 = 0 ;
35889 int res1 = 0 ;
35890 int val2 ;
35891 int ecode2 = 0 ;
35892 int val3 ;
35893 int ecode3 = 0 ;
35894 wxColour temp4 ;
35895 int val5 ;
35896 int ecode5 = 0 ;
35897 PyObject * obj0 = 0 ;
35898 PyObject * obj1 = 0 ;
35899 PyObject * obj2 = 0 ;
35900 PyObject * obj3 = 0 ;
35901 PyObject * obj4 = 0 ;
35902 char * kwnames[] = {
35903 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35904 };
35905
35906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35908 if (!SWIG_IsOK(res1)) {
35909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35910 }
35911 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35912 ecode2 = SWIG_AsVal_int(obj1, &val2);
35913 if (!SWIG_IsOK(ecode2)) {
35914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35915 }
35916 arg2 = static_cast< int >(val2);
35917 ecode3 = SWIG_AsVal_int(obj2, &val3);
35918 if (!SWIG_IsOK(ecode3)) {
35919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35920 }
35921 arg3 = static_cast< int >(val3);
35922 {
35923 arg4 = &temp4;
35924 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35925 }
35926 if (obj4) {
35927 ecode5 = SWIG_AsVal_int(obj4, &val5);
35928 if (!SWIG_IsOK(ecode5)) {
35929 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35930 }
35931 arg5 = static_cast< int >(val5);
35932 }
35933 {
35934 PyThreadState* __tstate = wxPyBeginAllowThreads();
35935 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35936 wxPyEndAllowThreads(__tstate);
35937 if (PyErr_Occurred()) SWIG_fail;
35938 }
35939 resultobj = SWIG_Py_Void();
35940 return resultobj;
35941fail:
35942 return NULL;
35943}
35944
35945
35946SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35947 PyObject *resultobj = 0;
35948 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35949 wxPoint *arg2 = 0 ;
35950 wxColour *arg3 = 0 ;
35951 int arg4 = (int) wxFLOOD_SURFACE ;
35952 void *argp1 = 0 ;
35953 int res1 = 0 ;
35954 wxPoint temp2 ;
35955 wxColour temp3 ;
35956 int val4 ;
35957 int ecode4 = 0 ;
35958 PyObject * obj0 = 0 ;
35959 PyObject * obj1 = 0 ;
35960 PyObject * obj2 = 0 ;
35961 PyObject * obj3 = 0 ;
35962 char * kwnames[] = {
35963 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35964 };
35965
35966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35968 if (!SWIG_IsOK(res1)) {
35969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35970 }
35971 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35972 {
35973 arg2 = &temp2;
35974 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35975 }
35976 {
35977 arg3 = &temp3;
35978 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35979 }
35980 if (obj3) {
35981 ecode4 = SWIG_AsVal_int(obj3, &val4);
35982 if (!SWIG_IsOK(ecode4)) {
35983 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35984 }
35985 arg4 = static_cast< int >(val4);
35986 }
35987 {
35988 PyThreadState* __tstate = wxPyBeginAllowThreads();
35989 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35990 wxPyEndAllowThreads(__tstate);
35991 if (PyErr_Occurred()) SWIG_fail;
35992 }
35993 resultobj = SWIG_Py_Void();
35994 return resultobj;
35995fail:
35996 return NULL;
35997}
35998
35999
36000SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36001 PyObject *resultobj = 0;
36002 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36003 int arg2 ;
36004 int arg3 ;
36005 int arg4 ;
36006 int arg5 ;
36007 void *argp1 = 0 ;
36008 int res1 = 0 ;
36009 int val2 ;
36010 int ecode2 = 0 ;
36011 int val3 ;
36012 int ecode3 = 0 ;
36013 int val4 ;
36014 int ecode4 = 0 ;
36015 int val5 ;
36016 int ecode5 = 0 ;
36017 PyObject * obj0 = 0 ;
36018 PyObject * obj1 = 0 ;
36019 PyObject * obj2 = 0 ;
36020 PyObject * obj3 = 0 ;
36021 PyObject * obj4 = 0 ;
36022 char * kwnames[] = {
36023 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36024 };
36025
36026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36028 if (!SWIG_IsOK(res1)) {
36029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36030 }
36031 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36032 ecode2 = SWIG_AsVal_int(obj1, &val2);
36033 if (!SWIG_IsOK(ecode2)) {
36034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36035 }
36036 arg2 = static_cast< int >(val2);
36037 ecode3 = SWIG_AsVal_int(obj2, &val3);
36038 if (!SWIG_IsOK(ecode3)) {
36039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36040 }
36041 arg3 = static_cast< int >(val3);
36042 ecode4 = SWIG_AsVal_int(obj3, &val4);
36043 if (!SWIG_IsOK(ecode4)) {
36044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36045 }
36046 arg4 = static_cast< int >(val4);
36047 ecode5 = SWIG_AsVal_int(obj4, &val5);
36048 if (!SWIG_IsOK(ecode5)) {
36049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36050 }
36051 arg5 = static_cast< int >(val5);
36052 {
36053 PyThreadState* __tstate = wxPyBeginAllowThreads();
36054 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36055 wxPyEndAllowThreads(__tstate);
36056 if (PyErr_Occurred()) SWIG_fail;
36057 }
36058 resultobj = SWIG_Py_Void();
36059 return resultobj;
36060fail:
36061 return NULL;
36062}
36063
36064
36065SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36066 PyObject *resultobj = 0;
36067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36068 wxPoint *arg2 = 0 ;
36069 wxPoint *arg3 = 0 ;
36070 void *argp1 = 0 ;
36071 int res1 = 0 ;
36072 wxPoint temp2 ;
36073 wxPoint temp3 ;
36074 PyObject * obj0 = 0 ;
36075 PyObject * obj1 = 0 ;
36076 PyObject * obj2 = 0 ;
36077 char * kwnames[] = {
36078 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36079 };
36080
36081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36083 if (!SWIG_IsOK(res1)) {
36084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36085 }
36086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36087 {
36088 arg2 = &temp2;
36089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36090 }
36091 {
36092 arg3 = &temp3;
36093 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36094 }
36095 {
36096 PyThreadState* __tstate = wxPyBeginAllowThreads();
36097 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36098 wxPyEndAllowThreads(__tstate);
36099 if (PyErr_Occurred()) SWIG_fail;
36100 }
36101 resultobj = SWIG_Py_Void();
36102 return resultobj;
36103fail:
36104 return NULL;
36105}
36106
36107
36108SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36109 PyObject *resultobj = 0;
36110 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36111 int arg2 ;
36112 int arg3 ;
36113 void *argp1 = 0 ;
36114 int res1 = 0 ;
36115 int val2 ;
36116 int ecode2 = 0 ;
36117 int val3 ;
36118 int ecode3 = 0 ;
36119 PyObject * obj0 = 0 ;
36120 PyObject * obj1 = 0 ;
36121 PyObject * obj2 = 0 ;
36122 char * kwnames[] = {
36123 (char *) "self",(char *) "x",(char *) "y", NULL
36124 };
36125
36126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36128 if (!SWIG_IsOK(res1)) {
36129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36130 }
36131 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36132 ecode2 = SWIG_AsVal_int(obj1, &val2);
36133 if (!SWIG_IsOK(ecode2)) {
36134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36135 }
36136 arg2 = static_cast< int >(val2);
36137 ecode3 = SWIG_AsVal_int(obj2, &val3);
36138 if (!SWIG_IsOK(ecode3)) {
36139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36140 }
36141 arg3 = static_cast< int >(val3);
36142 {
36143 PyThreadState* __tstate = wxPyBeginAllowThreads();
36144 (arg1)->CrossHair(arg2,arg3);
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_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36156 PyObject *resultobj = 0;
36157 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36158 wxPoint *arg2 = 0 ;
36159 void *argp1 = 0 ;
36160 int res1 = 0 ;
36161 wxPoint temp2 ;
36162 PyObject * obj0 = 0 ;
36163 PyObject * obj1 = 0 ;
36164 char * kwnames[] = {
36165 (char *) "self",(char *) "pt", NULL
36166 };
36167
36168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36170 if (!SWIG_IsOK(res1)) {
36171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36172 }
36173 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36174 {
36175 arg2 = &temp2;
36176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36177 }
36178 {
36179 PyThreadState* __tstate = wxPyBeginAllowThreads();
36180 (arg1)->CrossHair((wxPoint const &)*arg2);
36181 wxPyEndAllowThreads(__tstate);
36182 if (PyErr_Occurred()) SWIG_fail;
36183 }
36184 resultobj = SWIG_Py_Void();
36185 return resultobj;
36186fail:
36187 return NULL;
36188}
36189
36190
36191SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36192 PyObject *resultobj = 0;
36193 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36194 int arg2 ;
36195 int arg3 ;
36196 int arg4 ;
36197 int arg5 ;
36198 int arg6 ;
36199 int arg7 ;
36200 void *argp1 = 0 ;
36201 int res1 = 0 ;
36202 int val2 ;
36203 int ecode2 = 0 ;
36204 int val3 ;
36205 int ecode3 = 0 ;
36206 int val4 ;
36207 int ecode4 = 0 ;
36208 int val5 ;
36209 int ecode5 = 0 ;
36210 int val6 ;
36211 int ecode6 = 0 ;
36212 int val7 ;
36213 int ecode7 = 0 ;
36214 PyObject * obj0 = 0 ;
36215 PyObject * obj1 = 0 ;
36216 PyObject * obj2 = 0 ;
36217 PyObject * obj3 = 0 ;
36218 PyObject * obj4 = 0 ;
36219 PyObject * obj5 = 0 ;
36220 PyObject * obj6 = 0 ;
36221 char * kwnames[] = {
36222 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36223 };
36224
36225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36227 if (!SWIG_IsOK(res1)) {
36228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36229 }
36230 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36231 ecode2 = SWIG_AsVal_int(obj1, &val2);
36232 if (!SWIG_IsOK(ecode2)) {
36233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36234 }
36235 arg2 = static_cast< int >(val2);
36236 ecode3 = SWIG_AsVal_int(obj2, &val3);
36237 if (!SWIG_IsOK(ecode3)) {
36238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36239 }
36240 arg3 = static_cast< int >(val3);
36241 ecode4 = SWIG_AsVal_int(obj3, &val4);
36242 if (!SWIG_IsOK(ecode4)) {
36243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36244 }
36245 arg4 = static_cast< int >(val4);
36246 ecode5 = SWIG_AsVal_int(obj4, &val5);
36247 if (!SWIG_IsOK(ecode5)) {
36248 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36249 }
36250 arg5 = static_cast< int >(val5);
36251 ecode6 = SWIG_AsVal_int(obj5, &val6);
36252 if (!SWIG_IsOK(ecode6)) {
36253 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36254 }
36255 arg6 = static_cast< int >(val6);
36256 ecode7 = SWIG_AsVal_int(obj6, &val7);
36257 if (!SWIG_IsOK(ecode7)) {
36258 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36259 }
36260 arg7 = static_cast< int >(val7);
36261 {
36262 PyThreadState* __tstate = wxPyBeginAllowThreads();
36263 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
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_DrawArcPoint(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 wxPoint *arg4 = 0 ;
36280 void *argp1 = 0 ;
36281 int res1 = 0 ;
36282 wxPoint temp2 ;
36283 wxPoint temp3 ;
36284 wxPoint temp4 ;
36285 PyObject * obj0 = 0 ;
36286 PyObject * obj1 = 0 ;
36287 PyObject * obj2 = 0 ;
36288 PyObject * obj3 = 0 ;
36289 char * kwnames[] = {
36290 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36291 };
36292
36293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36295 if (!SWIG_IsOK(res1)) {
36296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36297 }
36298 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36299 {
36300 arg2 = &temp2;
36301 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36302 }
36303 {
36304 arg3 = &temp3;
36305 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36306 }
36307 {
36308 arg4 = &temp4;
36309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36310 }
36311 {
36312 PyThreadState* __tstate = wxPyBeginAllowThreads();
36313 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36314 wxPyEndAllowThreads(__tstate);
36315 if (PyErr_Occurred()) SWIG_fail;
36316 }
36317 resultobj = SWIG_Py_Void();
36318 return resultobj;
36319fail:
36320 return NULL;
36321}
36322
36323
36324SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36325 PyObject *resultobj = 0;
36326 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36327 int arg2 ;
36328 int arg3 ;
36329 int arg4 ;
36330 int arg5 ;
36331 void *argp1 = 0 ;
36332 int res1 = 0 ;
36333 int val2 ;
36334 int ecode2 = 0 ;
36335 int val3 ;
36336 int ecode3 = 0 ;
36337 int val4 ;
36338 int ecode4 = 0 ;
36339 int val5 ;
36340 int ecode5 = 0 ;
36341 PyObject * obj0 = 0 ;
36342 PyObject * obj1 = 0 ;
36343 PyObject * obj2 = 0 ;
36344 PyObject * obj3 = 0 ;
36345 PyObject * obj4 = 0 ;
36346 char * kwnames[] = {
36347 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36348 };
36349
36350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36352 if (!SWIG_IsOK(res1)) {
36353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36354 }
36355 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36356 ecode2 = SWIG_AsVal_int(obj1, &val2);
36357 if (!SWIG_IsOK(ecode2)) {
36358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36359 }
36360 arg2 = static_cast< int >(val2);
36361 ecode3 = SWIG_AsVal_int(obj2, &val3);
36362 if (!SWIG_IsOK(ecode3)) {
36363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36364 }
36365 arg3 = static_cast< int >(val3);
36366 ecode4 = SWIG_AsVal_int(obj3, &val4);
36367 if (!SWIG_IsOK(ecode4)) {
36368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36369 }
36370 arg4 = static_cast< int >(val4);
36371 ecode5 = SWIG_AsVal_int(obj4, &val5);
36372 if (!SWIG_IsOK(ecode5)) {
36373 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36374 }
36375 arg5 = static_cast< int >(val5);
36376 {
36377 PyThreadState* __tstate = wxPyBeginAllowThreads();
36378 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36379 wxPyEndAllowThreads(__tstate);
36380 if (PyErr_Occurred()) SWIG_fail;
36381 }
36382 resultobj = SWIG_Py_Void();
36383 return resultobj;
36384fail:
36385 return NULL;
36386}
36387
36388
36389SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36390 PyObject *resultobj = 0;
36391 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36392 wxRect *arg2 = 0 ;
36393 void *argp1 = 0 ;
36394 int res1 = 0 ;
36395 wxRect temp2 ;
36396 PyObject * obj0 = 0 ;
36397 PyObject * obj1 = 0 ;
36398 char * kwnames[] = {
36399 (char *) "self",(char *) "rect", NULL
36400 };
36401
36402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36404 if (!SWIG_IsOK(res1)) {
36405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36406 }
36407 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36408 {
36409 arg2 = &temp2;
36410 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36411 }
36412 {
36413 PyThreadState* __tstate = wxPyBeginAllowThreads();
36414 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36415 wxPyEndAllowThreads(__tstate);
36416 if (PyErr_Occurred()) SWIG_fail;
36417 }
36418 resultobj = SWIG_Py_Void();
36419 return resultobj;
36420fail:
36421 return NULL;
36422}
36423
36424
36425SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36426 PyObject *resultobj = 0;
36427 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36428 int arg2 ;
36429 int arg3 ;
36430 int arg4 ;
36431 int arg5 ;
36432 double arg6 ;
36433 double arg7 ;
36434 void *argp1 = 0 ;
36435 int res1 = 0 ;
36436 int val2 ;
36437 int ecode2 = 0 ;
36438 int val3 ;
36439 int ecode3 = 0 ;
36440 int val4 ;
36441 int ecode4 = 0 ;
36442 int val5 ;
36443 int ecode5 = 0 ;
36444 double val6 ;
36445 int ecode6 = 0 ;
36446 double val7 ;
36447 int ecode7 = 0 ;
36448 PyObject * obj0 = 0 ;
36449 PyObject * obj1 = 0 ;
36450 PyObject * obj2 = 0 ;
36451 PyObject * obj3 = 0 ;
36452 PyObject * obj4 = 0 ;
36453 PyObject * obj5 = 0 ;
36454 PyObject * obj6 = 0 ;
36455 char * kwnames[] = {
36456 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36457 };
36458
36459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36461 if (!SWIG_IsOK(res1)) {
36462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36463 }
36464 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36465 ecode2 = SWIG_AsVal_int(obj1, &val2);
36466 if (!SWIG_IsOK(ecode2)) {
36467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36468 }
36469 arg2 = static_cast< int >(val2);
36470 ecode3 = SWIG_AsVal_int(obj2, &val3);
36471 if (!SWIG_IsOK(ecode3)) {
36472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36473 }
36474 arg3 = static_cast< int >(val3);
36475 ecode4 = SWIG_AsVal_int(obj3, &val4);
36476 if (!SWIG_IsOK(ecode4)) {
36477 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36478 }
36479 arg4 = static_cast< int >(val4);
36480 ecode5 = SWIG_AsVal_int(obj4, &val5);
36481 if (!SWIG_IsOK(ecode5)) {
36482 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36483 }
36484 arg5 = static_cast< int >(val5);
36485 ecode6 = SWIG_AsVal_double(obj5, &val6);
36486 if (!SWIG_IsOK(ecode6)) {
36487 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36488 }
36489 arg6 = static_cast< double >(val6);
36490 ecode7 = SWIG_AsVal_double(obj6, &val7);
36491 if (!SWIG_IsOK(ecode7)) {
36492 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36493 }
36494 arg7 = static_cast< double >(val7);
36495 {
36496 PyThreadState* __tstate = wxPyBeginAllowThreads();
36497 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36498 wxPyEndAllowThreads(__tstate);
36499 if (PyErr_Occurred()) SWIG_fail;
36500 }
36501 resultobj = SWIG_Py_Void();
36502 return resultobj;
36503fail:
36504 return NULL;
36505}
36506
36507
36508SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36509 PyObject *resultobj = 0;
36510 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36511 wxPoint *arg2 = 0 ;
36512 wxSize *arg3 = 0 ;
36513 double arg4 ;
36514 double arg5 ;
36515 void *argp1 = 0 ;
36516 int res1 = 0 ;
36517 wxPoint temp2 ;
36518 wxSize temp3 ;
36519 double val4 ;
36520 int ecode4 = 0 ;
36521 double val5 ;
36522 int ecode5 = 0 ;
36523 PyObject * obj0 = 0 ;
36524 PyObject * obj1 = 0 ;
36525 PyObject * obj2 = 0 ;
36526 PyObject * obj3 = 0 ;
36527 PyObject * obj4 = 0 ;
36528 char * kwnames[] = {
36529 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36530 };
36531
36532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36534 if (!SWIG_IsOK(res1)) {
36535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36536 }
36537 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36538 {
36539 arg2 = &temp2;
36540 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36541 }
36542 {
36543 arg3 = &temp3;
36544 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36545 }
36546 ecode4 = SWIG_AsVal_double(obj3, &val4);
36547 if (!SWIG_IsOK(ecode4)) {
36548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36549 }
36550 arg4 = static_cast< double >(val4);
36551 ecode5 = SWIG_AsVal_double(obj4, &val5);
36552 if (!SWIG_IsOK(ecode5)) {
36553 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36554 }
36555 arg5 = static_cast< double >(val5);
36556 {
36557 PyThreadState* __tstate = wxPyBeginAllowThreads();
36558 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36559 wxPyEndAllowThreads(__tstate);
36560 if (PyErr_Occurred()) SWIG_fail;
36561 }
36562 resultobj = SWIG_Py_Void();
36563 return resultobj;
36564fail:
36565 return NULL;
36566}
36567
36568
36569SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36570 PyObject *resultobj = 0;
36571 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36572 int arg2 ;
36573 int arg3 ;
36574 void *argp1 = 0 ;
36575 int res1 = 0 ;
36576 int val2 ;
36577 int ecode2 = 0 ;
36578 int val3 ;
36579 int ecode3 = 0 ;
36580 PyObject * obj0 = 0 ;
36581 PyObject * obj1 = 0 ;
36582 PyObject * obj2 = 0 ;
36583 char * kwnames[] = {
36584 (char *) "self",(char *) "x",(char *) "y", NULL
36585 };
36586
36587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36589 if (!SWIG_IsOK(res1)) {
36590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36591 }
36592 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36593 ecode2 = SWIG_AsVal_int(obj1, &val2);
36594 if (!SWIG_IsOK(ecode2)) {
36595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36596 }
36597 arg2 = static_cast< int >(val2);
36598 ecode3 = SWIG_AsVal_int(obj2, &val3);
36599 if (!SWIG_IsOK(ecode3)) {
36600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36601 }
36602 arg3 = static_cast< int >(val3);
36603 {
36604 PyThreadState* __tstate = wxPyBeginAllowThreads();
36605 (arg1)->DrawPoint(arg2,arg3);
36606 wxPyEndAllowThreads(__tstate);
36607 if (PyErr_Occurred()) SWIG_fail;
36608 }
36609 resultobj = SWIG_Py_Void();
36610 return resultobj;
36611fail:
36612 return NULL;
36613}
36614
36615
36616SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36617 PyObject *resultobj = 0;
36618 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36619 wxPoint *arg2 = 0 ;
36620 void *argp1 = 0 ;
36621 int res1 = 0 ;
36622 wxPoint temp2 ;
36623 PyObject * obj0 = 0 ;
36624 PyObject * obj1 = 0 ;
36625 char * kwnames[] = {
36626 (char *) "self",(char *) "pt", NULL
36627 };
36628
36629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36631 if (!SWIG_IsOK(res1)) {
36632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36633 }
36634 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36635 {
36636 arg2 = &temp2;
36637 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36638 }
36639 {
36640 PyThreadState* __tstate = wxPyBeginAllowThreads();
36641 (arg1)->DrawPoint((wxPoint const &)*arg2);
36642 wxPyEndAllowThreads(__tstate);
36643 if (PyErr_Occurred()) SWIG_fail;
36644 }
36645 resultobj = SWIG_Py_Void();
36646 return resultobj;
36647fail:
36648 return NULL;
36649}
36650
36651
36652SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36653 PyObject *resultobj = 0;
36654 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36655 int arg2 ;
36656 int arg3 ;
36657 int arg4 ;
36658 int arg5 ;
36659 void *argp1 = 0 ;
36660 int res1 = 0 ;
36661 int val2 ;
36662 int ecode2 = 0 ;
36663 int val3 ;
36664 int ecode3 = 0 ;
36665 int val4 ;
36666 int ecode4 = 0 ;
36667 int val5 ;
36668 int ecode5 = 0 ;
36669 PyObject * obj0 = 0 ;
36670 PyObject * obj1 = 0 ;
36671 PyObject * obj2 = 0 ;
36672 PyObject * obj3 = 0 ;
36673 PyObject * obj4 = 0 ;
36674 char * kwnames[] = {
36675 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36676 };
36677
36678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36680 if (!SWIG_IsOK(res1)) {
36681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36682 }
36683 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36684 ecode2 = SWIG_AsVal_int(obj1, &val2);
36685 if (!SWIG_IsOK(ecode2)) {
36686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36687 }
36688 arg2 = static_cast< int >(val2);
36689 ecode3 = SWIG_AsVal_int(obj2, &val3);
36690 if (!SWIG_IsOK(ecode3)) {
36691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36692 }
36693 arg3 = static_cast< int >(val3);
36694 ecode4 = SWIG_AsVal_int(obj3, &val4);
36695 if (!SWIG_IsOK(ecode4)) {
36696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36697 }
36698 arg4 = static_cast< int >(val4);
36699 ecode5 = SWIG_AsVal_int(obj4, &val5);
36700 if (!SWIG_IsOK(ecode5)) {
36701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36702 }
36703 arg5 = static_cast< int >(val5);
36704 {
36705 PyThreadState* __tstate = wxPyBeginAllowThreads();
36706 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
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_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36718 PyObject *resultobj = 0;
36719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36720 wxRect *arg2 = 0 ;
36721 void *argp1 = 0 ;
36722 int res1 = 0 ;
36723 wxRect temp2 ;
36724 PyObject * obj0 = 0 ;
36725 PyObject * obj1 = 0 ;
36726 char * kwnames[] = {
36727 (char *) "self",(char *) "rect", NULL
36728 };
36729
36730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36732 if (!SWIG_IsOK(res1)) {
36733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36734 }
36735 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36736 {
36737 arg2 = &temp2;
36738 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36739 }
36740 {
36741 PyThreadState* __tstate = wxPyBeginAllowThreads();
36742 (arg1)->DrawRectangle((wxRect const &)*arg2);
36743 wxPyEndAllowThreads(__tstate);
36744 if (PyErr_Occurred()) SWIG_fail;
36745 }
36746 resultobj = SWIG_Py_Void();
36747 return resultobj;
36748fail:
36749 return NULL;
36750}
36751
36752
36753SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36754 PyObject *resultobj = 0;
36755 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36756 wxPoint *arg2 = 0 ;
36757 wxSize *arg3 = 0 ;
36758 void *argp1 = 0 ;
36759 int res1 = 0 ;
36760 wxPoint temp2 ;
36761 wxSize temp3 ;
36762 PyObject * obj0 = 0 ;
36763 PyObject * obj1 = 0 ;
36764 PyObject * obj2 = 0 ;
36765 char * kwnames[] = {
36766 (char *) "self",(char *) "pt",(char *) "sz", NULL
36767 };
36768
36769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36771 if (!SWIG_IsOK(res1)) {
36772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36773 }
36774 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36775 {
36776 arg2 = &temp2;
36777 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36778 }
36779 {
36780 arg3 = &temp3;
36781 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36782 }
36783 {
36784 PyThreadState* __tstate = wxPyBeginAllowThreads();
36785 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36786 wxPyEndAllowThreads(__tstate);
36787 if (PyErr_Occurred()) SWIG_fail;
36788 }
36789 resultobj = SWIG_Py_Void();
36790 return resultobj;
36791fail:
36792 return NULL;
36793}
36794
36795
36796SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36797 PyObject *resultobj = 0;
36798 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36799 int arg2 ;
36800 int arg3 ;
36801 int arg4 ;
36802 int arg5 ;
36803 double arg6 ;
36804 void *argp1 = 0 ;
36805 int res1 = 0 ;
36806 int val2 ;
36807 int ecode2 = 0 ;
36808 int val3 ;
36809 int ecode3 = 0 ;
36810 int val4 ;
36811 int ecode4 = 0 ;
36812 int val5 ;
36813 int ecode5 = 0 ;
36814 double val6 ;
36815 int ecode6 = 0 ;
36816 PyObject * obj0 = 0 ;
36817 PyObject * obj1 = 0 ;
36818 PyObject * obj2 = 0 ;
36819 PyObject * obj3 = 0 ;
36820 PyObject * obj4 = 0 ;
36821 PyObject * obj5 = 0 ;
36822 char * kwnames[] = {
36823 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36824 };
36825
36826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36828 if (!SWIG_IsOK(res1)) {
36829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36830 }
36831 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36832 ecode2 = SWIG_AsVal_int(obj1, &val2);
36833 if (!SWIG_IsOK(ecode2)) {
36834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36835 }
36836 arg2 = static_cast< int >(val2);
36837 ecode3 = SWIG_AsVal_int(obj2, &val3);
36838 if (!SWIG_IsOK(ecode3)) {
36839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36840 }
36841 arg3 = static_cast< int >(val3);
36842 ecode4 = SWIG_AsVal_int(obj3, &val4);
36843 if (!SWIG_IsOK(ecode4)) {
36844 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36845 }
36846 arg4 = static_cast< int >(val4);
36847 ecode5 = SWIG_AsVal_int(obj4, &val5);
36848 if (!SWIG_IsOK(ecode5)) {
36849 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36850 }
36851 arg5 = static_cast< int >(val5);
36852 ecode6 = SWIG_AsVal_double(obj5, &val6);
36853 if (!SWIG_IsOK(ecode6)) {
36854 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36855 }
36856 arg6 = static_cast< double >(val6);
36857 {
36858 PyThreadState* __tstate = wxPyBeginAllowThreads();
36859 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36860 wxPyEndAllowThreads(__tstate);
36861 if (PyErr_Occurred()) SWIG_fail;
36862 }
36863 resultobj = SWIG_Py_Void();
36864 return resultobj;
36865fail:
36866 return NULL;
36867}
36868
36869
36870SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36871 PyObject *resultobj = 0;
36872 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36873 wxRect *arg2 = 0 ;
36874 double arg3 ;
36875 void *argp1 = 0 ;
36876 int res1 = 0 ;
36877 wxRect temp2 ;
36878 double val3 ;
36879 int ecode3 = 0 ;
36880 PyObject * obj0 = 0 ;
36881 PyObject * obj1 = 0 ;
36882 PyObject * obj2 = 0 ;
36883 char * kwnames[] = {
36884 (char *) "self",(char *) "r",(char *) "radius", NULL
36885 };
36886
36887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) 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_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36891 }
36892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36893 {
36894 arg2 = &temp2;
36895 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36896 }
36897 ecode3 = SWIG_AsVal_double(obj2, &val3);
36898 if (!SWIG_IsOK(ecode3)) {
36899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36900 }
36901 arg3 = static_cast< double >(val3);
36902 {
36903 PyThreadState* __tstate = wxPyBeginAllowThreads();
36904 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36905 wxPyEndAllowThreads(__tstate);
36906 if (PyErr_Occurred()) SWIG_fail;
36907 }
36908 resultobj = SWIG_Py_Void();
36909 return resultobj;
36910fail:
36911 return NULL;
36912}
36913
36914
36915SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36916 PyObject *resultobj = 0;
36917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36918 wxPoint *arg2 = 0 ;
36919 wxSize *arg3 = 0 ;
36920 double arg4 ;
36921 void *argp1 = 0 ;
36922 int res1 = 0 ;
36923 wxPoint temp2 ;
36924 wxSize temp3 ;
36925 double val4 ;
36926 int ecode4 = 0 ;
36927 PyObject * obj0 = 0 ;
36928 PyObject * obj1 = 0 ;
36929 PyObject * obj2 = 0 ;
36930 PyObject * obj3 = 0 ;
36931 char * kwnames[] = {
36932 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36933 };
36934
36935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36937 if (!SWIG_IsOK(res1)) {
36938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36939 }
36940 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36941 {
36942 arg2 = &temp2;
36943 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36944 }
36945 {
36946 arg3 = &temp3;
36947 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36948 }
36949 ecode4 = SWIG_AsVal_double(obj3, &val4);
36950 if (!SWIG_IsOK(ecode4)) {
36951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36952 }
36953 arg4 = static_cast< double >(val4);
36954 {
36955 PyThreadState* __tstate = wxPyBeginAllowThreads();
36956 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36957 wxPyEndAllowThreads(__tstate);
36958 if (PyErr_Occurred()) SWIG_fail;
36959 }
36960 resultobj = SWIG_Py_Void();
36961 return resultobj;
36962fail:
36963 return NULL;
36964}
36965
36966
36967SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36968 PyObject *resultobj = 0;
36969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36970 int arg2 ;
36971 int arg3 ;
36972 int arg4 ;
36973 void *argp1 = 0 ;
36974 int res1 = 0 ;
36975 int val2 ;
36976 int ecode2 = 0 ;
36977 int val3 ;
36978 int ecode3 = 0 ;
36979 int val4 ;
36980 int ecode4 = 0 ;
36981 PyObject * obj0 = 0 ;
36982 PyObject * obj1 = 0 ;
36983 PyObject * obj2 = 0 ;
36984 PyObject * obj3 = 0 ;
36985 char * kwnames[] = {
36986 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36987 };
36988
36989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36991 if (!SWIG_IsOK(res1)) {
36992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36993 }
36994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36995 ecode2 = SWIG_AsVal_int(obj1, &val2);
36996 if (!SWIG_IsOK(ecode2)) {
36997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36998 }
36999 arg2 = static_cast< int >(val2);
37000 ecode3 = SWIG_AsVal_int(obj2, &val3);
37001 if (!SWIG_IsOK(ecode3)) {
37002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37003 }
37004 arg3 = static_cast< int >(val3);
37005 ecode4 = SWIG_AsVal_int(obj3, &val4);
37006 if (!SWIG_IsOK(ecode4)) {
37007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37008 }
37009 arg4 = static_cast< int >(val4);
37010 {
37011 PyThreadState* __tstate = wxPyBeginAllowThreads();
37012 (arg1)->DrawCircle(arg2,arg3,arg4);
37013 wxPyEndAllowThreads(__tstate);
37014 if (PyErr_Occurred()) SWIG_fail;
37015 }
37016 resultobj = SWIG_Py_Void();
37017 return resultobj;
37018fail:
37019 return NULL;
37020}
37021
37022
37023SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37024 PyObject *resultobj = 0;
37025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37026 wxPoint *arg2 = 0 ;
37027 int arg3 ;
37028 void *argp1 = 0 ;
37029 int res1 = 0 ;
37030 wxPoint temp2 ;
37031 int val3 ;
37032 int ecode3 = 0 ;
37033 PyObject * obj0 = 0 ;
37034 PyObject * obj1 = 0 ;
37035 PyObject * obj2 = 0 ;
37036 char * kwnames[] = {
37037 (char *) "self",(char *) "pt",(char *) "radius", NULL
37038 };
37039
37040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37042 if (!SWIG_IsOK(res1)) {
37043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37044 }
37045 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37046 {
37047 arg2 = &temp2;
37048 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37049 }
37050 ecode3 = SWIG_AsVal_int(obj2, &val3);
37051 if (!SWIG_IsOK(ecode3)) {
37052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37053 }
37054 arg3 = static_cast< int >(val3);
37055 {
37056 PyThreadState* __tstate = wxPyBeginAllowThreads();
37057 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37058 wxPyEndAllowThreads(__tstate);
37059 if (PyErr_Occurred()) SWIG_fail;
37060 }
37061 resultobj = SWIG_Py_Void();
37062 return resultobj;
37063fail:
37064 return NULL;
37065}
37066
37067
37068SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37069 PyObject *resultobj = 0;
37070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37071 int arg2 ;
37072 int arg3 ;
37073 int arg4 ;
37074 int arg5 ;
37075 void *argp1 = 0 ;
37076 int res1 = 0 ;
37077 int val2 ;
37078 int ecode2 = 0 ;
37079 int val3 ;
37080 int ecode3 = 0 ;
37081 int val4 ;
37082 int ecode4 = 0 ;
37083 int val5 ;
37084 int ecode5 = 0 ;
37085 PyObject * obj0 = 0 ;
37086 PyObject * obj1 = 0 ;
37087 PyObject * obj2 = 0 ;
37088 PyObject * obj3 = 0 ;
37089 PyObject * obj4 = 0 ;
37090 char * kwnames[] = {
37091 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37092 };
37093
37094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37096 if (!SWIG_IsOK(res1)) {
37097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37098 }
37099 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37100 ecode2 = SWIG_AsVal_int(obj1, &val2);
37101 if (!SWIG_IsOK(ecode2)) {
37102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37103 }
37104 arg2 = static_cast< int >(val2);
37105 ecode3 = SWIG_AsVal_int(obj2, &val3);
37106 if (!SWIG_IsOK(ecode3)) {
37107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37108 }
37109 arg3 = static_cast< int >(val3);
37110 ecode4 = SWIG_AsVal_int(obj3, &val4);
37111 if (!SWIG_IsOK(ecode4)) {
37112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37113 }
37114 arg4 = static_cast< int >(val4);
37115 ecode5 = SWIG_AsVal_int(obj4, &val5);
37116 if (!SWIG_IsOK(ecode5)) {
37117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37118 }
37119 arg5 = static_cast< int >(val5);
37120 {
37121 PyThreadState* __tstate = wxPyBeginAllowThreads();
37122 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37123 wxPyEndAllowThreads(__tstate);
37124 if (PyErr_Occurred()) SWIG_fail;
37125 }
37126 resultobj = SWIG_Py_Void();
37127 return resultobj;
37128fail:
37129 return NULL;
37130}
37131
37132
37133SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37134 PyObject *resultobj = 0;
37135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37136 wxRect *arg2 = 0 ;
37137 void *argp1 = 0 ;
37138 int res1 = 0 ;
37139 wxRect temp2 ;
37140 PyObject * obj0 = 0 ;
37141 PyObject * obj1 = 0 ;
37142 char * kwnames[] = {
37143 (char *) "self",(char *) "rect", NULL
37144 };
37145
37146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37148 if (!SWIG_IsOK(res1)) {
37149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37150 }
37151 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37152 {
37153 arg2 = &temp2;
37154 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37155 }
37156 {
37157 PyThreadState* __tstate = wxPyBeginAllowThreads();
37158 (arg1)->DrawEllipse((wxRect const &)*arg2);
37159 wxPyEndAllowThreads(__tstate);
37160 if (PyErr_Occurred()) SWIG_fail;
37161 }
37162 resultobj = SWIG_Py_Void();
37163 return resultobj;
37164fail:
37165 return NULL;
37166}
37167
37168
37169SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37170 PyObject *resultobj = 0;
37171 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37172 wxPoint *arg2 = 0 ;
37173 wxSize *arg3 = 0 ;
37174 void *argp1 = 0 ;
37175 int res1 = 0 ;
37176 wxPoint temp2 ;
37177 wxSize temp3 ;
37178 PyObject * obj0 = 0 ;
37179 PyObject * obj1 = 0 ;
37180 PyObject * obj2 = 0 ;
37181 char * kwnames[] = {
37182 (char *) "self",(char *) "pt",(char *) "sz", NULL
37183 };
37184
37185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37187 if (!SWIG_IsOK(res1)) {
37188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37189 }
37190 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37191 {
37192 arg2 = &temp2;
37193 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37194 }
37195 {
37196 arg3 = &temp3;
37197 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37198 }
37199 {
37200 PyThreadState* __tstate = wxPyBeginAllowThreads();
37201 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37202 wxPyEndAllowThreads(__tstate);
37203 if (PyErr_Occurred()) SWIG_fail;
37204 }
37205 resultobj = SWIG_Py_Void();
37206 return resultobj;
37207fail:
37208 return NULL;
37209}
37210
37211
37212SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37213 PyObject *resultobj = 0;
37214 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37215 wxIcon *arg2 = 0 ;
37216 int arg3 ;
37217 int arg4 ;
37218 void *argp1 = 0 ;
37219 int res1 = 0 ;
37220 void *argp2 = 0 ;
37221 int res2 = 0 ;
37222 int val3 ;
37223 int ecode3 = 0 ;
37224 int val4 ;
37225 int ecode4 = 0 ;
37226 PyObject * obj0 = 0 ;
37227 PyObject * obj1 = 0 ;
37228 PyObject * obj2 = 0 ;
37229 PyObject * obj3 = 0 ;
37230 char * kwnames[] = {
37231 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37232 };
37233
37234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37236 if (!SWIG_IsOK(res1)) {
37237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37238 }
37239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37241 if (!SWIG_IsOK(res2)) {
37242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37243 }
37244 if (!argp2) {
37245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37246 }
37247 arg2 = reinterpret_cast< wxIcon * >(argp2);
37248 ecode3 = SWIG_AsVal_int(obj2, &val3);
37249 if (!SWIG_IsOK(ecode3)) {
37250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37251 }
37252 arg3 = static_cast< int >(val3);
37253 ecode4 = SWIG_AsVal_int(obj3, &val4);
37254 if (!SWIG_IsOK(ecode4)) {
37255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37256 }
37257 arg4 = static_cast< int >(val4);
37258 {
37259 PyThreadState* __tstate = wxPyBeginAllowThreads();
37260 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37261 wxPyEndAllowThreads(__tstate);
37262 if (PyErr_Occurred()) SWIG_fail;
37263 }
37264 resultobj = SWIG_Py_Void();
37265 return resultobj;
37266fail:
37267 return NULL;
37268}
37269
37270
37271SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37272 PyObject *resultobj = 0;
37273 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37274 wxIcon *arg2 = 0 ;
37275 wxPoint *arg3 = 0 ;
37276 void *argp1 = 0 ;
37277 int res1 = 0 ;
37278 void *argp2 = 0 ;
37279 int res2 = 0 ;
37280 wxPoint temp3 ;
37281 PyObject * obj0 = 0 ;
37282 PyObject * obj1 = 0 ;
37283 PyObject * obj2 = 0 ;
37284 char * kwnames[] = {
37285 (char *) "self",(char *) "icon",(char *) "pt", NULL
37286 };
37287
37288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37290 if (!SWIG_IsOK(res1)) {
37291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37292 }
37293 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37295 if (!SWIG_IsOK(res2)) {
37296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37297 }
37298 if (!argp2) {
37299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37300 }
37301 arg2 = reinterpret_cast< wxIcon * >(argp2);
37302 {
37303 arg3 = &temp3;
37304 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37305 }
37306 {
37307 PyThreadState* __tstate = wxPyBeginAllowThreads();
37308 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37309 wxPyEndAllowThreads(__tstate);
37310 if (PyErr_Occurred()) SWIG_fail;
37311 }
37312 resultobj = SWIG_Py_Void();
37313 return resultobj;
37314fail:
37315 return NULL;
37316}
37317
37318
37319SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37320 PyObject *resultobj = 0;
37321 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37322 wxBitmap *arg2 = 0 ;
37323 int arg3 ;
37324 int arg4 ;
37325 bool arg5 = (bool) false ;
37326 void *argp1 = 0 ;
37327 int res1 = 0 ;
37328 void *argp2 = 0 ;
37329 int res2 = 0 ;
37330 int val3 ;
37331 int ecode3 = 0 ;
37332 int val4 ;
37333 int ecode4 = 0 ;
37334 bool val5 ;
37335 int ecode5 = 0 ;
37336 PyObject * obj0 = 0 ;
37337 PyObject * obj1 = 0 ;
37338 PyObject * obj2 = 0 ;
37339 PyObject * obj3 = 0 ;
37340 PyObject * obj4 = 0 ;
37341 char * kwnames[] = {
37342 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37343 };
37344
37345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37347 if (!SWIG_IsOK(res1)) {
37348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37349 }
37350 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37352 if (!SWIG_IsOK(res2)) {
37353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37354 }
37355 if (!argp2) {
37356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37357 }
37358 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37359 ecode3 = SWIG_AsVal_int(obj2, &val3);
37360 if (!SWIG_IsOK(ecode3)) {
37361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37362 }
37363 arg3 = static_cast< int >(val3);
37364 ecode4 = SWIG_AsVal_int(obj3, &val4);
37365 if (!SWIG_IsOK(ecode4)) {
37366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37367 }
37368 arg4 = static_cast< int >(val4);
37369 if (obj4) {
37370 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37371 if (!SWIG_IsOK(ecode5)) {
37372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37373 }
37374 arg5 = static_cast< bool >(val5);
37375 }
37376 {
37377 PyThreadState* __tstate = wxPyBeginAllowThreads();
37378 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37379 wxPyEndAllowThreads(__tstate);
37380 if (PyErr_Occurred()) SWIG_fail;
37381 }
37382 resultobj = SWIG_Py_Void();
37383 return resultobj;
37384fail:
37385 return NULL;
37386}
37387
37388
37389SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37390 PyObject *resultobj = 0;
37391 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37392 wxBitmap *arg2 = 0 ;
37393 wxPoint *arg3 = 0 ;
37394 bool arg4 = (bool) false ;
37395 void *argp1 = 0 ;
37396 int res1 = 0 ;
37397 void *argp2 = 0 ;
37398 int res2 = 0 ;
37399 wxPoint temp3 ;
37400 bool val4 ;
37401 int ecode4 = 0 ;
37402 PyObject * obj0 = 0 ;
37403 PyObject * obj1 = 0 ;
37404 PyObject * obj2 = 0 ;
37405 PyObject * obj3 = 0 ;
37406 char * kwnames[] = {
37407 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37408 };
37409
37410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37412 if (!SWIG_IsOK(res1)) {
37413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37414 }
37415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37417 if (!SWIG_IsOK(res2)) {
37418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37419 }
37420 if (!argp2) {
37421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37422 }
37423 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37424 {
37425 arg3 = &temp3;
37426 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37427 }
37428 if (obj3) {
37429 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37430 if (!SWIG_IsOK(ecode4)) {
37431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37432 }
37433 arg4 = static_cast< bool >(val4);
37434 }
37435 {
37436 PyThreadState* __tstate = wxPyBeginAllowThreads();
37437 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37438 wxPyEndAllowThreads(__tstate);
37439 if (PyErr_Occurred()) SWIG_fail;
37440 }
37441 resultobj = SWIG_Py_Void();
37442 return resultobj;
37443fail:
37444 return NULL;
37445}
37446
37447
37448SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37449 PyObject *resultobj = 0;
37450 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37451 wxString *arg2 = 0 ;
37452 int arg3 ;
37453 int arg4 ;
37454 void *argp1 = 0 ;
37455 int res1 = 0 ;
37456 bool temp2 = false ;
37457 int val3 ;
37458 int ecode3 = 0 ;
37459 int val4 ;
37460 int ecode4 = 0 ;
37461 PyObject * obj0 = 0 ;
37462 PyObject * obj1 = 0 ;
37463 PyObject * obj2 = 0 ;
37464 PyObject * obj3 = 0 ;
37465 char * kwnames[] = {
37466 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37467 };
37468
37469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37471 if (!SWIG_IsOK(res1)) {
37472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37473 }
37474 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37475 {
37476 arg2 = wxString_in_helper(obj1);
37477 if (arg2 == NULL) SWIG_fail;
37478 temp2 = true;
37479 }
37480 ecode3 = SWIG_AsVal_int(obj2, &val3);
37481 if (!SWIG_IsOK(ecode3)) {
37482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37483 }
37484 arg3 = static_cast< int >(val3);
37485 ecode4 = SWIG_AsVal_int(obj3, &val4);
37486 if (!SWIG_IsOK(ecode4)) {
37487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37488 }
37489 arg4 = static_cast< int >(val4);
37490 {
37491 PyThreadState* __tstate = wxPyBeginAllowThreads();
37492 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37493 wxPyEndAllowThreads(__tstate);
37494 if (PyErr_Occurred()) SWIG_fail;
37495 }
37496 resultobj = SWIG_Py_Void();
37497 {
37498 if (temp2)
37499 delete arg2;
37500 }
37501 return resultobj;
37502fail:
37503 {
37504 if (temp2)
37505 delete arg2;
37506 }
37507 return NULL;
37508}
37509
37510
37511SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37512 PyObject *resultobj = 0;
37513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37514 wxString *arg2 = 0 ;
37515 wxPoint *arg3 = 0 ;
37516 void *argp1 = 0 ;
37517 int res1 = 0 ;
37518 bool temp2 = false ;
37519 wxPoint temp3 ;
37520 PyObject * obj0 = 0 ;
37521 PyObject * obj1 = 0 ;
37522 PyObject * obj2 = 0 ;
37523 char * kwnames[] = {
37524 (char *) "self",(char *) "text",(char *) "pt", NULL
37525 };
37526
37527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37529 if (!SWIG_IsOK(res1)) {
37530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37531 }
37532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37533 {
37534 arg2 = wxString_in_helper(obj1);
37535 if (arg2 == NULL) SWIG_fail;
37536 temp2 = true;
37537 }
37538 {
37539 arg3 = &temp3;
37540 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37541 }
37542 {
37543 PyThreadState* __tstate = wxPyBeginAllowThreads();
37544 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37545 wxPyEndAllowThreads(__tstate);
37546 if (PyErr_Occurred()) SWIG_fail;
37547 }
37548 resultobj = SWIG_Py_Void();
37549 {
37550 if (temp2)
37551 delete arg2;
37552 }
37553 return resultobj;
37554fail:
37555 {
37556 if (temp2)
37557 delete arg2;
37558 }
37559 return NULL;
37560}
37561
37562
37563SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37564 PyObject *resultobj = 0;
37565 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37566 wxString *arg2 = 0 ;
37567 int arg3 ;
37568 int arg4 ;
37569 double arg5 ;
37570 void *argp1 = 0 ;
37571 int res1 = 0 ;
37572 bool temp2 = false ;
37573 int val3 ;
37574 int ecode3 = 0 ;
37575 int val4 ;
37576 int ecode4 = 0 ;
37577 double val5 ;
37578 int ecode5 = 0 ;
37579 PyObject * obj0 = 0 ;
37580 PyObject * obj1 = 0 ;
37581 PyObject * obj2 = 0 ;
37582 PyObject * obj3 = 0 ;
37583 PyObject * obj4 = 0 ;
37584 char * kwnames[] = {
37585 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37586 };
37587
37588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37590 if (!SWIG_IsOK(res1)) {
37591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37592 }
37593 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37594 {
37595 arg2 = wxString_in_helper(obj1);
37596 if (arg2 == NULL) SWIG_fail;
37597 temp2 = true;
37598 }
37599 ecode3 = SWIG_AsVal_int(obj2, &val3);
37600 if (!SWIG_IsOK(ecode3)) {
37601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37602 }
37603 arg3 = static_cast< int >(val3);
37604 ecode4 = SWIG_AsVal_int(obj3, &val4);
37605 if (!SWIG_IsOK(ecode4)) {
37606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37607 }
37608 arg4 = static_cast< int >(val4);
37609 ecode5 = SWIG_AsVal_double(obj4, &val5);
37610 if (!SWIG_IsOK(ecode5)) {
37611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37612 }
37613 arg5 = static_cast< double >(val5);
37614 {
37615 PyThreadState* __tstate = wxPyBeginAllowThreads();
37616 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37617 wxPyEndAllowThreads(__tstate);
37618 if (PyErr_Occurred()) SWIG_fail;
37619 }
37620 resultobj = SWIG_Py_Void();
37621 {
37622 if (temp2)
37623 delete arg2;
37624 }
37625 return resultobj;
37626fail:
37627 {
37628 if (temp2)
37629 delete arg2;
37630 }
37631 return NULL;
37632}
37633
37634
37635SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37636 PyObject *resultobj = 0;
37637 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37638 wxString *arg2 = 0 ;
37639 wxPoint *arg3 = 0 ;
37640 double arg4 ;
37641 void *argp1 = 0 ;
37642 int res1 = 0 ;
37643 bool temp2 = false ;
37644 wxPoint temp3 ;
37645 double val4 ;
37646 int ecode4 = 0 ;
37647 PyObject * obj0 = 0 ;
37648 PyObject * obj1 = 0 ;
37649 PyObject * obj2 = 0 ;
37650 PyObject * obj3 = 0 ;
37651 char * kwnames[] = {
37652 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37653 };
37654
37655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37657 if (!SWIG_IsOK(res1)) {
37658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37659 }
37660 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37661 {
37662 arg2 = wxString_in_helper(obj1);
37663 if (arg2 == NULL) SWIG_fail;
37664 temp2 = true;
37665 }
37666 {
37667 arg3 = &temp3;
37668 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37669 }
37670 ecode4 = SWIG_AsVal_double(obj3, &val4);
37671 if (!SWIG_IsOK(ecode4)) {
37672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37673 }
37674 arg4 = static_cast< double >(val4);
37675 {
37676 PyThreadState* __tstate = wxPyBeginAllowThreads();
37677 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37678 wxPyEndAllowThreads(__tstate);
37679 if (PyErr_Occurred()) SWIG_fail;
37680 }
37681 resultobj = SWIG_Py_Void();
37682 {
37683 if (temp2)
37684 delete arg2;
37685 }
37686 return resultobj;
37687fail:
37688 {
37689 if (temp2)
37690 delete arg2;
37691 }
37692 return NULL;
37693}
37694
37695
37696SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37697 PyObject *resultobj = 0;
37698 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37699 int arg2 ;
37700 wxPoint *arg3 = (wxPoint *) 0 ;
37701 int arg4 = (int) 0 ;
37702 int arg5 = (int) 0 ;
37703 void *argp1 = 0 ;
37704 int res1 = 0 ;
37705 int val4 ;
37706 int ecode4 = 0 ;
37707 int val5 ;
37708 int ecode5 = 0 ;
37709 PyObject * obj0 = 0 ;
37710 PyObject * obj1 = 0 ;
37711 PyObject * obj2 = 0 ;
37712 PyObject * obj3 = 0 ;
37713 char * kwnames[] = {
37714 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37715 };
37716
37717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37719 if (!SWIG_IsOK(res1)) {
37720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37721 }
37722 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37723 {
37724 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37725 if (arg3 == NULL) SWIG_fail;
37726 }
37727 if (obj2) {
37728 ecode4 = SWIG_AsVal_int(obj2, &val4);
37729 if (!SWIG_IsOK(ecode4)) {
37730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37731 }
37732 arg4 = static_cast< int >(val4);
37733 }
37734 if (obj3) {
37735 ecode5 = SWIG_AsVal_int(obj3, &val5);
37736 if (!SWIG_IsOK(ecode5)) {
37737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37738 }
37739 arg5 = static_cast< int >(val5);
37740 }
37741 {
37742 PyThreadState* __tstate = wxPyBeginAllowThreads();
37743 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37744 wxPyEndAllowThreads(__tstate);
37745 if (PyErr_Occurred()) SWIG_fail;
37746 }
37747 resultobj = SWIG_Py_Void();
37748 {
37749 if (arg3) delete [] arg3;
37750 }
37751 return resultobj;
37752fail:
37753 {
37754 if (arg3) delete [] arg3;
37755 }
37756 return NULL;
37757}
37758
37759
37760SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37761 PyObject *resultobj = 0;
37762 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37763 int arg2 ;
37764 wxPoint *arg3 = (wxPoint *) 0 ;
37765 int arg4 = (int) 0 ;
37766 int arg5 = (int) 0 ;
37767 int arg6 = (int) wxODDEVEN_RULE ;
37768 void *argp1 = 0 ;
37769 int res1 = 0 ;
37770 int val4 ;
37771 int ecode4 = 0 ;
37772 int val5 ;
37773 int ecode5 = 0 ;
37774 int val6 ;
37775 int ecode6 = 0 ;
37776 PyObject * obj0 = 0 ;
37777 PyObject * obj1 = 0 ;
37778 PyObject * obj2 = 0 ;
37779 PyObject * obj3 = 0 ;
37780 PyObject * obj4 = 0 ;
37781 char * kwnames[] = {
37782 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37783 };
37784
37785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37787 if (!SWIG_IsOK(res1)) {
37788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37789 }
37790 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37791 {
37792 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37793 if (arg3 == NULL) SWIG_fail;
37794 }
37795 if (obj2) {
37796 ecode4 = SWIG_AsVal_int(obj2, &val4);
37797 if (!SWIG_IsOK(ecode4)) {
37798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37799 }
37800 arg4 = static_cast< int >(val4);
37801 }
37802 if (obj3) {
37803 ecode5 = SWIG_AsVal_int(obj3, &val5);
37804 if (!SWIG_IsOK(ecode5)) {
37805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37806 }
37807 arg5 = static_cast< int >(val5);
37808 }
37809 if (obj4) {
37810 ecode6 = SWIG_AsVal_int(obj4, &val6);
37811 if (!SWIG_IsOK(ecode6)) {
37812 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37813 }
37814 arg6 = static_cast< int >(val6);
37815 }
37816 {
37817 PyThreadState* __tstate = wxPyBeginAllowThreads();
37818 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37819 wxPyEndAllowThreads(__tstate);
37820 if (PyErr_Occurred()) SWIG_fail;
37821 }
37822 resultobj = SWIG_Py_Void();
37823 {
37824 if (arg3) delete [] arg3;
37825 }
37826 return resultobj;
37827fail:
37828 {
37829 if (arg3) delete [] arg3;
37830 }
37831 return NULL;
37832}
37833
37834
37835SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37836 PyObject *resultobj = 0;
37837 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37838 wxString *arg2 = 0 ;
37839 wxRect *arg3 = 0 ;
37840 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37841 int arg5 = (int) -1 ;
37842 void *argp1 = 0 ;
37843 int res1 = 0 ;
37844 bool temp2 = false ;
37845 wxRect temp3 ;
37846 int val4 ;
37847 int ecode4 = 0 ;
37848 int val5 ;
37849 int ecode5 = 0 ;
37850 PyObject * obj0 = 0 ;
37851 PyObject * obj1 = 0 ;
37852 PyObject * obj2 = 0 ;
37853 PyObject * obj3 = 0 ;
37854 PyObject * obj4 = 0 ;
37855 char * kwnames[] = {
37856 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37857 };
37858
37859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37861 if (!SWIG_IsOK(res1)) {
37862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37863 }
37864 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37865 {
37866 arg2 = wxString_in_helper(obj1);
37867 if (arg2 == NULL) SWIG_fail;
37868 temp2 = true;
37869 }
37870 {
37871 arg3 = &temp3;
37872 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37873 }
37874 if (obj3) {
37875 ecode4 = SWIG_AsVal_int(obj3, &val4);
37876 if (!SWIG_IsOK(ecode4)) {
37877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37878 }
37879 arg4 = static_cast< int >(val4);
37880 }
37881 if (obj4) {
37882 ecode5 = SWIG_AsVal_int(obj4, &val5);
37883 if (!SWIG_IsOK(ecode5)) {
37884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37885 }
37886 arg5 = static_cast< int >(val5);
37887 }
37888 {
37889 PyThreadState* __tstate = wxPyBeginAllowThreads();
37890 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37891 wxPyEndAllowThreads(__tstate);
37892 if (PyErr_Occurred()) SWIG_fail;
37893 }
37894 resultobj = SWIG_Py_Void();
37895 {
37896 if (temp2)
37897 delete arg2;
37898 }
37899 return resultobj;
37900fail:
37901 {
37902 if (temp2)
37903 delete arg2;
37904 }
37905 return NULL;
37906}
37907
37908
37909SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37910 PyObject *resultobj = 0;
37911 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37912 wxString *arg2 = 0 ;
37913 wxBitmap *arg3 = 0 ;
37914 wxRect *arg4 = 0 ;
37915 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37916 int arg6 = (int) -1 ;
37917 void *argp1 = 0 ;
37918 int res1 = 0 ;
37919 bool temp2 = false ;
37920 void *argp3 = 0 ;
37921 int res3 = 0 ;
37922 wxRect temp4 ;
37923 int val5 ;
37924 int ecode5 = 0 ;
37925 int val6 ;
37926 int ecode6 = 0 ;
37927 PyObject * obj0 = 0 ;
37928 PyObject * obj1 = 0 ;
37929 PyObject * obj2 = 0 ;
37930 PyObject * obj3 = 0 ;
37931 PyObject * obj4 = 0 ;
37932 PyObject * obj5 = 0 ;
37933 char * kwnames[] = {
37934 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37935 };
37936
37937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37939 if (!SWIG_IsOK(res1)) {
37940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37941 }
37942 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37943 {
37944 arg2 = wxString_in_helper(obj1);
37945 if (arg2 == NULL) SWIG_fail;
37946 temp2 = true;
37947 }
37948 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37949 if (!SWIG_IsOK(res3)) {
37950 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37951 }
37952 if (!argp3) {
37953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37954 }
37955 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37956 {
37957 arg4 = &temp4;
37958 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37959 }
37960 if (obj4) {
37961 ecode5 = SWIG_AsVal_int(obj4, &val5);
37962 if (!SWIG_IsOK(ecode5)) {
37963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37964 }
37965 arg5 = static_cast< int >(val5);
37966 }
37967 if (obj5) {
37968 ecode6 = SWIG_AsVal_int(obj5, &val6);
37969 if (!SWIG_IsOK(ecode6)) {
37970 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37971 }
37972 arg6 = static_cast< int >(val6);
37973 }
37974 {
37975 PyThreadState* __tstate = wxPyBeginAllowThreads();
37976 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37977 wxPyEndAllowThreads(__tstate);
37978 if (PyErr_Occurred()) SWIG_fail;
37979 }
37980 resultobj = SWIG_Py_Void();
37981 {
37982 if (temp2)
37983 delete arg2;
37984 }
37985 return resultobj;
37986fail:
37987 {
37988 if (temp2)
37989 delete arg2;
37990 }
37991 return NULL;
37992}
37993
37994
37995SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37996 PyObject *resultobj = 0;
37997 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37998 int arg2 ;
37999 wxPoint *arg3 = (wxPoint *) 0 ;
38000 void *argp1 = 0 ;
38001 int res1 = 0 ;
38002 PyObject * obj0 = 0 ;
38003 PyObject * obj1 = 0 ;
38004 char * kwnames[] = {
38005 (char *) "self",(char *) "points", NULL
38006 };
38007
38008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38010 if (!SWIG_IsOK(res1)) {
38011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38012 }
38013 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38014 {
38015 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38016 if (arg3 == NULL) SWIG_fail;
38017 }
38018 {
38019 PyThreadState* __tstate = wxPyBeginAllowThreads();
38020 (arg1)->DrawSpline(arg2,arg3);
38021 wxPyEndAllowThreads(__tstate);
38022 if (PyErr_Occurred()) SWIG_fail;
38023 }
38024 resultobj = SWIG_Py_Void();
38025 {
38026 if (arg3) delete [] arg3;
38027 }
38028 return resultobj;
38029fail:
38030 {
38031 if (arg3) delete [] arg3;
38032 }
38033 return NULL;
38034}
38035
38036
38037SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38038 PyObject *resultobj = 0;
38039 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38040 void *argp1 = 0 ;
38041 int res1 = 0 ;
38042 PyObject *swig_obj[1] ;
38043
38044 if (!args) SWIG_fail;
38045 swig_obj[0] = args;
38046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38047 if (!SWIG_IsOK(res1)) {
38048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38049 }
38050 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38051 {
38052 PyThreadState* __tstate = wxPyBeginAllowThreads();
38053 (arg1)->Clear();
38054 wxPyEndAllowThreads(__tstate);
38055 if (PyErr_Occurred()) SWIG_fail;
38056 }
38057 resultobj = SWIG_Py_Void();
38058 return resultobj;
38059fail:
38060 return NULL;
38061}
38062
38063
38064SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38065 PyObject *resultobj = 0;
38066 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38067 wxFont *arg2 = 0 ;
38068 void *argp1 = 0 ;
38069 int res1 = 0 ;
38070 void *argp2 = 0 ;
38071 int res2 = 0 ;
38072 PyObject * obj0 = 0 ;
38073 PyObject * obj1 = 0 ;
38074 char * kwnames[] = {
38075 (char *) "self",(char *) "font", NULL
38076 };
38077
38078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38080 if (!SWIG_IsOK(res1)) {
38081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38082 }
38083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38085 if (!SWIG_IsOK(res2)) {
38086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38087 }
38088 if (!argp2) {
38089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38090 }
38091 arg2 = reinterpret_cast< wxFont * >(argp2);
38092 {
38093 PyThreadState* __tstate = wxPyBeginAllowThreads();
38094 (arg1)->SetFont((wxFont const &)*arg2);
38095 wxPyEndAllowThreads(__tstate);
38096 if (PyErr_Occurred()) SWIG_fail;
38097 }
38098 resultobj = SWIG_Py_Void();
38099 return resultobj;
38100fail:
38101 return NULL;
38102}
38103
38104
38105SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38106 PyObject *resultobj = 0;
38107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38108 wxPen *arg2 = 0 ;
38109 void *argp1 = 0 ;
38110 int res1 = 0 ;
38111 void *argp2 = 0 ;
38112 int res2 = 0 ;
38113 PyObject * obj0 = 0 ;
38114 PyObject * obj1 = 0 ;
38115 char * kwnames[] = {
38116 (char *) "self",(char *) "pen", NULL
38117 };
38118
38119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38121 if (!SWIG_IsOK(res1)) {
38122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38123 }
38124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38126 if (!SWIG_IsOK(res2)) {
38127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38128 }
38129 if (!argp2) {
38130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38131 }
38132 arg2 = reinterpret_cast< wxPen * >(argp2);
38133 {
38134 PyThreadState* __tstate = wxPyBeginAllowThreads();
38135 (arg1)->SetPen((wxPen const &)*arg2);
38136 wxPyEndAllowThreads(__tstate);
38137 if (PyErr_Occurred()) SWIG_fail;
38138 }
38139 resultobj = SWIG_Py_Void();
38140 return resultobj;
38141fail:
38142 return NULL;
38143}
38144
38145
38146SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38147 PyObject *resultobj = 0;
38148 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38149 wxBrush *arg2 = 0 ;
38150 void *argp1 = 0 ;
38151 int res1 = 0 ;
38152 void *argp2 = 0 ;
38153 int res2 = 0 ;
38154 PyObject * obj0 = 0 ;
38155 PyObject * obj1 = 0 ;
38156 char * kwnames[] = {
38157 (char *) "self",(char *) "brush", NULL
38158 };
38159
38160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38162 if (!SWIG_IsOK(res1)) {
38163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38164 }
38165 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38167 if (!SWIG_IsOK(res2)) {
38168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38169 }
38170 if (!argp2) {
38171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38172 }
38173 arg2 = reinterpret_cast< wxBrush * >(argp2);
38174 {
38175 PyThreadState* __tstate = wxPyBeginAllowThreads();
38176 (arg1)->SetBrush((wxBrush const &)*arg2);
38177 wxPyEndAllowThreads(__tstate);
38178 if (PyErr_Occurred()) SWIG_fail;
38179 }
38180 resultobj = SWIG_Py_Void();
38181 return resultobj;
38182fail:
38183 return NULL;
38184}
38185
38186
38187SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38188 PyObject *resultobj = 0;
38189 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38190 wxBrush *arg2 = 0 ;
38191 void *argp1 = 0 ;
38192 int res1 = 0 ;
38193 void *argp2 = 0 ;
38194 int res2 = 0 ;
38195 PyObject * obj0 = 0 ;
38196 PyObject * obj1 = 0 ;
38197 char * kwnames[] = {
38198 (char *) "self",(char *) "brush", NULL
38199 };
38200
38201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38203 if (!SWIG_IsOK(res1)) {
38204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38205 }
38206 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38207 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38208 if (!SWIG_IsOK(res2)) {
38209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38210 }
38211 if (!argp2) {
38212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38213 }
38214 arg2 = reinterpret_cast< wxBrush * >(argp2);
38215 {
38216 PyThreadState* __tstate = wxPyBeginAllowThreads();
38217 (arg1)->SetBackground((wxBrush const &)*arg2);
38218 wxPyEndAllowThreads(__tstate);
38219 if (PyErr_Occurred()) SWIG_fail;
38220 }
38221 resultobj = SWIG_Py_Void();
38222 return resultobj;
38223fail:
38224 return NULL;
38225}
38226
38227
38228SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38229 PyObject *resultobj = 0;
38230 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38231 int arg2 ;
38232 void *argp1 = 0 ;
38233 int res1 = 0 ;
38234 int val2 ;
38235 int ecode2 = 0 ;
38236 PyObject * obj0 = 0 ;
38237 PyObject * obj1 = 0 ;
38238 char * kwnames[] = {
38239 (char *) "self",(char *) "mode", NULL
38240 };
38241
38242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38244 if (!SWIG_IsOK(res1)) {
38245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38246 }
38247 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38248 ecode2 = SWIG_AsVal_int(obj1, &val2);
38249 if (!SWIG_IsOK(ecode2)) {
38250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38251 }
38252 arg2 = static_cast< int >(val2);
38253 {
38254 PyThreadState* __tstate = wxPyBeginAllowThreads();
38255 (arg1)->SetBackgroundMode(arg2);
38256 wxPyEndAllowThreads(__tstate);
38257 if (PyErr_Occurred()) SWIG_fail;
38258 }
38259 resultobj = SWIG_Py_Void();
38260 return resultobj;
38261fail:
38262 return NULL;
38263}
38264
38265
38266SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38267 PyObject *resultobj = 0;
38268 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38269 wxPalette *arg2 = 0 ;
38270 void *argp1 = 0 ;
38271 int res1 = 0 ;
38272 void *argp2 = 0 ;
38273 int res2 = 0 ;
38274 PyObject * obj0 = 0 ;
38275 PyObject * obj1 = 0 ;
38276 char * kwnames[] = {
38277 (char *) "self",(char *) "palette", NULL
38278 };
38279
38280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38282 if (!SWIG_IsOK(res1)) {
38283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38284 }
38285 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38286 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38287 if (!SWIG_IsOK(res2)) {
38288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38289 }
38290 if (!argp2) {
38291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38292 }
38293 arg2 = reinterpret_cast< wxPalette * >(argp2);
38294 {
38295 PyThreadState* __tstate = wxPyBeginAllowThreads();
38296 (arg1)->SetPalette((wxPalette const &)*arg2);
38297 wxPyEndAllowThreads(__tstate);
38298 if (PyErr_Occurred()) SWIG_fail;
38299 }
38300 resultobj = SWIG_Py_Void();
38301 return resultobj;
38302fail:
38303 return NULL;
38304}
38305
38306
38307SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38308 PyObject *resultobj = 0;
38309 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38310 wxColour *arg2 = 0 ;
38311 void *argp1 = 0 ;
38312 int res1 = 0 ;
38313 wxColour temp2 ;
38314 PyObject * obj0 = 0 ;
38315 PyObject * obj1 = 0 ;
38316 char * kwnames[] = {
38317 (char *) "self",(char *) "colour", NULL
38318 };
38319
38320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38322 if (!SWIG_IsOK(res1)) {
38323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38324 }
38325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38326 {
38327 arg2 = &temp2;
38328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38329 }
38330 {
38331 PyThreadState* __tstate = wxPyBeginAllowThreads();
38332 (arg1)->SetTextForeground((wxColour const &)*arg2);
38333 wxPyEndAllowThreads(__tstate);
38334 if (PyErr_Occurred()) SWIG_fail;
38335 }
38336 resultobj = SWIG_Py_Void();
38337 return resultobj;
38338fail:
38339 return NULL;
38340}
38341
38342
38343SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38344 PyObject *resultobj = 0;
38345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38346 wxColour *arg2 = 0 ;
38347 void *argp1 = 0 ;
38348 int res1 = 0 ;
38349 wxColour temp2 ;
38350 PyObject * obj0 = 0 ;
38351 PyObject * obj1 = 0 ;
38352 char * kwnames[] = {
38353 (char *) "self",(char *) "colour", NULL
38354 };
38355
38356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38358 if (!SWIG_IsOK(res1)) {
38359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38360 }
38361 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38362 {
38363 arg2 = &temp2;
38364 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38365 }
38366 {
38367 PyThreadState* __tstate = wxPyBeginAllowThreads();
38368 (arg1)->SetTextBackground((wxColour const &)*arg2);
38369 wxPyEndAllowThreads(__tstate);
38370 if (PyErr_Occurred()) SWIG_fail;
38371 }
38372 resultobj = SWIG_Py_Void();
38373 return resultobj;
38374fail:
38375 return NULL;
38376}
38377
38378
38379SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38380 PyObject *resultobj = 0;
38381 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38382 int arg2 ;
38383 void *argp1 = 0 ;
38384 int res1 = 0 ;
38385 int val2 ;
38386 int ecode2 = 0 ;
38387 PyObject * obj0 = 0 ;
38388 PyObject * obj1 = 0 ;
38389 char * kwnames[] = {
38390 (char *) "self",(char *) "function", NULL
38391 };
38392
38393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38395 if (!SWIG_IsOK(res1)) {
38396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38397 }
38398 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38399 ecode2 = SWIG_AsVal_int(obj1, &val2);
38400 if (!SWIG_IsOK(ecode2)) {
38401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38402 }
38403 arg2 = static_cast< int >(val2);
38404 {
38405 PyThreadState* __tstate = wxPyBeginAllowThreads();
38406 (arg1)->SetLogicalFunction(arg2);
38407 wxPyEndAllowThreads(__tstate);
38408 if (PyErr_Occurred()) SWIG_fail;
38409 }
38410 resultobj = SWIG_Py_Void();
38411 return resultobj;
38412fail:
38413 return NULL;
38414}
38415
38416
38417SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38418 PyObject *obj;
38419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38420 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38421 return SWIG_Py_Void();
38422}
38423
38424SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38425 return SWIG_Python_InitShadowInstance(args);
38426}
38427
38428static PyMethodDef SwigMethods[] = {
38429 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38430 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38431 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38432 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38433 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38434 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38435 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38436 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38437 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38438 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38439 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38440 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38441 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38442 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38443 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38444 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38445 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38446 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38447 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38448 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38449 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38450 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38451 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38452 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38453 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38454 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38455 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38456 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38457 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38458 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38459 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38460 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38461 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38462 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38463 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38464 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38465 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38466 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38467 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38468 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38469 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38470 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38471 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38473 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38474 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38475 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38476 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38477 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38478 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38479 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38482 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38483 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38485 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38486 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38487 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38489 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38490 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38491 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38492 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38493 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38494 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38495 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38496 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38498 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38499 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38500 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38501 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38502 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38503 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38504 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38505 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38506 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38507 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38508 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38509 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38510 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38512 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38515 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38516 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38517 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38520 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38521 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38522 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38523 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38524 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38525 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38526 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38527 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38528 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38531 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38532 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38533 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38534 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38535 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38536 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38537 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38538 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38539 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38540 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38541 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38542 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38543 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38544 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38545 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38546 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38547 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38548 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38550 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38554 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38555 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38556 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38557 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38558 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38559 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38560 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38561 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38562 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38563 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38564 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38565 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38567 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38568 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38569 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38570 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38574 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38575 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38576 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38578 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38579 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38580 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38582 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38583 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38587 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38588 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38589 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38590 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38591 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38592 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38593 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38594 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38595 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38596 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38597 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38599 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38600 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38602 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38603 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38604 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38605 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38606 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38607 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38610 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38611 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38614 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38615 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38616 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38617 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38618 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38619 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38620 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38621 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38622 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38624 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38627 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38628 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38631 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38632 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38633 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38634 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38635 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38636 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38637 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38638 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38639 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38640 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38641 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38642 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38643 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38644 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38645 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38647 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38649 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38652 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38653 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38655 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38656 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38657 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38658 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38659 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38660 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38661 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38662 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38663 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38664 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38665 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38666 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38667 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38668 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38669 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38670 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38671 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38673 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38674 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38675 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38676 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38677 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38678 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38679 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38688 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38689 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38691 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38692 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38693 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38694 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38695 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38696 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38697 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38698 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38699 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38701 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38702 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38703 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38706 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38707 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38708 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38711 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38713 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38717 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38722 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38723 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38725 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38730 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38731 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38732 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38734 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38735 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38736 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38737 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38738 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38739 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38740 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38741 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38742 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38743 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38744 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38745 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38746 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38757 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38758 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38759 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38760 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38762 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38763 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38765 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38766 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38767 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38768 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38771 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38772 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38773 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38774 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38775 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38776 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38777 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38778 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38779 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38780 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38781 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38782 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38783 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38785 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38786 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38788 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38789 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38790 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38791 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38792 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38793 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38794 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38795 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38797 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38798 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38805 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38806 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38807 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38809 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38813 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38814 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38815 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38816 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38817 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38818 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38824 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38825 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38826 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38852 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38865 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38866 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38876 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38878 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38879 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38880 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38887 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38888 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38889 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38890 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38891 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38896 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38897 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38898 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38899 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38908 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38909 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38910 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38911 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
0085ce49
RD
38912 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38913 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38914 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38915 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38916 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38917 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38918 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38919 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38922 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38924 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38926 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38928 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38929 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38932 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38933 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38937 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38939 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38942 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38943 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38944 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38945 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38946 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38947 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38948 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38949 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38955 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38956 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38958 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38959 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38960 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38962 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38963 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38964 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38966 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38967 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38968 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38969 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38970 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38971 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38972 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38973 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38976 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38977 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38978 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38980 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38981 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38983 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38984 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38986 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
38987 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38992 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38993 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38994 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38995 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
38996 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
38998 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38999 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39000 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39001 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39002 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39003 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39004 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39005 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39006 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39007 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39009 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39010 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39012 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39015 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39016 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39017 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39019 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39020 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39022 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39023 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39025 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39026 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39027 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39028 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39029 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39030 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39031 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39032 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39033 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39034 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39035 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39036 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39037 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39038 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39039 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39040 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39041 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39042 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39043 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 39044 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
39045 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39046 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3 39047 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
248802d0 39048 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
5c8c7dd3
RD
39049 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39050 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39052 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39058 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
39059 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39060 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 39061 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39062 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39063 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39064 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39065 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39066 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39067 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39068 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39069 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39073 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39076 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39079 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 39080 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 39081 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 39082 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 39083 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 39084 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 39085 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39086 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39087 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39088 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39094 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39095 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39096 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39097 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39098 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39099 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
c8aaaf9e
RD
39100 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39101 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39102 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39105 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39108 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39109 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39110 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39111 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39114 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39116 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39117 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39122 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39123 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39124 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39128 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39129 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39130 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39131 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39132 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 39133 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
39134 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39137 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 39144 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 39145 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39146 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39147 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39148 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39149 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39150 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39151 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39152 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39153 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39154 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39155 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39156 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39157 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39158 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39159 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39160 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39162 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39170 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39172 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39174 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
39175 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39176 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39177 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39178 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39179 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39185 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39186 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39187 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39188 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39189 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 39190 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39191 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39192 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39193 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 39194 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39195 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39196 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39197 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
39198 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
39202 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39203 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39204 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39209 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
39210 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39211 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39212 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39213 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
39214 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39215 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39216 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39217 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39218 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39219 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39220 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39223 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39229 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39230 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39232 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39233 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39234 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39235 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39236 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39237 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39238 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39239 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39240 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39241 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39242 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39243 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39244 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39245 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39246 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39247 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39248 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39249 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39250 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39251 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39252 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39253 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39254 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39255 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39257 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39258 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39259 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39260 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39261 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39262 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39263 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39265 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
39270 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39273 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39275 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39276 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39277 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39279 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39280 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39281 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39282 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39283 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39284 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39285 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39286 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39289 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39290 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39294 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39300 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39304 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39316 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39317 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39321 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39339 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39343 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39349 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39350 { NULL, NULL, 0, NULL }
39351};
39352
39353
39354/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39355
72ef6efb
RD
39356static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39357 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39358}
8e99bda9
RD
39359static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39360 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39361}
39362static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39363 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39364}
26c4d26f
RD
39365static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39366 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39367}
39368static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39369 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39370}
72ef6efb
RD
39371static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39372 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39373}
39374static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39375 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39376}
26c4d26f
RD
39377static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39378 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39379}
fc46b7f3
RD
39380static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39381 return (void *)((wxLocale *) ((wxPyLocale *) x));
39382}
70d7cb34
RD
39383static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39384 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39385}
39386static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39387 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39388}
39389static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39390 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39391}
39392static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39393 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39394}
39395static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39396 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39397}
39398static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39399 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39400}
0085ce49
RD
39401static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39402 return (void *)((wxGDIObject *) ((wxIcon *) x));
39403}
39404static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39405 return (void *)((wxGDIObject *) ((wxPalette *) x));
39406}
39407static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39408 return (void *)((wxGDIObject *) ((wxPen *) x));
39409}
39410static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39411 return (void *)((wxGDIObject *) ((wxFont *) x));
39412}
39413static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39414 return (void *)((wxGDIObject *) ((wxCursor *) x));
39415}
39416static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39417 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39418}
39419static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39420 return (void *)((wxGDIObject *) ((wxRegion *) x));
39421}
39422static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39423 return (void *)((wxGDIObject *) ((wxBrush *) x));
39424}
72ef6efb
RD
39425static void *_p_wxGCDCTo_p_wxDC(void *x) {
39426 return (void *)((wxDC *) ((wxGCDC *) x));
39427}
0085ce49
RD
39428static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39429 return (void *)((wxDC *) ((wxScreenDC *) x));
39430}
24f6c4e8 39431static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39432 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39433}
0085ce49
RD
39434static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39435 return (void *)((wxDC *) ((wxMirrorDC *) x));
39436}
0085ce49
RD
39437static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39438 return (void *)((wxDC *) ((wxWindowDC *) x));
39439}
26c4d26f
RD
39440static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39441 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39442}
0085ce49
RD
39443static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39444 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39445}
0085ce49 39446static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39447 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39448}
39449static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39450 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49 39451}
24f6c4e8 39452static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39453 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39454}
39455static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39456 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39457}
0085ce49
RD
39458static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39459 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39460}
39461static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39462 return (void *)((wxDC *) ((wxPrinterDC *) x));
39463}
50efceee
RD
39464static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39465 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39466}
39467static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39468 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39469}
39470static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39471 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39472}
0085ce49
RD
39473static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39474 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39475}
39476static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39477 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39478}
39479static void *_p_wxPenTo_p_wxObject(void *x) {
39480 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39481}
39482static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39483 return (void *)((wxObject *) ((wxRegionIterator *) x));
39484}
0085ce49
RD
39485static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39486 return (void *)((wxObject *) ((wxSizerItem *) x));
39487}
34e0a3bb
RD
39488static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39489 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39490}
0085ce49
RD
39491static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39492 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39493}
39494static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39495 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39496}
39497static void *_p_wxIconTo_p_wxObject(void *x) {
39498 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39499}
39500static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39501 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39502}
39503static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39504 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39505}
39506static void *_p_wxSizerTo_p_wxObject(void *x) {
39507 return (void *)((wxObject *) ((wxSizer *) x));
39508}
39509static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39510 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39511}
39512static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39513 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39514}
0085ce49
RD
39515static void *_p_wxEventTo_p_wxObject(void *x) {
39516 return (void *)((wxObject *) ((wxEvent *) x));
39517}
39518static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39519 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39520}
39521static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39522 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39523}
39524static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39525 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39526}
27e45892
RD
39527static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39528 return (void *)((wxObject *) ((wxPseudoDC *) x));
39529}
2131d850
RD
39530static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39531 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39532}
0085ce49
RD
39533static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39534 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39535}
39536static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39537 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39538}
39539static void *_p_wxDCTo_p_wxObject(void *x) {
39540 return (void *)((wxObject *) ((wxDC *) x));
39541}
39542static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39543 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39544}
39545static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39546 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39547}
39548static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39549 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39550}
39551static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39552 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39553}
39554static void *_p_wxControlTo_p_wxObject(void *x) {
39555 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39556}
70d7cb34
RD
39557static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39558 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39559}
0085ce49
RD
39560static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39561 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39562}
39563static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39564 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39565}
39566static void *_p_wxFSFileTo_p_wxObject(void *x) {
39567 return (void *)((wxObject *) ((wxFSFile *) x));
39568}
39569static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39570 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
0085ce49
RD
39571}
39572static void *_p_wxRegionTo_p_wxObject(void *x) {
39573 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39574}
39575static void *_p_wxPySizerTo_p_wxObject(void *x) {
39576 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39577}
39578static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39579 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39580}
39581static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39582 return (void *)((wxObject *) ((wxGDIObject *) x));
39583}
70d7cb34
RD
39584static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39585 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39586}
39587static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39588 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39589}
0085ce49
RD
39590static void *_p_wxEffectsTo_p_wxObject(void *x) {
39591 return (void *)((wxObject *) ((wxEffects *) x));
39592}
39593static void *_p_wxPyEventTo_p_wxObject(void *x) {
39594 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39595}
39596static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39597 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39598}
39599static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39600 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39601}
70d7cb34
RD
39602static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39603 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39604}
0085ce49
RD
39605static void *_p_wxShowEventTo_p_wxObject(void *x) {
39606 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39607}
39608static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39609 return (void *)((wxObject *) ((wxMenuItem *) x));
39610}
39611static void *_p_wxDateEventTo_p_wxObject(void *x) {
39612 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39613}
39614static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39615 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39616}
39617static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39618 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39619}
39620static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39621 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39622}
39623static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39624 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39625}
39626static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39627 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39628}
39629static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39630 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39631}
39632static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39633 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39634}
39635static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39636 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39637}
39638static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39639 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39640}
39641static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39642 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39643}
39644static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39645 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39646}
39647static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39648 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39649}
39650static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39651 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39652}
39653static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39654 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39655}
39656static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39657 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39658}
39659static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39660 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39661}
39662static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39663 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39664}
39665static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39666 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39667}
39668static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39669 return (void *)((wxObject *) ((wxImageHandler *) x));
39670}
39671static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39672 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39673}
39674static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39675 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39676}
580080c5
RD
39677static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39678 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39679}
0085ce49
RD
39680static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39681 return (void *)((wxObject *) ((wxEvtHandler *) x));
39682}
34e0a3bb
RD
39683static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39684 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39685}
24f6c4e8
RD
39686static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39687 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39688}
0085ce49 39689static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39690 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
0085ce49 39691}
24f6c4e8
RD
39692static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39693 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
0085ce49
RD
39694}
39695static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39696 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39697}
39698static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39699 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39700}
0085ce49
RD
39701static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39702 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39703}
580080c5
RD
39704static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39705 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39706}
0085ce49
RD
39707static void *_p_wxImageTo_p_wxObject(void *x) {
39708 return (void *)((wxObject *) ((wxImage *) x));
39709}
39710static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39711 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39712}
70d7cb34
RD
39713static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39714 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39715}
39716static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39717 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39718}
0085ce49
RD
39719static void *_p_wxPaletteTo_p_wxObject(void *x) {
39720 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39721}
39722static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39723 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
0085ce49
RD
39724}
39725static void *_p_wxImageListTo_p_wxObject(void *x) {
39726 return (void *)((wxObject *) ((wxImageList *) x));
39727}
72ef6efb
RD
39728static void *_p_wxGCDCTo_p_wxObject(void *x) {
39729 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39730}
0085ce49
RD
39731static void *_p_wxCursorTo_p_wxObject(void *x) {
39732 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39733}
39734static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39735 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39736}
39737static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39738 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39739}
70d7cb34
RD
39740static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39741 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39742}
0085ce49
RD
39743static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39744 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39745}
39746static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39747 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39748}
39749static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39750 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39751}
39752static void *_p_wxWindowTo_p_wxObject(void *x) {
39753 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39754}
39755static void *_p_wxMenuTo_p_wxObject(void *x) {
39756 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39757}
39758static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39759 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39760}
39761static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39762 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39763}
0085ce49
RD
39764static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39765 return (void *)((wxObject *) ((wxFileSystem *) x));
39766}
39767static void *_p_wxBitmapTo_p_wxObject(void *x) {
39768 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39769}
39770static void *_p_wxMaskTo_p_wxObject(void *x) {
39771 return (void *)((wxObject *) ((wxMask *) x));
39772}
70d7cb34
RD
39773static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39774 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39775}
0085ce49
RD
39776static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39778}
39779static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39780 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39781}
39782static void *_p_wxPyAppTo_p_wxObject(void *x) {
39783 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39784}
39785static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39786 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39787}
39788static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39789 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39790}
39791static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39792 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39793}
39794static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39795 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39796}
39797static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39798 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39799}
39800static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39801 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39802}
39803static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39804 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39805}
39806static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39807 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39808}
39809static void *_p_wxFontTo_p_wxObject(void *x) {
39810 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39811}
39812static void *_p_wxBrushTo_p_wxObject(void *x) {
39813 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39814}
39815static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39816 return (void *)((wxObject *) ((wxMetaFile *) x));
39817}
39818static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39819 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39820}
39821static void *_p_wxColourTo_p_wxObject(void *x) {
39822 return (void *)((wxObject *) ((wxColour *) x));
39823}
0085ce49
RD
39824static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39825 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39826}
39827static void *_p_wxValidatorTo_p_wxObject(void *x) {
39828 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39829}
39830static void *_p_wxControlTo_p_wxWindow(void *x) {
39831 return (void *)((wxWindow *) ((wxControl *) x));
39832}
39833static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39834 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39835}
39836static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39837 return (void *)((wxWindow *) ((wxMenuBar *) x));
39838}
fc46b7f3
RD
39839static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39840 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39841}
39842static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39843 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39844}
39845static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
0085ce49 39846static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39847static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39848static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39849static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39850static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39851static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39852static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39853static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39854static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39855static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39856static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
0085ce49
RD
39857static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39858static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39859static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39860static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39861static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39862static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
0085ce49 39863static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39864static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
0085ce49
RD
39865static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39866static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39867static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39868static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39869static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39870static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39871static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39872static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39873static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
0085ce49
RD
39874static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39875static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39876static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39877static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39878static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39879static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39880static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39881static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 39882static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49 39883static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39884static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39885static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39886static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39887static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39888static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39889static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39890static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39891static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39892static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
0085ce49
RD
39893static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39894static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39895static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39896static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39897static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39898static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39899static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39900static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39901static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39902static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39903static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39904static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39905static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39906static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39907static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39908static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
39909static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39910static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 39911static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39912static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
39913static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39914static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39915static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39916static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39917static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39918static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39919static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39920static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39921static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39922static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39923static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39924static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39925static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
39926static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39927static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39928static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39929static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39930static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39931static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39932static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39933static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39934static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39935static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39936static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39937static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39938static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39939static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39940static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39941static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39942static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39943static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39944static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39945static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39946static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39947static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39948static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
0085ce49 39949static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 39950static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39951static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39952static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39953static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39954static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39955static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39956static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39957static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39958static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39959static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39960static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
39961static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39962static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39963static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39964static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49 39965static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 39966static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
0085ce49
RD
39967static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39968static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39969static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39970static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39971static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39972static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39973static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39974static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39975static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39976static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39977static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39978static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39979static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39980static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39981static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39982static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39983static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39984static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39985static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39986static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39987static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
0085ce49
RD
39988static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39989static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39990static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39991static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39992static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39993static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
0085ce49 39994static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39995static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
0085ce49
RD
39996static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39997static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39998static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39999static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
0085ce49 40000static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40001static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
0085ce49 40002static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
4fe9ce47 40003static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
0085ce49
RD
40004static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40005static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40006static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40007static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40008static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40009static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40010static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 40011static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
40012static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40013static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40014static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40015
40016static swig_type_info *swig_type_initial[] = {
fc46b7f3 40017 &_swigt__p_buffer,
0085ce49
RD
40018 &_swigt__p_char,
40019 &_swigt__p_double,
40020 &_swigt__p_form_ops_t,
40021 &_swigt__p_int,
40022 &_swigt__p_unsigned_char,
40023 &_swigt__p_unsigned_int,
40024 &_swigt__p_unsigned_long,
0a27f394 40025 &_swigt__p_void,
0085ce49
RD
40026 &_swigt__p_wxANIHandler,
40027 &_swigt__p_wxAcceleratorTable,
40028 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40029 &_swigt__p_wxAlphaPixelData,
40030 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40031 &_swigt__p_wxAutoBufferedPaintDC,
0085ce49
RD
40032 &_swigt__p_wxBMPHandler,
40033 &_swigt__p_wxBitmap,
40034 &_swigt__p_wxBoxSizer,
40035 &_swigt__p_wxBrush,
40036 &_swigt__p_wxBrushList,
40037 &_swigt__p_wxBufferedDC,
40038 &_swigt__p_wxBufferedPaintDC,
40039 &_swigt__p_wxCURHandler,
fc46b7f3 40040 &_swigt__p_wxChar,
0085ce49
RD
40041 &_swigt__p_wxChildFocusEvent,
40042 &_swigt__p_wxClientDC,
2131d850 40043 &_swigt__p_wxClipboardTextEvent,
0085ce49 40044 &_swigt__p_wxCloseEvent,
72ef6efb 40045 &_swigt__p_wxColor,
0085ce49
RD
40046 &_swigt__p_wxColour,
40047 &_swigt__p_wxColourDatabase,
40048 &_swigt__p_wxCommandEvent,
40049 &_swigt__p_wxContextMenuEvent,
40050 &_swigt__p_wxControl,
40051 &_swigt__p_wxControlWithItems,
40052 &_swigt__p_wxCursor,
40053 &_swigt__p_wxDC,
70d7cb34
RD
40054 &_swigt__p_wxDCBrushChanger,
40055 &_swigt__p_wxDCClipper,
b39fe951 40056 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40057 &_swigt__p_wxDCPenChanger,
40058 &_swigt__p_wxDCTextColourChanger,
0085ce49
RD
40059 &_swigt__p_wxDash,
40060 &_swigt__p_wxDateEvent,
40061 &_swigt__p_wxDisplayChangedEvent,
40062 &_swigt__p_wxDropFilesEvent,
40063 &_swigt__p_wxDuplexMode,
40064 &_swigt__p_wxEffects,
40065 &_swigt__p_wxEncodingConverter,
40066 &_swigt__p_wxEraseEvent,
40067 &_swigt__p_wxEvent,
40068 &_swigt__p_wxEvtHandler,
40069 &_swigt__p_wxFSFile,
40070 &_swigt__p_wxFileSystem,
40071 &_swigt__p_wxFlexGridSizer,
40072 &_swigt__p_wxFocusEvent,
40073 &_swigt__p_wxFont,
40074 &_swigt__p_wxFontList,
40075 &_swigt__p_wxFontMapper,
40076 &_swigt__p_wxGBSizerItem,
72ef6efb 40077 &_swigt__p_wxGCDC,
50efceee 40078 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
40079 &_swigt__p_wxGDIObject,
40080 &_swigt__p_wxGIFHandler,
70d7cb34 40081 &_swigt__p_wxGraphicsBrush,
72ef6efb 40082 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40083 &_swigt__p_wxGraphicsFont,
40084 &_swigt__p_wxGraphicsMatrix,
40085 &_swigt__p_wxGraphicsObject,
72ef6efb 40086 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40087 &_swigt__p_wxGraphicsPen,
40088 &_swigt__p_wxGraphicsRenderer,
0085ce49
RD
40089 &_swigt__p_wxGridBagSizer,
40090 &_swigt__p_wxGridSizer,
33d6fd3b 40091 &_swigt__p_wxHeaderButtonParams,
0085ce49
RD
40092 &_swigt__p_wxICOHandler,
40093 &_swigt__p_wxIcon,
40094 &_swigt__p_wxIconBundle,
40095 &_swigt__p_wxIconLocation,
40096 &_swigt__p_wxIconizeEvent,
40097 &_swigt__p_wxIdleEvent,
40098 &_swigt__p_wxImage,
40099 &_swigt__p_wxImageHandler,
40100 &_swigt__p_wxImageList,
40101 &_swigt__p_wxIndividualLayoutConstraint,
40102 &_swigt__p_wxInitDialogEvent,
40103 &_swigt__p_wxJPEGHandler,
40104 &_swigt__p_wxKeyEvent,
40105 &_swigt__p_wxLanguageInfo,
40106 &_swigt__p_wxLayoutConstraints,
40107 &_swigt__p_wxLocale,
40108 &_swigt__p_wxMask,
40109 &_swigt__p_wxMaximizeEvent,
40110 &_swigt__p_wxMemoryDC,
40111 &_swigt__p_wxMenu,
40112 &_swigt__p_wxMenuBar,
40113 &_swigt__p_wxMenuEvent,
40114 &_swigt__p_wxMenuItem,
40115 &_swigt__p_wxMetaFile,
40116 &_swigt__p_wxMetaFileDC,
40117 &_swigt__p_wxMirrorDC,
40118 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40119 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
40120 &_swigt__p_wxMouseEvent,
40121 &_swigt__p_wxMoveEvent,
40122 &_swigt__p_wxNativeEncodingInfo,
40123 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40124 &_swigt__p_wxNativePixelData,
40125 &_swigt__p_wxNativePixelData_Accessor,
0085ce49
RD
40126 &_swigt__p_wxNavigationKeyEvent,
40127 &_swigt__p_wxNcPaintEvent,
40128 &_swigt__p_wxNotifyEvent,
40129 &_swigt__p_wxObject,
b39fe951 40130 &_swigt__p_wxOverlay,
0085ce49
RD
40131 &_swigt__p_wxPCXHandler,
40132 &_swigt__p_wxPNGHandler,
40133 &_swigt__p_wxPNMHandler,
40134 &_swigt__p_wxPaintDC,
40135 &_swigt__p_wxPaintEvent,
40136 &_swigt__p_wxPalette,
40137 &_swigt__p_wxPaletteChangedEvent,
40138 &_swigt__p_wxPaperSize,
40139 &_swigt__p_wxPen,
40140 &_swigt__p_wxPenList,
fc46b7f3 40141 &_swigt__p_wxPixelDataBase,
0085ce49 40142 &_swigt__p_wxPoint,
72ef6efb 40143 &_swigt__p_wxPoint2D,
0085ce49
RD
40144 &_swigt__p_wxPostScriptDC,
40145 &_swigt__p_wxPrintData,
40146 &_swigt__p_wxPrinterDC,
27e45892 40147 &_swigt__p_wxPseudoDC,
0085ce49
RD
40148 &_swigt__p_wxPyApp,
40149 &_swigt__p_wxPyCommandEvent,
40150 &_swigt__p_wxPyEvent,
40151 &_swigt__p_wxPyFontEnumerator,
40152 &_swigt__p_wxPyImageHandler,
fc46b7f3 40153 &_swigt__p_wxPyLocale,
0085ce49
RD
40154 &_swigt__p_wxPySizer,
40155 &_swigt__p_wxPyValidator,
40156 &_swigt__p_wxQueryNewPaletteEvent,
40157 &_swigt__p_wxRect,
4fe9ce47 40158 &_swigt__p_wxRect2D,
0085ce49
RD
40159 &_swigt__p_wxRegion,
40160 &_swigt__p_wxRegionIterator,
40161 &_swigt__p_wxRendererNative,
40162 &_swigt__p_wxRendererVersion,
40163 &_swigt__p_wxScreenDC,
40164 &_swigt__p_wxScrollEvent,
40165 &_swigt__p_wxScrollWinEvent,
40166 &_swigt__p_wxSetCursorEvent,
40167 &_swigt__p_wxShowEvent,
40168 &_swigt__p_wxSize,
40169 &_swigt__p_wxSizeEvent,
40170 &_swigt__p_wxSizer,
40171 &_swigt__p_wxSizerItem,
40172 &_swigt__p_wxSplitterRenderParams,
40173 &_swigt__p_wxStaticBoxSizer,
40174 &_swigt__p_wxStdDialogButtonSizer,
50efceee 40175 &_swigt__p_wxStockGDI,
0085ce49
RD
40176 &_swigt__p_wxString,
40177 &_swigt__p_wxSysColourChangedEvent,
580080c5 40178 &_swigt__p_wxTGAHandler,
0085ce49
RD
40179 &_swigt__p_wxTIFFHandler,
40180 &_swigt__p_wxUpdateUIEvent,
40181 &_swigt__p_wxValidator,
40182 &_swigt__p_wxWindow,
40183 &_swigt__p_wxWindowCreateEvent,
40184 &_swigt__p_wxWindowDC,
40185 &_swigt__p_wxWindowDestroyEvent,
40186 &_swigt__p_wxXPMHandler,
40187};
40188
fc46b7f3 40189static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40190static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40191static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40192static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40193static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40194static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40195static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40196static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40197static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40198static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40199static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40200static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40201static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40202static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40203static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40204static 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}};
40205static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40206static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40207static 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}};
40208static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40209static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40210static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40211static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40212static 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
40213static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40214static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40215static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40216static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40217static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40218static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40219static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40220static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40221static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40222static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40223static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40224static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40225static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40226static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
0085ce49 40227static 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 40228static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40229static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40230static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40231static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40232static 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 40233static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40234static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40235static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40236static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40237static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40238static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40239static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40240static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40241static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40242static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40243static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40244static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40245static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40246static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40247static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40248static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40249static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40250static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40251static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40252static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40253static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40254static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40255static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40256static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40257static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40258static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40259static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40260static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40261static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40262static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40263static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40264static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40265static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40266static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40267static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40268static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40269static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40270static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40271static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40272static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40273static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40274static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40275static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40276static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40277static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40278static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40279static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40280static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40281static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40282static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40283static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40284static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40285static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40286static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40287static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40288static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40289static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40290static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40291static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40292static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40293static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40294static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40295static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40296static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40297static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40298static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40299static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40300static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40301static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40302static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40303static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40304static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40305static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40306static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40307static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40308static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40309static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40310static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40311static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40312static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40313static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40314static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40315static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40316static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40317static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40318static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40319static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40320static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40321static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40322static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40323static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40324static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40325static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40326static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40327static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40328static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40329static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40330static 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 40331static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40332static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40333static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40334static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40335static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40336static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40337static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
0085ce49 40338static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40339static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40340static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40341static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40342static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40343static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40344static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40345static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40346static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
4fe9ce47 40347static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40348static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40349static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40350static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40351static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40352static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40353static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40354static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40355static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40356static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40357static 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 40358static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40359
40360static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40361 _swigc__p_buffer,
0085ce49
RD
40362 _swigc__p_char,
40363 _swigc__p_double,
40364 _swigc__p_form_ops_t,
40365 _swigc__p_int,
40366 _swigc__p_unsigned_char,
40367 _swigc__p_unsigned_int,
40368 _swigc__p_unsigned_long,
0a27f394 40369 _swigc__p_void,
0085ce49
RD
40370 _swigc__p_wxANIHandler,
40371 _swigc__p_wxAcceleratorTable,
40372 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40373 _swigc__p_wxAlphaPixelData,
40374 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40375 _swigc__p_wxAutoBufferedPaintDC,
0085ce49
RD
40376 _swigc__p_wxBMPHandler,
40377 _swigc__p_wxBitmap,
40378 _swigc__p_wxBoxSizer,
40379 _swigc__p_wxBrush,
40380 _swigc__p_wxBrushList,
40381 _swigc__p_wxBufferedDC,
40382 _swigc__p_wxBufferedPaintDC,
40383 _swigc__p_wxCURHandler,
fc46b7f3 40384 _swigc__p_wxChar,
0085ce49
RD
40385 _swigc__p_wxChildFocusEvent,
40386 _swigc__p_wxClientDC,
2131d850 40387 _swigc__p_wxClipboardTextEvent,
0085ce49 40388 _swigc__p_wxCloseEvent,
72ef6efb 40389 _swigc__p_wxColor,
0085ce49
RD
40390 _swigc__p_wxColour,
40391 _swigc__p_wxColourDatabase,
40392 _swigc__p_wxCommandEvent,
40393 _swigc__p_wxContextMenuEvent,
40394 _swigc__p_wxControl,
40395 _swigc__p_wxControlWithItems,
40396 _swigc__p_wxCursor,
40397 _swigc__p_wxDC,
70d7cb34
RD
40398 _swigc__p_wxDCBrushChanger,
40399 _swigc__p_wxDCClipper,
b39fe951 40400 _swigc__p_wxDCOverlay,
70d7cb34
RD
40401 _swigc__p_wxDCPenChanger,
40402 _swigc__p_wxDCTextColourChanger,
0085ce49
RD
40403 _swigc__p_wxDash,
40404 _swigc__p_wxDateEvent,
40405 _swigc__p_wxDisplayChangedEvent,
40406 _swigc__p_wxDropFilesEvent,
40407 _swigc__p_wxDuplexMode,
40408 _swigc__p_wxEffects,
40409 _swigc__p_wxEncodingConverter,
40410 _swigc__p_wxEraseEvent,
40411 _swigc__p_wxEvent,
40412 _swigc__p_wxEvtHandler,
40413 _swigc__p_wxFSFile,
40414 _swigc__p_wxFileSystem,
40415 _swigc__p_wxFlexGridSizer,
40416 _swigc__p_wxFocusEvent,
40417 _swigc__p_wxFont,
40418 _swigc__p_wxFontList,
40419 _swigc__p_wxFontMapper,
40420 _swigc__p_wxGBSizerItem,
72ef6efb 40421 _swigc__p_wxGCDC,
50efceee 40422 _swigc__p_wxGDIObjListBase,
0085ce49
RD
40423 _swigc__p_wxGDIObject,
40424 _swigc__p_wxGIFHandler,
70d7cb34 40425 _swigc__p_wxGraphicsBrush,
72ef6efb 40426 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40427 _swigc__p_wxGraphicsFont,
40428 _swigc__p_wxGraphicsMatrix,
40429 _swigc__p_wxGraphicsObject,
72ef6efb 40430 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40431 _swigc__p_wxGraphicsPen,
40432 _swigc__p_wxGraphicsRenderer,
0085ce49
RD
40433 _swigc__p_wxGridBagSizer,
40434 _swigc__p_wxGridSizer,
33d6fd3b 40435 _swigc__p_wxHeaderButtonParams,
0085ce49
RD
40436 _swigc__p_wxICOHandler,
40437 _swigc__p_wxIcon,
40438 _swigc__p_wxIconBundle,
40439 _swigc__p_wxIconLocation,
40440 _swigc__p_wxIconizeEvent,
40441 _swigc__p_wxIdleEvent,
40442 _swigc__p_wxImage,
40443 _swigc__p_wxImageHandler,
40444 _swigc__p_wxImageList,
40445 _swigc__p_wxIndividualLayoutConstraint,
40446 _swigc__p_wxInitDialogEvent,
40447 _swigc__p_wxJPEGHandler,
40448 _swigc__p_wxKeyEvent,
40449 _swigc__p_wxLanguageInfo,
40450 _swigc__p_wxLayoutConstraints,
40451 _swigc__p_wxLocale,
40452 _swigc__p_wxMask,
40453 _swigc__p_wxMaximizeEvent,
40454 _swigc__p_wxMemoryDC,
40455 _swigc__p_wxMenu,
40456 _swigc__p_wxMenuBar,
40457 _swigc__p_wxMenuEvent,
40458 _swigc__p_wxMenuItem,
40459 _swigc__p_wxMetaFile,
40460 _swigc__p_wxMetaFileDC,
40461 _swigc__p_wxMirrorDC,
40462 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40463 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
40464 _swigc__p_wxMouseEvent,
40465 _swigc__p_wxMoveEvent,
40466 _swigc__p_wxNativeEncodingInfo,
40467 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40468 _swigc__p_wxNativePixelData,
40469 _swigc__p_wxNativePixelData_Accessor,
0085ce49
RD
40470 _swigc__p_wxNavigationKeyEvent,
40471 _swigc__p_wxNcPaintEvent,
40472 _swigc__p_wxNotifyEvent,
40473 _swigc__p_wxObject,
b39fe951 40474 _swigc__p_wxOverlay,
0085ce49
RD
40475 _swigc__p_wxPCXHandler,
40476 _swigc__p_wxPNGHandler,
40477 _swigc__p_wxPNMHandler,
40478 _swigc__p_wxPaintDC,
40479 _swigc__p_wxPaintEvent,
40480 _swigc__p_wxPalette,
40481 _swigc__p_wxPaletteChangedEvent,
40482 _swigc__p_wxPaperSize,
40483 _swigc__p_wxPen,
40484 _swigc__p_wxPenList,
fc46b7f3 40485 _swigc__p_wxPixelDataBase,
0085ce49 40486 _swigc__p_wxPoint,
72ef6efb 40487 _swigc__p_wxPoint2D,
0085ce49
RD
40488 _swigc__p_wxPostScriptDC,
40489 _swigc__p_wxPrintData,
40490 _swigc__p_wxPrinterDC,
27e45892 40491 _swigc__p_wxPseudoDC,
0085ce49
RD
40492 _swigc__p_wxPyApp,
40493 _swigc__p_wxPyCommandEvent,
40494 _swigc__p_wxPyEvent,
40495 _swigc__p_wxPyFontEnumerator,
40496 _swigc__p_wxPyImageHandler,
fc46b7f3 40497 _swigc__p_wxPyLocale,
0085ce49
RD
40498 _swigc__p_wxPySizer,
40499 _swigc__p_wxPyValidator,
40500 _swigc__p_wxQueryNewPaletteEvent,
40501 _swigc__p_wxRect,
4fe9ce47 40502 _swigc__p_wxRect2D,
0085ce49
RD
40503 _swigc__p_wxRegion,
40504 _swigc__p_wxRegionIterator,
40505 _swigc__p_wxRendererNative,
40506 _swigc__p_wxRendererVersion,
40507 _swigc__p_wxScreenDC,
40508 _swigc__p_wxScrollEvent,
40509 _swigc__p_wxScrollWinEvent,
40510 _swigc__p_wxSetCursorEvent,
40511 _swigc__p_wxShowEvent,
40512 _swigc__p_wxSize,
40513 _swigc__p_wxSizeEvent,
40514 _swigc__p_wxSizer,
40515 _swigc__p_wxSizerItem,
40516 _swigc__p_wxSplitterRenderParams,
40517 _swigc__p_wxStaticBoxSizer,
40518 _swigc__p_wxStdDialogButtonSizer,
50efceee 40519 _swigc__p_wxStockGDI,
0085ce49
RD
40520 _swigc__p_wxString,
40521 _swigc__p_wxSysColourChangedEvent,
580080c5 40522 _swigc__p_wxTGAHandler,
0085ce49
RD
40523 _swigc__p_wxTIFFHandler,
40524 _swigc__p_wxUpdateUIEvent,
40525 _swigc__p_wxValidator,
40526 _swigc__p_wxWindow,
40527 _swigc__p_wxWindowCreateEvent,
40528 _swigc__p_wxWindowDC,
40529 _swigc__p_wxWindowDestroyEvent,
40530 _swigc__p_wxXPMHandler,
40531};
40532
40533
40534/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40535
40536static swig_const_info swig_const_table[] = {
40537{0, 0, 0, 0.0, 0, 0}};
40538
40539#ifdef __cplusplus
40540}
40541#endif
40542/* -----------------------------------------------------------------------------
40543 * Type initialization:
40544 * This problem is tough by the requirement that no dynamic
40545 * memory is used. Also, since swig_type_info structures store pointers to
40546 * swig_cast_info structures and swig_cast_info structures store pointers back
40547 * to swig_type_info structures, we need some lookup code at initialization.
40548 * The idea is that swig generates all the structures that are needed.
40549 * The runtime then collects these partially filled structures.
40550 * The SWIG_InitializeModule function takes these initial arrays out of
40551 * swig_module, and does all the lookup, filling in the swig_module.types
40552 * array with the correct data and linking the correct swig_cast_info
40553 * structures together.
40554 *
40555 * The generated swig_type_info structures are assigned staticly to an initial
40556 * array. We just loop though that array, and handle each type individually.
40557 * First we lookup if this type has been already loaded, and if so, use the
40558 * loaded structure instead of the generated one. Then we have to fill in the
40559 * cast linked list. The cast data is initially stored in something like a
40560 * two-dimensional array. Each row corresponds to a type (there are the same
40561 * number of rows as there are in the swig_type_initial array). Each entry in
40562 * a column is one of the swig_cast_info structures for that type.
40563 * The cast_initial array is actually an array of arrays, because each row has
40564 * a variable number of columns. So to actually build the cast linked list,
40565 * we find the array of casts associated with the type, and loop through it
40566 * adding the casts to the list. The one last trick we need to do is making
40567 * sure the type pointer in the swig_cast_info struct is correct.
40568 *
40569 * First off, we lookup the cast->type name to see if it is already loaded.
40570 * There are three cases to handle:
40571 * 1) If the cast->type has already been loaded AND the type we are adding
40572 * casting info to has not been loaded (it is in this module), THEN we
40573 * replace the cast->type pointer with the type pointer that has already
40574 * been loaded.
40575 * 2) If BOTH types (the one we are adding casting info to, and the
40576 * cast->type) are loaded, THEN the cast info has already been loaded by
40577 * the previous module so we just ignore it.
40578 * 3) Finally, if cast->type has not already been loaded, then we add that
40579 * swig_cast_info to the linked list (because the cast->type) pointer will
40580 * be correct.
40581 * ----------------------------------------------------------------------------- */
40582
40583#ifdef __cplusplus
40584extern "C" {
40585#if 0
40586} /* c-mode */
40587#endif
40588#endif
40589
40590#if 0
40591#define SWIGRUNTIME_DEBUG
40592#endif
40593
40594SWIGRUNTIME void
40595SWIG_InitializeModule(void *clientdata) {
40596 size_t i;
40597 swig_module_info *module_head;
40598 static int init_run = 0;
40599
40600 clientdata = clientdata;
40601
40602 if (init_run) return;
40603 init_run = 1;
40604
40605 /* Initialize the swig_module */
40606 swig_module.type_initial = swig_type_initial;
40607 swig_module.cast_initial = swig_cast_initial;
40608
40609 /* Try and load any already created modules */
40610 module_head = SWIG_GetModule(clientdata);
40611 if (module_head) {
40612 swig_module.next = module_head->next;
40613 module_head->next = &swig_module;
40614 } else {
40615 /* This is the first module loaded */
40616 swig_module.next = &swig_module;
40617 SWIG_SetModule(clientdata, &swig_module);
40618 }
40619
40620 /* Now work on filling in swig_module.types */
40621#ifdef SWIGRUNTIME_DEBUG
40622 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40623#endif
40624 for (i = 0; i < swig_module.size; ++i) {
40625 swig_type_info *type = 0;
40626 swig_type_info *ret;
40627 swig_cast_info *cast;
40628
40629#ifdef SWIGRUNTIME_DEBUG
40630 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40631#endif
40632
40633 /* if there is another module already loaded */
40634 if (swig_module.next != &swig_module) {
40635 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 40636 }
0085ce49
RD
40637 if (type) {
40638 /* Overwrite clientdata field */
40639#ifdef SWIGRUNTIME_DEBUG
40640 printf("SWIG_InitializeModule: found type %s\n", type->name);
40641#endif
40642 if (swig_module.type_initial[i]->clientdata) {
40643 type->clientdata = swig_module.type_initial[i]->clientdata;
40644#ifdef SWIGRUNTIME_DEBUG
40645 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40646#endif
40647 }
40648 } else {
40649 type = swig_module.type_initial[i];
8d38bd1d 40650 }
0085ce49
RD
40651
40652 /* Insert casting types */
40653 cast = swig_module.cast_initial[i];
40654 while (cast->type) {
40655 /* Don't need to add information already in the list */
40656 ret = 0;
40657#ifdef SWIGRUNTIME_DEBUG
40658 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40659#endif
40660 if (swig_module.next != &swig_module) {
40661 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40662#ifdef SWIGRUNTIME_DEBUG
40663 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40664#endif
40665 }
40666 if (ret) {
40667 if (type == swig_module.type_initial[i]) {
40668#ifdef SWIGRUNTIME_DEBUG
40669 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40670#endif
40671 cast->type = ret;
40672 ret = 0;
40673 } else {
40674 /* Check for casting already in the list */
40675 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40676#ifdef SWIGRUNTIME_DEBUG
40677 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40678#endif
40679 if (!ocast) ret = 0;
40680 }
40681 }
40682
40683 if (!ret) {
40684#ifdef SWIGRUNTIME_DEBUG
40685 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40686#endif
40687 if (type->cast) {
40688 type->cast->prev = cast;
40689 cast->next = type->cast;
40690 }
40691 type->cast = cast;
40692 }
40693 cast++;
8d38bd1d 40694 }
0085ce49
RD
40695 /* Set entry in modules->types array equal to the type */
40696 swig_module.types[i] = type;
40697 }
40698 swig_module.types[i] = 0;
40699
40700#ifdef SWIGRUNTIME_DEBUG
40701 printf("**** SWIG_InitializeModule: Cast List ******\n");
40702 for (i = 0; i < swig_module.size; ++i) {
40703 int j = 0;
40704 swig_cast_info *cast = swig_module.cast_initial[i];
40705 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40706 while (cast->type) {
40707 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40708 cast++;
40709 ++j;
40710 }
40711 printf("---- Total casts: %d\n",j);
40712 }
40713 printf("**** SWIG_InitializeModule: Cast List ******\n");
40714#endif
40715}
40716
40717/* This function will propagate the clientdata field of type to
40718* any new swig_type_info structures that have been added into the list
40719* of equivalent types. It is like calling
40720* SWIG_TypeClientData(type, clientdata) a second time.
40721*/
40722SWIGRUNTIME void
40723SWIG_PropagateClientData(void) {
40724 size_t i;
40725 swig_cast_info *equiv;
40726 static int init_run = 0;
40727
40728 if (init_run) return;
40729 init_run = 1;
40730
40731 for (i = 0; i < swig_module.size; i++) {
40732 if (swig_module.types[i]->clientdata) {
40733 equiv = swig_module.types[i]->cast;
40734 while (equiv) {
40735 if (!equiv->converter) {
40736 if (equiv->type && !equiv->type->clientdata)
40737 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40738 }
40739 equiv = equiv->next;
40740 }
8d38bd1d 40741 }
0085ce49
RD
40742 }
40743}
40744
40745#ifdef __cplusplus
40746#if 0
40747{
40748 /* c-mode */
40749#endif
40750}
40751#endif
40752
40753
40754
40755#ifdef __cplusplus
40756extern "C" {
40757#endif
40758
40759 /* Python-specific SWIG API */
40760#define SWIG_newvarlink() SWIG_Python_newvarlink()
40761#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40762#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40763
40764 /* -----------------------------------------------------------------------------
40765 * global variable support code.
40766 * ----------------------------------------------------------------------------- */
40767
40768 typedef struct swig_globalvar {
40769 char *name; /* Name of global variable */
40770 PyObject *(*get_attr)(void); /* Return the current value */
40771 int (*set_attr)(PyObject *); /* Set the value */
40772 struct swig_globalvar *next;
40773 } swig_globalvar;
40774
40775 typedef struct swig_varlinkobject {
40776 PyObject_HEAD
40777 swig_globalvar *vars;
40778 } swig_varlinkobject;
40779
40780 SWIGINTERN PyObject *
40781 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40782 return PyString_FromString("<Swig global variables>");
40783 }
40784
40785 SWIGINTERN PyObject *
40786 swig_varlink_str(swig_varlinkobject *v) {
40787 PyObject *str = PyString_FromString("(");
40788 swig_globalvar *var;
40789 for (var = v->vars; var; var=var->next) {
40790 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40791 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40792 }
40793 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40794 return str;
40795 }
40796
40797 SWIGINTERN int
40798 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40799 PyObject *str = swig_varlink_str(v);
40800 fprintf(fp,"Swig global variables ");
40801 fprintf(fp,"%s\n", PyString_AsString(str));
40802 Py_DECREF(str);
40803 return 0;
40804 }
40805
40806 SWIGINTERN void
40807 swig_varlink_dealloc(swig_varlinkobject *v) {
40808 swig_globalvar *var = v->vars;
40809 while (var) {
40810 swig_globalvar *n = var->next;
40811 free(var->name);
40812 free(var);
40813 var = n;
8d38bd1d 40814 }
0085ce49
RD
40815 }
40816
40817 SWIGINTERN PyObject *
40818 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40819 PyObject *res = NULL;
40820 swig_globalvar *var = v->vars;
40821 while (var) {
40822 if (strcmp(var->name,n) == 0) {
40823 res = (*var->get_attr)();
40824 break;
40825 }
40826 var = var->next;
8d38bd1d 40827 }
0085ce49
RD
40828 if (res == NULL && !PyErr_Occurred()) {
40829 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40830 }
0085ce49
RD
40831 return res;
40832 }
40833
40834 SWIGINTERN int
40835 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40836 int res = 1;
40837 swig_globalvar *var = v->vars;
40838 while (var) {
40839 if (strcmp(var->name,n) == 0) {
40840 res = (*var->set_attr)(p);
40841 break;
40842 }
40843 var = var->next;
8d38bd1d 40844 }
0085ce49
RD
40845 if (res == 1 && !PyErr_Occurred()) {
40846 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40847 }
0085ce49
RD
40848 return res;
40849 }
40850
40851 SWIGINTERN PyTypeObject*
40852 swig_varlink_type(void) {
40853 static char varlink__doc__[] = "Swig var link object";
40854 static PyTypeObject varlink_type;
40855 static int type_init = 0;
40856 if (!type_init) {
40857 const PyTypeObject tmp
40858 = {
40859 PyObject_HEAD_INIT(NULL)
40860 0, /* Number of items in variable part (ob_size) */
40861 (char *)"swigvarlink", /* Type name (tp_name) */
40862 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40863 0, /* Itemsize (tp_itemsize) */
40864 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40865 (printfunc) swig_varlink_print, /* Print (tp_print) */
40866 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40867 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40868 0, /* tp_compare */
40869 (reprfunc) swig_varlink_repr, /* tp_repr */
40870 0, /* tp_as_number */
40871 0, /* tp_as_sequence */
40872 0, /* tp_as_mapping */
40873 0, /* tp_hash */
40874 0, /* tp_call */
40875 (reprfunc)swig_varlink_str, /* tp_str */
40876 0, /* tp_getattro */
40877 0, /* tp_setattro */
40878 0, /* tp_as_buffer */
40879 0, /* tp_flags */
40880 varlink__doc__, /* tp_doc */
40881 0, /* tp_traverse */
40882 0, /* tp_clear */
40883 0, /* tp_richcompare */
40884 0, /* tp_weaklistoffset */
40885#if PY_VERSION_HEX >= 0x02020000
40886 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40887#endif
40888#if PY_VERSION_HEX >= 0x02030000
40889 0, /* tp_del */
40890#endif
40891#ifdef COUNT_ALLOCS
40892 0,0,0,0 /* tp_alloc -> tp_next */
40893#endif
40894 };
40895 varlink_type = tmp;
40896 varlink_type.ob_type = &PyType_Type;
40897 type_init = 1;
8d38bd1d 40898 }
0085ce49
RD
40899 return &varlink_type;
40900 }
40901
40902 /* Create a variable linking object for use later */
40903 SWIGINTERN PyObject *
40904 SWIG_Python_newvarlink(void) {
40905 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40906 if (result) {
40907 result->vars = 0;
40908 }
40909 return ((PyObject*) result);
40910 }
40911
40912 SWIGINTERN void
40913 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40914 swig_varlinkobject *v = (swig_varlinkobject *) p;
40915 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40916 if (gv) {
40917 size_t size = strlen(name)+1;
40918 gv->name = (char *)malloc(size);
40919 if (gv->name) {
40920 strncpy(gv->name,name,size);
40921 gv->get_attr = get_attr;
40922 gv->set_attr = set_attr;
40923 gv->next = v->vars;
40924 }
8d38bd1d 40925 }
0085ce49
RD
40926 v->vars = gv;
40927 }
40928
40929 SWIGINTERN PyObject *
40930 SWIG_globals() {
40931 static PyObject *_SWIG_globals = 0;
40932 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40933 return _SWIG_globals;
40934 }
40935
40936 /* -----------------------------------------------------------------------------
40937 * constants/methods manipulation
40938 * ----------------------------------------------------------------------------- */
40939
40940 /* Install Constants */
40941 SWIGINTERN void
40942 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40943 PyObject *obj = 0;
40944 size_t i;
40945 for (i = 0; constants[i].type; ++i) {
40946 switch(constants[i].type) {
40947 case SWIG_PY_POINTER:
40948 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40949 break;
40950 case SWIG_PY_BINARY:
40951 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40952 break;
40953 default:
40954 obj = 0;
40955 break;
40956 }
40957 if (obj) {
40958 PyDict_SetItemString(d, constants[i].name, obj);
40959 Py_DECREF(obj);
40960 }
8d38bd1d 40961 }
0085ce49
RD
40962 }
40963
40964 /* -----------------------------------------------------------------------------*/
40965 /* Fix SwigMethods to carry the callback ptrs when needed */
40966 /* -----------------------------------------------------------------------------*/
40967
40968 SWIGINTERN void
40969 SWIG_Python_FixMethods(PyMethodDef *methods,
40970 swig_const_info *const_table,
40971 swig_type_info **types,
40972 swig_type_info **types_initial) {
40973 size_t i;
40974 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 40975 const char *c = methods[i].ml_doc;
0085ce49
RD
40976 if (c && (c = strstr(c, "swig_ptr: "))) {
40977 int j;
40978 swig_const_info *ci = 0;
453fb36b 40979 const char *name = c + 10;
0085ce49
RD
40980 for (j = 0; const_table[j].type; ++j) {
40981 if (strncmp(const_table[j].name, name,
40982 strlen(const_table[j].name)) == 0) {
40983 ci = &(const_table[j]);
40984 break;
40985 }
40986 }
40987 if (ci) {
40988 size_t shift = (ci->ptype) - types;
40989 swig_type_info *ty = types_initial[shift];
40990 size_t ldoc = (c - methods[i].ml_doc);
40991 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40992 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40993 if (ndoc) {
40994 char *buff = ndoc;
40995 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40996 if (ptr) {
40997 strncpy(buff, methods[i].ml_doc, ldoc);
40998 buff += ldoc;
40999 strncpy(buff, "swig_ptr: ", 10);
41000 buff += 10;
41001 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41002 methods[i].ml_doc = ndoc;
41003 }
41004 }
41005 }
41006 }
8d38bd1d 41007 }
0085ce49
RD
41008 }
41009
41010#ifdef __cplusplus
41011}
41012#endif
41013
41014/* -----------------------------------------------------------------------------*
41015 * Partial Init method
41016 * -----------------------------------------------------------------------------*/
41017
41018#ifdef __cplusplus
41019extern "C"
41020#endif
41021SWIGEXPORT void SWIG_init(void) {
41022 PyObject *m, *d;
41023
41024 /* Fix SwigMethods to carry the callback ptrs when needed */
41025 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41026
41027 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41028 d = PyModule_GetDict(m);
41029
41030 SWIG_InitializeModule(0);
41031 SWIG_InstallConstants(d,swig_const_table);
41032
41033
01f6b6d3
RD
41034 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41035 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41036 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41037 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41038 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
0085ce49
RD
41039 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41040 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41041 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41042 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41043 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41044 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41045 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41046 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41047 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41048 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41049 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41050 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41051 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41052 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41053 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41054 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41055 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41056 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41057 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41058 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41059 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41060 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41061 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41062 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41063 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41064 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41065 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41066 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41067 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41068 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41069 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41070 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41071 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41072 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41073 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41074 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41075 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41076 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41077 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41078 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41079 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41080 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41081 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41082 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41083 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41084 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41085 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41086 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41087 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41088 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41089 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41090 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41091 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41092 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41093 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41094 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41095 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41096 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41097 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41098 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41099 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41100 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41101 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41102 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41103 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41104 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41105 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41106 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41107 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41108 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41109 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41110 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41111 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41112 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41113 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41114 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41115 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41116 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41117 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41118 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41119 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41120 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41121 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41122 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41123 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41124 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41125 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41126 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41127 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41128 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41129 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41130 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41131 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41132 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41133 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41134 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41135 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41136 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41137 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41138 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41139 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41140 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41141 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41142 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41143 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41144 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41145 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41146 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41147 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41148 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41149 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41150 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41151 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41152 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41153 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41154 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41155 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41156 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41157 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41158 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41159 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41160 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41161 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41162 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41163 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41164 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41165 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41166
41167 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41168
41169 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41170 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41171 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41172 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41173 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41174 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41175 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41176 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41177 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41178 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41179 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41180 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41181 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41182 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41183 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41184 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41185 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41186 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41187 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41188 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41189 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41190 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41191 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41192 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41193 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41194 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41195 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41196 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41197 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41198 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41199 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41200 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41201 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41202 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41203 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41204 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41205 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41206 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41207 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41208 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41209 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41210 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41211 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41212 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41257 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41258 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41259 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41260 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41261 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41262 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41263 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41264 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41265 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41266 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41267 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41268 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41269 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41270 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41271 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41272 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41273 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41274 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41275 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41276 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41277 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41278 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41279 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41280 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41281 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41282 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41283 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41284 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41285 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41286 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41287 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41288 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41289 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41290 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41291 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41292 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41293 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41294 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41295 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41296 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41297 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41298 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41299 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41300 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41301 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41302 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41303 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41304 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41305 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41306 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41307 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41308 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41309 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41310 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41311 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41312 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41313 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41314 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41315 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41316 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41317 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41318 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41319 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41320 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41321 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41322 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41323 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41324 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41325 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41326 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41327 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41328 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41329 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41330 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41331 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41332 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41333 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41334 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41335 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41336 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41337 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41338 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41339 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41340 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41341 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41342 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41343 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41344 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41345 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41346 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41347 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41348 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41349 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41350 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41351 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41352 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41353 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41354 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41355 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41356 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41357 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41358 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41359 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41360 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41361 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41362 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41363 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41364 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41365 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41366 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41367 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41368 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41369 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41370 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41371 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41372 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41373 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41374 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41375 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41376 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41377 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41378 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41379 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41380 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41381 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41382 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41383 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41384 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41385 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41386 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41387 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41388 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41389 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41390 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41391 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41392 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41393 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41394 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41395 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41396 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41397 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41398 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41399 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41400 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41401 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41402 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41403 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41404 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41405 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41406 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41407 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41408 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41409 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41410 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41411 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41412 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41413 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41414 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41415 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41416 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41417 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41418 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41419 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41420 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41421 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41422 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
0085ce49
RD
41423 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41424 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41425 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41426 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41427 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41428 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41429 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
41430 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41431 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41432 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41433 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41434 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41435 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41436 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41437 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41438 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41439 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41440 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41441 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41442 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41443 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41444 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41445 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41446 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41447 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41448 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41449 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41450 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41451 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41452 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41453 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41454 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41455 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41456 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41457 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41458 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41459 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41460 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41461 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41462 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41463 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41464 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49
RD
41465 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41466 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41467 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41468 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41469 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41470 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41471 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41472 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
41473 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41474 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41475 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41476 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
0085ce49
RD
41477 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41478 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41479 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41480 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
0085ce49
RD
41481 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41482 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41483 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41484 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41485 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41486 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41487 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41488 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41489 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41490 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
0085ce49
RD
41491 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41492 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41493
41494 // Work around a chicken/egg problem in drawlist.cpp
41495 wxPyDrawList_SetAPIPtr();
41496
d14a1e28
RD
41497}
41498